cancel
Showing results for 
Search instead for 
Did you mean: 

report message

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

thanks for reply,

directly i created string in first view.

String reportNo=repNo;

wdComponentAPI.getMessageManager().reportSuccess("Report No is " +reportNo); is it ok..

Former Member
0 Kudos

HI

String reportNo=wdContext.Current<yourNode>Element.getReportMsg(); // which will get the report number from second view 

Regards

Chaitanya.A

Former Member
0 Kudos

Thanks you chaitanya....

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Prasad

If you still have doubts you can reopen the thread so that others can also help you in solving you query . if you make the thread as answered there is a chance ,people might skip seeing this thread feeling that this thread is already answered.

Best Regards

Chaitanya.A

Former Member
0 Kudos

HI chaitanya,

i wrote code in fireplug method only .just i got a doubt,so that i asked u.

bye