Alfresco / Aikau

Aikau UI framework
GNU Lesser General Public License v3.0
81 stars 61 forks source link

setHash not working for forms created from ALF_CREATE_FORM_DIALOG_REQUEST #1369

Open boneill opened 7 years ago

boneill commented 7 years ago

I am creating a form in a dialog using a PublishTopic on the ALF_CREATE_FORM_DIALOG_REQUEST. setting useHash works for setting values. However, setHash is not working, form values are not updated into the hash url when changed.

See my PublishAction below as an example.

Regards

Brian

{ name: "alfresco/renderers/PublishAction",

config: {
   iconClass: "info-16",
   useCurrentItemAsPayload: false,
   publishTopic: "ALF_CREATE_FORM_DIALOG_REQUEST",
   publishPayloadType: "PROCESS",
   publishPayloadModifiers: ["processCurrentItemTokens"],
   "publishPayloadItemMixin": true,
   publishPayload: {
      dialogTitle: "{node.properties.cm:name}",
      dialogConfirmationButtonTitle: "Ok",
      dialogCancellationButtonTitle: "Cancel",
      dialogRepeats: true,
      pubSubScope: "QUEUE_FORM1_",
      dialogCloseTopic: "QUEUE_PROCESS_ITEM_SUCCESS",
      customFormConfig:{
          useHash: true,
          setHash: true,
          //hashVarsForUpdate: ["title","groupMembership"]  //This is only set if not all fields should be included  
      },
      showValidationErrorsImmediately: false,
      //groupMemberships: user.properties['alfUserGroups'],
     formSubmissionPayloadMixin: {
         nodeRef: "{node.nodeRef}"
      },
      formSubmissionTopic: "PICA_PLANDOCUMENT_UPDATE",
      fixedWidth: true,
      widgets: widgetsForMetadataDialog

    },
   renderFilter: [
      {
        property: "node.isContainer",
        values: [false]
      }
    ]

}

boneill commented 7 years ago

cleaned up past of widget