Hello,
I have an addin with to have an interactive image on a page. It worked well and I wanted to change one of the trigger.
Like adding a parameter on a event ... The parameter is not shown on the trigger on the page.
After I just changed the name without the parameter (like the version that was ok before). The new name does not appear but the change in the function is working. The publication of the events does not work.
I remove everything .zip, code in nav, dll and in the control addin. Redo everything but nothing change. I'm I missing something ?
Thanks
Wildcard
0
Answers
For example I just changed the event name in the control addin (no change in NAV), i add an alert('test') and I receive the alert
Everything is updated, execpt the event ...
The bad thing about this is that all your codes, the ones that you've written in NAV, in the add-in's code blocks, will be lost. To circumvent that, create a function, which can even be the same name, then reference that function from the control add-in's code. For example, I have an add-in that exposes a method called DownloadLink. This shows up as ControlName::Method. Instead of adding NAV codes to this method, I create a NAV method with the same parameters and pass this parameter over. This way, when I have to refresh, the only thing I need to do is add the DownLoad(...); line back in.
NAVCoreLiveLinks::DownloadLink(url : Text;saveAsFile : Text)
DownloadLink(url, saveAsFile);