Forums

chronoform4 e chronoconnectivity4- print single record

artcode 22 Mar, 2014
Hi there,
I realize some forms in chronoforms4 e make same listing record in chronoconnectivity 4, they complete a webapplication
with some useful function.

When I use the form linked to joomla menu in chronoforms I could print the result use a "Show Thanks Message" and I could paginate the result of the various form for print.

But when i make the Edit of the single record from list in chronoconnectivity, the "Show Thanks Message"is not call after the submit, because the edit return by default to the page of the list.

I'like some hints to have the possibilities to print from a single record I analize the possibilities but i couldn't find an ideal solution.

1- could I insert a button in the form that launch a print event?

2- I try to make "toolbar button" but how to pass the data to my html template?
I am able to make a button in the toolbar than select the record that call a dedicated event-action in the form,
but this solution function only in admin section, and the data of the record didn't pass.

Probably I have to change how the html template receive the data from the form.
If I use javascript how to refer to the value of the fields?

3- Could I link the complete chronoforms from edit the single record with a link in every row?

Thanks in advance for any answers, or other solution or suggestion.
bye

fede
GreyHead 23 Mar, 2014
Hi fede,

The simplest way to do this is to use a Custom listing and add a Print button/link to each row. That can link to a Custom ChronForms event that included a Print button (there's a FAQ on that part).

Bob
artcode 24 Mar, 2014
Thanks for your answer🙂

I have the print format in the div as "Show Thanks Message" with reference to field as {name_of_}, at this point i suspect
it couldn't be the correct format to receive the data without include the action in a Submit event .

I use the custom listing rarely, do you have same little hint to construct the print button in the list?

I use the Unique ID to refer to record in the list, it's sufficient have the id and the print link in the row.

It's a pity i couldn't use the auto listing that has many functions more, do yoy think it's not possible to make a print link here?

thanks.

bye
fede
GreyHead 24 Mar, 2014
Hi fede,

It may be possible to create a print link in the standard listing but I'm afraid that I don't know how to do that.

Bob
artcode 24 Mar, 2014
thanks for you answer,

Could you point to some hints to make a button in the custom listing?

bye
fede
GreyHead 24 Mar, 2014
Hi fede,

Just add the HTML that is needed, there's nothing special about it. You can use the {data_name} syntax to add an identifier to the URL.

Bob
artcode 25 Mar, 2014
Hi there,
Thanks for your answer bob, I resolve my first part of trouble to retain the auto listing in CC4 remain the data passage in the
html format.

A-after some ours of trials and errors I was able to create a link in CC4 list auto.
I write the solution (the first act of my trouble.....)🙂 could be useful for others users:

1- I create two new field to the CF4 form used in CC4 call "rec" and "inv" with a fixed content rec and inv
2- I create a Linkable Fields first in "Admin List Setting" (CC4) with this sintax:
name_of_field_to_link:name_of_event&cb={my_primary_key}
as in "real" example:
rec:receipt&cn{cf_id}

3- finally I have my link correctly structured (I hope so..... se you later...) to refer to the record
In fact the url when I use the "brand" new link appears at the end with the identifiers of the record:

index.php?option=com_chronoconnectivity&chronoconnection=name_of_the_form&task=receipt&ch=number_of record

as in "real":
index.php?option=com_chronoconnectivity&chronoconnection=enter-confirm&task=receipt&ch=5


for record "5" of course🙂

Finish of the first act this part is now ok.

B- second act : where is the data of the record?

I create a "show thanks page" action in the target event in html with {name_of_the_field} tag to capture the value of the field
the page show perfect but i couldn't see no data inside.

Now that the url finally pass the reference to the record what is the sintax to refer at the value of field in the record selected?

or I've to use a different kind of action to refer to data? like a custom code for example?

Thanks

bye
fede
artcode 25 Mar, 2014
I pass the first step a little hint more and I could pass the second......

:)

thanks
fede
artcode 26 Mar, 2014
errata:

all the call at the code in the precedent post are: "&cb="

then:

rec:receipt&cb{cf_id}

and
index.php?
option=com_chronoconnectivity&chronoconnection=name_of_the_form&task=receipt&ch=number_of record

as
index.php?
option=com_chronoconnectivity&chronoconnection=name_of_the_form&task=receipt&cb=number_of record


then
index.php?option=com_chronoconnectivity&chronoconnection=enter-confirm&task=receipt&ch=5

as
index.php?option=com_chronoconnectivity&chronoconnection=enter-confirm&task=receipt&cb=5


bye
fede
artcode 26 Mar, 2014
Answer
At the end I find the way to pass the data, and I finish my application with the functions that I've planned.
as a reference to pass the data the sintax of the code you have to use in the target action in CC4 is different sa CF4.

To find the correct sintax i check the debugger that pass the array.

The correct sintax as a reference for others users is (when a point the action drom CC4 with linkable fields) is:
{connection_data.0.field_name}

when I changed all the reference of the field in the code of my target action all the data arrive in my html format.

bye
fede
marcinwolejko 11 Aug, 2014
Hi fede.
That was a great piece of work you did.
I followed your instructions but I got stuck on the last step.

Where do you change the syntax to {connection_data.0.field_name}? In chronoforms or CC?
I still cannot get to see the data.
Please advice🙂
This topic is locked and no more replies can be posted.