This topic contains 5 replies, has 3 voices, and was last updated by berbass 6 years, 10 months ago.
- Topic
Hi,
I got the following datagrid :123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103grid-produit-partList:source:type: ormquery:select:- l.id as id- l.sku as sku- p.id as part- l.value as valuefrom:- { table: CLNomenclatureBundle:LignePartList, alias: l }join:left:- { join: l.part, alias: p }where:and:- l.sku = :parambind_parameters:param: skucolumns:id:label: 'cl.nomenclature.produit.grid-produit-partList.columns.id'renderable: falsealign: leftsku:label: "cl.nomenclature.produit.grid-produit-partList.columns.sku"frontend_type: integeralign: leftrenderable: falsepart:label: "cl.nomenclature.produit.grid-produit-partList.columns.part"frontend_type: selectalign: leftchoices: "@cl_nomenclature.repository.part->getChoices"inline_editing:enable: trueeditor:view: oroform/js/app/views/editor/select-editor-viewvalue:label: "cl.nomenclature.produit.grid-produit-partList.columns.value"frontend_type: stringalign: leftinline_editing:enable: truefilters:columns:sku:type: numberlabel: "cl.nomenclature.produit.grid-produit-partList.filters.sku"data_name: skupart:type: choicelabel: "cl.nomenclature.produit.grid-produit-partList.filters.part"data_name: partoptions:field_options:choices: "@cl_nomenclature.repository.part->getChoices"value:type: stringlabel: "cl.nomenclature.produit.grid-produit-partList.filters.value"data_name: valuesorters:columns:sku:data_name: skupart:data_name: partvalue:data_name: valueproperties:lignePartList_add_link:type: urlroute: cl_nomenclature.produit.part_list.addLigneparams:- sku- idlignePartList_delete_link:type: urlroute: cl_nomenclature.produit.part_list.removeLigneparams:- sku- idactions:add:type: navigatelabel: "cl.nomenclature.produit.grid-produit-partList.action.add"link: lignePartList_add_linkicon: plus-signdelete:type: navigatelabel: "cl.nomenclature.produit.grid-produit-partList.action.delete"link: lignePartList_delete_linkicon: removeinline_editing:enable: trueentity_name: CL\Bundle\NomenclatureBundle\Entity\LignePartListbehaviour: enable_selectedplugin: orodatagrid/js/app/plugins/grid/inline-editing-plugindefault_editors: orodatagrid/js/inline-editing/default-editorssave_api_accessor:route: cl_nomenclature.produit.part_list.updatehttp_method: PATCHOne column (named part) is a select based on one entity nammed Part.
In a index.html.twig, I show the datagrid and I have a button with custom modal and Ajax to add a new value in my Part entity.
I’m trying to add some js code to perform a refresh of the datagrid after creating a new value for my Part entity. I can see the datagrid refreshing but the select values are still the same and the select doesn’t show my new value.
I’ve tried :
1mediator.trigger('datagrid:doReset:grid-produit-partList');but it doesn’t show my new value for the select.
Any idea of how to refresh my select values in the datagrid ?
Thank you.
The forum ‘OroPlatform – How do I? Questions’ is closed to new topics and replies.