ssossossosso

Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

This topic contains 1 reply, has 2 voices, and was last updated by wwsh wwsh 1 year, 3 months ago.

  • Creator
    Topic
  • #21729

    ruoitrau95
    Participant

    I want to add a import button in my app to import a file to sever, after that I’ll handle the file by myself. It means I just want to reuse import button and import dialog, but in OroCRM, I have to use processor and importing sevice serve by OroCRM. How can I just use import button and import dialog without using the way OroCRM import file?

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #21743
    wwsh
    wwsh
    Participant

    You will probably want to register a new ImportHandler with custom code, that will react to the button. I would see Handler/HttpImportHandler as an example. You should try registering it as a service exactly the same way as in handler.yml in the ImportExportBundle, with appropriate prority.

    A second approach would to be to insert the button manually and point to some new code. Each button is a common template, residing in the UIBundle. There should be no problem inserting it via some placeholder of Oro’s layout.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.