AnsweredAssumed Answered

How to get selected value and {shortName} of PublishingDropDownMenu

Question asked by janaka1984 on Oct 6, 2016
Latest reply on Oct 7, 2016 by ddraper

Hi ,

i have used aikau widget “PublishingDropDownMenu”. here i need to get custom “URL” with {shortName} and “selected value” on publishpayload.

if i use publishPayloadType: “PROCESS”, then it is possible to render {shortName} with url, but selected value can not be processed by using
ProjectStatus: { alfType: “payload”, alfProperty: “value”},.

 

how can i short out this issue please help?

I used following widget

{
name: “alfresco/renderers/PublishingDropDownMenu”,
config: {
additionalCssClasses: “unmargined no-title”,
propertyToRender: “customProperties.stcp:Phase.value”,
postParam:”prop_stcp_Phase”,
publishTopic: “ALF_CRUD_UPDATE”,
disablementProperty: “node.permissions.user.Write”,//”GROUP_ALFRESCO_ADMINISTRATORS”,
publishPayloadType: “PROCESS”,
publishPayloadItemMixin: false,
publishPayloadModifiers: [“processCurrentItemTokens”],
publishToParent:true,
publishPayload: {

shortName: {
alfType: “item”,
alfProperty: “shortName”
},
ProjectStatus: {
alfType: “payload”,
alfProperty: “value”
},
url:”ivory/vdr-project-update-repo/{shortName}”,

isUpdate: “project-status”,
noRefresh: true

},

optionsConfig: {
fixed: [
{label: I18nUtils.msg(“”,”message.site-visibility-dropdown-public-label”), value: “PUBLIC”},
{label: I18nUtils.msg(“”,”message.site-visibility-dropdown-moderated-label”), value: “MODERATED”},
{label: I18nUtils.msg(“”,”message.site-visibility-dropdown-private-label”), value: “PRIVATE”}
]
}
}
}

 

Regards

Janaka

Outcomes