onRecordEditStart doesn't fire when entering a portal ?

Hi Servoyans,

I have a form with some data-entry fields and a portal with related records which can be editted.
I use the form’s onRecordEditStart to fire a method with a startDatabaseTransaction statement in it. This works fine with the normal data-entry fields but not with the portal.

Why doesn’t the onrecordeditstart method fire when i enter the portal on a form?
Is there an alternative?

greetings
Folkert

Hi,

This is probably not what you are looking for but I’ll throw in my two cents anyway :)

I haven’t tested whether that function is triggered in a portal but in any case, if at all possible, I would really, really try and stay away from editing records in portals. I will sometimes use portals for viewing, printing or even navigating through records but whenever editing records I would always try and use a tab-panel with the originating form being set to list or table view. You can attain virtually the same look but have much more control over the interface that way. Those of us who had a background in FileMaker (Look Ma - NO TABS!) used to try doing many things in portals in the beginning as that was what we were used to. I can’t remember all of the various problems that arise (you can probably do a search on the forum) in doing some things in portals but more to the point, tab panels just give you so much more.

Just to expand on John’s answer, since I am also a recent arrival from FMP Land …

in Servoy (unlike what passes as tabpanels in FMP) you load an actual form into the tab panel. On that other form, you can specify all the properties including events such as the onRecordEditStart action that you need, or onShow events such as pre-sorting the records, etc.

These events will work whether you are viewing the form directly, or viewing it in the context of a related or unrelated tabpanel.

kazar