[Seaside] WATableReport Checkbox

Robert Sirois watchlala at hotmail.com
Fri Dec 3 17:34:12 UTC 2010


Check out what row is in the callback by exploring or using the Transcript.

You might be losing pointers to the objects somewhere in there.

RS

From: abalonpe at ulb.ac.be
Date: Fri, 3 Dec 2010 18:30:27 +0100
Subject: Re: [Seaside] WATableReport Checkbox
To: seaside at lists.squeakfoundation.org

I have a submitButton also in the form with an empty callback.I just want the button to trigger all the callbacks of the checkboxes.However it doesn't seem to work at all.
Alex



2010/12/3 Robert Sirois <watchlala at hotmail.com>






How are you submitting the data?

Either they need to be in a form, or if you're serializing via ajax, remember to use #serializeWithHidden I think it's called.

RS

From: abalonpe at ulb.ac.be


Date: Fri, 3 Dec 2010 17:02:02 +0100
Subject: Fwd: [Seaside] WATableReport + Checkbox
To: seaside at lists.squeakfoundation.org

Hi,


I have a problem with checkboxes. I'm trying to add a checkbox at each line of a table.I have tried several things(the last tries are in comments): 


addActionColumn
		columns		add:
			((WAReportColumn new)				title: '';				valueBlock: [ :row :html | 




								html span									with:[


  "checked ifTrue:[BibliList bibliCollection add: row]."									html checkbox




										value: checked;										onTrue:[BibliList bibliCollection add: row]
										onFalse:[].										"onClick: [checked := true]"                                                                                "callback:[:value | value ifTrue: [BibliList bibliCollection add: row]]"




                                                                                      ]]).
Unfortunately, nothing seems to work...when I click on the checkbox, nothing happen and my list bibliCollection (which is an OrderedCollection) is still empty.




Thx for your helpalex



_______________________________________________
seaside mailing list
seaside at lists.squeakfoundation.org
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside 		 	   		  

_______________________________________________

seaside mailing list

seaside at lists.squeakfoundation.org

http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside





_______________________________________________
seaside mailing list
seaside at lists.squeakfoundation.org
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20101203/3a0a9f20/attachment.htm


More information about the seaside mailing list