on 12-05-2006 3:31 PM
Hi all,
I have implemented the common architecture "WebDynpro --> WebService --> SessionBean --> JDO --> database". In my data-table that I access I do not find clear text but only constants. E.g. the constant 1 means in clear text "Dept. Marketing", constant 2 means "Dept. Controlling".
Of course I do not want to display the constants but the clear texts. Where and how should I perform the mapping from constants to clear texts and vice versa? Should I do this in the SessionBean after getting the constants via JDO from DB, i.e. WebService should deliver clear text instead of constants? Or should the WebService deliver constants that are translated in my WebDynpro-Application?
Thanks for help,
Christoph
Hi Christoph ,
The WebService should return the values for you.So you have mapping method in your bean also.
Ex : your webservice may have a method like getDept() then it should return texts not constants.I think your current implementation retuns constants .
Regards, Anilkumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anilkumar,
thank you for your advice. I guess this is a good solution. But what about the possibility to map the values in WebDynpro using the IWDConfiguration interface? Did you make any experiences? What are the advantages / disadvatages of the one and the other solution (mapping in SessionBean vs. mapping in WebDynpro)?
Kind regards,
Christoph
Hi Christoph,
I haven't used this API much but I don't think using IWDConfiguration would be a good idea.
If i am not wrong in the above case you need to maintain a property file and read the configurations through IWDConfiguration api.
But i would prefer to have a well defined services so that in future it will be easy for any kind of enhancements.
Best Regards, Anilkumar
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.