Edgar Valdes
04/25/2024, 1:16 PMfindSublistLineWithValue?alien4u
04/25/2024, 1:49 PMfindSublistLineWithValue with the uniquekey and that is going to return the line number you need to use setSublistValue or setCurrentSublistValue .Edgar Valdes
04/25/2024, 1:57 PMuniquekey works in N/query but not in findSublistLineWithValue
The field doesn't seem to exist / be exposed / have the same name 🤔alien4u
04/25/2024, 2:00 PMfindSublistLineWithValue but it will not work on beforeSubmit because you don't have a lineuniquekey yet. Maybe you have a field ID problem:
Query wise it may be uniquekey , record wise it is: lineuniquekey .Edgar Valdes
04/25/2024, 2:08 PMundefined, other fields work fine.alien4u
04/25/2024, 2:39 PMerictgrubaugh
04/25/2024, 2:41 PMerictgrubaugh
04/25/2024, 2:42 PMline column? Not sure what gets stored thereEdgar Valdes
04/25/2024, 3:29 PM0 retrieves line 1 🤡alien4u
04/25/2024, 3:38 PMline does not equal the sublist line position.
If you add or remove lines, the line value will increase regardless of how many lines you end up in the sublist.
You could have a sublist with only two lines and line 0(sublist position) could be with line value of 1 while line 1 (sublist position) could have a line value of 20, because ~20 insert or remove operations happened in between.erictgrubaugh
04/25/2024, 3:42 PMexpense sublist, you're going to have to manufacture your own hash to match line items 😞Edgar Valdes
04/25/2024, 3:50 PMEdgar Valdes
04/25/2024, 3:50 PMClay Roper
04/25/2024, 6:59 PMfindSublistLineWithValue() to get the line number. I then use the line number in getSublistValue() to prove to myself that it gets the value I expect. Of course, you could use this for the sublist line edit you need.
Hopefully this helps! I'll close by reiterating my caveat you should thoroughly test before trusting 😄Edgar Valdes
04/25/2024, 9:28 PMClay Roper
04/25/2024, 11:16 PMtransactionline.linesequencenumber - 1 and the sublist line number, but for some reason, I distrust thatEdgar Valdes
04/25/2024, 11:22 PMClay Roper
04/25/2024, 11:28 PM