How to run UI Script from Catalog Client Script?

peterraeves
Mega Guru

Sorry for such a basic question, but I'm not seeing it. It must be the time of day.

I created a UI Script, which is not global as I'm working in the HR scope. It has a custom made function sn_hr_core.gdf_hr_check_input, which returns another function.

So I thought I should call it by typing sn_hr_core.gdf_hr_check_input.checkRecordProducer(input) in the Catalog Client Script and that it would be loaded correctly. It seems I was wrong. Should I add some inclusion code maybe?

Image 7.png

11 REPLIES 11

How I see it, that's totally not worth the time. That's why we decided to go for the quick and easy solution and that's to do an ajax call instead. From performance point of view there is hardly a difference. But from development point of view, it would take so much longer to do all that.


I know ,



I am completely agree with you, but I would not like, rule out the idea of standardizing that development to use it dynamically on many items as service portal part.