Re: Inserting a record into CFGRID

2007-10-29 Thread Anthony Doherty
Thanks Ron i had already found this link - im gonna have to submit to the 
conclusion that you cannot insert a new record to a CFGRID when you are binding 
the results as i found the following quote on a live doc

“You cannot insert new rows directly in a grid that uses a 
bind expression. To add rows, you must enter the data in a form, and make sure 
the grid refreshes after the form has been submitted.”

Thanks Anyway Guys


> This may help
> 
> http://www.brucephillips.name/blog/index.
cfm/2007/8/> 
8/Updating-and-Adding-Records-Being-Displayed-In-ColdFusion-8s-cfgrid
> 
> 
> On 10/29/07, gary gilbert <[EMAIL PROTECTED]> wrote:
> >
> > Anthony,
> >
> > I am pretty sure that the insertbutton and deletebutton attributes 
> are for
> > applet only, additionally the insert attribute is for applet only, 
> which
> > means you can't insert a row into a cfgrid only update or delete.
> >
> > --
> > Gary Gilbert
> > http://www.garyrgilbert.com/blog
> >
> >
> > 


~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

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


Re: Inserting a record into CFGRID

2007-10-29 Thread Ron Gowen
This may help

http://www.brucephillips.name/blog/index.cfm/2007/8/8/Updating-and-Adding-Records-Being-Displayed-In-ColdFusion-8s-cfgrid


On 10/29/07, gary gilbert <[EMAIL PROTECTED]> wrote:
>
> Anthony,
>
> I am pretty sure that the insertbutton and deletebutton attributes are for
> applet only, additionally the insert attribute is for applet only, which
> means you can't insert a row into a cfgrid only update or delete.
>
> --
> Gary Gilbert
> http://www.garyrgilbert.com/blog
>
>
> 

~|
Check out the new features and enhancements in the
latest product release - download the "What's New PDF" now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

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


Re: Inserting a record into CFGRID

2007-10-29 Thread gary gilbert
Anthony,

I am pretty sure that the insertbutton and deletebutton attributes are for
applet only, additionally the insert attribute is for applet only, which
means you can't insert a row into a cfgrid only update or delete.

-- 
Gary Gilbert
http://www.garyrgilbert.com/blog


~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

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


Re: Inserting a record into CFGRID

2007-10-29 Thread Anthony Doherty
>Not sure, but does it need Format="Applet"?

No the problem i think has something to do with "BIND" statement - when i 
remove this the add button appears fine but i take it you can have an add 
button when you are using cfc to bind and change the data within a cfgrid 

~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648

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


Re: Inserting a record into CFGRID

2007-10-29 Thread Brian McCairn
Not sure, but does it need Format="Applet"? 

~|
Check out the new features and enhancements in the
latest product release - download the "What's New PDF" now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

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


Re: Inserting a record into CFGRID

2007-10-29 Thread Brian McCairn
Not sure but does format need to be Applet
- Original Message - 
From: "Anthony Doherty" <[EMAIL PROTECTED]>
To: "CF-Talk" 
Sent: Monday, October 29, 2007 11:44 AM
Subject: Inserting a record into CFGRID


> Im trying to insert a record into my employees table in coldfusion but i 
> have the update working fine and the delete is also working fine, however 
> i have added the tags insert and insertbutton but they wont display on my 
> grid.
>
> I have posted my grids code below if someone could help that would be 
> great
>
> Thanks
>
>
>  stripeRows=true stripeRowColor="brown"
> bind="cfc:employeeService.getData({cfgridpage},{cfgridpagesize},
> {cfgridsortcolumn},{cfgridsortdirection})"
>  selectmode="edit" insert="yes" insertbutton="add" delete="yes" 
> deletebutton="remove record"
> onchange="cfc:employeeService.editData({cfgridaction},{cfgridrow},{cfgridchanged})">
>
> 
> 
> 
>  values="Manager, Development, Engineer"/>
>
>
> 
>
> 

~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

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


Inserting a record into CFGRID

2007-10-29 Thread Anthony Doherty
Im trying to insert a record into my employees table in coldfusion but i have 
the update working fine and the delete is also working fine, however i have 
added the tags insert and insertbutton but they wont display on my grid.

I have posted my grids code below if someone could help that would be great

Thanks










 

~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

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