# Default values... (and application variables)

**URL:** <https://forums.toadworld.com/t/default-values-and-application-variables/32412>\
**Category:** Toad Data Modeler\
**Created:** [January 26, 2015, 7:30am UTC](https://forums.toadworld.com/t/default-values-and-application-variables/32412 "2015-01-26T07:30:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![roberto\_icardi\_218](https://avatars.discourse-cdn.com/v4/letter/r/e480ec/32.png) [@roberto\_icardi\_218](https://forums.toadworld.com/u/roberto_icardi_218)\
**Post date:** [January 26, 2015, 7:30am UTC](https://forums.toadworld.com/t/default-values-and-application-variables/32412/1 "2015-01-26T07:30:47Z")

</div>

Hello,

this is something I’ve already asked some time ago, nothing changed on this, but I still think is something really really useful…

I really appreciate the default values (Settings-\>Default values just to be clear), but for me is missing something really important: something that allow to take a specified portion of application variables and not the whole application variable…

for example, in caption/name instead of having for example \<%ParentTableName%\>_fk_\<%ChildTableName%\> having something like \<%ParentTableName%:5\>_fk_\<%ChildTableName%:5\> that means, "take only the first 5 chars of parent and table name and mix them with a middle _fk_

so a relation between ac000\_customers and af000\_suppliers becomes ac000\_fk\_af000

This seems fancy, and of limited use for those (like me) that have and unique prefix identifying each and every table in database, but could be useful, for example, also in case that constraint names have a length limitation imposed by database rules, and combination of parent table name + _fk_ + child table name (that I think is pretty common around) exceed such limit, and are forced to fix by hand relations like my\_very\_very\_long\_parent\_table\_name\_fk\_my\_very\_very\_long\_child\_table\_name … that exceed max length admitted for fk constraint names in database…

What do you guys think about???

---

<div class="post-metadata">

**Author:** ![Lukas.Knapek](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/lukas.knapek/32/269_2.png) [@Lukas.Knapek](https://forums.toadworld.com/u/Lukas.Knapek)\
**Post date:** [January 27, 2015, 3:21am UTC](https://forums.toadworld.com/t/default-values-and-application-variables/32412/2 "2015-01-27T03:21:20Z")

</div>

Hello Roberto,

You can actually do that, but it requires a little more advanced customization and not many users are aware of this possibility.

I don’t know if I should go into details. Is there any custom application variable you urgently need? If not, I would wait a few days, there should be article published in near future which explains how to create your own custom application variables.

Regards,

Lukas
