why does my 'try it' button disappear?

randallschumm
Kilo Contributor

When using Studio in my Developer Instance to build components, I see the 'Try It' button when I 'Update' a record, but it disappears almost immediately when the page finishes refreshing. This happens when editing a Catalog Item or a UI Page maybe others and I just haven't noticed . If I'm quick, I can hit the button before it disappears and it works like I would expect and it's helpful. But I can't figure out why it's disappearing.

9 REPLIES 9

Hi,



This is because "Try It" UI Action is in Global Application Scope and so it's not visible in Scoped Application.



Hope this Helps.Mark the answer as correct/helpful based on impact.



Regards,


Shloke


Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

So the "Try It" functionality is not available at all in Scoped Applications?



When I'm able to hit the button it works as expected. So why wouldn't that feature be available? Or do I need to set something up to make it work in Scoped Applications?


Hi Randall,



As per my understanding Try It button won't be visible in the Custom Applications because the UI Action as well as the UI Page Table(sys_ui_page) is built in Global Application Scope. I tried adding a custom button "Try IT" in my Custom Application Scope but it does not allow me to add it because the table is in Global Scope. To access UI Page in Custom Scope you need to use the End Point field in the UI Page. Please see the screen shot below:



find_real_file.png



Hope this Helps.Mark the answer as correct/helpful based on impact.



Regards,


Shloke


Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

I was able to replicate this is my own Studio. I don't think this has to do with the Try It UI action being in global or scoped. The Update and Delete UI Actions are in global as well, and they show up.



There is a function in dev-studio-bundle.js that is removing all of the Try It UI actions by sys_id. If you go to the UI Page outside of Studio then you will see the Try It button.


How can we modify it that function?