Announcements
Dear Experts
My customer want to view and edit [Option Field] by [Radio Button] instead of [Combobox]
My solution is use [Javascript Controll Add-ins] to resolve this problem
Please give my a best practice or a best solution for this case.
Thank so much.
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
André Arnaud de Cal... 291,359 Super User 2024 Season 2
Martin Dráb 230,370 Most Valuable Professional
nmaenpaa 101,156