Extending related foundset

Questions, tips and tricks and techniques for scripting in Servoy

Extending related foundset

Postby Ugo » Sat Dec 11, 2010 2:11 pm

Hello,

I have a table with multiple accounts. Each can have a parent record in this same table.
How one would extend the current foundset so that it now extend to the parent records. Is there any native function that would help or should I go SQL on this ?

Basically, asthe context stays into the same table, I suppose I could do a find/search on any non empty parent key on a newRecord(), what I am looking is the equivalent of the FileMaker script 'Go to Related Record' with an option 'match all records in the current found set'

Thanks

Ugo
Ugo Di Luca

SaaS Software Development Engineer ( Paris - France )
Cegid - http://www.cegid.fr
FileMaker Developer, trainer and consultant
DL Systems- http://www.dlsystems.fr
User avatar
Ugo
 
Posts: 28
Joined: Mon Dec 25, 2006 2:26 pm
Location: Paris, France

Re: Extending related foundset

Postby ngervasi » Sun Dec 12, 2010 2:49 pm

Could you explain a bit better? You say "a related foundset" so I guess you have a parent record in the main form and a related foundset in a tab panel. What are you exactly trying to achieve?
Nicola Gervasi
sintpro.com
SAN Partner
ngervasi
 
Posts: 1485
Joined: Tue Dec 21, 2004 12:47 pm
Location: Arezzo, Italy

Re: Extending related foundset

Postby mboegem » Sun Dec 12, 2010 5:13 pm

Hi Ugo,

I also had some trouble understanding your goal correctly.
but since the 2nd part of your post is quite a direct question:
Ugo wrote:what I am looking is the equivalent of the FileMaker script 'Go to Related Record' with an option 'match all records in the current found set'


There's an equivalent of this: databaseManager.convertFoundset()
please look here for the exact syntax: http://wiki.servoy.com/display/public/DOCS/Database+Manager#DatabaseManager-convertFoundSet
The result will be a new Foundset which you can load onto your form again.

As Servoy supports much more types of objects/strings to load onto a form, there's also numerous ways to do what you want.
The above is closest to what you were used to :-)

Hope this helps
Marc Boegem
Solutiative / JBS Group, Partner
Servoy Specialist
• Servoy Certified Developer
• Servoy Valued Professional
• Freelance Developer

Image
User avatar
mboegem
 
Posts: 1748
Joined: Sun Oct 14, 2007 1:34 pm
Location: Amsterdam

Re: Extending related foundset

Postby Ugo » Mon Dec 13, 2010 12:31 pm

Thanks Marc, that did it.

Sorry if my attempt to clarify my needs wasn't clear enough.

I understand there are plenty of solutions available to solve the issue, as usual. Actually, applying the technique leads me to some other needs or scenarios I could think of using it.

Thanks

Ugo
Ugo Di Luca

SaaS Software Development Engineer ( Paris - France )
Cegid - http://www.cegid.fr
FileMaker Developer, trainer and consultant
DL Systems- http://www.dlsystems.fr
User avatar
Ugo
 
Posts: 28
Joined: Mon Dec 25, 2006 2:26 pm
Location: Paris, France


Return to Methods

Who is online

Users browsing this forum: No registered users and 5 guests