Attaching methods to field in portals

Hi,

In develloper in designmode, when the focus is on one of the fields in a portal, I have the option to attach methods to this field (like OnRecordSelection). But nothing seems to happen in the view mode when I select a record in the portal.

Am I missing something here, or is this not (yet) supported?

Paul

see also this topic:

:( Too bad… any idea when we can see this in Servoy? Even Beta versions?

To me it seems you are mixing 2 things:
-onRecordSelection is a property from current form (not from a portal!)
-a portal does not have onRecordSelection.

Suggestion to get what you want: make a form in listview and show it in a tabpanel (so you can do onRecordSelection) and make the tabs hidden if needed

If I select a field in a portal (the elements you can move around on the portal in design view), the property editor allows you to add a OnRecordSeection method to it

As for the suggestion to use tabpanels in listview: tried it, but I think I found a bug there (registered under feedback on the forum)

onRecordSelection is not a ‘field’ property but a ‘form’ property.
We will add a title to the properties view so you see what is selected.

Sorry, Sorry, Sorry…

You were right, I’m mixing up two things. It wasn’t OnRecordSelection, but OnFocusGained and OnAction which were available to add methods to

Sorry… :-)

But, should they work in a portal?

yes, onFocusGained and onAction should work on a portal field