VMware Cloud Community
qc4vmware
Virtuoso
Virtuoso

vRO 8 hide inputs and outputs while editing a scriptable task

I have some scriptable tasks with quite a few inputs and outputs.  Is there anyway to hide the listings of these?  They end up taking a ton of real estate and sometimes I end up with only having a few lines of code visible so I have to cut and paste between an external editor.  If they just had the ability to be folded away somehow (similar to the api explorer) that would be great.  Hoping I am just missing something in the editor that allows me to do this.  If anyone knows how to achieve this I'd appreciate the pro tip!

5 Replies
johnbowdre
Enthusiast
Enthusiast

I don't have a solution but I share in this frustration. The vRO editor is just really difficult to work with.

Tags (1)
JPmartinHQ
Contributor
Contributor

it's not the perfect solution but I think we can do something with some css editing inside a javascript bookmarklet. Here's mine which gives a little bit more real estate in the UI :

javascript:(function()%7Btry %7B%0Avar styles %3D "div.extension-box.ng-star-inserted%2C%23parameter-pills%2Csimple-header.ng-star-inserted %7Bdisplay%3Anone !important%7D div.scrollable %7Bpadding%3A 0px !important%7D"%3B%0Avar styleSheet %3D document.createElement("style")%3B%0AstyleSheet.type %3D "text%2Fcss"%3B%0AstyleSheet.innerText %3D styles%3B%0Adocument.head.appendChild(styleSheet)%3B%0Aalert("Css actif!")%3B%0A%7D catch(e) %7B%0Aalert(e)%3B%7D%7D)()%3B

So basically you create a bookmark and modify it's url with the above javascript and when you are in the UI of orchestrator you click on the bookmark and the JS code will be executed on your page. So maybe this script could use some love and make the Orchestrator UI more easy to use so we can focus on the CODE !

bdamian
Expert
Expert

I've posted the same problem: 

https://communities.vmware.com/t5/vRealize-Orchestrator/vRO-8-x-UI-Scripting-Area/m-p/2908696#M25765

 

---
Damián Bacalov
vExpert 2017-2023 (7 years)
https://www.linkedin.com/in/damianbacalov/
https://tecnologiaimasd.blogspot.com/
twitter @bdamian
imtrinity94
Enthusiast
Enthusiast

@JPmartinHQ I tried the javascript that you shared.

Looks like a good idea but didn't work for me in vRO 8.2. Now the scripting area is flickering! I had to re-login to fix.

imtrinity94_0-1655815943384.png

 


Mayank Goyal
vRO Engineer
https://www.linkedin.com/in/mayankgoyal1994/
https://cloudblogger.co.in/
Reply
0 Kudos
htdo
Contributor
Contributor

Here is my solution, it's easier. Create a bookmarlet in Firefox/Chrome, I named mine "Remove vRA trash" 😜; for the URL add this code:

javascript:(()=>{inputBox = document.getElementById('parameter-pills');if(inputBox != null) inputBox.remove();detailBox = document.getElementById('taskDetailsStackview');if(detailBox != null) detailBox.remove();})();

This will also remove the "Details" in the General tab.

Every time you open the scriptable task, click on the bookmark to remove the junk. You have to do it every time you switch the tab though. I'll try to find a way to do it automatically but it the mean time this worked for me