cancel
Showing results for 
Search instead for 
Did you mean: 

What is the purpose of the new BoEventTypes.et_FORM_VISIBLE?

rasmuswulff_jensen
Active Contributor
0 Kudos

Hi All

In SBO8.82 PL07 there is a new EventType called

BoEventTypes.et_FORM_VISIBLE

Does anyone know what purpose this serves.. It seem to only happen on user-forms and after the normal et_FORM_LOAD, but other than that it does not seem to have any difference over the FORM_LOAD (I hoped for a minute it would expose the items on the User-form for easier integration but that turned out not to be the case)

Or is it something to do with the Default UDO forms?

***

Any1 have a clue as it is not documented in the SDK help yet...

btw. Same goes for the new

Application.FocusRestored property... Have no clue what that does either and again not documented 😞

Accepted Solutions (0)

Answers (3)

Answers (3)

vangelis_sanchoyerto
Participant
0 Kudos

Its as you say, a new event where you can access the item collection of the form. It gets triggered when the form is made visible, the problem could be that if SAP or other addon makes invisible and then visible an already loaded Form the event will trigger again, so make sure to add some "first_time_visible" bool variable to check this case....

pedro_magueija
Active Contributor
0 Kudos

Hi Rasmun,

In the past people often tried to access the form items during the form load. But at the time the FORM_LOAD event happened (for user forms) the Items collection was empty.

Most people work around the issue by using the associated menu events (when a user clicks on a menu we would capture the after click event to manipulate the now available Items collection).

Maybe it is for this purpose that this event was created.

Just check if the collection of the items has a count > 0 during that event and you will have a possible answer.


Best regards,

Pedro Magueija


View Pedro Magueija's profile on LinkedIn

Former Member
0 Kudos

Very good question. Would like to know that, too.