
resourceNode.targetResourceTableButtons.inc Maven / Gradle / Ivy
$page{topActionGroup});
/>
$attribute{tableRowGroup});
getSelectedSingleMapRows(TableRowGroup="${tableRowGroup}" selectedRows=>$attribute{selectedRows});
// enable the resource for a target
foreach (var="row" list="#{requestScope.selectedRows}") {
gf.createAttributeMap(keys={"enabled"} values={"true"} map="#{requestScope.attrMap}");
urlencode(value="#{row['Name']}" result="#{requestScope.encodedResName}");
gf.restRequest(
endpoint="#{pageSession.restURL}/#{requestScope.encodedResName}"
method="GET"
result="#{requestScope.result}");
if ("#{requestScope.result.responseCode}=200") {
gf.restRequest(
endpoint="#{pageSession.restURL}/#{requestScope.encodedResName}"
attrs="#{requestScope.attrMap}"
method="POST"
result="#{requestScope.foo}");
}
}
setAttribute(key="selectedRows" value="${selectedRows}");
gf.redirect(page="#{pageSession.listLink}&filterValue=#{pageSession.filterValue}");
/>
$attribute{tableRowGroup});
getSelectedSingleMapRows(TableRowGroup="${tableRowGroup}" selectedRows=>$attribute{selectedRows});
// disable the resource for a target
foreach (var="row" list="#{requestScope.selectedRows}") {
gf.createAttributeMap(keys={"enabled"} values={"false"} map="#{requestScope.attrMap}");
urlencode(value="#{row['Name']}" result="#{requestScope.encodedResName}");
gf.restRequest(
endpoint="#{pageSession.restURL}/#{requestScope.encodedResName}"
method="GET"
result="#{requestScope.result}");
if ("#{requestScope.result.responseCode}=200") {
gf.restRequest(
endpoint="#{pageSession.restURL}/#{requestScope.encodedResName}"
attrs="#{requestScope.attrMap}"
method="POST"
result="#{requestScope.foo}");
}
}
setAttribute(key="selectedRows" value="${selectedRows}");
gf.redirect(page="#{pageSession.listLink}&filterValue=#{pageSession.filterValue}");
/>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy