on 10-18-2007 10:29 AM
Hi All,
i have a issue.here i have 2 views,in second view iam entering report number.
so i want to display this report number as a message(message manager) in first view.
can anybody send me code for this issuse.
Thanks
prasad
HI
1)Create a Value Attribute type string in Component Controller [say reportMsg]
2) Bind that to the First view and second view
3) in the first view pass that report number to reportMsg
4) in the second view get that reportMsg
String temp=wdContext.Current<you node>Element.getReportMsg();
wdComponentAPI.getMessageManager.reportSuccess(temp);
Regards
Chaitanya.A
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi chaintanya,small problem
public void onPlugFromProgRepHeaderView( ...,repNo )
{
//@@begin onPlugFromProgRepHeaderView(ServerEvent)
String reportNo=repNo;
wdComponentAPI.getMessageManager().reportSuccess("Report No is " +reportNo);
//@@end
} i wrote this code in first view fireplugmethod
or i want to write this code in modify view
-
public void onActionCancel(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
{
//@@begin onActionCancel(ServerEvent)
if(from_view.equals("ProgSelectionView"))
{
String repNo=null;
repNo = wdContext.currentProgRepHeaderVNElement().getReportNo();
wdThis.wdFirePlugToProgSelectionView(repNo);
}
else
wdThis.wdFirePlugToProgSearchView();
//@@end
}
i wrote this in second view ,is it write
Hi
1) First of all "fireplugmethod" will be called only when there is navigation . as you are returning report number from a view,so you need to add your code in "fireplugmethod" only
2) modify will be called when ever your view rendered
so in your scenario you need to write the code in "fireplugmethod" only
Hope you got the point
Regards
Chaitanya.A
User | Count |
---|---|
81 | |
24 | |
11 | |
9 | |
7 | |
5 | |
5 | |
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.