on 04-09-2007 10:11 PM
Hi Experts ?
Can we change the background color of an Input field in WebDynpro for ABAP based on results we receive from any function module or BAPI?? .
Thanks in advance .
Regards ,
LAS
Thanks - Problem solved
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes. We can change the background of an input field. The way you do this is by editing the theme that webdynpro application uses. To edit the theme, you will need to install NWDS PLUS the theme edit plugin (Available for download from SAP).
Once you have edited the theme, you will need to upload your theme back to application server. You can use the program : BSP_UPDATE_MIMEREPOS to do this.
Bydefault, the theme used by webdynpro applications is :
/SAP/PUBLIC/BC/UR/nw5/themes/sap_tradeshow
You can apply another theme by calling the webdynpro application with a theme parameter. For example, if my webdynpro application name is "zgopaltest", then
<i><b>http://<server>:port/sap/bc/webdynpro/sap/zgopaltest?SAP-EP-THEMEROOT=/SAP/PUBLIC/BC/UR/nw5/themes/sap_tradeshow</b></i>
will apply the sap_tradeshow theme.
Likewise, you can apply diffrent theme. There is another theme that SAP provides. Its called : sap_hcb. Hence, you can apply the theme to the above application by:
<i><b>http://<server>:port/sap/bc/webdynpro/sap/zgopaltest?SAP-EP-THEMEROOT=/SAP/PUBLIC/BC/UR/nw5/themes/sap_hcb</b></i>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You might not be able to do that dynamically, but there is a related functionality, in which you can change the color of the container holding the input field viz. the surrounding of the field. You can bind the property CellBackgroundDesign to a context and thus making it dynamic. This wil change the color of the container that holds the input field, but not texteidt Area within the field, but nevertheless it might help you.
- Harish.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
if you want to change the color after an error on a certain inputfields, you can use the
method for the message manager:
lo_message_manager->report_attribute_t100_message
with parameters the context element and attribute name, and the text message
if you have a t100 entry you can pass these parameters as well.
The inputfield will get a red box instead of a black box then.
grtz
Koen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you mean to change the input field to read only based on come condition, then yes, you can definitly do that.
Regards,
RIch Heilman
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't think you can change the color of the input field, but I think you may be able to change the color of a column or cell in an ALV grid within WDA.
Regards,
RIch Heilman
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.