Skip to main content
Solved

Behavior of Line Number for INTran DAC not usual


param2022
Jr Varsity II
Forum|alt.badge.img

I am working with INTran DAC. I need to use its LineNbr field, but I am not able to predict how LineNbr is generated for this DAC. I created this Issue which has 5 line items.

 

 

But when I am checking the Database it looks something like this.
 

SQL Database Data



I am not sure is happening can anyone help with this thing.

Thanks

Best answer by aaghaei

I have developed codes on multiple custom screens and it behaves as designed. For sorting or fetching purpose however if it is 1 6 9 won’t make any difference. I am not sure with this kind of vague question without any context anyone can be helpful. 

View original
Did this topic help you find an answer to your question?

6 replies

aaghaei
Captain II
Forum|alt.badge.img+10
  • Captain II
  • 1203 replies
  • June 22, 2023

With PXLineNumber the number will only be sequential if no line is deleted from the document lines. The counter is kept on the document header DAC and is incremental. 


param2022
Jr Varsity II
Forum|alt.badge.img
  • Author
  • Jr Varsity II
  • 94 replies
  • June 22, 2023

@aaghaei  I know that part. I have not deleted any line item while creating this document. 


aaghaei
Captain II
Forum|alt.badge.img+10
  • Captain II
  • 1203 replies
  • June 22, 2023

I am not so sure about no line is deleted. Any time + is clicked in grid or a line is been added by line feeder, a new sequence is being added whether you save or not. It considered InsertedDeleted in record statuses. Not sure what you are going to do but this sequence is serving as an element in PK and should not be used for any other purposes.


param2022
Jr Varsity II
Forum|alt.badge.img
  • Author
  • Jr Varsity II
  • 94 replies
  • June 22, 2023

@aaghaei If only two times + is clicked them also the Line Nbr and 1 and 3. I request you try that on your system and check if it behaves the same or different. I want to fetch data on other screen based on line number and this un-predicted behavior is not letting me do that.

Thanks


aaghaei
Captain II
Forum|alt.badge.img+10
  • Captain II
  • 1203 replies
  • Answer
  • June 22, 2023

I have developed codes on multiple custom screens and it behaves as designed. For sorting or fetching purpose however if it is 1 6 9 won’t make any difference. I am not sure with this kind of vague question without any context anyone can be helpful. 


Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • 2754 replies
  • July 10, 2023

Hi @param2022 were you able to find a solution? Thank you!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings