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

Emptying global field & finding data in date field


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

Recommended Posts

Posted

Hi Everyone,

I have a global date field on a layout. I want to empty everytime the user is navigated to the layout. I tried using

set field(gDateField,"")

Since I have assigned an empty string to a date field, it always shows "?" (Question Mark) instead of emptying the field.

My first question is how can we empty a global date or a date field?

My second question is how to find records in a file which contains data in one of the date fields?

To find out records which contain some data, we use "*" in find mode. If we use * in a date field in find mode, it does not allow.

Waiting for a solution.

Thanks,

--Sanjai

Posted

First question: You are actually trying the set a null value with your script step, and that is not in a recognized date format. Try using the Clear step instead in your script to empty the field.

Second one, searching on dates can be a little tricky. When you set the search parameters it is actually looking for a date. What I normal do for this type of situation where I am looking field with dates in them is to do search where Date Field > 1/1/1900. If there is a blank date field it will be excluded from the find.

Hope this helps

Posted

Hi Walter,

Thanks for your solution. The clear field would be a good idea and also the date trick would solve my problem.

--Sanjai

Posted

To null a date field usign set Field, use TextToDate("")

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