Jump to content
Sign in to follow this  
bruceiow

Open layout as new record

Recommended Posts

Hi All,

 

Is it possible to always open a layout as a fresh new record each time without the option of seeing any records that have already been input? My layout is a form with all other views disabled. This is simply a data entry form that is fire and forget.

 

Many thanks

 

Share this post


Link to post
Share on other sites

Attach an OnLayoutEnter script trigger to th layout that fires a script with the New Record/Request script step. This is probably going to lead to alot of extra records especially if you are using multiple windows. I would suggest that if this is infact a data entry only layout that you might want to base the layout on a table with globals then after data is entered ONLY then is the new record created.. Its a more transactional aproach and allows for programatic validation and massaging of data before any record is ever created.

Share this post


Link to post
Share on other sites

Thank you - that is great, I tied in a zoom lock there as well so it looks great on the ipad now :-)


Attach an OnLayoutEnter script trigger to th layout that fires a script with the New Record/Request script step. This is probably going to lead to alot of extra records especially if you are using multiple windows. I would suggest that if this is infact a data entry only layout that you might want to base the layout on a table with globals then after data is entered ONLY then is the new record created.. Its a more transactional aproach and allows for programatic validation and massaging of data before any record is ever created.

 

This seems very sensible advice - I will take a look at this. Would this mean substantial re-engineering?

Share this post


Link to post
Share on other sites

Is it possible to always open a layout as a fresh new record each time without the option of seeing any records that have already been input?

 

It's possible, but hardly advisable. Users should not "go to a layout". They should indicate they want to create a new record - and then a script would take them to the appropriate layout AND create a new record for them.

 

 

you might want to base the layout on a table with globals then after data is entered ONLY then is the new record created.

 

I would advise - rather strongly - against that. It requires managing two sets of fields for each table where you'd want to implement this. There are much better ways to prevent accidental commits of draft records (I agree that is a concern that needs to be addressed).

  • Like 1

Share this post


Link to post
Share on other sites

Comment - with all due respect what issues do you see with the global - scripted create aproach? Ive used it in several aapplications and, while it does require two sets of fields in the schema, its fairly easy to script and seems to be robust

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.