Blank record for new rows in a portal or related form?

Questions and answers for designing and implementing forms in Servoy

Blank record for new rows in a portal or related form?

Postby ccain » Fri Jan 09, 2015 8:53 pm

FileMaker developer returning to Servoy after about a decade. Might as well be a complete newbie, so sorry if I'm rehashing old ground, and thanks in advance for any help I can get getting back up to speed.

Is there a straightforward way to include a blank line for new records in a portal or a form showing related records? I realize we can have a "new" button, but the blank line waiting for new record info is a comfortable convention. Is this just not something normally done in Servoy?

I'm open to other methods outside my comfort zone, but I'd like to be sure I'm not missing available options.

Chris Cain
Extensitech
ccain
 
Posts: 1
Joined: Fri Jan 09, 2015 8:49 pm

Re: Blank record for new rows in a portal or related form?

Postby jcompagner » Wed Jan 14, 2015 6:51 pm

that should be automatic
if you make a parent form on "customers" with a few fields and yoo place also on that form a portal that is goes over the relation "customer_to_orders"
then if you show that and go into find mode, the portal should show you an empty row
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Blank record for new rows in a portal or related form?

Postby Harjo » Wed Jan 14, 2015 7:57 pm

Johan, in findmode you are right. But not with new records.... Filemaker has the option to show always an empty line for new records. Servoy not
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Re: Blank record for new rows in a portal or related form?

Postby jcompagner » Thu Jan 15, 2015 2:32 pm

yes thats true, but that would be for servoy quite a bit of work to support
because then we should have in all?? related foundset that are empty by default a new records (which is not really a new record, it should not be saved when some (auto) save happens)
that is then visible in the ui and when you start to type in it it should be promoted..
problem is that for these things all kinds of triggers do happen, for example you can have a calculation on that record that does generate a value (but that should still not really make it a db record)
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Blank record for new rows in a portal or related form?

Postby Andrei Costescu » Thu Jan 15, 2015 2:44 pm

Maybe if it would only create a new record automatically when it gets focus/user interest... But what to show in it?
I think record-view is a able to show such a blank record when no records are available.

So maybe a portal/tableview could be made to show such a row based on some config option - without it actually being in a foundset.
Andrei Costescu
Servoy
Andrei Costescu
 
Posts: 1018
Joined: Tue Jun 26, 2007 3:14 pm


Return to Forms

Who is online

Users browsing this forum: Bing [Bot] and 9 guests

cron