var val2=IWDatacapture.getItem("/column1[0]/heading1/text").getValue();alert("Value 2"+val2);
var val2=IWDatacapture.getItem("/column1[0]/heading1[0]/text").getValue();alert("Value 2"+val2);
try something like var val2=IWDatacapture.getItem("/column1[0]/heading1/text").getValue();alert("Value 2"+val2); column1 being a replicant, you must specify which instance of the replicant you're asking for.in this case /column1[0] ... just make sure you have at least one replicant instance!
var val2 = IWDatacapture.getItem("/column1[1]/heading1/text").getValue();
they would start an array at index 1?Just to be different from everybody else in the programming world?Is Interwoven the microsoft of content managment systems?
As to your note, the element in question is NOT an Array. It is XPath syntax. You know, part of W3C XSLT standard.
Actually, the FormAPI guide says that "The notation of FormAPI item addressing is similar to the W3C XPath Recommendation (http://www.w3.org/TR/xpath). The similarity to XPath is limited to the simple notation for node names. Other features of XPath such as wildcard characters, functions, and relative paths are not part of FormAPI item addresses."So Interwoven modeled their Item Addresses after XPath, but it isn't XPath.oh, and about Microsoft... from http://www.w3schools.com/xpath/xpath_syntax.asp/bookstore/book[0] Selects the first book element that is the child of the bookstore element. Note: IE5 and later has implemented that [0] should be the first node, but according to the W3C standard it should have been [1]!! cheers ;-)