cancel
Showing results for 
Search instead for 
Did you mean: 

dynamic message using message pool

Former Member
0 Kudos

Hi all,

I want to print the number of rows in the message using message manager.

any pointers regarding same will be highly appreciated.

thanks and regards

anand

Accepted Solutions (0)

Answers (9)

Answers (9)

Former Member
0 Kudos

Add a message with key "msgNumRows" and text "There are rows" to the message pool. In your event handler you can use this message like this:


Integer rows = ...;
String msg = wdComponentAPI.getTextAccessor().getText(IMessage<ComponentName>.MSG_NUM_ROWS, new Object[] {rows});
wdComponentAPI.getMessageManager.reportSuccess(msg);

Armin

Former Member
0 Kudos

Hi anand,

Can u send your code ?

Regards,

Sunaina Reddy T

Former Member
0 Kudos
Former Member
0 Kudos
Former Member
0 Kudos

Hi,

write for loop to iterate the no of rows and print that rows in message manager.

Regards,

Sunaina Reddy T

Former Member
0 Kudos

Hi all,

can you please elaborate the same

Former Member
0 Kudos

Hi Anand

Where do you want that message to be appear?

is that do you want after exceuting the bapi ?

if you want after executing rfc please add below code in onaction<method>

wdComponentAPI.getMessageManager().reportSuccess(wdContext.nodeTable().size()+"");

Thanks

Tulasi

Former Member
0 Kudos

Hi Tulasi,

that i have implemented but my problem is how to incorporate in message manager and then again fetch the same from message manager

Former Member
0 Kudos

Hi Anand

Number of rows in the table

int x= wdContext.node<name>.size();

iwdComponentAPI.getmessagemanager().reportSuccess(" "+ x);

Thanks

Tulasi

Edited by: Tulasi Palnati on Jul 21, 2009 10:59 AM

Edited by: Tulasi Palnati on Jul 21, 2009 11:00 AM

Former Member
0 Kudos

Hi,

While creating the meassage in the message pool use ,................

and print these messages using message manager.

or

write for loop to iterate the no of rows and print that rows in message manager.

Regards,

Sunaina Reddy T

Former Member
0 Kudos

When writing a message template in the message pool use variants like .

When creating the message send a multi line string to the variant.

Aviad