shared.tableButtons.inc Maven / Gradle / Ivy
$page{topActionGroup});
/>
$attribute{tableRowGroup});
getSelectedSingleMapRows(TableRowGroup="${tableRowGroup}" selectedRows=>$attribute{selectedRows});
foreach (var="row" list="#{requestScope.selectedRows}") {
urlencode(value="#{row['name']}" result="#{requestScope.encodedResName}");
setAttribute(key="targetUrlsList" value="#{row['targetUrls']}");
foreach (var="targetUrl" list="#{requestScope.targetUrlsList}") {
createMap(result="#{requestScope.attrMap}");
mapGet(Map="#{row['targetsMap']}" Key="#{requestScope.targetUrl}" Value="#{requestScope.targetVal}");
mapPut(map="#{requestScope.attrMap}" key="target" value="#{targetVal}");
gf.restRequest(
endpoint="#{requestScope.targetUrl}/resource-ref/#{requestScope.encodedResName}"
attrs="#{requestScope.attrMap}"
method="DELETE"
result="#{requestScope.foo}");
}
}
gf.deleteCascade(endpoint="#{pageSession.parentUrl}/#{pageSession.childType}", selectedRows="${selectedRows}", cascade="true");
setAttribute(key="selectedRows" value="${selectedRows}");
gf.redirect(page="#{pageSession.listLink}");
/>
$attribute{tableRowGroup});
getSelectedSingleMapRows(TableRowGroup="${tableRowGroup}" selectedRows=>$pageSession{selectedRows});
gfr.deleteSelectedResources();
gf.redirect(page="#{pageSession.listLink}");
/>
$attribute{tableRowGroup});
getSelectedSingleMapRows(TableRowGroup="${tableRowGroup}" selectedRows=>$pageSession{selectedRows});
gfr.enableSelectedResources();
setAttribute(key="selectedRows" value="$pageSession{selectedRows}");
prepareAlertMsg(summary="$resource{i18n.msg.enableResourceSuccessful}", type="success");
gf.redirect(page="#{pageSession.listLink}?alertType=${alertType}&alertSummary=${alertSummary}&alertDetail=${alertDetail}");
/>
$attribute{tableRowGroup});
getSelectedSingleMapRows(TableRowGroup="${tableRowGroup}" selectedRows=>$pageSession{selectedRows});
gfr.disableSelectedResources();
setAttribute(key="selectedRows" value="$pageSession{selectedRows}");
prepareAlertMsg(summary="$resource{i18n.msg.disableResourceSuccessful}", type="success");
gf.redirect(page="#{pageSession.listLink}?alertType=${alertType}&alertSummary=${alertSummary}&alertDetail=${alertDetail}");
/>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy