Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

control addin get data from javascript

(0) ShareShare
ReportReport
Posted on by 5

I can send data from al to javascript using control addin ,  is it possible to send data from javascript to al ????

  • nourjaa Profile Picture
    5 on at
    RE: control addin get data from javascript

    thank you for your answer, now ,i'm trying to insert autocomplete adress into  business central 

    (https://www.solodev.com/blog/web-design/adding-an-auto-complete-address-field-to-your-forms.stml.

    But, i can't read this script

    <script src="maps.googleapis.com/.../js async defer></script>, it  bugs into  Business central.

    is it possible  to call the script with async defer from  The Scripts property ( reference both external and local scripts ),or is there another solution.

    Thanks

    7142.bug.png

  • Suggested answer
    nourjaa Profile Picture
    5 on at
    RE: control addin get data from javascript
    bug.png
     

    thank you for your answer, now ,i'm trying to insert autocomplete adress into  business central 

    (https://www.solodev.com/blog/web-design/adding-an-auto-complete-address-field-to-your-forms.stml.

    But, i can't read this script

    <script src="maps.googleapis.com/.../js async defer></script>, it  bugs into  Business central.

    is it possible  to call the script with async defer from  The Scripts property ( reference both external and local scripts ),or is there another solution.

    Thanks.

     

     

  • Suggested answer
    YUN ZHU Profile Picture
    78,733 Super User 2025 Season 1 on at
    RE: control addin get data from javascript

    Hi, just adding others' reply, hope the following also helps.

    https://docs.microsoft.com/en-us/learn/modules/build-control-add-ins/

    pastedimage1650238764426v1.png

    Thanks.

    ZHU

  • Suggested answer
    matthias_rabus Profile Picture
    160 on at
    RE: control addin get data from javascript

    Checkout the docs:

    docs.microsoft.com/.../devenv-control-addin-object

    The sample code contains a good example for your case:

    • You need an event in your control addin definition
    • implement the event in your BC page
    • Call the event in javascript (that part is not shown in the sample but it is rather simple)
  • JJMc Profile Picture
    291 on at
    RE: control addin get data from javascript

    You only can send data from JavaSript to BC, creating events in JS, and create the correct structure and definition of the ControlAddIn in BC, and using this triggers in the page that you are using this ControlAddin

  • Suggested answer
    JAngle Profile Picture
    63 on at
    RE: control addin get data from javascript

    Multiple videos here: youtube.com/playlist

    I can recall one with a html notes sending data to AL. Or there is a colour picker video.

  • Suggested answer
    Andy Sather Profile Picture
    on at
    RE: control addin get data from javascript

    Hello  - We currently do not have dedicated Dev support via the Dynamics 365 Business Central forums, but I wanted to provide you some additional resources to assist.  If you need assistance with debugging or coding I would recommend discussing this on one of our communities.

    www.yammer.com/dynamicsnavdev

    I will open this up to the community in case they have something to add.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,886 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,766 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans