禁用特定条件的rowchecker

时间:2018-06-15 04:34:02

标签: liferay-7 liferay-dxp

我在liferay搜索容器中使用rowchecker,我想根据条件隐藏或隐藏特定行的复选框。我该如何实现它。 ?

这是我的代码......

  <aui:form method="POST" name="fm">
    <aui:input name="reimbursementId" type="hidden"/>
    <div>
        <aui:button name="approveALl" type="submit" value="Approve" cssClass="approveBtn" onClick='<%= renderResponse.getNamespace() + "approveReim();" %>'/>
    </div>
    <div>
        <liferay-ui:search-container searchContainer="${reimbursementBusinessUnitSearchContainer}" rowChecker="<%=new RowChecker(renderResponse) %>">
        <liferay-ui:search-container-results results="${reimbursementBusinessUnitSearchContainer.getResults()}"/>

        <liferay-ui:search-container-row
            className="com.intraHrms.rems.service.custom.model.ReimbursementDetailsWrapper"
            modelVar="ReimbursementDetailsWrapper" keyProperty="reimbursementid">
---- Rows To Display -----
</liferay-ui:search-container-row>

我正在使用以下脚本获取值

<aui:script>
Liferay.provide(
        window,
        '<portlet:namespace />approveReim',
        function() {
                    var checkBoxValue = Liferay.Util.listCheckedExcept(document.<portlet:namespace />fm, "<portlet:namespace />allRowIds");
                    if(checkBoxValue==""||checkBoxValue==null){
                            alert( "Please select atleast one student to assign");
                            return false;
                    }if(confirm("Are you sure you want to approve?")){
                        document.<portlet:namespace />fm.<portlet:namespace />reimbursementId.value=checkBoxValue;
                        submitForm(document.<portlet:namespace />fm, "<%=approvedReimURL%>");
                  }
        },
        ['liferay-util-list-fields']
    );
</aui:script>

我想禁用或隐藏特定行..

0 个答案:

没有答案