Normal Topic Odd check box behavior (Read 792 times)
Infinity
Senior Member
Members
*****
Offline


Diagonally parked in a
parallel dimension

Posts: 1290
Location: Massachusetts
Joined: May 27th, 2005
Odd check box behavior
Apr 20th, 2007 at 4:28pm
Print Post Print Post  
I finally got a Sesame database on several user's desktops and it is in active use.  YAY ME!  It's our personnel database.

On its one-and-only form there is a tab with two check boxes, one for "Medical on file?" and one for "Violation record on file?" (these are personnel records for our truck drivers).

Some of the records have one or both of these checked, some do not.  When I do a retrieve (of any kind) and move through the records using the navigation bar at the top of the screen, the checks that are present show up just fine.

However, when I move through the records using a command button I have placed on my form, the boxes with checks in them do not show the checks until I hover over the check box.  Then they magically appear.

The code for my command button is as follows.  Any ides on what might be happening?
Code
Select All
Save_Continue :: On Element Entry

// Saves the record and moves to the next

var NextRecord as int


IF @IsBlank(LASTNAME)   // Prevents saving of records with no Last Name
Then
	{
	NotifyForm(1)
	@MsgBox("Employee Name cannot be blank.","Please enter required data.","")
	ThrowFocus(LASTNAME)
	}

Else IF @IsBlank(FIRSTNAME)    // Prevents saving of records with no First Name
THEN
	{
	NotifyForm(1)
	@MsgBox("Employee name cannot be blank.","Please enter required data.","")
	ThrowFocus(FIRSTNAME)
	}


ELSE If @Mode() = 1
// Saves and advances in Update mode, Prevents entering Extended Mode from Search-Update
THEN
	{
	IF @ResultSetCurrentPosition() = @ResultSetTotal()
	THEN
		{
		NotifyForm(2)
		}
	ELSE
		{
		NotifyForm(0)
		NextRecord = @selecttreeitem("Search Update Menu!Navigation!Advance Record (F10)")
		}
	}


ELSE  If @Mode() = 0
// Saves and advances in Add mode
THEN
	{
	NotifyForm(0)
	NextRecord = @selecttreeitem("Add data menu!Navigation!Advance Record (F10)")
	}
 

  

**
Captain Infinity
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: Odd check box behavior
Reply #1 - Apr 20th, 2007 at 4:46pm
Print Post Print Post  
Hello Scott,

Try adding a ForceRedraw() at the end of the command buttons code.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
Infinity
Senior Member
Members
*****
Offline


Diagonally parked in a
parallel dimension

Posts: 1290
Location: Massachusetts
Joined: May 27th, 2005
Re: Odd check box behavior
Reply #2 - Apr 20th, 2007 at 4:52pm
Print Post Print Post  
That did the trick, thanks Ray.
  

**
Captain Infinity
Back to top
IP Logged
 
Bob_Hansen
Senior Member
Members
*****
Offline


WOW, They have the Internet
on computers now!

Posts: 1861
Location: Salem, NH
Joined: Nov 24th, 2002
Re: Odd check box behavior
Reply #3 - Apr 20th, 2007 at 9:20pm
Print Post Print Post  
Hey Scott

CONGRATULATIONS for going active with one of your Sesame databases.  Grin

I know you have been working for many months trying to make sure it was bug free and user friendly.
You finally got a ROUND TUIT and now you get a ROUND UVAPLAWS.
  



Bob Hansen
Sesame Database Manager Professional
Sensible Solutions Inc.
Salem, NH
603-898-8223
Skype ID = sensiblesolutions
Back to top
IP Logged
 
BOBSCOTT
Senior Member
Members
*****
Offline


That Darn Computer #$X#
{curse words}

Posts: 1195
Joined: Nov 22nd, 2002
Re: Odd check box behavior
Reply #4 - Apr 20th, 2007 at 10:37pm
Print Post Print Post  
Bob_Hansen wrote on Apr 20th, 2007 at 9:20pm:
Hey Scott

CONGRATULATIONS for going active with one of your Sesame databases.  Grin


Smiley Smiley Smiley Smiley We are all happy to see you making progress!
  

Team – Together Everyone Achieves More
Back to top
 
IP Logged
 
Infinity
Senior Member
Members
*****
Offline


Diagonally parked in a
parallel dimension

Posts: 1290
Location: Massachusetts
Joined: May 27th, 2005
Re: Odd check box behavior
Reply #5 - Apr 24th, 2007 at 3:13pm
Print Post Print Post  
Thanks guys!
  

**
Captain Infinity
Back to top
IP Logged