cancel
Showing results for 
Search instead for 
Did you mean: 

How to restrict OVS from backend? (with parameters)

former_member299368
Participant
0 Kudos

If any one knows kindly help me with this requirement.

Accepted Solutions (0)

Answers (1)

Answers (1)

tushargoel519
Participant
0 Kudos

I think You want to put restriction on the values Of OVS , means if you apply ovs on name field then you want only name should be displayed in the name field.

If I am right , then this is the solution :-

if(this.GetFirst().Customer_name.content != "")

{

var qry = Customer.QueryByIdentification; var qry_sel = qry.CreateSelectionParams(); qry_sel.Add(qry.InternalID,"I","EQ",this.GetFirst().Customer_name.content);

var result = qry.Execute(qry_sel); if(result.Count()>0)

{

this.GetFirst().Customer_name.content = result.GetFirst().CurrentCommon.BusinessPartnerFormattedName;

this.GetFirst().Customer_id = result.GetFirst().InternalID;

}

}

In this Example I put OVS on name field for customer , so i just restrict on ovs so that result should be name after click on the required value in ovs.

Thanks,

Tushar Goel