on 07-29-2014 3:19 PM
The reason for the delay is because a server roundtrip is performed by the Web Dynpro framework and then the lead selection is set to the selected row. During this period the page is on hold and hence unable to make any new entries.
Change the table compatibility mode to nw04s and it should remove this delay.
Regards,
Sharath
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi Tim,
as already specified please do parameter mapping for the table , then you will get the current element , like in
wdModifyview method of the view in which this table is present add this code ....
IWDLinkToAction indTransLevelLink = (IWDLinkToAction) view.getElement("LinkToAction");
indTransLevelLink.mappingOfOnAction().addSourceMapping("nodeElement","selectedElement");
here LinkToAction is the id of the linktoaction in the table if present , and then you have an action
onActionBBB(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, com.sap.tc.webdynpro.progmodel.api.IWDNodeElement selectedElement
)
{
IPrivate*******View.ITableNodeElement element = (IPrivate*******View.ITableNodeElement)selectedElement;
element.getafb (); -- //this will give you the current elements afb details , this afb is reference to above //table shown by you
.......
}
here wdEvent is by default available and you have to create parameter selectedElement for this action ,
so any action you have where you are refering the current element just use the above code .
for better understanding read links below
http://help.sap.com/saphelp_dm40/helpdata/en/60/1f1f056f057d4d962375efd3c92ed0/content.htm
Please close the thread if your problem is solved.
Regards
Govardan
Thanks Govardan,
My code:
IWDLinkToAction indTransLevelLink = (IWDLinkToAction) view.getElement("LinkToAction");
indTransLevelLink.mappingOfOnAction().addSourceMapping("nodeElement","selectedElement");
onActionBBB(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, com.sap.tc.webdynpro.progmodel.api.IWDNodeElement selectedElement);
{
IPrivateOverview.IFormatedTableElement element = IPrivateOverview.IFormatedTableElement)selectedElement;
//test
element.getMaktx();
}
Error: Syntax error, expected ')' after ','
hi tim,
Just do a favour , print stack trace in the action it will give the line numbe where exactly we get the error, there we can localise the issue.
here another thing is OnactionBBB is the action binded the linktoaction UI element of the table, and the first two lines that is ...view.getelement("").... and add source mapping .. should be placed in wdDomodifyView() in the view.
try
{
//paste the code that is in actionBBB here in this block.
}
catch (Exception e)
{
StackTraceElement element[] = e.getStackTrace();
StringBuffer buffer = new StringBuffer();
for(int i=0;i<element.length;i++)
{
buffer.append(element[i]);
}
wdComponentAPI.getMessageManager().reportException(buffer.toString(),true);
}
Regards
Govardan
You are not get it I think...I can't even build...
This is my error:
[javac] Compiling 40 source files to C:\SAP\.dtc\13\t\8347DC8DDC435BC462A2648E068E4671\classes
[javac] ERROR: C:\SAP\.dtc\13\t\8347DC8DDC435BC462A2648E068E4671\gen_wdp\packages\com\carrefour\be\Overview.java:180: ')' expected
[javac] ERROR: onActionBBB(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, com.sap.tc.webdynpro.progmodel.api.IWDNodeElement selectedElement)
[javac] ERROR: ^
[javac] ERROR: C:\SAP\.dtc\13\t\8347DC8DDC435BC462A2648E068E4671\gen_wdp\packages\com\carrefour\be\Overview.java:185: ';' expected
[javac] ERROR:
[javac] ERROR: ^
[javac] 2 errors
Hi Tim,
I can see basic programming mistakes, like expected bracket, missing semicolon, etc.
Double check your code Overview.java at line 180 and at line 185
I am sure it'd be easier to locate the problem if we saw the complete source code. Without it it is very difficult to tell where are the syntax problems in your code.
You also said that you can't resolve the onActionBBB(). Normally you create an action in NWDS and then you need to rebuild the wd java project in order to have the corresponding code part written by webdynpro into your source code. Did you do a rebuild after creating an action ?
I hope this helps.
Best Regards,
Ervin
Hi Tim ,
There is delay in selecting another row because when you select or click a row in table that particular element is made lead selected , and also check your table properties ,
Compatibility Mode --> nw04plus or auto
if your nwds is 7.01 then choose that compatibility mode as nw04plus which resolves your problem , and do parameter mapping to get the current element of the table.
Regards
Govardan Raj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well, that's the side effect of this compatibility mode.
However as a better practice use the parameter mapping for the event. Ex: if you have a UI element with action then link the relevant action with the table element.
Check up for the document on Parameter mapping in WD Java to get tutorials on how to implement the mapping.
Regards,
Sharath
P.S. Thanks for nw04plus correction.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
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.