on 09-23-2015 9:33 PM
Hi Team,
Can we display screen level validation in a Pop-up instead of Standard Message Area.
currently we are using Standard UIBB, which has a standard Message Area, now my requirement is to display the screen level validations ( Mandatory fields / Input Validations etc ) in Pop-Up as we normally do in Module Pool programming.
Please suggest in this regard.
Regards,
Sridhar.J
I would suggest you to make the event as validation-independent (this will not execute standard validations on that event) on which the standard validations are being performed, then write a custom code to perform validation and collect the messages and then display in a popup.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sridhar,
For your requirement List or Form EXIT based on your needs could do a trick.
Implement Interface which ever is needed
IF_FPM_GUIBB_LIST_EXT
OR
IF_FPM_GUIBB_FORM_EXT
I am assuming you are using LIST EXIT.
Go to method IF_FPM_GUIBB_LIST_EXT~NEEDS_CONFIRMATION
You need to raise an event when you got validation error.
Handel event in IF_FPM_GUIBB_LIST_EXT~NEEDS_CONFIRMATION method.
*--> Local Reference object
DATA: lo_instance TYPE REF TO cl_fpm_confirmation_request,
*--> Local Table
lt_popup_text TYPE string_table,
*--> Local Structure
ls_popup_text TYPE string,
CASE io_event->mv_event_id.
WHEN <your custom event name>
ls_popup_text = cl_wd_utilities=>get_otr_text_by_alias( "messages here" ).
APPEND ls_popup_text TO lt_popup_text.
lv_window_title = cl_wd_utilities=>get_otr_text_by_alias( "popup title" ).
CREATE OBJECT lo_instance
EXPORTING
it_confirmation_text = lt_popup_text "All messages in table
iv_button_text_approve = |{ text-tok }| "gc_ok "'OK'
iv_window_title = lv_window_title.
eo_confirmation_request = lo_instance.
ENDCASE.
Hope this will help.
Thanks-
Abhishek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Sridhar,
I am not sure about my answer please check and confirm.
1. Collect all the messages of first view into one internal table.
2.Create new view and define the message area.
3 pass the message internal table into second view if_Wd_message object.
4. Call the view as an popup after click on submit button.
Thanks
Nishant
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
77 | |
9 | |
9 | |
7 | |
6 | |
6 | |
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.