RPEugene Posted January 31, 2005 Posted January 31, 2005 Okay, I'm just about certain that I can do better than this... I have a script attached to button that allows teachers to log information about students via secure website. The two tables used are: Students Contact_Log The script looks like this: Set Error Capture [ On ] Copy [ Students::StudentSerNum.pk ] [ Select ] Go to Layout [ "Contact_Log" (Contact_Log) ] New Record/Request Paste [ Contact_Log::StudentSerNum.fk ] [ Select ] Commit Records/Requests Insert Current Date [ Contact_Log::Date ] [ Select ] Commit Records/Requests Insert Current User Name [ Contact_Log::LoggedBy ] [ Select ] Commit Records/Requests [ No dialog ] Go to Layout [ "Contact_Log_Web" (Contact_Log) ] It seems to me that all that copying and pasting is unnecessary, and, to say the least, inelegant. Is there a better way - perhaps via global fields - to create new log entries? Oh, and I suppose I should mention that this site is delivered via IWP - in case that would affect the usable script steps. Thanks!
PoweredbyFm7 Posted January 31, 2005 Posted January 31, 2005 You can use "set field" script step instead of "copy and paste" or "insert calculation"
Recommended Posts
This topic is 7505 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