Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV forum
Suggested answer

Radio Button For Option fields

Posted on by 10

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.

  • Golden Minion Profile Picture
    Golden Minion 10 on at
    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

  • Suggested answer
    JAngle Profile Picture
    JAngle 33,155 on at
    RE: Radio Button For Option fields

    This is a good guide: simplanova.com/.../

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,537 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,520 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans