with CFV5 I need to update a single field (changing status 1/0) leaving unchanged the other.
can i apply the same technique di CCV5 http://www.chronoengine.com/faqs/72-ccv5/5206-more-listing-settings.html to change status to a field using CFV5?
thanks in advance
can i apply the same technique di CCV5 http://www.chronoengine.com/faqs/72-ccv5/5206-more-listing-settings.html to change status to a field using CFV5?
thanks in advance
Hi cornelio,
It should be simpler than that. What is the name of the column you want to update? and How do you know which record it is?
Bob
It should be simpler than that. What is the name of the column you want to update? and How do you know which record it is?
Bob
Hi, Bob.
of course I have already recovered the ID of the record and then I wanted to know without rewriting the query manually if you can act on Update Conditions on DBsave form
Cornelio
of course I have already recovered the ID of the record and then I wanted to know without rewriting the query manually if you can act on Update Conditions on DBsave form
Cornelio
Hi cornelio,
You can copy the status value to a sub-array of the $form->data array to separate it out. Use a Custom Code action like this:
Bob
You can copy the status value to a sub-array of the $form->data array to separate it out. Use a Custom Code action like this:
<?php
$form->data['model_id']['status'] = $form->data['status'];
?>
then set the DB Save to use model_id as the Model ID and set the Conditions box to update the record ID you have.
Bob
This topic is locked and no more replies can be posted.