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 9 replies - 46 through 54 (of 54 total)
  • Author
    Replies
  • in reply to: Override search.yml – Search with more parameters #29022

    oro_newbie
    Participant

    Thank you Mike.

    I ran that command and added extra parameter OroCRMAccountBundle:Account and I see that the table ‘oro_search_item’ is getting updated with all my account records. Right now it’s creating individual record for names but later I think it will create for email and phone. Is that what’s supposed to happen? My allowed memory size has currently exhausted while running the command. Do I need to give a timeout option? (–timeout=0 does not work)

    in reply to: Override search.yml – Search with more parameters #29020

    oro_newbie
    Participant

    Bump. I hope somebody’s read this and can help.

    in reply to: Dynamic select values on an extended field #28997

    oro_newbie
    Participant

    Hi Mike,

    I used a workaround to solve my problem but to explain you better, here’s what I was trying to do:

    1) I created an extended field in case entity – let’s say invoice_no
    2) Made the type as ‘Select’ and left the options empty:

    3) This field depends on Account entity. Anytime an account is selected in Case create page, since the account ID has a one-to-many relation with Invoices table (invoice_account_id), it needs to load all the invoice_no of that account ID.
    4) I can get the invoice numbers by passing the account ID on change event of relatedAccount (in Case create page). I noticed that you have used the select-2 javascript plugin for the select boxes and was able to populate the invoice numbers inside the

    elements from which the select-2 gets the values.
    5) But when I save the case after selecting the newly populated values I get the error like I explained to you. I think this is because my select options were empty in step 2 and only the values that I place in the entity management page are valid.

    I’m sorry I don’t have the code for the above now since like I said I used a workaround. Here’s what I’m currently doing.

    1) I created an extended entity field invoice_no but this time made it of String type
    2) On the case create page, I first hide the invoice_no textbox (css – visibility: hidden) and instead insert a empty select box in its place
    null
    3) On selection of account (relatedAccount field), I use ajax to get all the invoice numbers of that account and populate them in the select box created above.
    4) Whenever the user selects an invoice number from the select field, I store that value in the visibility hidden input.
    5) So now when it gets saved, the ID of the invoice number is what’s saved in the extended field invoice_no.

    I’m sure there must be a “Oro” way of handling such kind of dynamic values for extended fields but currently the workaround is what I’m doing.

    Thanks in advance.

    in reply to: Customizing the fields shown in DataGrids #24972

    oro_newbie
    Participant

    Just in case anyone’s using the above reorder() method and have a problem with ‘tags’ getting displayed/ ‘tags’ filter not showing up, here’s what I did:

    When calling the redorder() method, I pass an extra parameter:

    Then in my reorder method, I check for the ‘tags’ key:

    Because when it comes to filters, the ‘tags’ must be linked to the ‘tagname’. Searching for the key ‘tags’ in $filters array would result in error.

    in reply to: Datagrid Choice Filter with choices from a Column #34167

    oro_newbie
    Participant

    @Mike

    As an added question, is it possible to pass a parameter to the getList() function? In my case the parameter is the same that I’m passing to my where clause in my datagrid (defined under bind_parameters).

    in reply to: Datagrid Choice Filter with choices from a Column #34166

    oro_newbie
    Participant

    @Mike

    I needed this and it’s very well explained. Thank you!

    in reply to: Adding relationship (and foreign key) between entities #28983

    oro_newbie
    Participant

    Hi Mike,

    The 2 articles that you linked really helped. I was able to identify what’s wrong with the relationship I was trying to create between my entities.

    Thank you! Marking this problem as resolved.

    in reply to: EventListener on an extended bundle #28979

    oro_newbie
    Participant

    Hi Mike,

    What I actually meant was, is it something like [bundle_name].object.event etc.? Do you know where I can find the list of such events that can be used with datagrid? That would be very helpful.

    Thanks.

    in reply to: EventListener on an extended bundle #28977

    oro_newbie
    Participant

    Hi Mike,

    Thanks for the above. It works quite well.

    In my case, I was trying to override the datagrid so my services.yml went like this:

    I understand that the “accounts-grid” above should be the name of the grid (which can be found in datagrid.yml or in the markup of the grid that you need to modify). Regarding the event parameter:

    do you know how this is getting derived?

    Thanks.

Viewing 9 replies - 46 through 54 (of 54 total)
Back to top

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

Yes No

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

Yes No