Hi all,
in an index view I have a form with 2 fileds (date and text) without submit button, but with required fields and pattern.
after this I've a table list with the rows of data and in every row I've added a taskbutton.
I'm searching how to pass the form value, with also the rowdata value to another view by clicking the taskbutton.
I've just watched the "dinamic action" example but didn't find a way to do this.
thanks for any help.
in an index view I have a form with 2 fileds (date and text) without submit button, but with required fields and pattern.
after this I've a table list with the rows of data and in every row I've added a taskbutton.
I'm searching how to pass the form value, with also the rowdata value to another view by clicking the taskbutton.
I've just watched the "dinamic action" example but didn't find a way to do this.
thanks for any help.
Hi Natalini,
In order to pass some values, they should be part of the same form element, the table view itself has a form tag around it unless you disable this option.
you can keep everything in one form and give the button a name which is related to the row, then check the button name after submit and get the values of the desired row only.
Overall this task is not straight forward.
Best regards,
Max
In order to pass some values, they should be part of the same form element, the table view itself has a form tag around it unless you disable this option.
you can keep everything in one form and give the button a name which is related to the row, then check the button name after submit and get the values of the desired row only.
Overall this task is not straight forward.
Best regards,
Max
Ok, so i put date and value on every row.. but I don't know how to
in my taskbutton URL parameter I've wrote
in the name of edit filed I've wrote
as I saw on "dinamic action".. but I'm not sure I'm going the right way.
There is any other example to study?
thanks a lot
Marco
check the button name after submit and get the values of the desired row only.
in my taskbutton URL parameter I've wrote
idx={var:list_name.row.model.id}&myval=??&mydate=???....
in the name of edit filed I've wrote
myval[{var:list_name.row.model.id}]
as I saw on "dinamic action".. but I'm not sure I'm going the right way.
There is any other example to study?
thanks a lot
Marco
Hi Marco,
What you are trying to do here is a bit complicated, it can be done but its not the easy way to do it.
Why don't you check the demo of dynamic actions and show a popup with the fields you need when the task button is clicked ? the user can then fill the popup form and send it using a button in the popup too.
Best regards,
Max
What you are trying to do here is a bit complicated, it can be done but its not the easy way to do it.
Why don't you check the demo of dynamic actions and show a popup with the fields you need when the task button is clicked ? the user can then fill the popup form and send it using a button in the popup too.
Best regards,
Max
This topic is locked and no more replies can be posted.