cancel
Showing results for 
Search instead for 
Did you mean: 

OVS for user search?

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member201361
Active Contributor
0 Kudos

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,

Former Member
0 Kudos

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

former_member201361
Active Contributor
0 Kudos

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,

Former Member
0 Kudos

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

Answers (2)

Answers (2)

Former Member
0 Kudos

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.

Former Member
0 Kudos

Can anyone please let me know is OVS implementation possible without RFC?

Thanks

Praveen

Former Member
0 Kudos

OVS is independent of the model you are using. It is absolutely possible to have OVS without RFC models.

Regards

kk..