Created
November 18, 2016 14:12
-
-
Save aviriel/ab275cd16233420fa033f013520b7e28 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{ | |
name: "mgs/widgets/forms/FilteringSelect", | |
widthPx: 600, | |
config: { | |
name: "mgs1_CourtDName", | |
label: "Суд 1-й инстанции", | |
value: "", | |
postWhenHiddenOrDisabled: false, | |
additionalCssClasses: "long", | |
optionsConfig: { | |
queryAttribute: "name", | |
valueAttribute: "id", | |
labelAttribute: "name", | |
publishTopic: "RETRIEVE_CLASSIFIER", | |
publishPayload: { | |
classifier: "court", | |
resultsProperty: "response.masterdata" | |
} | |
} | |
} | |
}, { | |
name: "alfresco/buttons/AlfButton", | |
widthPx: 50, | |
config: { | |
additionalCssClasses: "withTopMargin", | |
label: "...", | |
useCurrentItemAsPayload: false, | |
pubSubScope: "", | |
publishTopic: "ALF_CREATE_DIALOG_REQUEST", | |
publishPayload: { | |
dialogTitle: "Суд 1-й инстанции:", | |
hideTopic: "ALF_CLOSE_DIALOG", | |
fixedWidth: true, | |
contentHeight: "400px", | |
widgetsContent: [{ | |
name: "mgs/widgets/FilteredList", | |
config: { | |
pubSubScope: "MASTERDATA_", | |
loadDataPublishTopic: "RETRIEVE_CLASSIFIER_CLEAN", | |
loadDataPublishPayload: { | |
classifier: "court", | |
alfSuccessTopic: "RETRIEVE_CLASSIFIER_CLEAN_SUCCESS", | |
alfFailureTopic: "RETRIEVE_CLASSIFIER_CLEAN_FAILURE" | |
}, | |
filteringTopics: ["_valueChangeOf_FILTER"], | |
widgetsForFilters: [ | |
{ | |
name: "alfresco/forms/controls/TextBox", | |
config: { | |
fieldId: "FILTER", | |
name: "filter" | |
} | |
} | |
], | |
widgets: [{ | |
name: "alfresco/lists/views/AlfListView", | |
config: { | |
minHeight: "60px", | |
widgets: [{ | |
name: "alfresco/lists/views/layouts/Row", | |
config: { | |
widgets: [{ | |
name: "alfresco/lists/views/layouts/Cell", | |
config: { | |
additionalCssClasses: "smallpad", | |
widgets: [{ | |
name: "alfresco/renderers/PropertyLink", | |
config: { | |
propertyToRender: "name", | |
pubSubScope: "", | |
useCurrentItemAsPayload: false, | |
publishTopic: "UPDATE_TEXTBOX_VALUE", | |
publishPayloadType: "PROCESS", | |
publishPayloadModifiers: ["processCurrentItemTokens"], | |
publishPayloadItemMixin: true, | |
publishPayload: { | |
mgs1_CourtDName: "{id}", | |
id: "{id}", | |
name: "{name}" | |
} | |
} | |
}] | |
} | |
}] | |
} | |
}] | |
} | |
}] | |
} | |
}] | |
} | |
} | |
}, { | |
name:"alfresco/buttons/AlfButton", | |
widthPx: 50, | |
config: { | |
label: "X", | |
additionalCssClasses: "withTopMargin strong", | |
publishTopic: "SET_DETAILED_FORM_VALUE", | |
publishGlobal: true, | |
publishPayload: { | |
mgs1_CourtDName: "" | |
} | |
} | |
}] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment