cancel
Showing results for 
Search instead for 
Did you mean: 

Check on mandatory fields in different tabs (webdynpro components) in FPM

Former Member
0 Kudos

Hey guys,

i think i have explored the whole internet in the meanwhile . I have created different Webdynpros which include mandatory and non mandatory fields.

First i tried to check these fields in the component itself in the wddobeforeaction method. That was not a big deal. After that I transfered the check in the controller so that it is executed when I klick the save button in my floorplan.

Now i have searched for a solution to check all webdynpro components included in the floorplan by the floorplan itself and not longer by the components.

The problem is that only the process event method of the visible uibb is executed. I want the floorplan to check WD Component 1 (Tab 1) and WD Component 2 (Tab 2). The result should be that if I fill in the mandatory fields of Component 1 and dont fill the fields of Component 2 and press 'Save' after the floorplan should raise the error messages for the non filled fields of Component 2.

I have found the solution in the App Controller so I have created a new Webdynpro with the 'IF_FPM_APP_CONTOLLER' interface implemented. Furthermore I have implemented the 'IF_FPM_OIF_CONF_EXIT' interface here to override the process_event method. Is this the right way? How can I get to the view controller of every WD Comp in the AppCC to check the mandatory fields?

Thank you very much

Greetings Tim

Accepted Solutions (0)

Answers (2)

Answers (2)

nishantbansal91
Active Contributor
0 Kudos

Dear Tim,

I think it's not possible because EACH component has different interface, So if you want to check that thing used the both component in One component and then Check the field validation.

I am not sure about my answer, but you can try it.

Thanks

Nishant

Former Member
0 Kudos

The thing is that I need to have the components seperated. I think I will try to deliver the "mandatory errors" on top to the floorplan and raise the errors from there. I dont know exactly how to do this but I think it is possible. Anyone any ideas therefore?

Thank you so far Nishant

nishantbansal91
Active Contributor
0 Kudos

Dear Tim,

That's good. Once you have done from your side update in this thread also.

Thanks

Nishant

karsten_heth
Active Participant
0 Kudos

Hello Tim,

to add the "mandatory errors" you can use the method OVERRIDE_EVENT_OIF.

  1. Do your mandatory checks and collect all errors of ALL components (that's the hardest part, maybe by adding a common interface to all UIBBs)
  2. Use the Message Manager to add those errors to the message area (the web dynpro code wizard is very helpful here)
  3. Mark the event as cancelled to stop the processing of the original event in case of errors: io_oif->cancel_event( ).

I had very similar problems with my WebDynpro FPM applications. If you manage to find a solution to collect all error messages it's just the beginning. There might be messages in the message area that are on a UIBB that is not visible. And the expected behaviour by the user would be that you click on the message and the corresponding UIBB is automatically displayed (keyword "message navigation").

All in all the FPM framework is little helpful in this scenario and I had some very frustrating moments 😉

Regards,

Karsten

Former Member
0 Kudos

Does no one have an idea?