Forums

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

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

Forum Replies Created

Viewing 15 replies - 1 through 15 (of 18 total)
  • Author
    Replies
  • in reply to: 414 (Request-URI Too Long) #25643

    bosumflici
    Participant

    Hello,

    It is a custom datagrid and it is about a custom mass action.
    In select i had a NOT IN where clause, which gets an array with many ids to filter the datagrid rows. And when i call the mass action, the url get all the datagrid parameters, and also these ids and i get this error.

    I changed my code to get the datagrid rows through a repository method call and skip passing those ids in the url.

    Thank you!

    in reply to: Drop one-to-many relation (attachementExtentsion) #36392

    bosumflici
    Participant

    Sorry for late reply.

    No that’s not what i meant. I create an attachment relation through migration. Later i need to drop that relation. How can i do that?

    in reply to: datagrid export #36447

    bosumflici
    Participant

    Today i noticed a stranged behavior! When clicking the export -> csv button, sometimes works, sometimes not. No php/js or log errors found.

    Any ideea why is this happening?


    bosumflici
    Participant

    My bad here, i was sending a datetime value, instead of a date.

    Tnank you!


    bosumflici
    Participant

    Thanks Mike!

    Giving id to the controller fixed the problem. What i’ve encountered next is that when i apply a filter to the datagrid, in a workflow step, i get:

    Catchable Fatal Error: Argument 1 passed to Doctrine\DBAL\Connection::resolveParams() must be of the type array, null given, called in /var/www/html/crm-application/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php on line 836 and defined in /var/www/html/crm-application/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php on line 1524

    Outside of the workflow datagrid filters works fine. Any idea what could cause this?


    bosumflici
    Participant

    This is my workflow config:

    This is my type config:

    First step in workflow is to create a new entity (offer). This is where i give a name and the time interval (start/end):
    workflow create transition
    After that it redirects to the entity view:
    entity view

    Second step in the workflow is to select related entity records using a custom oro_multiselect_entity, with datagrid filtered by previous start and end date (datagrid config can be seen in above posts):
    oro_multiselect_entity
    As you see in the picture there are no records added.

    Then i press <+Add> to add records:
    datagrid selection
    Here i select the first two records and add them to the form.
    added to form
    And finally i save them, redirect to the entity view page and can be seen in the datagrid:
    final view

    The problem appears when i go back one step, where i have to select new records/deselect currently selected. Previously selected records does not appear on the form so i can remove them.
    oro_multiselect_entity
    Also if i press the <+Add> button to open the grid, they do not appear as selected in the grid:
    oro_multiselect_entity

    I’d appreciate if you could help me with this issue.
    Thanks!


    bosumflici
    Participant

    Back :(

    Can you help me setting initial_elements of the oro_multiple_entity in a workflow step? I cannot figure it out!!!


    bosumflici
    Participant

    I’ve found the missing code:

    Thanks!


    bosumflici
    Participant

    Thanks Mike! Above i did not choose the best example to describe my problem.

    I have a table with resources and a table with events related to those resources. What i need is a datagrid filled with all resources that do not have events that do not overlap with a time interval.

    So, with standard select i would write:

    I did it this way:

    So this is DONE.

    Next i implemented a workflow to select start and end dates in the first step, and in the second step i extended oro_multiple_entity to use with the above grid in the 2nd workflow transition. The problem appears after i choose the rows from datagrid widget, which have to be added to the form field after pressing the <select> button. They render fine on the view, but when i submit the form it says “This value should not be blank.”
    After digging a while i figured out that it does not sets the ids to the hidden form element to be saved (oro_workflow_transition_offer_resources_added)!!!
    If i press on “x” it removes those coresponding ids from the view and also sets the ids to the hidden form element to be removed after submit. (oro_workflow_transition_offer_resources_removed)

    Do you have any idea why is this happening and how to fix it?!

    Thanks!

    in reply to: Add attachment disapear #37004

    bosumflici
    Participant

    Hi,

    I enabled attachments via “System -> Entities -> Entity Management -> Your Entity -> Edit -> Enable Attachments” and by migrations, on custom and system entity but same result. After i run that command, attachments disapear and i have to re-enabled them. I use:

    oro/platform dev-master MIT
    oro/crm dev-master OSL-3.0

    Thanks!

    in reply to: OroCalendar and Filters #36331

    bosumflici
    Participant

    Thank you Mike! Indeed is a good base to start. Your code works like charm!

    in reply to: OroCalendar and Filters #36329

    bosumflici
    Participant

    To understand better i added a print screen: screen capture

    Looking at this picture, i need to be able to filter calendar events when i change a filter from the grid filters.

    Thanks!

    in reply to: OroCalendar and Filters #36328

    bosumflici
    Participant

    No! I have developed my own calendar bundle with my custom evenst entity. The calendar view is working good. What i need now is to add some filters for the calendar view to filter the events. I was thinking to use the filters that shows with a datagrid in a index template, but instead of filtering datagrid collection, they must filter the calenndar events collection.

    in reply to: OroCalendar and Filters #36326

    bosumflici
    Participant

    Hi

    It’s not about the oro default calendar events. I’ve created my custom event entity and it has some properties which i need to filter. For example if we refer to orocalendar events i need to filter events by description containing some “text”!

    Thanks

    in reply to: concatenate fields in datagrid filter qb #35958

    bosumflici
    Participant

    property: fullName

Viewing 15 replies - 1 through 15 (of 18 total)

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

Yes No