hi everyone i have this scenro... i need to create a dct that would have a dropdown menu of many products. so if i choose product_1 then i will only get the replicants that corrpesonds to that product. (this is dont though and it was was not hard to do). but now this is what i am trying to do next.i want the data in those replicants to be puplated using FORMAPI from another javascript file or xml file. and also have the user to be able to modify them if he/she wants after openning the dct. so what puzzles me here is how to read from js file correctly. i wrote this code but it is not working function getProductPrices(){var ProductPrices = new Array(); ProductPrices["3534"] = new Option("$200|product desciption_1|$540",false,false); ProductPrices["3538"] = new Option("$2125|product desciption_2|$540",false,false); ProductPrices["3544"] = new Option("$3325|product desciption_3|$540",false,false); ProductPrices["3554"] = new Option("$3065|product desciption_4|$540",false,false); parent.getScriptFrame().IWDatacapture.getItem("//Root/Main/Replicants").setOptions(ProductPrices); parent.getScriptFrame().IWDatacapture.getItem("//Root/Main/Replicants").setReadOnly(false);return ProductPrices;}i would appreciate any cleaification and help here Thanks in advance,
var Title = "Something from somewhere else"; IWDatacapture.getItem("/Root/Title").setValue(Title);
var params = new Object(); params.dcrPath = workarea_name; params.callBack = "setValues"; URL= "http://" + server + ":80" + "/iw-bin/readthefile.ipl"; IWDatacapture.callServer(URL, params, false);
i want to read certain values from another javascript file in my area and then take those data and puplate it in my DCT fields
You do not need callSever to use JS File (XML will be a different story!). You can incorporate your JS File into DCT
I skipped over the fact...
With grammar and spelling as clear as this one, how could you miss it? Granted, English is not my mother language either but spelling checkers exist for a reason