Hello,
how can I put out double quote in exportfile? Every value must be wrapped by quotes - whatever the colums are empty or not. Values without white-spaces or without any odd charakters must be wrapped too.
I did try (in coustom code):
[list]add quotes in strings('"hello"' or '""'): it put out 4(!) double-quotes...
with escape-character("\"" and '\"'): I see the Charakter with 4 double quotes
in delimiter-setup of csv-export: the semicolon get the Harry-Potter-Syndrom (it appears...)
once is a workaround: If I put a whitespace on evrey value, then it gets the double quotes correctly. But this solution is - in Germany we say "eine Krücke" - impractical.
[/list]
Is there more options than I did found?
Thank
Michael
Hi frimi,
I have sent you a PM with a link to my custom CSV Export [GH] action - that will let you specify an enclosure character.
Bob
Hi frimi,
Please check the Help tab in the action - you can use it to export from data loaded into the $form->data array, and you can specify which columns to export if you need to.
Bob
I'm so sorry, but it doesn't work.
In the Help tab there are listed 2 options: Table and Data Path - but in Tab 'Data' there 3. I choose Data Path. The name is the same name like Model ID in "DB Read" and it used in custom code. And now, I see no "include" or "exclude" Columns in the Tab of Columns/Columns Detail (...any 'included' or 'excluded' entries will be ignored...) or in the other.
It behaves like as thougt he export direct from table.
only to exclude a question: the file ist installed in /administrator/components/com_chronoforms5/chronoforms/actions/csv_export_gh near csv_export and there 2 files config.php und csv_export_gh.php and got I validated files?
And/or
Does csv_export_gh and csv_export work together?
Now, I'm so helpless 😉
Michael
Hi Michael,
Sorry, it looks as though the exclude columns was in a different version :-( You just have Include here.
Please drag a Debugger action into the On Submit event, then submit the form and post the debug - including the 'dummy emails' results here.
Bob
Hi Micahel,
Which versions of ChronoForms and Joomla! are you using? As far as I recall the note you quotes was for CFv4 where Max added one of my actions into an official release of ChronoForms.
Your Debugger shows no data to be exported so I am now confused.
By all means PM me the site URL, the form name, and a SuperAdmin login and I'll take a quick look.
Bob
I use CF5 and Joomla 3.5.1
I sent you a PM
Hi frimi,
The form appears to be working correctly with either action, when you open it a CSV file is created immediately and downloaded. With the standard action the tab closes after the from is downloaded - but the file is OK.
I still don't know how you need this to work/
Bob
Hi Bob,
in my first posting I did explain what I want: a double quote for evrey field like e.g. "2016";"Hallo";"","" and so.
In additional, the first row with columntitles must be removed.
another point is the difference between both actions: The standard action, also without "gh" works good with my selected model, respectively custom code. But it seems that the gh-action doesn't work with my custom code and I don't know why. But I need my model with the custom code because I have tables with relations. You can see it if you compare either outputs.
Also, if there no solution what else can I do but to add white space on every value in the custom code and the user must remove the first row manually...
Michael
Hi Bob,
I have helped myself with a workaround: For every field I add a white-space. I know that is not the best practice, but it works.
This doppelqoute is a request for an application, it is called "Swiss-Chess" (chess tournament manager) and is required for the player import of registered players.
If I have more time, I will deal with this issue in more detail or I'll develope an own modul
Michael