FUNCTION BUTTON
tawnie
Dear Expert,I am trying to create a function button on my sales order document to copy selected row to an outgoing payment. I am facing a challenge of ensuring when i activate the outgoing payment window the doctype should be "Account" and not "Supplier". I would like when the user click the button the outgoing payment is activated in account mode. Below is a code i have done but no luck, i request assistance on the follow:
[*]When i select certain rows on the source form only those rows should be copied over to outgoing payment.
[*]The outgoing payment to open in "Account" doctype to activate the grid
[*]
Attached is my code
Your help is highly appreciated.
Paolo Manfrin
Hi Tawnie,to enable the Account option please use the code snippet below:
[CODE]
OptionButton op = OptionButton.GetFromUID(pVal.Form, "58");
op.Selected = true;
[/CODE]
hth
paolo
0
Please sign in to leave a comment.
Comments
0 comments