Home » Developer & Programmer » Forms » Control block : is must?
Control block : is must? [message #305620] Tue, 11 March 2008 06:59 Go to next message
D_ashish
Messages: 20
Registered: November 2007
Location: india
Junior Member
Hi All,

im newbie to forms , so please dont mind it if it sounds absurd....in my form i want to display columns of table (i.e. employee) with two button submit and search for new record and update for existing records where emp_id matches with table's emp_id.

Do i require control block for those two buttons(only for programming convention it shud) or one data block will do??

Second ques :whts difference between WHEN_MOUSE_CLICKED and WHEN_BUTTON_PRESSED trigger on those buttons??

Thanks
Ashish D
Re: Control block : is must? [message #305627 is a reply to message #305620] Tue, 11 March 2008 07:27 Go to previous messageGo to next message
akramrabaya
Messages: 41
Registered: November 2007
Member

no need to add control block fore the new buttons it is your choice ( even it is better to use this buttons separate in one block )


the diff between WHEN_MOUSE_CLICKED and WHEN_BUTTON_PRESSED that
WHEN_BUTTON_PRESSED can only work with pushh buttons but
WHEN_MOUSE_CLICKED can be used in another objects like text items


but if u are talking about push buttons there is no diff between this two triggers on push buttons



akram
Re: Control block : is must? [message #305633 is a reply to message #305627] Tue, 11 March 2008 07:37 Go to previous messageGo to next message
D_ashish
Messages: 20
Registered: November 2007
Location: india
Junior Member
Hi Akram,

Thanks for your quick reply , now as per my understanding there is nothing wrongh in having Buttons in control block but it shud avoid.

For second ques. : if we hav data in some fields then only when Button pressed works (my observation) needs bit explanation...

Thanks
Ashish D



Re: Control block : is must? [message #305650 is a reply to message #305620] Tue, 11 March 2008 08:14 Go to previous messageGo to next message
akramrabaya
Messages: 41
Registered: November 2007
Member


using WHEN_MOUSE_CLICKED and WHEN_BUTTON_PRESSED triggers is not related any way with data on your filds

example suppose you have a data block with this fileds

:block.cust_id
:block.cust_name

then u fill this data block with values like

:block.cust_id = 05002
:block.cust_name = abcdef


then u have can use the 2 options to save your date
1. u can use WHEN_MOUSE_CLICKED on base of any of this 2 fields

2. u have to create a new push button on this datablock and create a WHEN_BUTTON_PRESSED trigger on that button




akram
Re: Control block : is must? [message #305761 is a reply to message #305620] Tue, 11 March 2008 22:32 Go to previous message
D_ashish
Messages: 20
Registered: November 2007
Location: india
Junior Member
Thanx Akram.
Previous Topic: Helep needed on radia buttons
Next Topic: email from form
Goto Forum:
  


Current Time: Thu Dec 08 16:26:30 CST 2016

Total time taken to generate the page: 0.08830 seconds