Hi,
I am using CCV4-3.2 and CFV4-3.5.
I have a list of rows made of three JOINs, all tables having model names.
I added a new column in List View Fields "...,Flag:Flag,..."
In Linkable Fields added "Flag:setFlag" and nothing more.
On the front form I added an event "setFlag" in which added two actions "Custom Code" and "Redirect User".
The main code of "Custom Code is SQL query like that:
My problem is there is no $form->data structure inside front form event available.
If I set the value for static id number query works great so the rest of the code is OK.
What is the way to get the parent row values in the front form event?
You guys helped me so many times so I believe the answer is coming shortly.
Regards
Henryk
I am using CCV4-3.2 and CFV4-3.5.
I have a list of rows made of three JOINs, all tables having model names.
I added a new column in List View Fields "...,Flag:Flag,..."
In Linkable Fields added "Flag:setFlag" and nothing more.
On the front form I added an event "setFlag" in which added two actions "Custom Code" and "Redirect User".
The main code of "Custom Code is SQL query like that:
$query = "UPDATE exampletable SET flag=1 WHERE cf_user_id = ".$form->data['slu']['cf_user_id'];
My problem is there is no $form->data structure inside front form event available.
If I set the value for static id number query works great so the rest of the code is OK.
What is the way to get the parent row values in the front form event?
You guys helped me so many times so I believe the answer is coming shortly.
Regards
Henryk