Jump to content

Contact Logging - A Better Script?


RPEugene

This topic is 6624 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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!

Link to comment
Share on other sites

This topic is 6624 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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