[MGNLUI-5785] DOC: Update OpenDialogAction with configuration to depopulate FormView Created: 01/Apr/20  Updated: 01/Apr/20  Resolved: 01/Apr/20

Status: Closed
Project: Magnolia UI
Component/s: None
Affects Version/s: 6.2
Fix Version/s: None

Type: Task Priority: Neutral
Reporter: Ashraf Khamis Assignee: Ashraf Khamis
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
documentation
documents MGNLUI-5721 Enable functionality to turn off popu... Closed
Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Epic Link: DOC: Documentation for Magnolia 6.2
Sprint: UI Framework 21
Story Points: 1

 Description   

Repurpose the release note at https://documentation.magnolia-cms.com/display/DOCS62/Release+notes+for+Magnolia+CMS+6.2#ReleasenotesforMagnoliaCMS6.2-ConfigurationtodepopulateFormViewinOpenDialogAction to update OpenDialogAction with the new configuration to depopulate FormView.



 Comments   
Comment by Ashraf Khamis [ 01/Apr/20 ]

The following note added to https://documentation.magnolia-cms.com/display/DOCS62/Action+definition:

 info.magnolia.ui.editor.FormView is automatically populated whenever OpenDialogActionDefinition is configured. This can trigger exceptions in some cases where there is no initial value to populate the form with. To disable this default behavior, you can set the populate property to false in YAML. Here is an openDialogAction definition from the Resource Files app:

addFile:
  icon: icon-add-file
  $type: openDialogAction
  populate: false
  dialogId: resources-app:addFile
  availability:
    root: true
    rules:
      IsResourceFolderRule: &isResourceFolder
        implementationClass: info.magnolia.resources.app.availability.IsResourceFolderRuleNo

Reviewed by Rishab.

Generated at Mon Feb 12 09:30:01 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.