반응형

웹스퀘어에서 websquare component editor 로 화면을 오픈해야 하는데 xml editor로 오픈 될 때

원인 : File Associations > Associated editors 에 default로 설정된 게 있기 때문.


eclipse -> window -> preferences -> 찾기에 File Associations 검색 -> file types : *.xml,  websquare.xml 둘다 remove 후 add... 눌러서 다시 그대로 등록



반응형

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

websquare excel upload  (0) 2023.06.09
websquare 커스텀 첨부파일 체크  (0) 2023.06.02
websqaure grid row focus 그리드 행 포커스 주기  (0) 2023.05.08
websqaure alert 후 focus안될때  (0) 2023.05.08
websquare workflow  (0) 2023.05.08
반응형

 

//행추가
// var rowIndex= grd_dlt_result.getFocusedRowIndex()+1;
// dlt_result.insertRow(rowIndex);

//첫번째열 기준
grd_dlt_result.setFocusedMultiCell(rowIndex, grd_dlt_result.getTotalCol()-1, rowIndex, 0);


//마지막열 기준
grd_dlt_result.setFocusedMultiCell(rowIndex, 0, rowIndex, grd_dlt_result.getTotalCol()-1);


 

반응형

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

websquare excel upload  (0) 2023.06.09
websquare 커스텀 첨부파일 체크  (0) 2023.06.02
websqaure alert 후 focus안될때  (0) 2023.05.08
websquare workflow  (0) 2023.05.08
websqaure grid cell 실수에서 정수형으로  (0) 2023.05.08
반응형

com.win.alert("포커스"), function(){
    test1.focus();
});
return;

반응형
반응형

 

<w2:workflowCollection>
    <w2:workflow id="wkf_sbm_search" resolveCallback="scwin.wkf_sbm_search_resolveCallback"
        rejectCallback="scwin.wkf_sbm_search_rejectCallback">
        <w2:step type="submit" action="sbm_dma_search"></w2:step>
        <w2:step type="submitDone" action="sbm_dma_search"></w2:step>
        <w2:step type="submit" action="sbm_dlt_search"></w2:step>
        <w2:step type="submitDone" action="sbm_dlt_search"></w2:step>
    </w2:workflow>
</w2:workflowCollection>

//workflow 작업 완료 후 호출
scwin.wkf_sbm_search_resolveCallback = function(wObj){
 
}


//workflow 에러 발생시 호출
scwin.wkf_sbm_search_rejectCallback = function(wobj){
    com.win.alert("조회시 오류 발생");
}



/* 
//함수 안에 작성
//특정 object안에 파라메터를 넣어야 할 경우 ex)paramload 
scwin.searchList = function(e){

for(var i=0; i < wkf_sbm_search.step.length; i++){
    var sbmObj = wkf_sbm_search.step[i].action;
    
    if(sbmObj){
        var sbmObj = (typeof sbmObj == 'object') ? sbmObj : (typeof sbmObj == 'string') ? $p.getSubmission(sbmObj) : sbmObj;
        sbmObj.action = gcm.CONTEXT_PATH+ sbmOBJ.action;
        
        var refData = WebSquare.modelUtil.getRefToReqData(sbmObj);
        if(refData == "") {
            refData = {};
        }else{
            refData = JSON.parse(refData);
        }
        
        var reqData = {"paramload" : refData};
        $p.getSubmission(wkf_sbm_search.step[i].action).setRequestData(reqData);
        
    }
} */

com.sbm.excuteWorkflow(wkf_sbm_search);
}

 

반응형
반응형

 

<w2:column removeBorderStyle="false" width"70" inputType="text" id="swSize" blockSelect="false" displayMode="label" defaultValue="0" dataType="number" applyFormat ="display" displayFormat="#[floor]" escape="true">
</w2:column>


실수형에서 정수형으로
applyFormat : display
dataType : number
displayFormat : #[floor]
escape : true

반응형

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

websqaure alert 후 focus안될때  (0) 2023.05.08
websquare workflow  (0) 2023.05.08
websqaure html tag사용방법  (0) 2023.05.08
websquare 화면 loop 반복 foreach  (0) 2023.05.08
Websquare 콤보박스 필터  (0) 2023.05.08
반응형

<w2:textbox id="test1" tagname="pre"></w2:textbox>


tagname = "br"
tagname = "b"
tagname = "hr"
tagname="td"
tagname="th"
.
.
.

등 .. tagname에 작성하면 된다 ..

반응형

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

websquare workflow  (0) 2023.05.08
websqaure grid cell 실수에서 정수형으로  (0) 2023.05.08
websquare 화면 loop 반복 foreach  (0) 2023.05.08
Websquare 콤보박스 필터  (0) 2023.05.08
websquare tooltip 말풍선  (0) 2023.05.03
반응형

 

var rowCnt = dlt_detail.getRowCount();
for(var i=0; i< rowCnt; i++){
    ui_generator.insertChild();
    ui_generator.getChild(i,"txt_test1").setValue(dlt_detail.getCellData(i,"txtText1"));
    
    //css
    //ui_generator(i,"txt_view").setStyle("display","none");
}
    
    
<xf:group id="txt_view">
    <w2:generator style="" id="ui_generator">
        <w2:textbox id="txt_test1"></w2:textbox>
    </w2:generator>
</xf:group>


 

반응형

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

websqaure grid cell 실수에서 정수형으로  (0) 2023.05.08
websqaure html tag사용방법  (0) 2023.05.08
Websquare 콤보박스 필터  (0) 2023.05.08
websquare tooltip 말풍선  (0) 2023.05.03
Websquare 줄바꿈 처리  (0) 2023.01.06
반응형

 

<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 웹스퀘어 디자인 화면 엑박 오류  (2) 2022.11.03

+ Recent posts