Skip to main content
Business Central forum
Suggested answer

control addin get data from javascript

editSubscribe (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 ????

Categories:
  • nourjaa Profile Picture
    nourjaa 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
    nourjaa 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
    YUN ZHU 59,844 Super User 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
    matthias_rabus 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
    JJMc 272 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
    JAngle 33,131 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
    Andy Sather 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.

Helpful resources

Quick Links

What Motivates a Super User?

We know many of you visit the Dynamics 365 Community and Power Platform…

Demystifying Copilot with Sundar…

Industry experts answer burning questions directly from our amazing Community…

Enabling Copilot Case and Conversation…

Agents can easily recap an ongoing chat, transcribe a voice conversation…

Leaderboard

#1
Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 282,978 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 222,562 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,138

Product updates

Dynamics 365 release plans