Select Menu and Mapping Anomailies
I have an issue where my select menu does not show the value I want it to show when the popup it is on is opened. The select menu is populated by a service/mapping, and I am also mapping the desired default value to it from a LSV. I have gotten this to work on a dialog before but no luck here. The only difference is that I am triggering the services/mappings on the dialog on page load/shows whereas with the popup one I have this happening when a list item is clicked.
I want the select menus to default to what I map to it, not the first item in the list. I cannot get this done here, but I have on other pages.
Speedway is shared with support.
user: test
password: 123
you will be redirected to this page:
The add button takes you to a similar set of select menus.
Clicking on a list item takes you to the misbehaving select menus. you can notice how the first select menu does not default to the proper value. The second one does, but it also does not have a service populating its selections until the first select menu's value is change. The third select menu is not related to the first two, but it defaults to blank.
I am using the following code on the third one's mapping (Success event from $ to menu-0:
setTimeout(function() {
Apperyio("installer_select_edit").val("").selectmenu('refresh');
}, 10);
The following code has the same effect as no code (like on select menu 1):
setTimeout(function() {
Apperyio("installer_select_add").val("");
Apperyio("installer_select_add").refresh();
}, 10);
To summarize, I am wanting to make an edit page with three select menus that have default values of what I map to it, but it appears that a combination of the default value mapping and service-population of list and being triggered from a click event in a list (or maybe from the same event, not necessarily the click event) is causing the issue.