text
stringlengths
132
4.25k
<s>[INST] <<SYS>> ๋„ฅ์‚ฌํฌ๋กœN<</SYS>>๋„ฅ์‚ฌํฌ๋กœ initdata.jsp ์ €์žฅ [/INST] initdata.jsp ํŒŒ์ผ์„ ํ˜ธ์ถœํ•˜๋ฉด 'saveFile.bin'์ด๋ผ๋Š” ์ด๋ฆ„์˜ ํŒŒ์ผ์ด ์ƒ์„ฑ๋ฉ๋‹ˆ๋‹ค. ์ƒ์„ฑ๋œ ํŒŒ์ผ์€ WAS(์˜ˆ์ œ์—์„œ๋Š” ์•„ํŒŒ์น˜ ํ†ฐ์บฃ)์„ ์„ค์น˜ํ•œ ํด๋” ์•„๋ž˜์— ์ƒ์„ฑ๋ฉ๋‹ˆ๋‹ค. ํŒ: ํŠน์ • ๊ฒฝ๋กœ์— ํŒŒ์ผ์„ ์ €์žฅํ•˜๊ณ ์ž ํ•˜๋Š” ๊ฒฝ์šฐ์—๋Š” ์•„๋ž˜์™€ ๊ฐ™์ด initdata.jsp ํŒŒ์ผ์„ ์ˆ˜์ •ํ•ด ์ ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. [code] //String targetFilename = "./saveFile.bin"; File targetFile = new File("c:/saveFile.bin"); OutputStream target = new FileOutputStream(targetFile); [source] ๋„ฅ์‚ฌํฌ๋กœN/์ดˆ๋ณด์ž๋ฅผ ์œ„ํ•œ ์ž์Šต์„œ/ํ™”๋ฉด ๋งŒ๋“ค๊ธฐ (X-API)/initdata.jsp/์ €์žฅ๋œ ํŒŒ์ผ </s>
<s>[INST] <<SYS>> ๋„ฅ์‚ฌํฌ๋กœN<</SYS>>๋„ฅ์‚ฌํฌ๋กœ search.jsp pseudo code [/INST] [code] // 1. ์ž๋ฐ” ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ์ง€์ • (Nexacro X-API ํฌํ•จ) // 2. MIME Type ์ •์˜ // 3. Nexacro ๊ธฐ๋ณธ๊ฐ์ฒด(PlatformData) ์ƒ์„ฑ try { // 4. Data ์ฒ˜๋ฆฌ // 5. ErrorCode, ErrorMsg ์ฒ˜๋ฆฌํ•˜๊ธฐ (์„ฑ๊ณต ๋ฉ”์‹œ์ง€) } catch (Error) { // 5. ErrorCode, ErrorMsg ์ฒ˜๋ฆฌํ•˜๊ธฐ (์‹คํŒจ ๋ฉ”์‹œ์ง€) } // 6. ๊ฒฐ๊ณผ Data Client์—๊ฒŒ ๋ณด๋‚ด๊ธฐ [source] ๋„ฅ์‚ฌํฌ๋กœN/์ดˆ๋ณด์ž๋ฅผ ์œ„ํ•œ ์ž์Šต์„œ/ํ™”๋ฉด ๋งŒ๋“ค๊ธฐ (X-API)/search.jsp/pseudo code </s>
<s>[INST] <<SYS>> ๋„ฅ์‚ฌํฌ๋กœN<</SYS>>๋„ฅ์‚ฌํฌ๋กœ search.jsp ์˜์‚ฌ ์ฝ”๋“œ [/INST] [code] // 1. ์ž๋ฐ” ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ์ง€์ • (Nexacro X-API ํฌํ•จ) // 2. MIME Type ์ •์˜ // 3. Nexacro ๊ธฐ๋ณธ๊ฐ์ฒด(PlatformData) ์ƒ์„ฑ try { // 4. Data ์ฒ˜๋ฆฌ // 5. ErrorCode, ErrorMsg ์ฒ˜๋ฆฌํ•˜๊ธฐ (์„ฑ๊ณต ๋ฉ”์‹œ์ง€) } catch (Error) { // 5. ErrorCode, ErrorMsg ์ฒ˜๋ฆฌํ•˜๊ธฐ (์‹คํŒจ ๋ฉ”์‹œ์ง€) } // 6. ๊ฒฐ๊ณผ Data Client์—๊ฒŒ ๋ณด๋‚ด๊ธฐ [source] ๋„ฅ์‚ฌํฌ๋กœN/์ดˆ๋ณด์ž๋ฅผ ์œ„ํ•œ ์ž์Šต์„œ/ํ™”๋ฉด ๋งŒ๋“ค๊ธฐ (X-API)/search.jsp/pseudo code </s>
<s>[INST] <<SYS>> ๋„ฅ์‚ฌํฌ๋กœN<</SYS>>๋„ฅ์‚ฌํฌ๋กœ ํŒŒ์ผ ๋‚ด์šฉ ์ฝ์–ด์„œ ๋ฐ์ดํ„ฐ์…‹ ์ƒ์„ฑ [/INST] ./saveFile.bin' ํŒŒ์ผ์˜ ๋‚ด์šฉ์„ ์ฝ์–ด์„œ PlatformData ๊ฐ์ฒด์— ์ €์žฅํ•ฉ๋‹ˆ๋‹ค. PlatformData ๊ฐ์ฒด์— Dataset์ด ๋‹ด๊ฒจ ์žˆ์Šต๋‹ˆ๋‹ค. ํŒŒ์ผ์—์„œ ๋‚ด์šฉ์„ ์ฝ์–ด์„œ PlatformData์— ๋‹ด๋Š” ์ฝ”๋“œ๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™์Šต๋‹ˆ๋‹ค. [code] /** 4. Processing data: Loading data from the file: loading data from the file **/ /** 4.1 Loading data from the file **/ String sourceFilename = "./saveFile.bin"; InputStream source = new FileInputStream(sourceFilename); PlatformRequest req = new PlatformRequest(source, PlatformType.CONTENT_TYPE_BINARY); req.receiveData(); source.close(); /** 4.2 Copying the loaded data to the dataset **/ pdata = req.getData(); [source] ๋„ฅ์‚ฌํฌ๋กœN/์ดˆ๋ณด์ž๋ฅผ ์œ„ํ•œ ์ž์Šต์„œ/ํ™”๋ฉด ๋งŒ๋“ค๊ธฐ (X-API)/search.jsp/์ฝ”๋“œ ๊ตฌํ˜„/File์˜ ๋‚ด์šฉ์„ ์ฝ์–ด์„œ Dataset ์ƒ์„ฑํ•˜๊ธฐ </s>
<s>[INST] <<SYS>> ๋„ฅ์‚ฌํฌ๋กœN<</SYS>>XAPI search ์ฝ”๋“œ๊ตฌํ˜„ ๊ฒฐ๊ณผ๊ฐ’ Client์—๊ฒŒ ๋ณด๋‚ด๊ธฐ [/INST] ์ดˆ๊ธฐ๊ฐ’์ด ์ •์ƒ์ ์œผ๋กœ ํŒŒ์ผ์— ์ €์žฅ๋˜์—ˆ๋Š”์ง€๋ฅผ ์‚ฌ์šฉ์ž์—๊ฒŒ ์ „๋‹ฌํ•˜๊ธฐ ์œ„ํ•˜์—ฌ PlatformData ๊ฐ์ฒด๋ฅผ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค. ์ด๋•Œ, ์•ž์—์„œ ์ €์žฅํ•œ ErrorCode์™€ ErrorMsg๊ฐ€ ์ „๋‹ฌ๋ฉ๋‹ˆ๋‹ค. search.jsp์—์„œ๋Š” PlatformData์— Client๊ฐ€ ์‚ฌ์šฉํ•˜๋Š” ๋ช…ํ•จ๋ฆฌ์ŠคํŠธ Dataset์„ ๋‹ด๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. VariableList๋Š” PlatformData์˜ ๋ฉค๋ฒ„์ด๋ฏ€๋กœ ์ˆ˜ํ–‰ ๊ฒฐ๊ณผ๊ฐ’์€ PlatformData ๊ฐ์ฒด์— ๋“ค์–ด์žˆ์Šต๋‹ˆ๋‹ค. ์ด์ œ PlatformData์˜ ๋ฐ์ดํ„ฐ๋ฅผ ๋„ฅ์‚ฌํฌ๋กœ์—์„œ ์ฒ˜๋ฆฌํ•  ์ˆ˜ ์žˆ๋Š” XML Format์œผ๋กœ ์ถ”์ถœํ•˜์—ฌ ์ „์†กํ•˜๋Š” ๋ถ€๋ถ„์„ ๊ตฌํ˜„ํ•ด ๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค. ๋ฐ์ดํ„ฐ๋ฅผ ์ „์†กํ•˜๋Š” ๊ธฐ๋Šฅ์„ ์‰ฝ๊ฒŒ ๊ตฌํ˜„ํ•˜๊ธฐ ์œ„ํ•ด PlatformResponse ๊ฐ์ฒด๋ฅผ ๋งŒ๋“ค๊ณ  PlatformData ๊ฐ์ฒด์—์„œ ๋ฐ์ดํ„ฐ๋ฅผ ์ถœ๋ ฅ์‹œํ‚ค๋Š” ์ฝ”๋“œ๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™์Šต๋‹ˆ๋‹ค. [code] /** 6. Sending result data to the client **/ HttpPlatformResponse res = new HttpPlatformResponse(response, PlatformType.CONTENT_TYPE_XML,"UTF-8"); res.setData(pdata); res.sendData(); ์ •์ƒ์ ์œผ๋กœ ๋ฐ์ดํ„ฐ๊ฐ€ ์ฒ˜๋ฆฌ๋˜์—ˆ๋‹ค๋ฉด ํด๋ผ์ด์–ธํŠธ์—๊ฒŒ ์ „๋‹ฌ๋˜๋Š” XML ๊ฐ’์€ ์•„๋ž˜์™€ ๊ฐ™์Šต๋‹ˆ๋‹ค. [code]<Root xmlns="http://www.nexacro.com/platform/dataset" ver="5000"> <Parameters> <Parameter id="ErrorCode" type="int">0</Parameter> <Parameter id="ErrorMsg" type="string">SUCC</Parameter> </Parameters> <Dataset id="DatasetName"> <ColumnInfo> /** Your ColumnInfo**/ <Column id="id" type="type" size="size"/> </ColumnInfo> <Rows> <Row> /** input id, value each column**/ <Col id="id">"Value"</Col> </Row> </Rows> </Dataset> </Root> [source] ๋„ฅ์‚ฌํฌ๋กœN/์ดˆ๋ณด์ž๋ฅผ ์œ„ํ•œ ์ž์Šต์„œ/ํ™”๋ฉด ๋งŒ๋“ค๊ธฐ (X-API)/search.jsp/์ฝ”๋“œ ๊ตฌํ˜„/๊ฒฐ๊ณผ๊ฐ’ Client์—๊ฒŒ ๋ณด๋‚ด๊ธฐ </s>
<s>[INST] <<SYS>> ๋„ฅ์‚ฌํฌ๋กœN<</SYS>>๋„ฅ์‚ฌํฌ๋กœ search.jsp ์ „์ฒด ์ฝ”๋“œ [/INST] [code](์ฝ”๋“œ - search.jsp) <!-- 1.Designating a Java library --> <%@ page import="java.io.*" %> <%@ page import="com.nexacro.java.xapi.data.*" %> <%@ page import="com.nexacro.java.xapi.tx.*" %> <!-- 2. Defining a MIME type --> <%@ page contentType="text/xml; charset=UTF-8" %> <% /** 3. Creating a basic object of Nexacro **/ PlatformData pdata = new PlatformData(); /** 5.1 Processing ErrorCode and ErrorMsg **/ int nErrorCode = 0; String strErrorMsg = "START"; try { /** 4. Processing data : Loading data from the file: loading data from the file **/ /** 4.1 Loading data from the file **/ String sourceFilename = "./saveFile.bin"; InputStream source = new FileInputStream(sourceFilename); PlatformRequest req = new PlatformRequest(source, PlatformType.CONTENT_TYPE_BINARY); req.receiveData(); source.close(); /** 4.2 Copying the loaded data to the dataset **/ pdata = req.getData(); /** 5.2 Setting ErrorCode and ErrorMsg for success **/ nErrorCode = 0; strErrorMsg = "SUCC"; } catch (Throwable th) { /** 5.3 Setting ErrorCode and ErrorMsg for failure **/ nErrorCode = -1; strErrorMsg = th.getMessage(); } /** 5.4 Saving ErrorCode and ErrorMsg to send them to the client **/ VariableList varList = pdata.getVariableList(); varList.add("ErrorCode", nErrorCode); varList.add("ErrorMsg", strErrorMsg); /** 6. Sending result data to the client **/ HttpPlatformResponse res = new HttpPlatformResponse(response, PlatformType.CONTENT_TYPE_XML,"UTF-8"); res.setData(pdata); res.sendData(); %> [source] ๋„ฅ์‚ฌํฌ๋กœN/์ดˆ๋ณด์ž๋ฅผ ์œ„ํ•œ ์ž์Šต์„œ/ํ™”๋ฉด ๋งŒ๋“ค๊ธฐ (X-API)/search.jsp/์ „์ฒด ์ฝ”๋“œ </s>
<s>[INST] <<SYS>> ๋„ฅ์‚ฌํฌ๋กœN<</SYS>>๋„ฅ์‚ฌํฌ๋กœ save_list.jsp pseudo code [/INST] [code](// 1. Designating a Java library (including Nexacro X-API) // 2. Defining a MIME type // 3. Creating a basic object of Nexacro (PlatformData) try { // 4. Receiving a request from the client // 5. Processing data // 6. Processing ErrorCode and ErrorMsg (success message) } catch (Error) { // 6. Processing ErrorCode and ErrorMsg (failure message) } // 7. Sending result data to the client) [source] ๋„ฅ์‚ฌํฌ๋กœN/์ดˆ๋ณด์ž๋ฅผ ์œ„ํ•œ ์ž์Šต์„œ/ํ™”๋ฉด ๋งŒ๋“ค๊ธฐ (X-API)/save_list.jsp/pseudo code </s>
<s>[INST] <<SYS>> ๋„ฅ์‚ฌํฌ๋กœN<</SYS>>๋„ฅ์‚ฌํฌ๋กœ save_list.jsp ์˜์‚ฌ์ฝ”๋“œ [/INST] [code](// 1. Designating a Java library (including Nexacro X-API) // 2. Defining a MIME type // 3. Creating a basic object of Nexacro (PlatformData) try { // 4. Receiving a request from the client // 5. Processing data // 6. Processing ErrorCode and ErrorMsg (success message) } catch (Error) { // 6. Processing ErrorCode and ErrorMsg (failure message) } // 7. Sending result data to the client) [source] ๋„ฅ์‚ฌํฌ๋กœN/์ดˆ๋ณด์ž๋ฅผ ์œ„ํ•œ ์ž์Šต์„œ/ํ™”๋ฉด ๋งŒ๋“ค๊ธฐ (X-API)/save_list.jsp/pseudo code </s>
<s>[INST] <<SYS>> ๋„ฅ์‚ฌํฌ๋กœN<</SYS>>๋„ฅ์‚ฌํฌ๋กœ save_list.jsp ํด๋ผ์ด์–ธํŠธ ์š”์ฒญ๋ฐ›๊ธฐ [/INST] ํด๋ผ์ด์–ธํŠธ๊ฐ€ ๋งค๊ฐœ๋ณ€์ˆ˜๋กœ ๋ณด๋‚ธ Dataset์„ ๋ฐ›์•„์„œ ์ฒ˜๋ฆฌํ•ฉ๋‹ˆ๋‹ค. [code] ( /** 4. Receiving a request from the client **/ // create HttpPlatformRequest for receive data from client HttpPlatformRequest req = new HttpPlatformRequest(request); req.receiveData(); ) [source] ๋„ฅ์‚ฌํฌ๋กœN/์ดˆ๋ณด์ž๋ฅผ ์œ„ํ•œ ์ž์Šต์„œ/ํ™”๋ฉด ๋งŒ๋“ค๊ธฐ (X-API)/save_list.jsp/์ฝ”๋“œ ๊ตฌํ˜„/ํด๋ผ์ด์–ธํŠธ ์š”์ฒญ๋ฐ›๊ธฐ </s>
<s>[INST] <<SYS>> ๋„ฅ์‚ฌํฌ๋กœN<</SYS>>๋„ฅ์‚ฌํฌ๋กœ save_list ๊ฒฐ๊ณผ๊ฐ’ Client์—๊ฒŒ ๋ณด๋‚ด๊ธฐ [/INST] ์ดˆ๊ธฐ๊ฐ’์ด ์ •์ƒ์ ์œผ๋กœ ํŒŒ์ผ์— ์ €์žฅ๋˜์—ˆ๋Š”์ง€๋ฅผ ์‚ฌ์šฉ์ž์—๊ฒŒ ์ „๋‹ฌํ•˜๊ธฐ ์œ„ํ•˜์—ฌ PlatformData ๊ฐ์ฒด๋ฅผ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค. ์ด๋•Œ, ์•ž์—์„œ ์ €์žฅํ•œ ErrorCode์™€ ErrorMsg๊ฐ€ ์ „๋‹ฌ๋ฉ๋‹ˆ๋‹ค. VariableList๋Š” PlatformData์˜ ๋ฉค๋ฒ„์ด๋ฏ€๋กœ ์ˆ˜ํ–‰ ๊ฒฐ๊ณผ๊ฐ’์€ PlatformData ๊ฐ์ฒด์— ๋“ค์–ด์žˆ์Šต๋‹ˆ๋‹ค. ์ด์ œ PlatformData์˜ ๋ฐ์ดํ„ฐ๋ฅผ ๋„ฅ์‚ฌํฌ๋กœ์—์„œ ์ฒ˜๋ฆฌํ•  ์ˆ˜ ์žˆ๋Š” XML Format์œผ๋กœ ์ถ”์ถœํ•˜์—ฌ ์ „์†กํ•˜๋Š” ๋ถ€๋ถ„์„ ๊ตฌํ˜„ํ•ด ๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค. ๋ฐ์ดํ„ฐ๋ฅผ ์ „์†กํ•˜๋Š” ๊ธฐ๋Šฅ์„ ์‰ฝ๊ฒŒ ๊ตฌํ˜„ํ•˜๊ธฐ ์œ„ํ•ด PlatformResponse ๊ฐ์ฒด๋ฅผ ๋งŒ๋“ค๊ณ  PlatformData ๊ฐ์ฒด์—์„œ ๋ฐ์ดํ„ฐ๋ฅผ ์ถœ๋ ฅ์‹œํ‚ค๋Š” ์ฝ”๋“œ๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™์Šต๋‹ˆ๋‹ค. [code]( /** 7. Sending result data to the client **/ HttpPlatformResponse res = new HttpPlatformResponse(response, PlatformType.CONTENT_TYPE_XML,"UTF-8"); res.setData(senddata); res.sendData(); ) [source] ๋„ฅ์‚ฌํฌ๋กœN/์ดˆ๋ณด์ž๋ฅผ ์œ„ํ•œ ์ž์Šต์„œ/ํ™”๋ฉด ๋งŒ๋“ค๊ธฐ (X-API)/save_list.jsp/์ฝ”๋“œ ๊ตฌํ˜„/๊ฒฐ๊ณผ๊ฐ’ Client์—๊ฒŒ ๋ณด๋‚ด๊ธฐ </s>
<s>[INST] <<SYS>> ๋„ฅ์‚ฌํฌ๋กœN<</SYS>>๋„ฅ์‚ฌํฌ๋กœ save_list.jsp ์ „์ฒด ์ฝ”๋“œ [/INST] [code](์ฝ”๋“œ - save_list.jsp) <!-- 1. Designating a Java library --> <%@ page import="java.io.*" %> <%@ page import="com.nexacro.java.xapi.data.*" %> <%@ page import="com.nexacro.java.xapi.tx.*" %> <!-- 2. Defining a MIME type --> <%@ page contentType="text/xml; charset=UTF-8" %> <% /** 3. Creating a basic object of Nexacro **/ PlatformData pdata = new PlatformData(); /** 6.1 Processing ErrorCode and ErrorMsg **/ int nErrorCode = 0; String strErrorMsg = "START"; try { /** 4. Receiving a request from the client **/ // create HttpPlatformRequest for receive data from client HttpPlatformRequest req = new HttpPlatformRequest(request); req.receiveData(); /** 5. Processing data: Loading data from the file **/ /** 5.1 Loading data from the http object **/ pdata = req.getData(); /** Obtaining a dataset from the received data **/ DataSet ds = pdata.getDataSet("customers"); /** Saving data as a file with init data **/ String targetFilename = "./saveFile.bin"; OutputStream target = new FileOutputStream(targetFilename); PlatformResponse res = new PlatformResponse(target, PlatformType.CONTENT_TYPE_BINARY); res.setData(pdata); res.sendData(); target.close(); /** 6.2 Setting ErrorCode and ErrorMsg for success **/ nErrorCode = 0; strErrorMsg = "person list saved complete : row count("+ds.getRowCount()+")"; } catch (Throwable th) { /** 6.3 Setting ErrorCode and ErrorMsg for failure **/ nErrorCode = -1; strErrorMsg = th.getMessage(); System.out.println("ERROR:"+strErrorMsg); } /** 6.4 Saving ErrorCode and ErrorMsg to send them to the client **/ PlatformData senddata = new PlatformData(); VariableList varList = senddata.getVariableList(); varList.add("ErrorCode", nErrorCode); varList.add("ErrorMsg", strErrorMsg); /** 7. Sending result data to the client **/ HttpPlatformResponse res = new HttpPlatformResponse(response, PlatformType.CONTENT_TYPE_XML,"UTF-8"); res.setData(senddata); res.sendData(); %> [source] ๋„ฅ์‚ฌํฌ๋กœN/์ดˆ๋ณด์ž๋ฅผ ์œ„ํ•œ ์ž์Šต์„œ/ํ™”๋ฉด ๋งŒ๋“ค๊ธฐ (X-API)/save_list.jsp/์ „์ฒด ์ฝ”๋“œ </s>
<s>[INST] <<SYS>> ๋„ฅ์‚ฌํฌ๋กœN<</SYS>>save_list.jsp ๋ฐ์ดํ„ฐ ์ €์žฅ ์ด๋ฒคํŠธ [/INST] ํ™”๋ฉด ๋งŒ๋“ค๊ธฐ (ํŠธ๋žœ์žญ์…˜)์—์„œ ๋งŒ๋“  ํ™”๋ฉด์— ๋ฒ„ํŠผ ์ปดํฌ๋„ŒํŠธ๋ฅผ ์ถ”๊ฐ€ํ•˜๊ณ  ์•„๋ž˜์™€ ๊ฐ™์ด onclick ์ด๋ฒคํŠธ๋ฅผ ์ถ”๊ฐ€ํ•ฉ๋‹ˆ๋‹ค. ํ™”๋ฉด ๋‚ด ๋ฒ„ํŠผ์„ ํด๋ฆญํ•˜๋ฉด save_list.jsp ์„œ๋น„์Šค๊ฐ€ ํ˜ธ์ถœ๋˜๋ฉด์„œ ํ™”๋ฉด์—์„œ ์ˆ˜์ •ํ•œ ๋ฐ์ดํ„ฐ์…‹์„ ์„œ๋ฒ„๋กœ ์ „์†กํ•˜๊ณ  ๋‹ค์‹œ ํŒŒ์ผ๋กœ ์ €์žฅํ•ฉ๋‹ˆ๋‹ค. ๋ฐ์ดํ„ฐ๋ฅผ ์ˆ˜์ •ํ•  ์ˆ˜ ์žˆ๋Š” ๊ธฐ๋Šฅ์„ ๊ฐ„๋‹จํ•˜๊ฒŒ ์ถ”๊ฐ€ํ•ฉ๋‹ˆ๋‹ค. ํ™”๋ฉด ๋‚ด ๊ทธ๋ฆฌ๋“œ๋ฅผ ๋”๋ธ”ํด๋ฆญํ•˜๊ณ  Grid Contents Editor๋ฅผ ์‹คํ–‰ํ•œ ๋‹ค์Œ Name ํ•ญ๋ชฉ์„ ์„ ํƒํ•œ ํ›„ edittype ์†์„ฑ์„ 'text'๋กœ ์ˆ˜์ •ํ•ฉ๋‹ˆ๋‹ค. [๊ทธ๋ฆผ](๋ฐ์ดํ„ฐ ์ €์žฅ ์ด๋ฒคํŠธ-1) ๋ฐ์ดํ„ฐ ์กฐํšŒ ํ›„ ํ•ด๋‹น ํ•ญ๋ชฉ์„ ๋”๋ธ” ํด๋ฆญํ•˜๋ฉด ๋ฐ์ดํ„ฐ๋ฅผ ์ˆ˜์ •ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. [๊ทธ๋ฆผ](๋ฐ์ดํ„ฐ ์ €์žฅ ์ด๋ฒคํŠธ-2) ๋ฐ์ดํ„ฐ ์ˆ˜์ • ํ›„ ์ €์žฅ(save) ๋ฒ„ํŠผ์„ ํด๋ฆญํ•ด ๋ฐ์ดํ„ฐ๋ฅผ ์„œ๋ฒ„๋กœ ์ „์†กํ•ฉ๋‹ˆ๋‹ค. ํ™”๋ฉด์„ ์ƒˆ๋กœ ๊ณ ์นจํ•œ ๋‹ค์Œ ์กฐํšŒ(Search) ๋ฒ„ํŠผ์„ ํด๋ฆญํ•˜๋ฉด ์ˆ˜์ •ํ•œ ๋ฐ์ดํ„ฐ๊ฐ€ ์กฐํšŒ๋˜๋Š” ๊ฒƒ์„ ํ™•์ธํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. [code]( this.divCommand_btnSaveList_onclick = function(obj:nexacro.Button, e:nexacro.ClickEventInfo) { var id = "save_list"; var url = "SvcList::save_list.jsp"; var reqDs = "customers=dsCustomers"; var respDs = ""; var args = ""; var callback = "save_list_received"; this.transaction(id, url, reqDs, respDs, args, callback); } this.save_list_received = function(id, code, message) { if (code == 0) { this.alert(message); trace(message); } else { this.alert("Error["+code+"]:"+message); trace("Error["+code+"]:"+message); } } ) [source]ํ™”๋ฉด ๋งŒ๋“ค๊ธฐ (X-API)/save_list.jsp/๋ฐ์ดํ„ฐ ์ €์žฅ ์ด๋ฒคํŠธ </s>