on 10-19-2006 3:07 PM
Hi, I have been asked to modify a couple fo ESS Web Dynpro screens. On one screen I was able to add a text box with text on it ok, but when I changed the text on one of it's buttons it did not take. it looks fine until I deploy it but then only the text box I added shows up, but the text in the button does not change.
I also need to know where I can find the text for a message that is built on the fly.
I am working on the benefits part of ESS and I need to get this done by tomorrow.
Thanks
Mike Curtis
Hi Michael,
on which property did you place the text for the button?
Text messages are normally "thrown" in the wddobeforeAction method of a view. Just check the methods of the view.
What are you using - WD for ABAP or Java?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So if you are using the Dev Studio we are in Java...
In the WD Project, there are the "Web Dynpro Components", did you check the "Message Pool" in your Component. In java msg are defined in there... or they are hard coded in the coding :-(.
What happend if you add an new button to the view, can you change the text then?
I looked in the "Message Pool" and there was nothing there. Before I made the change the button read "Review Enrollment" on the text property. I just changed it to read "Save Enrollment" in the same spot so I am not sure if there is some java code that is passing the value to the button text.
I was able to add a button and it showed up when I deployed it. But I am not sure what I can do with it.
Thanks
Mike
What I would do is:
Exchange the Button by a new one and set the action method of the old button in the new one.
If this is not a choice, rename the button and see if some error are shown. Not shure, but maybe some objects get generated for each element. By renaming the button you will see where they are used in the customer code... just an idea.
Make sure, that you review the contollers (in the view and the component). Check the wdDo* methods. Here customer code can be insert. Somewhere in there must be the msgs.
I did the button exchange and that worked great. But I will try renaming the original button so that I can find where it is being generated.
Also, I am having trouble finding where a text element gets it's text from:
wdContext.currentUITextsElement().setCostsHeaderText(wdThis.wdGetFcBenefitsInterface().getText("CostsHeaderText", null));
I am looking to find out where UITextsElement is finding the texts to put on the screen. Would you know where it comes from?
Thanks
Mike
"wdContext.currentUITextsElement()" means that there is a Context Element with the name UITexts in the View. This context element might be bind to a TextView element.
"wdThis.wdGetFcBenefitsInterface().get" executes a method from your WD Model. What model do you use? Double click on the WD Component. Might the text come from the model (something like an EJB etc.)?
User | Count |
---|---|
85 | |
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.