Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 5930 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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.

Posted

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 ("").

  • 1 month later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.