Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8851

Re: How to Read FPM Events in WDDOBEFOREACTION

$
0
0

Hi,

 

Below code can be used to get the current executed FPM event.

 

DATA  io_event type cl_fpm_event.

io_event = wdevent->get_string( 'ID' ).

 

io_event will have the Event which is being triggered.

 

 

FPM event can be captured in WDDOBEFOREACTION, but since this hook method is invoked before any events in the view, so it will throw a dump , if any action is triggered other FPM event.

 

So it is better to write the validation in Component controller method,(ON_PROCESS ), if we want to Validate based on prev and next buttons.

 

 

 

DATA  io_event type cl_fpm_event.

 

CASE io_event->mv_event_id .

    WHEN cl_fpm_event=>'NEXT'.          " Global constants can be declared like gc_event_edit,etc

          .

          .

          .

            .

Endcase.

 

Regards,

Harsha J


Viewing all articles
Browse latest Browse all 8851

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>