how can i get row number for a line item on a tran...
# general
l
how can i get row number for a line item on a transaction search?
p
Saved Transaction search. Main Line = F, or no Main Line criterion Include in the Results Line ID Item
l
Line ID, im getting values like 82 and 87 but thats not correct cause the transfer order has 5 items
r
It's possible that's correct. Line numbers don't "reset." Meaning if you have a two line transaction, the initial line numbers will be 1 & 2. But if you edit it and remove those lines and replace them with others, your line numbers will be 3 & 4. Or at least something different than 1 & 2. Those line IDs are probably accurate if the doc has been edited.
l
thats what i thought but when i use those line ids in a script i get this error. You have attempted an invalid sublist or line item operation. You are either trying to access a field on a non-existent line or you are trying to add or remove lines from a static sublist
e
share you code
l
running a search, grabbing line ID from the results and using it to select a line, setValue and Commit Line
e
set isDynamic to false
if isDynamic is true, use setCurrentSublistValue with selectLine and then commitLine
if isDynamic is false, use setSublistValue and supply a line value
l
So based on your suggestion this should work right