problem in creating menu item on sales order

hemantOnehemantOne Member Posts: 98
Hi,

I have to open a customized form for sales line in sale order form using menu item .The problem is that the form i designed is to be opened for each item on sales line.While doing this i found
in sales order form for menuitem -Item &Tracking Lines on Line button the Code we see on onpush trigger is-
CurrForm.SalesLines.FORM.OpenItemTrackingLines;

Could any one please explain it.It help me to solve my problem.

Thanks
Regards,
Hemant
They can conquer who believe they can
.

Comments

  • vijay_gvijay_g Member Posts: 884
    check the function OpenItemTrackingLines in sales line form and also in sales line table.
  • hemantOnehemantOne Member Posts: 98
    Thanks Dear,

    I will get back after check that.
    Regards,
    Hemant
    They can conquer who believe they can
    .
  • kinekine Member Posts: 12,562
    Because the function needs to know the exact line on which the cursor is, the function must be defined on the subform and called from there. The button is on the main form. It means that this code call the function from subform, which in most cases call some function over the Rec variable (defined in the table).
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • hemantOnehemantOne Member Posts: 98
    Thanks vijay and kine.

    Now the problem is resoved and i learnt a good concept.
    Regards,
    Hemant
    They can conquer who believe they can
    .
Sign In or Register to comment.