Reading table value
Could someone please help me with this:
//<TD style="WIDTH: 70px; WHITE-SPACE: nowrap" align=middle>9402</TD>
var costcenter = page["NativeWebObject"]["Find"]("value","9402","table");
//Log["Message"]("cost center is", costcenter);
I am trying to read a value (9402) in a table cell and am using the above code but I dont get out anything. I thing parameters are wrong.
Could someone please help with this?
Re: Reading table value
Your code is incorrect. It is unlikely that your table has a 'value' property whose value is '9402'. Inspect the object you want to obtain in the Object Browser and select correct properties to recognize it.
Also, if you want to get a value from a table cell, I recommend doing it as it is described in the "Parsing HTML Tables" help topic.