Focal Point
load dropdown dynamically using javascript

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/2957010236

July 05, 2013, 02:05 PM
Kamesh
load dropdown dynamically using javascript
Hi,

I am trying to populate the dropdown using javascript when I click the button. I tried the following code but no luck.

if (myXmlRoot || loadXmlDoc())
{
var pattern="//input_controls/input_control[@id='" + fldname + "']/link[@persistentuniqueid='" + linkid + "']/condition/data_info";
alert("Myxmlroot : "+ myXmlRoot);
alert("Pattern : " + pattern);
var requestNode = getSingleNode(myXmlRoot, pattern);
alert("RequestNode : " + requestNode);
if (requestNode)
{
alert("inside if");
requestNode.setAttribute("datasource", ibif_ex);
requestNode.setAttribute("IBIMR_folder", ibimr_folder);
requestNode.setAttribute("displayfield",fldname1);
requestNode.setAttribute("datafield",fldname2);
}
}


Anybody did this. I searched in forum but found most of the posts related to chaining.

Any help in this issue would be appreciated.


WFConsultant

WF 8105M on Win7/Tomcat
July 08, 2013, 09:45 AM
JL
I have used the following method to populate a changing dropdown list into a HTML page created via HTML Composer.

This message has been edited. Last edited by: JL,


Year(s) of experience in WebFOCUS: 5+. Using WebFOCUS 7.7.03 on Windows platform with Oracle/SQL Server.
July 09, 2013, 03:59 PM
Kamesh
I am trying to use the javascript functions doRepopulateInputControls(persistentuniqueid) or other functions but nothing works.

I am not getting any error but it is not loading the dropdown.

Any thoughts from the experts here.


WFConsultant

WF 8105M on Win7/Tomcat