Home » Developer & Programmer » Forms » How to call "when-button-pressed" trigger from other control's trigger? (Forms 6i)
icon5.gif  How to call "when-button-pressed" trigger from other control's trigger? [message #314199] Wed, 16 April 2008 01:17 Go to next message
brijal_j_patel
Messages: 28
Registered: May 2007
Location: Surat,India
Junior Member
Hi all,

I have "Load" Button on my form which load data (with query) as per user selection into "Final" block when user click on it.

Now I want to have other button "Delete Current Row" which will first delete some records from base table, then clear "Final" block and reload data with calling "Load" Button's when-button-pressed trigger.

Please help me out in this matter.

Brijal
Re: How to call "when-button-pressed" trigger from other control's trigger? [message #314207 is a reply to message #314199] Wed, 16 April 2008 01:30 Go to previous messageGo to next message
Littlefoot
Messages: 21823
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Move code (that is currently used for loading data) into a PROCEDURE. Call this procedure from both WHEN-BUTTON-PRESSED triggers ("Load" button and "Delete Current Row" button).
Re: How to call "when-button-pressed" trigger from other control's trigger? [message #317850 is a reply to message #314199] Sun, 04 May 2008 04:39 Go to previous message
mudabbir
Messages: 235
Registered: April 2006
Location: Kuwait
Senior Member

Try This

In the "WHEN-BUTTON-PRESSED" trigger of "Delete Current Row",write the delete statements and clear statements then add the below code

Go_item('Load');
Execute_trigger('WHEN-BUTTON-PRESSED');
Previous Topic: Lock the Records
Next Topic: how to create sql statement in form6i?
Goto Forum:
  


Current Time: Sun Feb 09 22:50:23 CST 2025