Calling a UI Script from a UI Marco

poyntzj
Kilo Sage

Hi all

Is it possible from a UI Macro to call a Ui Scrpit?

There is some code on the instance here which does a few bits and loads from a UI Page and works well

However, I may want to call this routine from elsewhere (on the CMS) and that it is all Ui Macro driven

My initial attempts are not working and I am not sure if it is possible, a code issue or the click not being registered

Cheers

2 REPLIES 2

ahaz86
Mega Guru

how are you currently trying to call the ui script? The following is how I have always included UI Scripts in UI Pages/UI Macros



<script>.jsdbx" />



  or



<g:requires name="<UI SCRIPT NAME>.jsdbx" />


I am sure I tried both methods as one method did change with fuji


Let me look again this week - it is not a priority to get running so I will look as and when I get a chance between the work that does need doing



My issue is when I press the link / button I had added nothing was triggered so i am struggling to tell where it is failing - not recognising the button action, or the UI script running.