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

Robert Beeman
Kilo Sage

Go to a record with the Try It button, right click on the bar to bring up the context menu and select Configure > UI Actions. Find your Try It UI Action and look at the condition that needs to be true for it to show up.
find_real_file.png


I went to the UI Action and for 'Try It' the condition field was blank, so I added a statement that would evaluate to true but (true) and (1==1), that did not help. This script was there:



// save any updates


if (current.changes())


  current.update();




// redirect to us


gs.setRedirect("ui_page.do?sys_id=" + current.sys_id);



So I tried commenting it all out in case that was the problem. But this didn't help.


shloke04
Kilo Patron

Hi,



Can you post a screen shot of the issue you are facing, it would help to debug better.



Regards,


Shloke


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

Regards,
Shloke

Of course. This is a capture immediately following an Update. It was tough to get, because that Try It button vanishes so quickly.



Try It There.png



This is what it looks like after the Try It button disappears.


Try It Not There.png



Here are screen shots from the UI Action, both in List View of all action and when I open the Try It action.



UI Actions Try It.png


Try It UI Action.png