OroPlatform Forums

Covering OroPlatform topics, including community updates and company announcements.

Forums Forums OroPlatform OroPlatform – How do I? Questions Values for Multienum dont show in datagrid

This topic contains 1 reply, has 2 voices, and was last updated by  vseniuk 6 years, 1 month ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #36560

    SkaiBoa
    Participant

    Hi,

    I added a Multienumfield to the Contact through Migration:

    $table = $schema->getTable('orocrm_contact');
    $extension->addEnumField(
    $schema,
    'orocrm_contact',
    'newsletter',
    'nlx_newsletter',
    true,
    false,
    [
    'extend' => ['owner' => ExtendScope::OWNER_SYSTEM],
    'datagrid' => ['is_visible' => DatagridScope::IS_VISIBLE_TRUE],
    'dataaudit' => ['auditable' => true],
    'importexport' => ["order" => 90, "short" => true]
    ]
    );

    It works fine in form and view. But it show only empty fields in datagrid. In the relationstable in the database are the entries correct saved from the form. Inline editing shows all Enumtypes correctly, but it doesnt save the marked values. Here are the configuration from the datagrid.yml:

    type: orm
    query:
    select:
    .....
    - n.name as newsletter
    join:
    left:
    .....
    - { join: c.newsletter, alias: n }
    ......
    columns:
    .....
    newsletter:
    context:
    enum_code: nlx_newsletter
    frontend_type: multiEnum
    label: nlxcrm.customer.nlxcustomer.newsletter.label

    What i have done wrong ?

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #36561

    vseniuk
    Participant

    Hi @SkaiBoa,

    Thank you for reporting the issue!
    I added this issue to our backlog.

    Unfortunately there isn’t a workaround for it.

    Internal ID: CRM-8767

Viewing 1 replies (of 1 total)

The forum ‘OroPlatform – How do I? Questions’ is closed to new topics and replies.

Back to top