Home » Developer & Programmer » Forms » Push button disables property.
Push button disables property. [message #118999] Tue, 10 May 2005 03:27 Go to next message
weekend79
Messages: 198
Registered: April 2005
Location: Islamabad
Senior Member



Problem
I want my push button to work only one.
I want it to disable automatically after 1st execution.

Details
I have a daily attendance tabular form.
A push button execute query and populate the form but this push button remain enable after populating the attendance form. I want it become disable automatically after 1st execution.

Wishes
Jawad
Re: Push button disables property. [message #119009 is a reply to message #118999] Tue, 10 May 2005 05:04 Go to previous messageGo to next message
subba lakshmi
Messages: 36
Registered: March 2005
Member
take a parameter initiate it with 0.
if 0 then populate the details and set it to 1 immediately after populating.
in button pressed if parameter value is 1 then put control on some other item using go_item and set the button property as
set_item_property('block.buttonname',enabled,property_false).

from
subba lakshmi
Re: Push button disables property. [message #119158 is a reply to message #118999] Tue, 10 May 2005 20:09 Go to previous message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
In your when-new-form-instance trigger perhaps you should do an execute_query instead of worrying about the button. Also frees your user from having to press the button.

David
Previous Topic: Seeded menu-bar Template.FMB
Next Topic: Update
Goto Forum:
  


Current Time: Thu Sep 19 16:21:11 CDT 2024