cancel
Showing results for 
Search instead for 
Did you mean: 

Restricting the values in Drop Down list for ESS application

Former Member
0 Kudos

Hello Experts,

We are trying to restrict the values in the drop down list box for payment method field for direct deposit iview.

Here Payment is the Zlsch field.

here we are trying to have only 3 vlaues in the drop down. Do I have to do it from java code or can this be restricted on the ECC side?

Plese let me know.

Thanks,

James.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

It was restricted from R/3 in our case

Former Member
0 Kudos

Hi

http://www.google.co.in/search?hl=en&q=howRestrictingthevaluesinDropDownlistforESSapplication++&btnG=Search&meta=

Hope it will help you

Regards

Ruturaj

Former Member
0 Kudos

James,

What you have to do is create a DropDown ByIndex element instead of by Key and create a context node PaymentMethodNode and a value attribute PaymentAttribute under it ....then write the following code in the wdDoInit() method as :

//Add whatever values you want in the DropDown

String[] priority_options= new String[]{"Payroll/Corp/Partner Check","Employee Payroll ACH(PPD)"};

List ListOfPriorities = new ArrayList();

for(int i=0;i<priority_options.length;i++)

{

IPrivateDetailView.IPayment_MethodNodeElement pr= wdContext.createPayment_MethodNodeElement();

pr.setPaymentAttribute(priority_options<i>);

ListOfPriorities.add(pr);

}

wdContext.nodePayment_MethodNode().bind(ListOfPriorities);

for(int e=0;e<wdContext.nodePayment_MethodNode().size();++e)

{

wdContext.nodePayment_MethodNode().setSelected(e,e>=0 && e<=1);

}

and then write the following code in wdDoModifyView() method:

IWDDropDownByIndex di =(IWDDropDownByIndex)view.getElement("DropDownByIndex");

di.bindTexts("Payment_MethodNode.PaymentAttribute");

then create an Action and bind it to the onselect property of the DropDown and write the following code in the onAction method :

if(wdContext.currentPayment_MethodNodeElement().getPaymentAttribute().equalsIgnoreCase("Payroll/Corp/Partner Check"))

wdContext.currentSelectedInfotypeElement().setZlsch("C");

else

wdContext.currentSelectedInfotypeElement().setZlsch("P");

I am sure it will work..

Former Member
0 Kudos

Shikil,

Thanks for your reply.

So, here do you want us to delete the drop down by key element which is already given in the business package and insert this drop down by Index?.

We are doing for the direct deposit of essusbank.

Thanks,

James