Sackgesicht VIP
Total posts: 1,636
09 Июнь 2016 03:01

After the "Parsing" in Step 1, the user needs to click "Next". This should be automated and without clicking the "Next" button, the user should be redirected to Step 2

Последние изменения: 17 Июнь 2016

Метки Cobalt 9


Sackgesicht VIP
Total posts: 1,636
09 Июнь 2016 10:07

or better ... providing some statistics after "parsing" ... like how many rows, possible problems etc.

Then the user can fix the CSV first before importing into Cobalt starts.


Sergey
Total posts: 13,748
12 Июнь 2016 10:39

That is good idea. Both ideas.


Sackgesicht VIP
Total posts: 1,636
12 Июнь 2016 10:57

something like this

delimiter detection, additional info about line endings, number of records etc

User will see the file statistics and decide to continue before importing the records. Then there can be a "fast import mode" where the user trusts the import file and the "import settings" were selected in parameters so that step 2 will not be needed and the script will import after uploading the csv/json file without user intervention.


Sackgesicht VIP
Total posts: 1,636
13 Июнь 2016 08:38

STEP 2 can immediatly go to profile creation if no profile is created yet.


Sackgesicht VIP
Total posts: 1,636
14 Июнь 2016 04:08

Import Step 1 improvement

Instructions should be a parameter. Important that it will consider different types. Maybe it should be a TYPE parameter/group, which will allow html for the description/instruction. The same for Step 2.

2016-06-14_12-02-16


Sackgesicht VIP
Total posts: 1,636
14 Июнь 2016 07:54

Example extension of TYPE parameter:

type.xml

    <fields name="import">
        <fieldset name="import" label="FS_PARAMETERS">
            <field label="CQUICKIMPORT" class="btn-group" name="quick_import" type="radio" default="0">
                <option value="0">CNO</option>
                <option value="1">CYES</option>
            </field>
            <field name="import_step1" type="textarea" label="CIMPORTSTEP1" rows="5" cols="60" />
            <field name="import_step2" type="textarea" label="CIMPORTSTEP2" rows="5" cols="60" />
        </fieldset>
    </fields>

maybe there is a better type than "textedit" .. html or a type which displays the content in an editor. CQUICKIMPORT can be something like "Quick Import" which will immediately import records into an existing import setting. The admin can create first an import setting, then switch to quickimport in type settings to streamline the process.

views/type/tmpl/edit.php

        <div class="tab-pane" id="page-import">
            <div class="pull-left" style="max-width: 600px; margin-right: 20px;">
                <?php echo MEFormHelper::renderGroup($this->params_form, $this->item->params, 'import'); ?>
            </div>
        </div>

2016-06-14_16-00-25


Sergey
Total posts: 13,748
17 Июнь 2016 15:36

Those are awesome ideas. Thanks that you keep them posting. You know that this is not something I'll do first, but it is defenetely great that I have this already.

Работает на Cobalt