Boolean field to select more than one line

tazzy30tazzy30 Member Posts: 52
edited 2008-12-23 in Navision Attain
Hello,

I have items which have serial numbers assigned to them. On a Sales Order currently only one serial Number can be added to the Item Tracking Lines at a time. This can be tedious with large orders and items with more than 1 serial numbers (as you would need to find each serial number and add them individually). I would like to have a Boolean field which allows the user to select more than one serial number and then adds it to the Item Tracking Lines.

I have created the Boolean field to the Entry Summary tbl and added code to the Item Tracking Management CodeUnit within the AssistEditLotSerialNo however when testing I get the error message ‘Entry Summary Entry No. 1 does not exist’.

Can anyone help please?

Comments

  • garakgarak Member Posts: 3,263
    Without see your Code we cant help.

    Do you delevolp a solution like this (u use bool field) ?
    Do you make it right, it works too!
  • tazzy30tazzy30 Member Posts: 52
    Thank you for your reply. I hadn't thought of it like that, I was trying to create a field where a user can select the fields by placing a tick in the new field and then is added to the Tracking Lines. However your solution seems to be a better idea. Thank You.

    If you dont mind me asking but what code was used for your command buttons to work?
  • garakgarak Member Posts: 3,263
    sorry for the late reply,

    do you need some help or did you finished it?
    Do you make it right, it works too!
  • tazzy30tazzy30 Member Posts: 52
    Thats ok I would like some help please....as to what you had done to get the lines across?
  • garakgarak Member Posts: 3,263
    The form is based on form 6510 "Item Tracking Lines".
    The right "line" form is a subform. It's based on table "Entry Summary" and it's temporary.
    I fill the subform table like the function AssistEditLotSerialNo() in CU "Item Tracking Management" (take also a look how to use in Serial No. - OnAssistEdit() on form 6510). Now you see in the right side only the Serial Nos of your selcted item.
    To transfer (<-) the serial nos to the line form of form 6510, you create a function in the Subform wich returns you the selected (one or more) Serial no line(s).
    Do you make it right, it works too!
  • tazzy30tazzy30 Member Posts: 52
    Thank you for your reply, this may be a silly question but why not use 'Item Tracking Summary' as the Subform?
  • garakgarak Member Posts: 3,263
    also possible with some modifications.
    Do you make it right, it works too!
Sign In or Register to comment.