paul74
Posts: 9
|
| Posted: 01/05/2009, 1:30 AM |
|
hello,
on Gridsite, one Recordsite. The RecordFrom gets the id from the Grid, but i don't want to Update the Record, i would like to Insert this one into the same table.
So i leave the hidden ID-Field blank in before show, but if i change the update button to action INsert the button is not shown anymore.
has anyone a solution?
Thank you!
|
 |
 |
ckroon
Posts: 869
|
| Posted: 01/05/2009, 2:43 AM |
|
on the records properties (data) tab.. make sure that it says: Allow Insert = Yes
_________________
Walter Kempees...you are dearly missed. |
 |
 |
paul74
Posts: 9
|
| Posted: 01/05/2009, 3:02 AM |
|
it is....
|
 |
 |
damian
Posts: 838
|
| Posted: 01/05/2009, 3:45 AM |
|
that wont work without some more fiddling I think...
one way might be to not pass the id in the url, but pass all the other paramters to a new recordgrid (with Insert and not Update) and then use CCGetParam to get the values from the url
_________________
if you found this post useful take the time to help someone else.... :)
|
 |
 |
paul74
Posts: 9
|
| Posted: 01/05/2009, 5:01 AM |
|
is with upload and textareas, with get i might get a problem with more text...
i wonder, where codecharge save the id for update, i have no hidden field, but ccs makes the update in the correct form.
i try to set update not allowed and make a custom update with insert...
|
 |
 |
damian
Posts: 838
|
| Posted: 01/05/2009, 1:45 PM |
|
what are you trying to do?
it sounds like you want to select an existing record and then hit submit to create a duplicate record with a new id
_________________
if you found this post useful take the time to help someone else.... :)
|
 |
 |
paul74
Posts: 9
|
| Posted: 01/06/2009, 6:18 AM |
|
yes, you're right Select the existed record, modify and save as new Record...
|
 |
 |
ReneS
Posts: 225
|
| Posted: 01/07/2009, 4:01 AM |
|
Hi,
Than just make your insert button visible and hide your update button.
Think I saw that somewhere on the forum, search for: duplicate or clone record.
Hope this helps,
Rene
|
 |
 |
|