Hi,
I have Chronoconnectivity 4.0 RC3.3 with Chronoforms 4.0 and I'm trying to create a CC Toolbar button that will download a CSV of the table I'm viewing. The table listing is working OK, as are the standard _ADD_,_DELETE_, and _EDIT_, but I don't understand how to create an 'event' as per the forum suggestions - or where.
The forum posts I've found are just too cryptic and suggest referencing an 'event' in a form. Do I need to create a separate form with a Download CSV action? How do I reference it?
My current Toolbar Tasks field is:
_DELETE_:Remove:1,_ADD_:New,_EDIT_:Edit, downloadall: Download All
How do I connect downloadall to an action that will download the table?
Many thanks for your help.
Justin
I have Chronoconnectivity 4.0 RC3.3 with Chronoforms 4.0 and I'm trying to create a CC Toolbar button that will download a CSV of the table I'm viewing. The table listing is working OK, as are the standard _ADD_,_DELETE_, and _EDIT_, but I don't understand how to create an 'event' as per the forum suggestions - or where.
The forum posts I've found are just too cryptic and suggest referencing an 'event' in a form. Do I need to create a separate form with a Download CSV action? How do I reference it?
My current Toolbar Tasks field is:
_DELETE_:Remove:1,_ADD_:New,_EDIT_:Edit, downloadall: Download All
How do I connect downloadall to an action that will download the table?
Many thanks for your help.
Justin
Hi Justin,
Please remove the space before "downloadall", then add "downloadall" to the custom actions list, then create a new event in your form and name it "downloadall", in this event you can run the csv export action, in order to download all records you can simply run a "db multi record loader" before the csv export!
Regards,
Max
Please remove the space before "downloadall", then add "downloadall" to the custom actions list, then create a new event in your form and name it "downloadall", in this event you can run the csv export action, in order to download all records you can simply run a "db multi record loader" before the csv export!
Regards,
Max
Thanks very much for the reply, Max.
However, I still don't understand! My CC connection does an auto listing of the table and I'm trying to manage the ToolBar Settings under FrontEnd Listing (set to 'Auto Listing').
DONE
WHICH custom actions list? Where?
Bearing in mind that I'd just been using Chronoconnectivity for this table download task so far (no forms yet), I have now created a new form (called 'csvDownload') whose sole job is to initiate this CSV download and I've named the event in that form which contains the CSV Download action 'downloadall'. The OnLoad and OnSubmit events are just blank green (in the Wizard) and the downloadall event is listed last.
The CSV Download action has a Table link of its own, which seems to work. Do I need the db multi record loader as well?
When I press the Download All button I have created (BTW, any way to remove the icon space or put in an icon?) It submits something and returns a blank content space with just 'Powered by Chronoconnectivity' (this is my dev server, live is fully paid for!).
What should happen is that I get the CSV of the table and I'm returned to the listing page.
Hope that explanation gives you a better picture. I'm sure it's not difficult, I just need some clarification on what to do where.
Many thanks again.
Justin
However, I still don't understand! My CC connection does an auto listing of the table and I'm trying to manage the ToolBar Settings under FrontEnd Listing (set to 'Auto Listing').
Please remove the space before "downloadall"
DONE
then add "downloadall" to the custom actions list
WHICH custom actions list? Where?
then create a new event in your form and name it "downloadall"
Bearing in mind that I'd just been using Chronoconnectivity for this table download task so far (no forms yet), I have now created a new form (called 'csvDownload') whose sole job is to initiate this CSV download and I've named the event in that form which contains the CSV Download action 'downloadall'. The OnLoad and OnSubmit events are just blank green (in the Wizard) and the downloadall event is listed last.
in this event you can run the csv export action, in order to download all records you can simply run a "db multi record loader" before the csv export!
The CSV Download action has a Table link of its own, which seems to work. Do I need the db multi record loader as well?
When I press the Download All button I have created (BTW, any way to remove the icon space or put in an icon?) It submits something and returns a blank content space with just 'Powered by Chronoconnectivity' (this is my dev server, live is fully paid for!).
What should happen is that I get the CSV of the table and I'm returned to the listing page.
Hope that explanation gives you a better picture. I'm sure it's not difficult, I just need some clarification on what to do where.
Many thanks again.
Justin
Hi Justin,
Ok good, please tr yto get the csv download to work through Chronoforms only first, just access the "downloadall" event link directly through your browser using this:
form_link&event=downloadall
Your CSV config is fine, you don't need an extra "db multi loader" action.
once you get the download working through Chronoforms, you can simply link to it from the connection or using a toolbar button (which can't have an icon easily, but you can style it using css maybe).
Regards,
Max
Ok good, please tr yto get the csv download to work through Chronoforms only first, just access the "downloadall" event link directly through your browser using this:
form_link&event=downloadall
Your CSV config is fine, you don't need an extra "db multi loader" action.
once you get the download working through Chronoforms, you can simply link to it from the connection or using a toolbar button (which can't have an icon easily, but you can style it using css maybe).
Regards,
Max
Hi Max, I have to thank you again for your work on CC and CF, which are fantastic tools! Can I also add a little feedback? Your answers are pretty cryptic for a beginner and it's taking me ages to figure out what you mean. If you could add a bit of detail and an example, it would be hugely helpful and would probably avoid me having to keep coming back to you!
The good news is that I now have a form which downloads the records file using the csvDownload action and saves it appropriately. However, I still can not understand the syntax for the CC Toolbar buttons.
Form name: csvDownload
Event name: downloadall
(I pressed the + Add Event button at the bottom of the wizard and put 'downloadall' in the Event Name box.)
I can link to it at
/download
OR
index.php?csvDownload&event=downloadall
I see from this thread that someone else had the same problem: http://www.chronoengine.com/forums/index.php?option=com_chronoforums&cont=posts&f=12&t=68282&p=316980#p316980
and you say
Yet there is no 'Custom Data tasks' on any tabs of the CC or the CF, that I can see. It's not clear if he solved his problem as the thread ends there.
I realise that you're probably extremely busy and I hate to impose, but could you answer my outstanding questions:
+ what is the syntax for linking to that page from the toolbar button? (If possible, can you provide an example using my names above?)
+ what is the Custom Data tasks you refer to and where do I find it (exactly!)?
Many thanks,
Justin
The good news is that I now have a form which downloads the records file using the csvDownload action and saves it appropriately. However, I still can not understand the syntax for the CC Toolbar buttons.
Form name: csvDownload
Event name: downloadall
(I pressed the + Add Event button at the bottom of the wizard and put 'downloadall' in the Event Name box.)
I can link to it at
/download
OR
index.php?csvDownload&event=downloadall
I see from this thread that someone else had the same problem: http://www.chronoengine.com/forums/index.php?option=com_chronoforums&cont=posts&f=12&t=68282&p=316980#p316980
and you say
I forgot to mention that you should set the custom event name in your CC, its the "Custom Data tasks" setting.
Yet there is no 'Custom Data tasks' on any tabs of the CC or the CF, that I can see. It's not clear if he solved his problem as the thread ends there.
I realise that you're probably extremely busy and I hate to impose, but could you answer my outstanding questions:
+ what is the syntax for linking to that page from the toolbar button? (If possible, can you provide an example using my names above?)
+ what is the Custom Data tasks you refer to and where do I find it (exactly!)?
Many thanks,
Justin
Thanks very much Sloan. I worried that I'd missed it after looking at it for so long, but in my defence, the tabs keep moving around when I click on them (something wrong w/ CSS maybe, not too much Scotch)!
So now I'm beginning to understand why there's a problem - my event is in another form. I use ONE form for editing the records, but I don't want to download records when they're edited - so I put the downloadall event in another, dedicated form. That form does nothing but download the records and as I said, works fine when access with the URLs above.
How can I access the downloadall event in another form with that toolbar button?
A) is there a way to put the event in the edit form so that it *only* executes when I call it from the button (and NOT when the form is submitted to save the edits) OR
B) Or can I refer to the URLs of that dedicated downloadall event form from the toolbar button (this would be useful to know in future anyway)?
Thanks very much for sharing your hard-won knowledge.
Justin
So now I'm beginning to understand why there's a problem - my event is in another form. I use ONE form for editing the records, but I don't want to download records when they're edited - so I put the downloadall event in another, dedicated form. That form does nothing but download the records and as I said, works fine when access with the URLs above.
How can I access the downloadall event in another form with that toolbar button?
A) is there a way to put the event in the edit form so that it *only* executes when I call it from the button (and NOT when the form is submitted to save the edits) OR
B) Or can I refer to the URLs of that dedicated downloadall event form from the toolbar button (this would be useful to know in future anyway)?
Thanks very much for sharing your hard-won knowledge.
Justin
This topic is locked and no more replies can be posted.
