on 02-09-2009 9:25 AM
Hi All,
I am working on WD ABAP, where i want to display a busy mode meaningful message when user clicks a button or when back end action is triggered.
Say for eg, when a user clicks on "Update details" button , i should be able to display "please wait while your details are being updated"...and simillalry for other actions.
At present the i see only "wait...." i want to have my custom text here.
All replies will be appreciated.
Hi,
Click on to the code wizard(CTRL_F7) button, select the Generate Message radio button and u can select the message. for eg : report_sucess method. Here u can give u r own text messages.
below is the example code.
eg :
DATA lo_api_controller TYPE REF TO if_wd_controller.
DATA lo_message_manager TYPE REF TO if_wd_message_manager.
lo_api_controller ?= wd_this->wd_get_api( ).
CALL METHOD lo_api_controller->get_message_manager
RECEIVING
message_manager = lo_message_manager
.
report message*
CALL METHOD lo_message_manager->report_success
EXPORTING
message_text = 'please wait while your details are being updated'
params =*
msg_user_data =*
is_permanent = ABAP_FALSE*
scope_permanent_msg = CO_MSG_SCOPE_CONTROLLER*
view =*
show_as_popup =*
controller_permanent_msg =*
msg_index =*
cancel_navigation =*
enable_message_navigation =*
receiving
message_id =
.
Regards,
Ragu.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
Are you sure this will solve the problem....?? Because i want the message to be displayed while the processing is taking place, like say.... when the user clicks the button, a HTTP request will go the server and back to browser, its during this round trip that i want the message to be displayed, and not after that.
hi prashant,
If that is the case, then i suppose i will have to drop the the requirement. But i have seen text being displayed other than the "wait.." with rotating icon.....in the SAP recruitment site....!!!! The look and feel there too looks like it is developed in WD ABAP...!!!
So, was curious to provide the same here...!! Anyway thanks a lot.
>
> hi prashant,
>
> If that is the case, then i suppose i will have to drop the the requirement. But i have seen text being displayed other than the "wait.." with rotating icon.....in the SAP recruitment site....!!!! The look and feel there too looks like it is developed in WD ABAP...!!!
>
> So, was curious to provide the same here...!! Anyway thanks a lot.
Are you sure that application wasn't BSP? Many BSP applications have a very similar look and feel to WDA. The BSP tag xhtmlb:protectDoubleSubmit does allow you to specify a custom text for the waiting message/icon. WDA does not have such functionality and as stated the wait message and icon come from the framework. You might be able to alter them only using a customized theme or directly manipulating the MIME objects of the Unified Renderer.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
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.