I have a function that creates a dynamic picking list in an Action interface. If I apply the action to an object, but don’t change the picker to a value other than the first value, then the value is not published. If I move the picker to another value, publish, and then change it back, then the first value in the list will be published.
Here is the code:
function fwInterface(){
var targetmenu = fwParameters['targets'];
temp = fwPage.fwFindAction(2,'Carousel');
if(temp) {
test = temp.fwItem;
targetmenu.fwEnable = true;
var targets = new Array();
for (i in test.fwItems){
targets.push(test.fwItems[i]);
}
targetmenu.fwMenuItems = targets;
if(targetmenu.length > 0) {
targetmenu.toString();
}
}else{
targetmenu.fwEnable = false;
}
}
Is there something else I need to add to get it to initialize when the Action is first applied to an object?
Thanks,
Walter
actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options