Quantcast
Channel: NAV Three Tier — mibuso.com
Viewing all articles
Browse latest Browse all 10032

How to get caption to Javascript Add-in in Web- and Windows-Client

$
0
0
Hi,

I'm "playing" around with JavaScript Add-ins in NAV2016 and created a simple add-in that Displays an image on the Customer Card.

Now I'm facing two problems:
1. Allthough I've set up a caption in all languages it doesn't show up in the Card, not in Windows Client and also not in Web Client
Do I have to tell the add-in that it should allow captions on the page or do I have to do it manually via html-code an JavaScript?
I didn't find any add-in or blog with captions today.

2. My Image is correctly shown in the webclient (ok without caption) but not in Windows Client
There I only get a black cross/placeholder.
In my JavaScript file I only did this:
function ShowBar(id) {
    $("#controlAddIn").append("<img src=" + Microsoft.Dynamics.NAV.GetImageResource(id) + ">");
}

How to get the Image shown in the Windows Client?

Thanks in advance for pointing me into the right direction.

Viewing all articles
Browse latest Browse all 10032

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>