반응형

 

<w2:dataList baseNode="list" repeatNode="map" id="dlt_reason1" saveRemoveData="true">
    <w2:columnInfo>
        <w2:column id="code" name="code" dataType="text"></w2:column>
        <w2:column id="value" name="value" dataType="text"></w2:column>
    </w2:columnInfo>
</w2:dataList>

<w2:linkedDataList bind="dlt_reason1" id="linked_dlt_reason1">
    <w2:condition type="filter"><![CDATA[
    ]]></w2:condition>
    <w2:condition type="sort"><![CDATA[
    ]]></w2:condition>
</w2:linkedDataList>

<w2:linkedDataList bind="dlt_reason2" id="linked_dlt_reason2">
    <w2:condition type="filter"><![CDATA[
    ]]></w2:condition>
    <w2:condition type="sort"><![CDATA[
    ]]></w2:condition>
</w2:linkedDataList>


<xf:select1 allOption="" appearance="minimal" chooseOption="true" chooseOptionLabel="" direction="auto"
    disabled="false" disabledClass="w2selectbox_disabled" ev:onchange="scwin.co_reason1_onchage" id="co_reason1" style="width:100%" submenuSize="auto">
    <xf:choices>
        <xf:itemset style="" nodeset="data:linked_dlt_reason1">
            <xf:label ref="value"></xf:label>
            <xf:label ref="code"></xf:label>
        </xf:itemset>
    </xf:choices>
</xf:select1>


<xf:select1 allOption="" appearance="minimal" chooseOption="true" chooseOptionLabel="" direction="auto"
    disabled="false" disabledClass="w2selectbox_disabled" ev:onchange="" id="co_reason2" style="width:100%" submenuSize="auto">
    <xf:choices>
        <xf:itemset style="" nodeset="">
            <xf:label ref="value"></xf:label>
            <xf:label ref="code"></xf:label>
        </xf:itemset>
    </xf:choices>
</xf:select1>




scwin.fnReasonFilter = function(celData, tmpParam, rowIndex){
    var col1 = co_reason1.getValue();
    var col2 = dlt_reason2.getCellData(rowIndex, "code");
    if(col1 == col2.substr(0,1)){
        return true;
    }
    return false;
}

scwin.co_reason1_onchange = function(info){
 linked_dlt_reason2.clearFilter();
 linked_dlt_reason2.setColumnFilter({type:"func", colIndex:"code", key:scwin.fnReasonFilter, condition:"and"});
 co_reason2.setNodeSet("data:linked_dlt_reason2", "value", "code");
}
            
    
        
반응형

'개발 > websquare' 카테고리의 다른 글

websqaure html tag사용방법  (0) 2023.05.08
websquare 화면 loop 반복 foreach  (0) 2023.05.08
websquare tooltip 말풍선  (0) 2023.05.03
Websquare 줄바꿈 처리  (0) 2023.01.06
websquare 웹스퀘어 디자인 화면 엑박 오류  (0) 2022.11.03

+ Recent posts