cancel
Showing results for 
Search instead for 
Did you mean: 

Message Pool

Former Member
0 Kudos

Hi,

Can you please tell me What is the purpose of place holders in Message Pool ?

How to use place holders in Message Pool ?

Advance Thanks,

Prasad.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Placeholders like "" etc. are used to put values inside messages and texts. Say you have a text with key "dear_mr" and value "Dear Mr. ", then you use that with code like


String txt = wdComponentAPI.getTextAccessor().getText
(
  IMessage<Component>.DEAR_MR,
  new String[] { "John", "Doe" }
);

to create the message "Dear Mr. John Doe".

Of course you can also use variables or expressions inside the string array.

Armin

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

Message pool is used to store the messages which are available for all the parts of component,

we can use the message place holders for display the runtime data as message:

Example; if you have date input field, when you are doing validatations on that, we need to disply the date entered by the end user at runtime right,

like if he is entered a date above the system date: we need through an error message right:

Entered date is "Runtime data(Capture date) " above the system date please modify the date, like this we can do right.

to display the date at runtime we need to have place holder like

Entered date is above the system date please modify the date, like this we can do right.

if you want to place number of place holders you can do that also:

May be it can helpful for you,

Cheers,

Appu

Former Member
0 Kudos

Hi Prasad,

Refer SAP NetWeaver Library link http://help.sap.com/saphelp_nw04s/helpdata/en/ec/1415b06e76584ca6b92fe565206fed/frameset.htm also which shows example.

Kind Regards,

Nitin

@Anagha, it may be that Prasad knows how to use fixed text messages.

Former Member
0 Kudos

Well, the framing of the question makes me think otherwise, but yes, could be that you are right here. Never mind

Former Member
0 Kudos

If you don't know the purpose of a message pool then how do you find a need to use it?

former_member185086
Active Contributor
0 Kudos

Hi

Have a look on [this|; , [this|http://help.sap.com/saphelp_nw04s/helpdata/en/ae/4fd9b1ff5c8449b276586e801e5cfe/frameset.htm] and [this |; [thread|http://help.sap.com/saphelp_nw04/helpdata/en/36/d4528e6dbf084b9d79a50fb8d08e86/frameset.htm]

Best Regards

Satish Kumar

Edited by: satish jhariya on Mar 31, 2009 3:42 PM