kdjonesmtb2
Technical User
Hello
I would like to utilize a Variable in place of a hardcoded value in the WebRadio Group statements below
Browser("ABN-NHP-APP-T15 - QNXT").Window("Select Provider by Affiliation").Page("Select Provider by Affiliation").Frame("Frame").WbfGrid("dgAffil_DT").WebRadioGroup("htmlid:=rbSelect",Trim(DataTable.Value("Provider_ID","Global"))).select "#0"
This code using an HP QTP Datatable does not work
'Browser("ABN-NHP-APP-T15 - QNXT").Window("Select Provider by Affiliation").Page("Select Provider by Affiliation").Frame("Frame").WbfGrid("dgAffil_DT").WebRadioGroup("htmlid:=rbSelect","value:=PRV00010317").select "#0"
'This code works with the hard code - The radio button of the row that contains the value above is selected
Dim AffiliationID
AffiliationID=Trim(DataTable.Value("Provider_ID","Global"))
'Browser("ABN-NHP-APP-T15 - QNXT").Window("Select Provider by Affiliation").Page("Select Provider by Affiliation").Frame("Frame").WbfGrid("dgAffil_DT").WebRadioGroup("htmlid:=rbSelect","value:=(AffiliationID)").select "#0"
This code using a variable also does not work - the Datatable/variable contain the same hardcoded value above
Is there another way to utilize a variable in a WbfGrid statement?
I would like to utilize a Variable in place of a hardcoded value in the WebRadio Group statements below
Browser("ABN-NHP-APP-T15 - QNXT").Window("Select Provider by Affiliation").Page("Select Provider by Affiliation").Frame("Frame").WbfGrid("dgAffil_DT").WebRadioGroup("htmlid:=rbSelect",Trim(DataTable.Value("Provider_ID","Global"))).select "#0"
This code using an HP QTP Datatable does not work
'Browser("ABN-NHP-APP-T15 - QNXT").Window("Select Provider by Affiliation").Page("Select Provider by Affiliation").Frame("Frame").WbfGrid("dgAffil_DT").WebRadioGroup("htmlid:=rbSelect","value:=PRV00010317").select "#0"
'This code works with the hard code - The radio button of the row that contains the value above is selected
Dim AffiliationID
AffiliationID=Trim(DataTable.Value("Provider_ID","Global"))
'Browser("ABN-NHP-APP-T15 - QNXT").Window("Select Provider by Affiliation").Page("Select Provider by Affiliation").Frame("Frame").WbfGrid("dgAffil_DT").WebRadioGroup("htmlid:=rbSelect","value:=(AffiliationID)").select "#0"
This code using a variable also does not work - the Datatable/variable contain the same hardcoded value above
Is there another way to utilize a variable in a WbfGrid statement?