Forums › Forums › OroPlatform › OroPlatform – Programming Questions › Popup on datagrid
This topic contains 2 replies, has 2 voices, and was last updated by thinh2010 6 years, 11 months ago.
Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.
- CreatorTopic
- April 26, 2017 at 2:42 am #34368
Hi,
I want to create a action that open a popup with a form inside. I tried to found in forum but not found the solution. Anyone have a idea for this?
Thanks,
- CreatorTopic
- AuthorReplies
- April 27, 2017 at 2:56 am #34369
Hi
I have created an example based on the Account grid. The action shows a popup with a name field, after the submit form saves the appropriate account entity. More information you can find in the documentation.
YAML123456789101112131415161718192021222324252627282930313233343536373839404142434445operations:custom_operation:label: Custom Labelentities:- Oro\Bundle\AccountBundle\Entity\Accountgroups:- datagridRowActiondatagrids:- accounts-gridroutes:- oro_account_index- oro_account_vieworder: 50button_options:icon: fa-unlock-altattributes:account_name:label: Account Nametype: stringproperty_path: data.nameform_options:attribute_fields:account_name:form_type: textoptions:required: trueconstraints:- NotBlank: ~attribute_default_values:account_name: $.data.nameactions:- '@run_action_group':action_group: customGroupparameters_mapping:data: $.dataaccount_name: $.account_nameaction_groups:customGroup:parameters:data:type: Oro\Bundle\AccountBundle\Entity\Accountactions:- '@assign_value': [$.data.name, $.account_name]- '@flush_entity': $.dataApril 28, 2017 at 1:09 am #34370Thanks Mike for your solution :).
I already found another solution, that is use type dialog in datagrid action.
PHP12345678910111213141516update:acl_resource: phs_school_payment_status_updatetype: dialoglabel: Update Paymentlink: update_paymentrowAction: truewidgetOptions:options:dialogOptions:title: Update student paymentallowMaximize: falseallowMinimize: falsemodal: truedblclick: maximizemaximizedHeightDecreaseBy: minimize-barwidth: 700Posted here for another guys have the same problem
- AuthorReplies
The forum ‘OroPlatform – Programming Questions’ is closed to new topics and replies.