Anuj Pandit

editing values using prom api

Discussion created by Anuj Pandit on Mar 18, 2009
Latest reply on Mar 25, 2009 by Andrei Palskoi

Hi,

 

I am currently using  RMA API to open an instance and set values to that instance. But with jsp's generated by Blaze RMA I wasn't able to locate a reference to look NdRmaInstance object without reestablishing a new connection.

 

I set values via rma api via statement:

NdInstanceElementNode[] listNodes;

listNodes = rmaInstance.getInstanceElementNodes();

 

NdInstanceElementNode[] ruleset = rmaInstance

.getInstanceElementNodes(listNodes[1]);

rmaInstance.setNodeValue(vhRuleSetName, ruleSetName);

 

For Prom API, I tried to set values using but didn't work.

 

NdInstantiationElement[] elements = prominstance

.getElements();

NdInstantiationElement[] ruleset = elements[0]

.getElements();

 

NdInstantiationElement vhRuleSetName = ruleset[1];

vhRuleSetName.setValue(vhRuleSetName.getDisplayLabel(),ruleSetName);

 

 

Please provide me some examples with which I can set values in value holders in Instance using PROM API.

 

Also, Is there any where I can open NdRmaInstance using the connection setup by blaze jsp's.(It is opening a PromProject)

 

Regards,

Anuj Pandit

Outcomes