<![CDATA[ Re: Step By Step - How to import Excel data and how to show them on front end page? - My Forums]]> https://forums.modx.com/thread/?thread=86471 <![CDATA[Re: Re: Step By Step - How to import Excel data and how to show them on front end page?]]> https://forums.modx.com/thread/86471/how-to-import-excel-data-and-how-to-show-them-on-front-end-page?page=5#dis-post-562356 Quote from: Bruno17 at Jul 26, 2016, 08:41 AM
yeah, this was made for a MIGX-TV. Not for a custom-table.
Has to be a bit different for importing into a custom-table.

I know this is an older thread, but I can't find any current info on this issue. I'm trying to us an import button on a CMP using MIGX and a custom table. What do I need to change about the importCsvMigx function to get this button to work? It's important this work from the CMP, not on a resource TV. I know very little about Ext.js, unfortunately. Any help would be more than welcome.]]>
claytonk Oct 28, 2018, 06:39 PM https://forums.modx.com/thread/86471/how-to-import-excel-data-and-how-to-show-them-on-front-end-page?page=5#dis-post-562356
<![CDATA[Re: Re: Step By Step - How to import Excel data and how to show them on front end page?]]> https://forums.modx.com/thread/86471/how-to-import-excel-data-and-how-to-show-them-on-front-end-page?page=5#dis-post-562003 Quote from: slavkovl at Jan 19, 2018, 05:36 PM
Quote from: Bruno17 at Jul 26, 2016, 08:41 AM
yeah, this was made for a MIGX-TV. Not for a custom-table.
Has to be a bit different for importing into a custom-table.

Bruno17, can you give please a tip how to make it with custom-table? I need to use MIGXDB instead of TV
Same problem here.
import dont work with midxDB-TV.
Bruno17, can you help?]]>
kiselevko Oct 10, 2018, 04:20 AM https://forums.modx.com/thread/86471/how-to-import-excel-data-and-how-to-show-them-on-front-end-page?page=5#dis-post-562003
<![CDATA[Re: Re: Step By Step - How to import Excel data and how to show them on front end page?]]> https://forums.modx.com/thread/86471/how-to-import-excel-data-and-how-to-show-them-on-front-end-page?page=5#dis-post-556454 Quote from: Bruno17 at Jul 26, 2016, 08:41 AM
yeah, this was made for a MIGX-TV. Not for a custom-table.
Has to be a bit different for importing into a custom-table.

Bruno17, can you give please a tip how to make it with custom-table? I need to use MIGXDB instead of TV]]>
slavkovl Jan 19, 2018, 05:36 PM https://forums.modx.com/thread/86471/how-to-import-excel-data-and-how-to-show-them-on-front-end-page?page=5#dis-post-556454
<![CDATA[Re: Re: Step By Step - How to import Excel data and how to show them on front end page?]]> https://forums.modx.com/thread/86471/how-to-import-excel-data-and-how-to-show-them-on-front-end-page?page=5#dis-post-551617
&delimiter=`;`
]]>
Bruno17 Jun 09, 2017, 12:56 PM https://forums.modx.com/thread/86471/how-to-import-excel-data-and-how-to-show-them-on-front-end-page?page=5#dis-post-551617
<![CDATA[Re: Re: Step By Step - How to import Excel data and how to show them on front end page?]]> https://forums.modx.com/thread/86471/how-to-import-excel-data-and-how-to-show-them-on-front-end-page?page=4#dis-post-551616 Quote from: Bruno17 at Jun 09, 2017, 09:45 AM
no Fieldnames in the first row?
]]>
effect-energy Jun 09, 2017, 10:43 AM https://forums.modx.com/thread/86471/how-to-import-excel-data-and-how-to-show-them-on-front-end-page?page=4#dis-post-551616
<![CDATA[Re: Re: Step By Step - How to import Excel data and how to show them on front end page?]]> https://forums.modx.com/thread/86471/how-to-import-excel-data-and-how-to-show-them-on-front-end-page?page=4#dis-post-551614 Bruno17 Jun 09, 2017, 09:45 AM https://forums.modx.com/thread/86471/how-to-import-excel-data-and-how-to-show-them-on-front-end-page?page=4#dis-post-551614 <![CDATA[Re: Re: Step By Step - How to import Excel data and how to show them on front end page?]]> https://forums.modx.com/thread/86471/how-to-import-excel-data-and-how-to-show-them-on-front-end-page?page=4#dis-post-551613
<div><ul><li>Line1</li><li>Line2</li><li>Line3</li></ul><ul >[[+_fields]]</ul></div>

and &rowFieldTpl
<li>[[+_field]]</li>

my csv is like this:
27.08.-29.08.2017;Siegen, Gießen, Bad Hersfeld, Erfurt, Weimar, Saalfeld, Chemnitz;A45/A4
]]>
effect-energy Jun 09, 2017, 09:44 AM https://forums.modx.com/thread/86471/how-to-import-excel-data-and-how-to-show-them-on-front-end-page?page=4#dis-post-551613
<![CDATA[Re: Re: Step By Step - How to import Excel data and how to show them on front end page?]]> https://forums.modx.com/thread/86471/how-to-import-excel-data-and-how-to-show-them-on-front-end-page?page=4#dis-post-551612 Bruno17 Jun 09, 2017, 09:15 AM https://forums.modx.com/thread/86471/how-to-import-excel-data-and-how-to-show-them-on-front-end-page?page=4#dis-post-551612 <![CDATA[Re: Re: Step By Step - How to import Excel data and how to show them on front end page?]]> https://forums.modx.com/thread/86471/how-to-import-excel-data-and-how-to-show-them-on-front-end-page?page=4#dis-post-551610
I don't understand how the &tpl-thing is working. In the beginning of the snippet the rowTpl and rowFieldTpl are defined:
$rowTpl = $modx->getOption('rowTpl', $scriptProperties, '@CODE:<div><ul><li>Line1</li><li>Line2</li><li>Line3</li></ul><ul >[[+_fields]]</ul></div>');
$rowFieldTpl = $modx->getOption('rowFieldTpl', $scriptProperties, '@CODE:<li>[[+_field]]</li>');

For a better overview I like to set the tpl within the snippetcall like this:
[[getCsvFileItems? 
&file=`tourentest.csv`
&rowTpl=`csv_rowTpl`
&rowFieldTpl=`csv_rowFieldTpl`
&columnheadings=`0`
]]

Result: empty columns
...what do I wrong?

PS:I have already asked my question in the slackchannel, but afterwards I thought that it could be interesting for other users also]]>
effect-energy Jun 09, 2017, 08:59 AM https://forums.modx.com/thread/86471/how-to-import-excel-data-and-how-to-show-them-on-front-end-page?page=4#dis-post-551610
<![CDATA[Re: Re: Step By Step - How to import Excel data and how to show them on front end page?]]> https://forums.modx.com/thread/86471/how-to-import-excel-data-and-how-to-show-them-on-front-end-page?page=4#dis-post-549458 Maybe you can help me...

Please help, if it is possible to execute a script - can migx?

I have a price table - width and height of the price.
Problem for me is to add an additional table in the database by throwing just such a table for example in csv format (matrix base price)

I need to after loading the file obtained from the database results in the from of 5 tables:

id table, > width , < width , > height , < height , price
with all possible configurations ... that example:

a width of from 400 to 500 and the height of from 0 to 400 ---> price, next row
width from 600 to 700 and the height of 0 to 400 -> Price
width from 700 to 800 and the height of 0 to 400 -> Price
width from 800 to 900 and the height of 0 to 400 -> Price
width from 800 to 1000 and the height of 0 to 400 -> Price

....

width from 400 to 500 and the height from 400 to 500 -> Price
width from 500 to 600 and the height from 400 to 500 -> Price
width from 600 to 700 and the height from 400 to 500 -> Price


etc., etc., for all possible options

All width and height must be in a separate table.
I need to do with such a database export to json to format...

{
"rule": {
"condition": "AND",
"rules": [
{
"id": "width",
"field": "width",
"type": "integer",
"input": "text",
"operator": "greater",
"value": "400"
},
{
"id": "width",
"field": "width",
"type": "integer",
"input": "text",
"operator": "less_or_equal",
"value": "500"
},
{
"id": "height",
"field": "heigh",
"type": "integer",
"input": "text",
"operator": "greater",
"value": "0"
},
{
"id": "heigh",
"field": "heigh",
"type": "integer",
"input": "text",
"operator": "less_or_equal",
"value": "800"
}
]
},
"formula": "50"
}

My example table]]>
zimart Mar 16, 2017, 08:30 AM https://forums.modx.com/thread/86471/how-to-import-excel-data-and-how-to-show-them-on-front-end-page?page=4#dis-post-549458