Using the ODT Data functionality
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2010
04:55 AM
03-29-2010
04:55 AM
Using the ODT Data functionality
I have worked out how to set the data value on the fly using the following command:
ODT.data.MBOSTradeData.Variables(rs.item(y).name) = rs.item(y).value
where rs is recordset loaded from a database query. This works perfectly (and effectively mimics the functionality offered by Reflections in Java), however, if I need to know how to access the items aspect of the object if you set it to an array instead of a basic data store.
It should look like this, but doesn't work:
ODT.data.MBOSTradeData.Variables(rs.item(y).name).items(0) = rs.item(y).value
ODT.data.MBOSTradeData.Variables(rs.item(y).name) = rs.item(y).value
where rs is recordset loaded from a database query. This works perfectly (and effectively mimics the functionality offered by Reflections in Java), however, if I need to know how to access the items aspect of the object if you set it to an array instead of a basic data store.
It should look like this, but doesn't work:
ODT.data.MBOSTradeData.Variables(rs.item(y).name).items(0) = rs.item(y).value
1 REPLY 1
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2010
08:41 PM
03-30-2010
08:41 PM
Hi,
What happens when you execute the code from your second example? Do you get any errors? If you do, what is their text?
BTW, what scripting language are you using? If it is JScript, keep in mind that it is case-sensitive, and you need to spell the Item property name correctly (with capital I).
What happens when you execute the code from your second example? Do you get any errors? If you do, what is their text?
BTW, what scripting language are you using? If it is JScript, keep in mind that it is case-sensitive, and you need to spell the Item property name correctly (with capital I).
------
Yuri
TestComplete Customer Care Engineer
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Yuri
TestComplete Customer Care Engineer
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
