Hans Jakob Prydz Posted July 3, 2008 Posted July 3, 2008 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.
Fitch Posted July 3, 2008 Posted July 3, 2008 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 ("").
Hans Jakob Prydz Posted August 30, 2008 Author Posted August 30, 2008 Hi, Thanks, somehow i missed your reply earlier. I'll try out what you say - it was a good tip. Regards, HJP
Recommended Posts
This topic is 5930 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now