Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

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

Posted

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.

Posted

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!

Posted

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.

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