on 03-31-2009 10:59 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you don't know the purpose of a message pool then how do you find a need to use it?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.