Can you get the name of a fwParameter programmatically, inside a loop?

for(p in fwParameters){
	alert(p.???)
}

I have tried name and fwName so far, just want to be smarter about filtering which features to show in an increasingly-complex UI. Is there an acceptable way to do this that doesn’t involve maintaining a big-ass list of parameter names? I’d like to just show the ones that include a particular substring in their name.

Walter


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Walter,
In your example p should equal the index of the control in the fwParameters object.

Try;

for(p in fwParameters){
	alert(fwParameters[p].fwName);
}

for the control name, fwTitle for the title and fwValue for (you guessed it) the value.
I agree that managing Actions UI takes a lot of work especially were the visible or enabled state of a control is defined by the values of a multiple of other controls or options on the page.
Regards,
Tim.

On 2 Nov 2013, at 15:26, Walter Lee Davis wrote:

I have tried name and fwName so far, just want to be smarter about filtering which features to show in an increasingly-complex UI


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options