ui macro not rendered in service portal

rvenkataraman
Kilo Contributor

Hi,

I have some ui macro variables in my service catalog item, basically this ui macro displays some text.   However, when i am trying to view the item in the service portal, the form does not show the ui macro at all. Is this a constaint in Helsinki or am i missing something.

Regards,

Raj

22 REPLIES 22

Hi Nathan,



Is there a way to access a record producer variable from within the widget?



Thanks


Yes, but I don't know that I would recommend doing that... since the widget is for all record producers. You can actually nest a widget as a variable for a catalog item, that way you can write a custom widget that interacts with that catalog item or record producer. If you look around on the variable form you will notice a reference field to sp_widget table. In order for it to render I believe it has to be ui_macro or label (off the top of my head so I could be wrong).


Would you happen to know if the same widget-alternative solution works for Catalog Variables of the type UI Page? All variable types seem to have the Widget field available, but getting the Widget to come up when set seems inconsistent, and the only types mentioned (here and in the github unofficial docs) seems to be Macro and Macro with Label. Which seems odd, with how similar a case replacing UI Page and UI Macro should be.


I agree I think it makes sense to work for UI Page variables, however I do not believe this works. My suggestion is to put this in as a defect on the github account and hope they can fix it in a patch:



GitHub - service-portal/documentation: Here you will find unofficial documentation for the ServiceNo...


So as a follow up in case anyone else is wondering about this as well: Found from some reaching out that there is indeed a defect logged for this, and from what I could gather it does only seem to work with UI Macros (though our testing with Labels seems to work as well). Unfortunately I was also told that this defect is categorized as "cosmetic" so I suppose we'll just have to see how soon it gets addressed.