Re: cfgrid / cfgirdcolumn selectmode="edit" checkbox

2008-04-23 Thread Rob Parkhill
Good Evening,

This is a problem that I had some time ago.  I wanted to have a check all
box to for the check boxes in the cfgrid, and I had to create a
cfsavecontent to do that.  IF you want that info, let me know.  As for
updating only the selected rows in a grid based on the check box, I use the
following:



** the array that i am getting the length from comes from the grid

 
if you just dump your Form.gridname.rowstatus.action, you will see the ones
that have been updated.  This is all handled by CF.  Technically I don't
think the check box actually matters, more that you have 'changed' that
row.  My meaning is that if you have a comment field that is editable,
someone can just change that and not touch the check box, and that row will
still be updated.  I probably need another check to see if the checkbox,
called checked has a value or not for the row where the status is U (meaning
update)

I then nest the Update queries inside the if structure, and my database has
all the desired results.  This took me a few days to figure out. :)

Hope that this directs you a little...

Rob

On Wed, Apr 23, 2008 at 8:52 PM, shakti misra <[EMAIL PROTECTED]>
wrote:

> i'm dealing with the same problem mate, ive got a cfgrid type java applet
> and select mode single, coz i use href attribute for some columns, but i
> can't then edit the checkboxes, they r not clickable. if i change the select
> mode to edit, the checkboxes work but the hrefkey then becomes the value of
> the whole row and i can't use it in the next page. plz help me out with
> this...
>
> what i would love to know is how to get both the checkbox selectability
> and the href attribute working in the same cfgrid??
>
> thanks
>
>
>
> > Ok. so ive made some headway. Apparently, the functionality I was
> > looking for was CFGRIDUPDATE. Now Im able to manipulate the values for
> > the checked box to true or false in the table for each specific ID
> > selected. My question now is there functionality to update session
> > variables as opposed to table rows with CFGRIDUPDATE?
>
>
> 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:304123
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cfgrid / cfgirdcolumn selectmode="edit" checkbox

2008-04-23 Thread shakti misra
i'm dealing with the same problem mate, ive got a cfgrid type java applet and 
select mode single, coz i use href attribute for some columns, but i can't then 
edit the checkboxes, they r not clickable. if i change the select mode to edit, 
the checkboxes work but the hrefkey then becomes the value of the whole row and 
i can't use it in the next page. plz help me out with this...

what i would love to know is how to get both the checkbox selectability and the 
href attribute working in the same cfgrid??

thanks



> Ok. so ive made some headway. Apparently, the functionality I was 
> looking for was CFGRIDUPDATE. Now Im able to manipulate the values for 
> the checked box to true or false in the table for each specific ID 
> selected. My question now is there functionality to update session 
> variables as opposed to table rows with CFGRIDUPDATE? 


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:304118
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: cfgrid / cfgirdcolumn selectmode="edit" checkbox

2008-04-09 Thread LSD 4Me
Ok. so ive made some headway. Apparently, the functionality I was looking for 
was CFGRIDUPDATE. Now Im able to manipulate the values for the checked box to 
true or false in the table for each specific ID selected. My question now is 
there functionality to update session variables as opposed to table rows with 
CFGRIDUPDATE? 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303042
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: cfgrid / cfgirdcolumn selectmode="edit" checkbox

2008-04-09 Thread LSD 4Me
Im not using ExtJSim using flash cfgrids that automatically create the JS. 
Are there coldfusion methods to deal with my issue or is advanced JS the only 
way? I find it diffuclt to believe the CF doesnt offer any method of 
manipulating data from cfgrids. (Dont take that the wrong way...i do appreciate 
any help you can offer.) THANKS! 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303032
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cfgrid / cfgirdcolumn selectmode="edit" checkbox

2008-04-09 Thread Cutter (CFRelated)
If you read through the ExtJS 1.1 documentation you will see that you 
can apply a RowSelectionModel to a grid. I'm pretty sure you can use 
this to define single or multi selection, to which you can act upon the 
selected (DataStore) records, etc.


Steve "Cutter" Blades
Adobe Certified Professional
Advanced Macromedia ColdFusion MX 7 Developer
_
http://blog.cutterscrossing.com

LSD 4Me wrote:
> I want to reiterate that Im not looking for a free snipet of code...I am 
> merely looking for how to work with the data that is selected via checkbox in 
> a cfgrid. 
> 
> How would i pass the selected information (probably based on the uniquie ID 
> in the table) to another page or directly into the DB? 
> 
> 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303029
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cfgrid / cfgirdcolumn selectmode="edit" checkbox

2008-04-09 Thread LSD 4Me
I want to reiterate that Im not looking for a free snipet of code...I am merely 
looking for how to work with the data that is selected via checkbox in a 
cfgrid. 

How would i pass the selected information (probably based on the uniquie ID in 
the table) to another page or directly into the DB? 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303022
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


cfgrid / cfgirdcolumn selectmode="edit" checkbox

2008-04-08 Thread LSD 4Me
To give a breif background, I have a flash form that serves as a search form 
against a MySQL DB and grid below that for displaying results. I have enabled 
the "selectmode="edit"" on the cffgrid and have set select="no" to all 
cfgridcolumns except for one column:



ALl of this results in a grid that displays data and on the very left is a 
column of checkable checkboxes...(which took some time to tweak as 
well..;)...What I want is for any row that contain a checkbox, that when it is 
checked, all of the row data is available to POST to the DB or to an action 
page. If i do a "cfif IsDefined("FORM.checked")" i should be able to work with 
these selections??? How would i go about capturing the checked rows and making 
that data available elsewhere? THanks! 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:302995
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4