Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
getting data from global data sheet and using it in the same script
#1
Not Solved
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"




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
Reply
#2
Not Solved
Code:
DataTable.Value("QTP","ShipmentNum", dtGlobalSheet) = triddata
////

use the bleow line

Code:
Datatable.value("<ColumnName>",<SheetName>")=<Your Value>
e.g.,
Code:
Datatable.value("Shipment",dtGlobalSheet)="zzzzzzz"


Regards,
Ankesh
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Reading Global Sheet's DataTable Value Bhuvana 0 1,679 01-05-2020, 10:03 PM
Last Post: Bhuvana
  Multiple rows of test data Bhuvana 0 1,359 01-03-2020, 09:30 PM
Last Post: Bhuvana
  Error as Global Not defined while trying to retrieve value from Datatable siddharth1609 0 993 09-11-2019, 02:52 PM
Last Post: siddharth1609
  Set data parameters Mik2s 1 1,544 03-07-2019, 10:18 PM
Last Post: supputuri
  Excelsheet data entry Anshu 0 1,639 07-11-2017, 07:41 PM
Last Post: Anshu

Forum Jump:


Users browsing this thread: 1 Guest(s)