공통값 접근

송용준·2025년 4월 23일
0

:: 로 매핑

Nexacro에서 svcUrl::과 같은 방식은
Service URL을 매핑(alias) 방식
ex)
var svcUrl = "svcUrl::XExportImport";
//var svcUrl = "http://localhost.:8190/XExportImport";

  • 저장 경로 : TypeDefinition>Services

공통으로 정해놓은 파일에 접근

ex) this.G_SV_RD;

  • 저장 경로 : typeDefinition>ObjectsModuls에 .json추가>json파일 내의 scripts에 파일(.js파일) 경로 추가>파일에 공통값 정의

공통으로 정해놓은 값에 접근

App.gvSystem // ERP --> gvSystem 이라는 id의 initval 값

  • 저장 경로 : Application Variables>Variables
    ex)

웹컴포넌트 연결

ex)
this.web_ContNm.set_url(this.gfn_GetServerUrl("View"));//윈도우 환경에서 웹에디터 Url 설정-View
// this.gfn_GetServerUrl("View") : http://localhost:8190/ckeditor/webViewer.html --> 환경이 바뀌면 공통함수에 의해 경로 변경

this.web_ContNm.getProperty("window").callMethod("fn_updateSize", iHeight);
webViewer.html에 iHeight 넘기면서 미리 정의된 메서드인 fn_updateSize를 호출

profile
용용

0개의 댓글