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
16 replies
Subscribers
8 subscribers
Views
5202 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
Hello everyone, I need help regarding Advanced Forms Utilities, exac
simonas
over 11 years ago
Hello everyone,
I need help regarding Advanced Forms Utilities, exactly POPULATE DROPDOWNS DYNAMICALLY. First of all, I have two CDTs.
The first CDT has one text parametar which is dropdown list, range parametar - boolean (yes/no), and ID. The second CDT has the same ID, and values which is the second dropdown.
I want this, when I choose text value from the first dropdown, the first ID to connect with the second ID and based on the second ID to show values in the second dropdown list. I want it on click and change.
Can I use this:
FormAPI.populateDropdown("dropdown6", ["GetBusinessOriginDetailsByOriginCode", FormAPI.getValue("dropdown5").id], "code", "description");
or this:
FormAPI.populateDropdownFromCDT = function(dropdown, expr, id_attr, display_attr) {
FormAPI.evaluateServerSideExpression(function(list) {
var ids = [];
var displays = [];
for (var i=0;i<list.length;i++) {
ids[i]=list[i][id_attr];
displays[...
OriginalPostID-45172
OriginalPostID-45172
Discussion posts and replies are publicly visible
0
simonas
over 11 years ago
and on the first form on click:
FormAPI.populateDropdownFromCDT("dropdown84", "=GetValuerangeBySelectContract(\\""+FormAPI.getValue("dropdown13").id+"\\")", "Valueid", "value");
I have put it on change too, but it still doesnt work. I dont get any exception
but The value in range dropdown is empty.
Please help me or guide me to solve my problem. Thank you for your time.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Andre Dessens
Appian Employee
over 11 years ago
Nothing jumps out to me from what you are mentioning. Everything seems fine. There might be something else causing the issue. The only other thing I can think of right now is the dropdown type. Make sure that it's the same type as the values you are trying to populate (in this case it would be text).
Try experimenting with paragraph fields to test the javascript code instead of the dropdown fields. That might help you visualize if there's something off with the data being returned or if the code is doing something you were not expecting.
You can also try using IE's developer tools to debug the javascript code (press F12 to bring the console up on IE9, not sure if it is available out-of-the-box for IE8).
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
natasav
over 11 years ago
Can we use Time Viewer so you can see what we are doing
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
natasav
over 11 years ago
maybe the problem is that value is text multiple
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
simonas
over 11 years ago
Me and natasav are working together so if you can help us via team viewer it would be great
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Andre Dessens
Appian Employee
over 11 years ago
It sounds like using the Advanced Form Utilities is making more difficult to accomplish what you are trying to do than what it is worth. I would recommend trying to come up with a different approach that doesn't require using the Advanced Form Utilities. You could try splitting up your logic into 2 different forms so the choice from the first can be incorporated on the second one.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
<