on 10-13-2009 2:48 AM
Hi,
I'm trying to build OVS for user search(people picker), I have been reading few documents on how to build OVS in WD app. Followed all necessary steps required to build OVS and understand that we have no control over the GUI as it's dynamically builds based on the context attributes.
The user search I'm using is based on UME API's and I have successfully built a view and tested it. I'm trying to simulate the exact search in a OVS. My first question is, there is no RFC call in my user search is this OK for OVS?
The issue I'm having is, I have created a custom controller and implemented necessary interfaces for listerners. I have bind it to the view attribute, I could see the OVS icon next the the view attribute when I click on it I see OVS popup with 3 table columns without any captions and there is no search input field or any headers. All I see is blank columns without header and go and exit buttons.
My question is is OVS possible without RFC? If yes, is there a way to control UI layout on the OVS popup?
Thanks
Praveen
Hi Praveen,
The issue I'm having is, I have created a custom controller and implemented necessary interfaces for listerners. I have bind it to the view attribute, I could see the OVS icon next the the view attribute when I click on it I see OVS popup with 3 table columns without any captions and there is no search input field or any headers. All I see is blank columns without header and go and exit buttons.
u have to create dictionary simple types for displaying labels and Table headers in the OVS pop up. for more information, check this link :
[https://www.sdn.sap.com/irj/scn/wiki?path=/display/wdjava/valueHelp-ObjectValue+Selector]
My question is is OVS possible without RFC?
OVS provides search UI for searching objects in SAP Backend Systems . Check this [link|http://help.sap.com/saphelp_nwce711/helpdata/en/47/f8738ffdb84aa8e10000000a421937/content.htm]
yes , u can use OVS without RFC.
is there a way to control UI layout on the OVS popup?
Yes, u can customize the OVS pop up check this [link|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c0c6132f-4ea3-2b10-4d8f-e68d2e96113d].
u can create your own helper UI for OVS. check this [link |https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/401975e3-e2ee-2b10-e191-a8140aabe9d6]
Note: customization of OVS UI is possible in CE 7.1 EHP1 version. earliar version will not support these features.
Hope it helps,
Thanks and Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks guys. Creating a simple data type and assigning to context attributes makes everything work as I wanted. I can now search all users.
One last question, when I select the item from search result, it's not applying the selected values back to the View Controller input fields, is it the applyResult() method in the listener inner class which does this assignment back to view context? Please advise.
My applyResult() is
public void applyResult(IWDNodeElement applicationNodeElement, IWDNodeElement queryOutputNodeElement) {
IPrivateOverviewView.IInputElement ovsCallerNodeElement = (IPrivateOverviewView.IInputElement) applicationNodeElement;
IPublicOVSUserSearch.IOutputElement output = (IPublicOVSUserSearch.IOutputElement) queryOutputNodeElement;
ovsCallerNodeElement.setXXXd(output.getCCCCC());
ovsCallerNodeElement.setYYY(output.getQQQQ() + ", " + output.getWe());
}
Thanks
Praveen
Hi Praveen,
public void applyResult(IWDNodeElement applicationNodeElement, IWDNodeElement queryOutputNodeElement) {
IPrivateOverviewView.IInputElement ovsCallerNodeElement = (IPrivateOverviewView.IInputElement) applicationNodeElement;
IPublicOVSUserSearch.IOutputElement output = (IPublicOVSUserSearch.IOutputElement) queryOutputNodeElement;
ovsCallerNodeElement.setXXXd(output.getCCCCC());
ovsCallerNodeElement.setYYY(output.getQQQQ() + ", " + output.getWe());
}
in the above code , u are setting the values to the node element , but u are not adding the element to the node collection.
ovsCallerNodeElement.setXXXd(output.getCCCCC());
ovsCallerNodeElement.setYYY(output.getQQQQ() + ", " + output.getWe());
wdContext.nodeInput().addElement(ovsCallerNodeElement);
check the wiki link for help.
Hope it helps,
Thanks and Regards,
Thanks Fazal.
I did try adding to the wdContext but still didn't work. Anyway reading the code carefully it makes that we are trying to directly assign to the view context attributes which should set it to the inputfields because they are reference based. I ended up having the same code as below
public void applyResult(IWDNodeElement applicationNodeElement, IWDNodeElement queryOutputNodeElement) {
IPrivateOverviewView.IInputElement ovsCallerNodeElement = (IPrivateOverviewView.IInputElement) applicationNodeElement;
IPublicOVSUserSearch.IOutputElement output = (IPublicOVSUserSearch.IOutputElement) queryOutputNodeElement;
ovsCallerNodeElement.setXXXXId(output.getXXXD());
ovsCallerNodeElement.setYYYY(output.getAAAAA() + ", " + output.getBBBBB());
}
I have completely different context attributes in my view compared to OVS custom controller, so I didn't even map the context from cust controller to view controller as said in WIKI. However with all your help the concept the same and found that OVS can be used without RFC and how to set the labels for table and input field. Thanks everyone.
Praveen
Please check the cardinality of your input context node. It has to be 1..1 . For any labels and header texts in table, please create simple data types in local dictionary maintaining Field Label,Column Label and Quick Info(in the Representation Tab), and associate the data types of corresponding context attributes to the types in local dictionary .
Regards
kk.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can anyone please let me know is OVS implementation possible without RFC?
Thanks
Praveen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.