Virtual foundsets...

Questions and answers on designing your Servoy solutions, database modelling and other 'how do I do this' that don't fit in any of the other categories

Virtual foundsets...

Postby pbakker » Tue Jul 13, 2004 10:31 am

Hi,

I would like to achive the following, but not sure how to do so....

Through some custom SQL I'm formatting a value. Now, the custom SQL for the formatting can consist of multiple components. Per component I have to store the type of component, the order + 1 or 2 additional values.

For example:
Type = Date, Order = 1 and value1 = dd-MM-yyyy
or
Type = FixedLengthSequence, order = 2, value1 = 0 and value2 = 15

Now, I prefer in this case not to store this info in multiple DB records. I was thinking about a virtual foundset and storing that virtual foundset into 1 field in a DB record.

Is something like this possible? Offcourse I need to be able to display this virtual foundset to the user and he/she needs to be able to edit it.

I do not think functionality like this is present in Servoy currently, but I hope someone will prove me wrong :D

Paul
pbakker
 
Posts: 2822
Joined: Wed Oct 01, 2003 8:12 pm
Location: Amsterdam, the Netherlands

Postby bcusick » Tue Jul 13, 2004 9:30 pm

Hi Paul,

You CAN keep this info in a single record - then you would need to parse the data in there to break it out into multiple values for use in your other methods/sql.

Hope this helps,

Bob Cusick
bcusick
 
Posts: 1255
Joined: Wed Apr 23, 2003 11:27 pm
Location: Thousand Oaks, CA USA


Return to Programming with Servoy

Who is online

Users browsing this forum: No registered users and 32 guests