Home » Developer & Programmer » Forms » 'Select All' function in a Data Block with all Check box Item Types (Forms [32 Bit] Version 6.0.5.0.2 (Production), Windows XP)
'Select All' function in a Data Block with all Check box Item Types [message #472128] Thu, 19 August 2010 00:21 Go to next message
orakam1808
Messages: 7
Registered: August 2010
Junior Member
I need to implement a "Select All" function in a Data Block with All the Check boxes. It's a Database data block with 10 records to be displayed at a time. Check Box Items are in default layout. The requirement is when user checks/un-checks that select all check box which is placed on the left hand side of the other check boxes, it should select/deselect all the check box database items in that particular record.

Regards,
Kam
Re: 'Select All' function in a Data Block with all Check box Item Types [message #472160 is a reply to message #472128] Thu, 19 August 2010 02:27 Go to previous messageGo to next message
cookiemonster
Messages: 13938
Registered: September 2008
Location: Rainy Manchester
Senior Member
There's no built-in to do that. You'll have to code it manually.
Re: 'Select All' function in a Data Block with all Check box Item Types [message #472163 is a reply to message #472160] Thu, 19 August 2010 03:12 Go to previous messageGo to next message
orakam1808
Messages: 7
Registered: August 2010
Junior Member
Thanks for your response cookiemonster.

We can implement this functionality using loop when we need to check/uncheck all instances of a particular item in a data block but here, the requirement is to check/uncheck all the items(all check boxes) of a particular record by just one click.

kam
Re: 'Select All' function in a Data Block with all Check box Item Types [message #472170 is a reply to message #472163] Thu, 19 August 2010 03:39 Go to previous messageGo to next message
cookiemonster
Messages: 13938
Registered: September 2008
Location: Rainy Manchester
Senior Member
I realised that.
Write code that checks/unchecks each one.
Re: 'Select All' function in a Data Block with all Check box Item Types [message #472191 is a reply to message #472170] Thu, 19 August 2010 04:27 Go to previous messageGo to next message
orakam1808
Messages: 7
Registered: August 2010
Junior Member
I have spent good amount of time figuring out about its solution but couldn't get any clue. Please suggest how this will be done. Any Hints would be much appreciated.
Re: 'Select All' function in a Data Block with all Check box Item Types [message #472197 is a reply to message #472191] Thu, 19 August 2010 04:37 Go to previous messageGo to next message
cookiemonster
Messages: 13938
Registered: September 2008
Location: Rainy Manchester
Senior Member
BEGIN

:checkbox1 := 'Y';
:checkbox2 := 'Y';
:checkbox3 := 'Y';
.........
END;


You're looking for a clever way to do it - there isn't one.
Re: 'Select All' function in a Data Block with all Check box Item Types [message #472326 is a reply to message #472197] Thu, 19 August 2010 22:58 Go to previous messageGo to next message
orakam1808
Messages: 7
Registered: August 2010
Junior Member
:)but my friend, won't this make all the instances of a checkbox item say checkbox1 in the block checked (from top to bottom). Again, I want to check/uncheck all the the checkbox items of One Record (only one instance of all the checkbox items in that record should be marked check/uncheck.

Hope, I am able to make my point clearer this time.

kam
Re: 'Select All' function in a Data Block with all Check box Item Types [message #472328 is a reply to message #472326] Thu, 19 August 2010 23:22 Go to previous message
orakam1808
Messages: 7
Registered: August 2010
Junior Member
cookiemonster,
No, this won't make all the instances of a checkbox item in the block, checked. I have got it working the way it should be and the way you're thinking. thanks a lot for all of your time.

kam
Previous Topic: one problem about extensible optimizer
Next Topic: Populating form with calculated values
Goto Forum:
  


Current Time: Thu Sep 19 11:25:29 CDT 2024