eLFuvo / yii2-import-wizard

Пошаговый импорт из Excel файлов с сопоставлением атрибутов модели
MIT License
5 stars 2 forks source link

Feature request #2

Open fiSCIENCES opened 1 month ago

fiSCIENCES commented 1 month ago

Hi, pretty nice widget.

Is it possible to set the attributeMap's (as default) but still have the setup popup? Also, is there a way to overwrite the form for the 3 stages? So it would look like our app.

Thank you.

eLFuvo commented 1 month ago

Also, is there a way to overwrite the form for the 3 stages?

Yes, in action configs you can set the path to your own view.

Is it possible to set the attributeMap's (as default) but still have the setup popup?

Yes. Make your own action extended by UploadFileAction and then rewrite method run for disabling starting of import there https://github.com/eLFuvo/yii2-import-wizard/blob/master/src/actions/UploadFileAction.php#L153

fiSCIENCES commented 1 month ago

Hi,

Can you provide small exemples, I did not see those in config from read me file?

Thank you.

fiSCIENCES commented 2 weeks ago

Thank you eLFuvo,

One last question, for a week, the phone number gets correctly validated with kartic-v/phoneValidator.php. But end up saved with only the number 1 in DB.

Any clue? Thank you again.

Cordialement, http://www.fisciences.com/
Martin Pineault iConsultant (analyste/programmeur) Développement f.i.SCIENCES inc. m: 418-808-4839 w: www.fisciences.com http://www.fisciences.com/ https://ca.linkedin.com/in/martinpineault https://www.claris.com/partners/profile/company.10000007774/?lang=fr

Le 21 août 2024 à 08:00, eLFuvo @.***> a écrit :

Also, is there a way to overwrite the form for the 3 stages? Yes, in action configs you can set the path to your own view.

Is it possible to set the attributeMap's (as default) but still have the setup popup? Yes. Make your own action extended by UploadFileAction and then rewrite method run for disabling starting of import there https://github.com/eLFuvo/yii2-import-wizard/blob/master/src/actions/UploadFileAction.php#L153

— Reply to this email directly, view it on GitHub https://github.com/eLFuvo/yii2-import-wizard/issues/2#issuecomment-2301878923, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHJMKJWW7J2XVF5QK6AJPPTZSR6NXAVCNFSM6AAAAABM3CZ4DWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBRHA3TQOJSGM. You are receiving this because you authored the thread.