Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
7 replies
Subscribers
8 subscribers
Views
3595 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
Hi I want to populate dropdown field on my form dynamically.I am on appian 7.2
achaugule
over 10 years ago
Hi I want to populate dropdown field on my form dynamically.I am on appian 7.2
I am using following code
importScript('/plugins/servlet/FormsExt.js');
FormAPI.populateDropdown("txtMaterialCode", ["getMaterialCodeMappingExpRule","Carton","No"]);
Here
getMaterialCodeMappingExpRule is an expression rule which takes two parameters.
When I execute this code i get following error
"Unable to get value of the property 'options': object is null or undefined"
Any pointer to this will really be helpfull....
OriginalPostID-105563
OriginalPostID-105563
Discussion posts and replies are publicly visible
Parents
0
achaugule
over 10 years ago
Thank you so much Ajinkya and eduardo for your inputs on this issue.
We also tried things at our end to take it to closure.
We were able to solve this using
importScript('/plugins/servlet/FormsExt.js');
var txtComponent=FormAPI.getValue("drpdwnComponent").id;
FormAPI.evaluateServerSideExpression(function(fn) {
debugger;
window.FormAPI.updateDropdownValues("txtMaterialCode",fn,fn);
},["getMaterialCodeMappingExpRule",txtComponent,"No"]);
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
achaugule
over 10 years ago
Thank you so much Ajinkya and eduardo for your inputs on this issue.
We also tried things at our end to take it to closure.
We were able to solve this using
importScript('/plugins/servlet/FormsExt.js');
var txtComponent=FormAPI.getValue("drpdwnComponent").id;
FormAPI.evaluateServerSideExpression(function(fn) {
debugger;
window.FormAPI.updateDropdownValues("txtMaterialCode",fn,fn);
},["getMaterialCodeMappingExpRule",txtComponent,"No"]);
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data