Jump to content
Server Maintenance This Week. ×

Script compatability: Set Field in IWP


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

Recommended Posts

  • Newbies

I have a couple of scripts that use Set Field. These scripts are run using a button in a portal. They both work fine in the application, but one doesn't work at all in the web browser while the other sometimes does something. Am I missing something? The scripts show complete compatability for iwp.

Link to comment
Share on other sites

  • Newbies

This script is activated by a button in a portal to a Results layout, within Students layout. The button essentially is to create and partly fill in a new results record for that student. The portal filter uses the field Year and SubjectID, as well as Student ID. New records in Results table have a Results ID counter.

* If [Results::Result ID = 0] (provided the record using this ID is empty)

* Set Next Serial Value [Results::Results ID] (basically start a new record with the ID counter)

* Set Field [Results::Student ID; Students::Student ID] (Reads field from Students layout and enters it into new record)

* Set Field [Results::Subject ID; Students::Subject ID] (Reads field from Students layout and enters it into new record)

* Set Field [Results::Year; Students::Year] (Reads field from Students layout and enters it into new record)

*End If

It's pretty basic, with no particular bells or whistles, and as I said, it works in Filemaker. None of the fields are global.

Link to comment
Share on other sites

This topic is 4233 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.