cancel
Showing results for 
Search instead for 
Did you mean: 

Java Object Value Selector Doubts

Former Member
0 Kudos

Hello all,

I need to implement a Object Value Selector. I am going through tutorials however they dont answer some of my questions.

Detailed Requirement: I have a input field for which OVS is required. The OVS on opening will have three input fields X1, X2 and X3 for search criteria on press of GO button should display X1, X2, X3, X4 fields in the table (all relevant records). Go button will lead to call from MDM backend to fetch data into a node. All selection of a particular record the X1 value should be populated into field X1 for which OVS is there.

1) Should my node in which context attribute is there for which OVS exists be a node/context attribute/anything?

2) What will be input node? What will be its attributes? Its cardinality?

3) What will be my output node? What will be its attributes? Its cardinality?

Accepted Solutions (1)

Accepted Solutions (1)

gill367
Active Contributor
0 Kudos

Hi

1. Your input field where you are going to apply OVS should be bound to one context attribute. it doesn't matter whether it is in one node or not.

2. Your input node which will be present in the custom controller will have three context attributes x1 x2 x3 and cardinality will be 1...1.

3. Your Output node will have context attributes which you want to show in the output table of OVS. and Its cardinality will be 0..n

Let me know if you have more doubts

Regards,

Sarbjeet

Former Member
0 Kudos

Thanks Sarabjit.

Can you answer my further two questions?

I am using NWDS 7.0.

How do i customize my OVS UI so that field labels for input fields and table fields appear.

Is there any way to to get a filter automatically available on the search results in the table? Is there any property?

gill367
Active Contributor
0 Kudos

Hello Yogesh,

Applying filter is not possible in OVS.

However the labels for input fields and column labels are possible.

For that do the following

Write the following code in the adDoinit of the custom controller

ISimpleTypeModifiable ismType1 =
				wdContext
					.node<OVSOutputNode>()
					.getNodeInfo()
					.getAttribute(<name of the attribute>)
					.getModifiableSimpleType();
			ismType1.setColumnLabel(<text for column label>);
          

			ISimpleTypeModifiable ismType1a =
				wdContext
					.node<OVSInputNode>()
					.getNodeInfo()
					.getAttribute(<name of the attribute>)
					.getModifiableSimpleType();
					ismType1a.setFieldLabel(<TEXT for the field label>);

Thanks and Regards,

Sarbjeet Singh

Answers (0)