on 06-21-2007 4:08 PM
Hello,
I am on EP7.0 ERP05 NW04s and want to add a field Bank Account Type on the ESS Bank Overview Page under Account Number ...I tried the follwoing code in the Bizcard overview page -- wdDoModifyView method
String bizcardField1 = wdThis.wdGetAPI().getComponent().getTextAccessor().getText("BizcardField1");
String bizcardField2 = wdThis.wdGetAPI().getComponent().getTextAccessor().getText("BizcardField2");
String bizcardField3 = wdThis.wdGetAPI().getComponent().getTextAccessor().getText("BizcardField3");
String bizcardField4 = wdThis.wdGetAPI().getComponent().getTextAccessor().getText("BizcardField4");
String bizcardField5 = wdThis.wdGetAPI().getComponent().getTextAccessor().getText("BizcardField5");
//Code to add field Bank Account Type on the Overview Page
fieldInfo = new BizcardFieldInfo[] { new BizcardFieldInfo(bizcardField1, "Emftx"),
new BizcardFieldInfo(bizcardField2, "Banka"),
new BizcardFieldInfo(bizcardField3, "Bankn"),
new BizcardFieldInfo(bizcardField4, "Bkont")
When I actually run this code I get the field Account Number type but with a number as 01 or 02 ,this is because in the backend it is stored like that, ...what;s the way to show Checking or Savings rather than numbers...
Any help would be highly appreciated..
Hello Laxmi,
Actuallu creation of the elements on runtime is done by the CreateOverview() method common to all Personal Info. services and defined in the ess~per Application , so there fore I have to modify that code instead of adding fresh Elements at runtime ....
Please give your inputs.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Subhash,
Even I have the same requirement of changing text for Bank Account type from 01,02 to Checking or Savings on Bank Overview page. Could you let me know if you can recollect , how did you implement it?
Did you do changes in createOverview method of essper dc or in essbank dc? What were the changes?
I somehow didnt want to touch ess~per dc and do the change directly in bank dc if that can work out.
Thanks in advance
Regards,
Udit
What happens if you create the UIElment dynamically?(I haven't tried though)
eg:
IWDTransparentContainer cont = (IWDTransparentContainer) view.getElement("rootContainer");
IWDTextView text = (IWDTextView) view.createElement(IWDTextView.class, "Type");
text.setText(wdContext.currentBankNodeElement().getAccountType());
cont.addChild(text);
Try adjusting the position of this UIElement.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Laxmi,
I tried what you said ,although I was able to get rid of the NULL Pointer exception but still it does not display Checking and savings because the Create Overview method in the Bizcard view accepts the Bank Table(PA0009) fields as parameters rather than context elements ...
and if I set the BKONT field to Checking it displays only the CH part of it as it is a 2 digit field in R/3....
Looking forward to your reply.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Subhash,
you will have to initialize the value node before using it.
So you might want to initialize the node in doinit() method as follows:
IPublic<Component>.IBankNodeElement bankele = wdContext.nodeBankNodeInput().createBankNodeElement();
//then bind it to the context
wdContext.nodeBankNodeInput().bind(bankele);
This should help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Laxmi,
This is what I did :
Added a Value Node -- BankNode
Added a Value Attribue -- AccountType
and then this is the code I wrote in the Bizcard wdDoMoodifyView Method:
String str=wdContext.currentInfotypeListElement().getBkont();
if(str.equalsIgnoreCase("01"))
wdContext.currentBankNodeElement().setAccountType("Checking");
else
wdContext.currentBankNodeElement().setAccountType("Savings");
but I recieve a null pointer exception on the line code:
wdContext.currentBankNodeElement().setAccountType("Checking");
Please help
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think you can create a value node eg:
BankNode
-
AccountType
In the code set this accountType value to either checking or saving based on the value 0 or 1 from the function module.
Then when you create the account type field in Bizcard view, instead of binding it to "Bkont" set to this value attribute that you created.
Hope this helps you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the reply.
Actually there are no UI Elements for the Bizcard Overview screen , so where do Ibind those to the text.....
Looking forward to your reply.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check to see if the function module returns that text or else u can specify that text in the message pools and bind it to your UIElement.
Hope this helps
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.