on 10-13-2008 8:57 PM
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.
It was restricted from R/3 in our case
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
http://www.google.co.in/search?hl=en&q=howRestrictingthevaluesinDropDownlistforESSapplication++&btnG=Search&meta=
Hope it will help you
Regards
Ruturaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
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.