cancel
Showing results for 
Search instead for 
Did you mean: 

Clearing Validation Errors on click of Close Button

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

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

abhimanyu_lagishetti7
Active Contributor
0 Kudos

in the PROCESS_EVENT method of the component controller where UIBB is implemented ( write a create a Post-Exit method in the Enhancement mode if it is standard )

io_event->mv_event_id Parmeter value will have the event id.

Abhi

former_member40425
Contributor
0 Kudos

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

Former Member
0 Kudos

Create the Action for this button with Action Type as 'Validation Independent'.

Check this thread

[]

Hope it helps!

Radhika.

Former Member
0 Kudos

Hi,

Thnks for the pointer, but the problem here is that the button in this case in FPM button that too a close

button which comes automatically while using applications through portal.

There are no settings available for FPM buttons.

Regards

manas dua