on 09-07-2006 9:04 PM
Hi,
I have created a custom controller that implements the functionality for OVS.
The OVS retrieves a parameter called guid of the datatype byte[].
I need to set this guid (from cust controller)to a context attribute called Elementid (on View) which is also of the same datatype i.e. byte[].
The application throws an exception if the guid is a part of the OVSOutputNode.
How can I set the guid to Elementid without having it on the OVSOutputNode?
Shikha,
if it's possible, try to move byte[] attribute to 1..1 non-singleton subnode of OVSOutputNode. Re-map attribute in View controller to attirbute in sub-node.
VS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Every time onQuery gets executed, I copy the model output node to the OVSOutputNode (and explicitly copy the guid from model output node to the sub node).
Now when I try to access the guid, it returns the first element of the search result.
How can I get the reference of the selected element of the search result?
Hi,
The sub node for guid is 1..1 and non-singleton.
This is the code I use in applyResult() where I set the Elementname:
applicationNodeElement.setAttributeValue("Elementname", queryOutputNodeElement.getAttributeAsText("Text1"));
The code in the main controller, where I am trying to set the ElementId.
if(wdContext.currentOVSBuckOutputElement() != null){
wdContext.currentOrgaViewElement().setElementid(wdContext.currentOVSBuckOutputElement().nodeBuckGuid().currentBuckGuidElement().getGuid());
}
Can I set the Elementid in the applyResult() itself like Elementname, if so, how do I do it?
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.