September 25, 201213 yr 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.
September 25, 201213 yr Probably depends on how and with what value they are setting the field... If they reference a global or are otherwise context sensitive, you may have issues... Exact script definition?
September 25, 201213 yr Author 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.
Create an account or sign in to comment