RE: Radio Button For Option fields
Thank for your reply
I read it yesterday, but it can't help me in my case.
My code:
In DLL:
-----------------------------------------------------------------------------------
[ApplicationVisible]
event ApplicationEventHandler OnChange;
In JS:
-----------------------------------------------------------------------------------
function RaiseOnChange(value) {
Microsoft.Dynamics.NAV.InvokeExtensibilityMethod('OnChange',[{Index: 0, Data: 'abc'}]); =>throw error: Method 'Pagexxx.yyyOnControlAddIn(number of arguments: 1), with matching argument types.' not found.
}
function GetSelectedValue()
{
return('abc');
}
In NAV:
-----------------------------------------------------------------------------------
AAA - OnControlAddIn(Index : Integer;Data : Text)
MESSAGE(Data);
AAA::ControlAddInReady()
MESSAGE(CurrPage.xxx.GetSelectedValue()); => It showed blank message