07-31-2012, 03:46 AM
My test needs to create a new shipment id and use that shipment id as Order ID in the same script.
I have the following script which is suppose to get data table value and use that value in the following line on the script. The problem is, I am getting the following message "Wrong number o farguments or invalid property assignment: "Data Table. Value"
I have the following script which is suppose to get data table value and use that value in the following line on the script. The problem is, I am getting the following message "Wrong number o farguments or invalid property assignment: "Data Table. Value"
Code:
Browser("SAPPHIRE R5.1").Page("SAPPHIRER5.1").Frame("maint_iframe").WebEdit("pr0_u_airbillnumber").Set DataTableInc("QTP", "ShipmentNum", "GlobalData")
wait(1)
Browser("SAPPHIRE R5.1").Page("SAPPHIRE R5.1").Image("Save").Click
Browser("SAPPHIRER5.1").Page("SAPPHIRER5.1").Frame("maint_iframe").WebElement("AddRowTR").Click
Dim triddata
DataTable.Value("QTP","ShipmentNum", dtGlobalSheet) = triddata
msgbox triddata
Browser("SAPPHIRE R5.1").Page("SAPPHIRE R5.1").Frame("maint_iframe").WebEdit("TRID").triddata
Browser("SAPPHIRE R5.1").Page("SAPPHIRE R5.1").Image("Save").Click