ssossossosso

Forums

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

This topic contains 2 replies, has 2 voices, and was last updated by  freelancer 3 years, 2 months ago.

  • Creator
    Topic
  • #5831

    freelancer
    Participant

    Hi,

    I extended the SalesBundle and I added two new entities named Product and Licence. Now I would like to use the ‘oro_entity_create_or_select_inline’ in my forms, everything works well for this forms, I would like to link a Product to my Licence entity, but when I click on the ‘+’ button to create a new Product directly through the Licence form creation it end up by an empty pop-up. I realized the other views are using a ‘?_wid=…’ but I don’t see how to do the same with my view.

    Thanks for you help. Hope I’m clear enough.

    Olivier.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #5833
    Dmitry Khrysev
    Dmitry Khrysev
    Oro Core

    Hi.
    Look at ContactControoler update method. oro_form.model.update_handler service is used for this. It automatically check for widget context and set corresponding variable to template data. Also this is very useful service for handling create/update logic

    In case if you want custom logic in your action and want to use it as create form for oro_entity_create_or_select_inline for type you should add

    to your action response variables.

    #5852

    freelancer
    Participant

    Hi Dmity,

    Thanks for your help, it worked.

    Olivier.

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.