April 23, 201510 yr I appear to have lost the plot and for the life of me can't see what I've done wrong. I'm trying to enter data via a custom dialog to a global field. gActivityDate is a global date field I have placed the field on the layout. I can enter a date into the field and view the same data on multiple records (i.e it's global) My script: clear gActivityDate (i want it empty when users go to enter a date - the above was to prove it was a global) show custom dialog where input field is gActivityDate I can see in the Data viewer the date appearing in gActivityDate The field on the layout does NOT change I have added a few other global fields to see if I get anything clicking OK on the custom dialog has the data disappearing. Even if I was to remove the clear gActivityDate step at the start and alter the date to something different, the date does NOT change. I've attached screen shots of everything Am I missing something?? I'm not a complete noob.... but I fear there must be a simple pebcak I'm missing. Global fields.pdf
April 23, 201510 yr Use Set Field [ fieldname ; "" ] instead of "Clear". I recommend never ever using those "Edit" functions in a script (copy, paste, etc). I believe, but am not sure, because I don't use those functions, that the field itself needs to be on the layout.
April 23, 201510 yr Author Hi, Thanks for your response. The fields are on the layout. I've changed it to set field "" to no avail. I'm about to recover the file because for the life of me I can't understand what is going on and assuming it must be a bug. UPDATE: I deleted the custom dialog box out, saved and then went back in and added it back with the exact same parameters and it works. buggy buggy!
April 24, 201510 yr Post a copy of the script, or a mockup of your file, or a copy of the file. Be sure to zip your file and then just drag it onto the reply.
Create an account or sign in to comment