July 3, 200817 yr Hi, I'm currently working on a offer generator that imports some template text into each field. Sometimes the user needs to erase all info on one given tab. [color:red]How do I identify the fields on that tab and how do I erase text in multiple fields ? (there are different number of fields on each tab - anything from 2-10 fields). I could of course make a script for every tab using "insert text" or "replace text" 2, but since the whole solution contains almost 70 tabs on different layouts it seems silly to make that many scripts. Logically it should be something like this: Identify all txt fields within selected tab Erase all text in selected/identified fields I hope someone are able to help me or point me in the right direction on what commands to use.
July 3, 200817 yr Let's say you give each tab panel an object name, and also assign object names to all the fields on the tab panel. If you pass the tab object name as your script parameter, the following function will give you a list of the fields: GetLayoutObjectAttribute( Get ( ScriptParameter ) ; "containedObjects" ) You could then use ValueCount and GetValue to loop through the list, go to each field and set it to empty ("").
August 30, 200817 yr Author Hi, Thanks, somehow i missed your reply earlier. I'll try out what you say - it was a good tip. Regards, HJP
Create an account or sign in to comment