on 04-20-2016 12:21 PM
Hi together,
I have a requirement from my customer, where he wants that a Personas Script selects dynamically a row in a grid.
So here is the use case:
In the tabel you see bellow, I have to select always the first row, which has the output type "XDN1". My problem is, that I could not hard code which row to select, because the order of the row items in this table is different for each order.
What I have done till now:
I copy the hole table into a variable (Step 1 - outputTable) and then looping through the entries searching for the specific ordertype (step 2). When I have the row number I try to do a select/check of the complete row (step 3).
My script always fails in step 3. It seems like that the variable "index" cannot be resolved within the element id as a row number:
ses[0]/wnd[0]/usrUSRAREA/tblSAPDV70ATC_NAST3/colMarkerColumn[0]/cell[index]
Does anyone had the same issues? Or do you can think of a walkaround? Or maybe I am doing something wrong?
Thank you!
Best regards
Hristo
Try this:
Ü ses[0]
Calculate in JavaScript args.cellid = 'ses[0]/wnd[0]/usrUSRAREA/tblSAPDV70ATC_NAST3/colMarkerColumn[0]/cell[' + args.index + ']';
Ü args.cellid
Check
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.