Referencing "}APQ UX app" ID of active page

Hi all, what is the best way to grab the current page’s Apliqo’s ID (e.g., “a5.v3”) inside custom HTML? For example, we have the “tm1-ui-user” directive that we can use for the current user but is there something comparable for the current page? For context, we want to centralize documentation info (specific to each Apliqo screen) into a custom HTML widget and it would be helpful to have an automated way to pull in the text based on the page ID.

If there isn’t an existing directive, I suppose we would need to use javascript to figure out the full URL and then parse it?

Thanks in advance for any suggestions!

Hi Wei,
TBH I’m not quite sure.However, it’s a great use case and would be a terrific feature (if it doesn’t already exist).

@tganz do you know the answer?

Hi All,
From inside html snippet you can access the UX_App ID via following syntax.
{{$ctrl.$rootScope.currentStateParams.initView}}
this will get you current id of the view loaded.
Thanks
Ilia

1 Like

Thanks a lot @ishapiro, that is exactly what I was looking for!