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

Custom Dialog question


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

Recommended Posts

I am writing a script to allow Employees to print out their worksheet for a given day. We are supposed to do this every day, but inevitably people will have forgotten and want to print out yesterday's or one from last week.

The script moves the user into a layout called 'Timesheet' based on a table called 'Timetracker'. It enters Find mode, successfully pastes the user name into the Name field. Then I want to display a dialog which prompts the user for a date. I'd like it to display today's date as a default.

I created a field (within the Timetracker table) to hold this date, and made it a global. The script inserts today's date into this field, then shows the custom dialog. BUT the date is not visible in the field in the dialog (the field shows as empty). And when I click on 'OK' nothing happens, whether I type a date in the input field or leave it blank. The dialog just stays there.

I'm in over my head and probably missing something, or it may be a combination of things. Does anyone recognise this behaviour and feel they can point me in the right direction?

Thanks as always,

Emma

Link to comment
Share on other sites

The script inserts today's date into this field, then shows the custom dialog.

The script inserts today's date into this field

THEN

Committ Record/Request

THEN

enters Find mode

do the search

shows the custom dialog with input gDate

print

Link to comment
Share on other sites

Isn't it great how after a break you see it all more clearly? No, I wasn't in find mode. But I was displaying the wrong field - it was one created by the original designer, which had the right sort of name, but I forgot I'd created a new one in case his was doing something important elsewhere! Now it all works great.

Sorry to have wasted your time....

Link to comment
Share on other sites

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