Re: Dynamic drop down
Posted: Mon Apr 17, 2017 2:15 pm
You can right-click the "choices parameter value" property and choose "Add Another Choices Parameter Value". then you will have a second one that you can use.
If the choices parameter value is calculated on the client side (i.e. has "script:" or "js:", etc at the start) you can modify it from JavaScript with applyProperty('widgetId', 'choices parameter value 2', 'value'); -- you cannot modify it the value comes from a bound field or if it is known at compile-time, because in that case the value does not come from the browser, it comes from the IBM i directly, so any changes on the client side won't do anything.
If the choices parameter value is calculated on the client side (i.e. has "script:" or "js:", etc at the start) you can modify it from JavaScript with applyProperty('widgetId', 'choices parameter value 2', 'value'); -- you cannot modify it the value comes from a bound field or if it is known at compile-time, because in that case the value does not come from the browser, it comes from the IBM i directly, so any changes on the client side won't do anything.