VMware Cloud Community
LaxmiRagi
Enthusiast
Enthusiast
Jump to solution

Vro+prototype js

Hi,

I'm new to prototype js, actually my question is, how to write script in VRO using Prototype javascript framework.

as of now i have done like this, but i'm not sure if  it is correct or not?

function  RestHostWrapper(){

}

RestHostWrapper.prototype.getTransientHostById = function(hostId){

         //logic to create transient rest host

}

//Some other methods.....

RestHostWrapper.prototype.getConfigurationElement = function(elementName){

        //logic to getting configuration elements details.

}

RestHostWrapper.prototype.setConfigurationElementValue = function(attributeName){

      //logic to setting configuration elements attribute values.

}

...and so on....

Now, how to use this wrapper class in actions/workflows ?

Please help me on this.

Thank you very much.

Laxminarsaiah Ragi

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
LaxmiRagi
Enthusiast
Enthusiast
Jump to solution

I did the same and it working!!!

View solution in original post

0 Kudos
1 Reply
LaxmiRagi
Enthusiast
Enthusiast
Jump to solution

I did the same and it working!!!

0 Kudos