Forums

Covering OroCommerce, OroCRM, OroPlatform topics, including community updates and company announcements.

Forums OroPlatform OroPlatform – Programming Questions Multi Entity Select Form

This topic contains 7 replies, has 4 voices, and was last updated by prganvani prganvani 1 year, 9 months ago.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Author
    Replies
  • #33394

    Alexandr Smaga
    Participant

    Hello.

    OroEntityCreateOrSelectType could not be used for multiple selection, it was developed in order to select or create single entity of given type. Seems that your needs could be met by genemu_jqueryselect2_entity.

    Here is example of options passed to it:

    #33395

    hemham914
    Participant

    You are awesome worked like a charm. Since we are on the subject, how would I go about selecting multiple contacts in a form?

    Thank you


    ~Coding my life away~

    #33396

    Alexandr Smaga
    Participant

    May be datagrid with possibility to assign (using checkboxes) will be helpful ?

    #33397

    hemham914
    Participant

    Okay so in my first example what would I do if I just wanted a single item to be selected of a custom entity type?


    ~Coding my life away~

    #33398
    Dmitry Khrysev
    Dmitry Khrysev
    Participant

    Take a look at https://github.com/laboro/platform/blob/master/src/Oro/Bundle/FormBundle/Form/Type/MultipleEntityType.php
    It was created to select multiple entities. Example of this element could be found at Account edit page – Add contact

    OroEntityCreateOrSelectType will be replaced with OroEntitySelectOrCreateInlineType.

    #33399
    prganvani
    prganvani
    Participant

    when i click on update record button it will not shows values in selectbox.
    can anyone help me for the same – how to update the record?

    #33400
    prganvani
    prganvani
    Participant

    How to perform updateAction using this ‘genemu_jqueryselect2_entity’?
    when i go for on update record field seems empty instead of filled data (selected values).

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

You must be logged in to reply to this topic.

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

Yes No
sso for www.magecore.comsso for oroinc.comsso for oroinc.desso for oroinc.frsso for marketplace.orocommerce.comsso for marketplace.orocrm.com