ssossossosso

Forums

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

Forums OroPlatform OroPlatform – Programming Questions How to use oro_entity_create_or_select form

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

  • Creator
    Topic
  • #65078
    adriwan_kenoby
    adriwan_kenoby
    Participant

    Hi Oro Team,

    I would like to use oro_entity_create_or_select but I don’t understand well what I have to do.

    Can You provide more info to achieve this like sample configuration.

    I have already change my controller updateAction to

    But now when I saved my entity i am not redirecting to the index page.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #65091
    adriwan_kenoby
    adriwan_kenoby
    Participant

    I have follow the logic from AccountBundle.

    1. adapt the controller of your entity

    2. Create handler for your entity form factory and form select type.

    3. Create form factory and form select type

    4. You also need to index your entity

    Here example of declaration services, implementation could be found in the AccountBundle

    #65187

    Yurii Muratov
    Participant

    Hello, adriwan_kenoby.

    Please check that the edit page template contains the ‘save and close’ button https://github.com/oroinc/crm/blob/master/src/Oro/Bundle/AccountBundle/Resources/views/Account/update.html.twig#L34 and this button processed by your update handler.

    #65276
    adriwan_kenoby
    adriwan_kenoby
    Participant

    Thanks I had already found this example

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

You must be logged in to reply to this topic.

You will be redirected to [title]. Would you like to continue?

Yes No
ssossossosso