Dear all,
I have a command button on Sales Order Form. Now I want the selected SalesLine."Line No.". When I click on command button on Sales Order Form it is giving me value 0.
Because of command button is on main form & sales line table is on subform. How to resoved this prob?
thanks,
sandip.
0
Comments
Define a function on subform.
put MESSAGE(FORMAT("Line No.")) in the new function on the subform.
Under button call the function in the subform: CurrForm.SubformName.FORM.FunctionNameSubform;
Tino Ruijs
Microsoft Dynamics NAV specialist
Your solution is perfect but I was finding solution without touching any standard code. I have tried to find out from standard codeunits where I will get salesline."line no." but not possible to get it.
-a
I don't understand that way of thinking...
RIS Plus, LLC
Take a look behind the Button "Line" on Sales Order form. There are some standard functions and you can see, how you can get the selected Line.
Some things are very simple ;-) And you will see, the standard is using the same solution like tinoruijs tip
Regards