hasru Posted September 28, 2008 Posted September 28, 2008 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
Fitch Posted September 29, 2008 Posted September 29, 2008 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.)
hasru Posted September 29, 2008 Author Posted September 29, 2008 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
Søren Dyhr Posted September 29, 2008 Posted September 29, 2008 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
Fitch Posted October 1, 2008 Posted October 1, 2008 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.
hasru Posted October 1, 2008 Author Posted October 1, 2008 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
Recommended Posts
This topic is 6165 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now