Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

Radio Button For Option fields

(0) ShareShare
ReportReport
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,159 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

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,359 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans