Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
SetValue for Replicant fields
gururaj
This following code popuating the Text box from the Data base is not working:
Here Chemical Required is Replicant:
Code:
Enter Chemicals Required
Enter Code
Code/Catalogue#
Enter Chemical Name
Chemical Name
Enter Quantity Per Test
Quantity Per Test
Enter the Units
Units
IWEvent handling I have used: IWEventRegistry.addItemHandler("/Chemicals Required/Code", "onItemChange", clcodeHandler);
This handler will pass the clicked value to cgi script
function clcodeHandler(clcodeItem)
{
var query_vars = readQueryString();
var params = new Object();
params.lcode = clcodeItem.getOptions()[clcodeItem.getValue()].value;
params.iw_area = query_vars['iw%5farea'];
var server = window.location.hostname;
IWDatacapture.callServer("http://" + server + "/iw-bin/ge_ka_clcode.cgi",paramms);
}
Cgi scripts returns the Chemical Name and Units coressponding to code which is passed as parameter.
Now I'm not able to populate the corresponding Chemical Name and Unit passed from cgi to the Datacapture.cfg
function clcode(name,units)
{
IWDatacapture.getItem("/Chemicals Required/Chemical Name").setReadonly(true);
IWDatacapture.getItem("/Chemicals Required/Chemical Name").setValue(name);
IWDatacapture.getItem("/Chemicals Required/Units").setReadonly(true);
IWDatacapture.getItem("/Chemicals Required/Units").setValue(units);
IWDatacapture.redraw();
}
The setValue is not working for text in the replicant item.
How to populate the replicant fields.
I had used setOptions for Dropdown populating and it is working fine.Here it is replicant.
Please let me know if there are any solutions.
Find more posts tagged with
Comments
Jens
Maybe this will help:
http://devnet.interwoven.com/forums/cgi-bin/showthreaded.pl?Cat=&Board=PRODUCTS_TEMPLATING&Number=13639&Search=true&Forum=All_Forums&Words=Jens&Match=Username&Searchpage=1&Limit=25&Old=allposts&Main=13504
-- Jens
repeater.JPG