January 31, 200521 yr 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!
January 31, 200521 yr You can use "set field" script step instead of "copy and paste" or "insert calculation"
Create an account or sign in to comment