on 05-05-2009 7:42 AM
Hi,
We have an FPM - OIF application having only FPM close button in it.
In OIF screen we have some input fields ex. date fields.
If user enters any wrong date fields then a user validation error will be thrown by framework saying that
date is wrong.
Now if I want to close the application by clicking on FPM Close button, then web dynpro doesn't allows me to do so until the error in date field is corrected.
Please suggest...how can these validation errors be bypassed while closing the FPM window.
I checked in debugging - only method DOBEFOREACTION of the view and WDDOBEFORENAVIGATION
of component controller gets called in this scenario.
Any help in this area is highly appreciated.
Regards
Manas Dua
Hi Rohit,
We tried this thing, but the problem is in view dobeforeaction - CLOSE action of FPM is not get caught
so we have no control over this action.
Regards
Manas Dua
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 just close the application even if the errors are comming Then Put the following code in WDDOBEFOREACTION.
data lo_api_controller type ref to if_wd_view_controller.
data lo_action type ref to if_wd_action.
lo_api_controller = wd_this->wd_get_api( ).
lo_action = lo_api_controller->get_current_action( ).
if lo_action is bound.
case lo_action->name.
when 'CLOSE'. " Suppose Action name for Your clsoe button is CLOSE
wd_this->fire_exit_plg(
). " DO coding here what you want to do . here i m navigating to another view by firing plug. If you want to close the application by pressing clsoe button then you can code here for the same.
endcase.
endif.
endmethod.
I hope it helps.
Regards,
Rohit
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.
User | Count |
---|---|
87 | |
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.