Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

New Record with calculation field

Featured Replies

Hi all

I running database using Web Publishing, can anybody show me how to create a calculation field to get automaticly the new record after the last

field is submitted.

hasru

Could you rephrase/explain a little more? I'm not sure what you mean by "get" the record, or "after the last field is submitted." (A record is submitted, not a field.)

  • Author

thanks

i try to describe more. i work in web instant publishing. Let say one record have 4 field. get new record after the last field in the record is submitted.

rekod #1

Field 1- (submitted)

Field 2- (submitted)

Field 3- (submitted)

Field 4- (submitted)- When this field is valid then automatic go to new record

record 2

Field 1- (blank)

Field 2- (blank)

Field 3- (blank)

Field 4- (blank)

sorry about my poor langguage

hasru

The only real thing you have in this direction is "Allow creation of related records" in the relations setup - but as it happens is it making a new phantom record as soon as you enter something in a field in the previous line in the portal.

It is however not fully embraced as proper UI, if you bring this into the equation:

http://developer.apple.com/documentation/UserExperience/Conceptual/AppleHIGuidelines/XHIGIntro/chapter_1_section_1.html

But as it is would anarchy in web interfaces undermine such rigidity, and your users might even understand what the interface is about if you make a selfjoin allow record creation this way?

--sd

It sounds like what you want is this: create a "Submit" button on your layout, and attach to it a script something like:

Commit Record

If( IsEmpty( Field 1 ) or IsEmpty( Field 2) or IsEmpty( Field 3) or IsEmpty( Field 4) )

   Exit Script

End If

New Record

You may want to do something more before you exit the script, such as set a global field with an "all fields required" message, or go to a hidden tab with that message on it.

  • Author

THANKS

that's exactly what i need, I copy all your script and test. i change field behaviour from tab to enter but still not run. Can u email or attach sample file.

hasru

  • Author

:yay: Thanks..it;s really work

hasru

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.