Calling UI Macro from client script in Scoped Application
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2019 09:56 PM
Hello All,
Does anyone now how to call the UI macro from catalog client scripts in scoped application?
I see somewhere ref_contributions has to be added. But not sure how to add the same?
UI Macro
<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<html>
<head>
<script>
function checkDetails()
{
alert('Hello');
}
</script>
</head>
</html>
</j:jelly>
Catalog client Script
function onLoad() {
checkDetails();
}
Thanks
Bala
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2019 07:07 PM
I will try and keep posted
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2019 05:16 AM
Nothing working out. Could you please anyone elaborate bit? it is very critical. thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2019 06:38 AM
may i know why do you want to call UI Macro in client script ?
if you have some client side scripts defined in UI Macro and for that purpose you are calling your UI Macro in client script then i would suggest , write the code in UI Script and then call it in your client script.
Please share your business need.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2019 02:53 AM
Hello,
Thank you for the response. I have a date/time picker in my application(scoped application). Actually it shows the time in GMT. But server runs in pacific time. I have to reset the date/time picker to show them time in Pacific. So I am trying to reset this. But unfortunately I couldn't succeed as many options not available in scoped application. So though I call it from client to macro to update the same. I am not sure whether some other options are available
thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2020 10:16 AM
Hello Bala,
did u get the solution for this, i have the same query.
Any suggestions are highly appreciated!!!
Thanks,
Prerana