Home
Nexacro Platform 14 / Getting Started Tutorial
Contents
1. trace Error code message Connecting to a Database In the example presented in this manual you just brought a dataset file already saved in the server and sent it to a client In contrast the below code shows how to connect to a database instead of just accessing a file 80 Nexacro Platform 14 Getting Started Tutorial 80 page import java util gt 8 page import java sql gt 8 page import com nexacro xapi data gt 8 page import java io gt 8 page contentType text xml charset utf 8 gt lt Service API initialization PlatformData pdata new PlatformData int nErrorCode 0 String strErrorMsg MI STIVA NEIL WE RKKKKKK JDBC Connection KKK KK KK Connection conn null Statement stmt null ResultSet rs null Class forName com microsoft sqlserver jdbc SQLServerDriver conn DriverManager getConnection jdbc sqlserver localhost 1433 DatabaseNa me Sample guest quesiti p stmt conn createStatement wiy RKKKKKK SOL query ok ck ck ke ke ke e e e KK String SQL select from sample customers list rs stmt executeQuery SQL KKK KKK KK Data see Grease KOK KK e e x KK DataSet ds new DataSet Customers ds addColumn id DataTypes STRING 4 ds addColumn name DataTypes STRING 16 ds addColumn email DataTypes STRING 32 ds addColumn phone Data
2. html head lt title gt JarInfo lt title gt lt style gt font family Verdana lt style gt lt head gt lt body gt lt pre gt lt oe new com nexacro xapi util JarInfo info out oe gt lt pre gt body html 8 Jarinfo gt C D localhost 8080 testjsp Manifest Manifest Version 1 0 Built By Server Team Created By 1 4 2 19 b04 Sun Microsystems Inc Ant Version Apache Ant 1 7 1 Main Class com nexacro xapi util JarInfo Built Date September 25 2014 Name com nexacro xapi Specification Title X API Implementation Title X API Specification Version 1 0 Specification Vendor at satana Mi Implementation Vendor Id com nexacro Implementation Version 1 0 0 4033 Implementation Vendor User 1 3 N Log INFO Loaded license file in JAR dir path C Program Files Apache Software Foundation Tomcat 8 0 webapps ROOT License product name nexacro platform product version 14 product function Windows WindowsRT MAC iOS Android customer name M i D server cpuCoreCount 0 server ipAddress 0 0 0 0 date activation 2015 01 01 date term 2 date term unit month AAA 66 Nexacro Platform 14 Getting Started Tutorial Objects The followings are objects included in the X API library e PlatformData a basic object that stores data e PlatformRequest an input object that reads XML data and objectifies it upon t
3. Download Web Server Software lt a 28 Run the Web Server rc 29 Test the Application ttt HH HH ehe e e ehh hh 29 4 2 Running Apache to Test Data Transactions gt lt sete nnn 29 Installing the JDK Java SE Development Kit sett 30 Installing Apache Tomcat ee II hh 32 Testing your Tomcat Installation e e eee 32 Adding Context sss eee ehh 32 Webapps Set Up ss hh hehehe 32 Adding External Context sss eee ee e e ehh hh 34 Testing Your Nexacro Platform Application lt lt 35 5 Creating a Customer List Inquiry Screen lt lt lt e nn nn 36 5 1 Dataset Component s hh e eee 36 Dataset Contents Editor xis se ute sper ue e Pale IR Cub t E cb ip on d RUE a ay 38 Component Assignment sheer 40 5 2 Linking the Grid to the Data lt e HH 42 Binding the Data s nnne 42 Formatting the Data in the Grid sss enn 42 53 Data Test 0p SCRIP ee A Aene doe Ve ee eA xA rede 49 Button Click Event offen ee ewe e es us US pP a p i ae RII pa e AE 49 Generate the Javascript sss eee eee hehehe 50 Move the Library Folder to the Project Folder o 8 e eee 50 Quick View ss hh Hie ere hehehe hene 51 6 Creating a Data Transactions Screen seer n n nn nnn 52 GI Grid Combo omo cr eee quee e it b UI a e e et Gee dre ah e 52 Dataset ef RD el DR dece eue e iere ssp e are E E a E 52 Grids iue ter te ted RE RI RET eae pas rete ale acd e E Re DS hae keh a oe ORE ee U
4. c ecc e c c ccce 84 Overall Code cose ct DIIS 85 Data Saving Event ie 86 Preface Useful Information Target audience Planners developers and designers who are unfamiliar with nexacro platform nexacro studio For details on nexacro studio installation composition and options refer to the Studio Guide nexacro platform programming For details about nexacro platform application development refer to the Developer Guide nexacro platform distribution For details on nexacro platform application distribution or execution stages refer to the Administrator Guide Other Development Tools Web server and other development tools not provided by TOBESOFT will be mentioned here only briefly For further information refer to manuals provided by the respective manufacturers What You Will Learn Introduction to nexacro platform Provides an overview of nexacro platform x Nexacro Platform 14 Getting Started Tutorial Overview of nexacro studio Describes the studio development environment and installation Hello nexacro platform Presents the first step in creating a nexacro platform application using nexacro studio Test Server Environment Setup Describes how to set up environment in which nexacro platform applications not the Runtime version can be tested You can skip this if you have an environment already set up Creating a Customer List Inquiry Screen Discusses how to create a screen that manipulates
5. target densitydpi is not supported QuickView html 6 Q Failed to load resource the server responded with a status of 404 Not Found http localhost 8080 Customerlist theme default images titlebar icon png 4 numbers of data have been found SystemBase HTML5 1s 47 Firefox The JavaScript console can be accessed via the menu below Firefox provides more features and information than Google Chrome Menu Web Developer gt Web Console i i Customer List Search Creating a Data Transactions Screen 61 rmname Base 3A 3Afrr New Tab gt 7 Bookmarks gt RS New Private Window History d Edit gt Downloads Find 4k Add ons Save Page As Options Email Link Help sa Print E Web Developer E Toggle Tools Full Screen Web Console N Set Up Sync Debugger Exit Inspector Style Editor Developer Toolbar Responsive Design View TC 002 Sean One Scratchpad Page Source TC 003 ieter Valer Ber Cose Get More Tools Character Encoding Work Offline Ctrl Shift K Ctrl Shift S Ctrl Shift I Shift F7 Shift F2 Ctrl Shift M Shift F4 Ctrl U Ctrl Shift J 14 14 14 14 15 152 59 24 779 f A Unknown property behavior Declaration dropped 6 QuickView html 24 59 25 311 TypeError TOBE createPrototype is not a function SystemBas ML5 js 24 at line 5644 in eval script http localhost 8080 Customerlist xplatform13lib component DeviceAPI Mobile js 59 25 394 A Error
6. Appendix Additional Help content The following figure illustrates sample Help content 28 e Hide Back Forward Ge dh ne acro x PLATFORM Objects gt XComponents gt Combo Combo E B 58 Mies Mier Mies Mies Mier M Chrome W Safari W Firefox B Support JUnaupportod D Windows Runtime E Android Runtime D iOS Runtime It is Component to conveniently select one value out of various candidate values Combo enables both a user to selectively input from lists and others to select one out of many candidate values By using Search function of Combo it is possible to input by fast narrowing candidate values by inputting one or two letters Combo can differently treat text strings on display and internal values amp value of Combo can interlocks one value of Dataset i key action To open DropDownList Alt Down To scroll DropDownList Chi Direction key Form Gnd GroupBox Image Viewer ListBox f jii pis UT 3 Introducing Nexacro Platform In this chapter you will create a simple application to demonstrate the Nexacro Platform application development environment and Nexacro Studio The application will display the message Hello Nexacro Platform When you click the message text Nexacro Platform 14 will display in the Alert window 3 1 Starting Nexacro Studio Start Nexacro Studio by e Double clicking the Nexacro Studio icon on your Windows desktop SK or e D
7. Hybrid Architecture Visual Effects Description events on a variety of devices reducing the cost of supporting multiple devices running multiple operating systems Nexacro Platform enables responsive applications using optimized data communications and supporting asynchronous communications which allows an optimal environment for each task Nexacro provides a variety of components for enterprise applications reducing application development time In particular Grid the most frequently used tool provides strong support for externally supplied data With Nexacro Studio you can create new events through drag and drop while a few simple clicks enable data binding for each component Although the performance of web applications is gradually improving they still cannot always meet the performance requirements of the most intensive applications Runtime provides a superior alternative Its many styles and themes make it easy to create a variety of visual effects with Nexacro Studio 2 Overview of Nexacro Studio Nexacro Studio is an application development tool included with the Nexacro Platform It supports both HTML5 and Runtime versions by providing interfaces and features similar to 4GL development tools for example Visual Basic Delphi PowerBuilder Nexacro Studio supports WYSIWYG What You See Is What You Get screen form design data visualization and logic composition with scripts Instead
8. Processing ErrorCode and ErrorMsg 5559 nh 69 Sending result data to the client s n nnn 69 Overal Code Lead cea RA qe Rt ee dor RD e ia Rod e e Ms e eyed ta elas eres e ren 70 Data Initialization Event e RR RR RR RR I RR Aa RR RR RR e e e e rn 72 7 4 searhjsp s heme e hee 74 pseudocode e hh hh le 74 Coding sss e e e e hehehe ee 74 Designating a Java library st eee eee ees 74 Defining a MIME type e e een 74 Creating a basic object of Nexacro Platform PlattormData lt n L e e 75 Processing data Loading data from the file ss s 75 Processing ErrorCode and ErrorMsg 559 e 75 Sending result data to the client e e 76 OveraliCode sita a gatebg a E Er hil i enc deer au ue e a ER petes 77 Data Search Eventi eesxesudesradelsis fr lt ne Bd uL K AR NA ee ie Dd Sot bo Cs 79 Connecting to a Database e hehehe 79 7 5 save listjSD she hel 82 pseudocode e hh hh hh le 82 Coding sse e e hehehe ee 82 Designating a Java library ttt eee eee ees 82 Defining a MIME type n 82 Creating a basic object of Nexacro Platform PlatformData eter ttt tenes 83 Receiving a request from the client 5 enne enn 83 Extracting and saving the data sent by the client s n 8 e f t 83 viii Nexacro Platform 14 Getting Started Tutorial Processing ErrorCode and ErrorMsg SAA dei ae m is GU Ld wot ate Ra aiesd Skat vont Bi a A T KA 84 Sending result data to the client n n n n n amp I B IK e
9. Requirements hne 5 2 2 Installing Nexacro Studio ss Hehe rere 6 Additional Installation Information ss HH Hh 7 Versioni Ch k ETE LOL ODD 9 Licence Authentication eee Eee eiae eue bI eU qe ND eR Vs 10 2 3 Uninstalling Nexacro Studio L reren 11 24 Using Help seh him hh ah ae aha enne 12 3 Introducing Nexacro Platform Hm nn nn nnn 13 3 1 Starting Nexacro Studio nhe rennen 13 3 2 Creating a Project hh heme hehe ree 15 3 3 Creating an Application Hehe herren 17 Creating a Form sehe hh hae 17 Form Dimensions ai seen sue ucc a un eA i e ete Fakes al weis d eei ata 17 Run he Wizard ise RE sete POE ee NER ARS EPI RET ER ek ECKE Ea a GR ENSE 17 Component Assignment ss hh hh rere 18 Screen Layout Hh he ee en eee ner 18 Write Letters c eiae eh eet ed uentos A rd Bet bed eid quw He sce Pu dion 20 Assign a Component in a Different Size nennen 20 Revise Static Component Text K K K C L eene 21 vi Nexacro Platform 14 Getting Started Tutorial Generate Path Rei hoa de ub deem ied d olx AR Aa aie tox ean Ec wa eee Ra a B rd D 21 Using QuickView to Specify Generate Path e e 21 Using Options Menu to Generate Path e n n B n n B ue 22 Generating the JavaScript Code n n n n n n RR RR A eR Re hh hh hehehe hh rrr 23 Adding Events 00 eee 25 4 Test Server Environment Setup gt x K K gt K C gt gt K C L K C K K C K K K L 27 4 1 Using Mongoose s I hh heme hh 28
10. a desktop icon Overview of Nexacro Studio 7 Once Setup has been completed click the Finish button to complete program installation Completing the nexacrol4 SetupDeveloper Setup Wizard Setup has finished installing nexacro14 SetupDeveloper on your computer The application may be launched by selecting Click Finish to exit Setup Additional Installation Information The installation package includes the following shortcut tool icons which are accessible from the path Start gt Program gt nexacro gt 14 Icon Menu Description e Help Nexacro Platform Help Icon e Uninstall Uninstall Shortcut Icon py nexacrostudio14 Nexacro Studio Shortcut Icon 9 The list of installed files may vary depending upon product version 8 help i nexacro14lib theme Be nexacro Bl nexacrocompressor F nexacrogenerator z nexacrostudiol4 E unins000 amp dbghelp dll msvcp80 dll msvcp110 dil msvcr80 dll msvcr110 dll amp nexacroax14 dil amp nexacroBasicLib14 dll amp nexacroClassLib14 dll amp nexacroDebugLib14 dll amp nexacroHttpLib14 dll Nexacro Platform 14 Getting Started Tutorial amp nexacrolauncherax14 dil nexacrolib dll amp nexacroMemPoolLib14 dil nexacroPlatformLib14 dil amp npnexacro14 dil amp npnexacrolauncherl4 dll S TiCtrlLib dll TiDebugLib dll TiEdit dll amp TilnterfaceSuit16 dll amp TU
11. client VariableList varList pdata getVariableList variser cuo tol C Ime xe roe Coden EU EE D EG LG varnimi trdo Macros tels I GIN por Gc Sending result data to the client HttpPlatformResponse res new HttpPlatformResponse response PlatformType CONTENT TYPE XML UTF 8 res setData pdata res sendData oe gt Creating Data Transaction Service using X API 79 Data Search Event Modify the onclick event applied to the Search button in the screen developed in the Chapter 6 Creating a Data Transactions Screen Clicking the button will call up the search jsp service reading the file saved in the server and returning a dataset The information on the dataset sent from the server will be contained by the dsCustomers dataset written within the developed screen before being output through the relevant grid this divCommand btnSearch onclick function obj Button evimesasu oeste varn all gt esearch wene tell EDE EEE s ETIE S9 y were LEC WWE var respDs dsCustomers customers vez asas Ys var callback received this transaction id url reqDs respDs args Callback this received function id code message if code 0 var rowcount this dsCustomers rowcount this alert rowcount numbers of data have been found trace rowcount numbers of data have been found else sta lena Harron Mie ode tlt message
12. code is for handling exceptions If the data processing is successful the server will return a message that data has been successfully saved pa S L Processing BSI O6 0c c aac mero miso A int nErrorCode 0 Serine sites Eres or M S TR MT Smale cry d SALAS cate BUS OG o de man ella o MS EOS SS e SS nErrorCode 0 strErrorMsg person list saved complete row count ds mgevRoweounie caso catch Throwable th Poe o SECA Imus Clos anne EET fo ice iis 97 nErrorCode I strErrorMsg th getMessage 6 4 Saving ErrorCode and ErrorMsg to send them to the client PlatformData senddata new PlatformData VariableList varList senddata getVariableList valsa ddi Hrarortode MERO Rod vans era dd MEROS ON Sia Poiret OVI VIS 0 Sending result data to the client Use PlatformData to let the client know whether the initial data has been successfully saved For here the previously saved ErrorCode and ErrorMsg will be delivered Since VariableList is a member of PlatformData the result of processing ErrorCode is included in PlatformData Now you will learn how to extract XML data from PlatformData and send it to the client as Nexacro Platform can handle XML format First create the object Plat formResponse to facilitate data transfer Then write the below code to extract data from PlatformData js YT Seinchling resule cera tO the client HttpPlatformResponse res new HttpPlatfo
13. designated folder Test Server Environment Setup 29 Run the Web Server Double click the Mongoose executable file to run Mongoose Right click the Mongoose icon in the system tray to interact with the web server Refer to the Mongoose documentation at http cesanta com docs shtml for more information 3 Selecting Start browser opens the web browser The Mongoose executable file appears as the web server s root 9 The directory list varies depending on the Mongoose version that you are using Test the Application You can test Nexacro Platform by clicking the newly created project directory Hello a To test Nexacro Platform applications in a web browser copy any related library files to the web B DM Ld server For more information refer to Generate To execute an application through a web browser directly in Nexacro Studio select the web browser on the build toolbar and enter the following URL http 127 0 0 1 8080 Hello index html To shut down the web server right click on the Mongoose icon and select Exit 4 2 Running Apache to Test Data Transactions To test applications as well as test data transactions you will need to install a web application server WAS You can use a free application such as Tomcat Jetty or Winstone or a commercial application This section illustrates how to install Apache Tomcat and the required Java SE Development Kit JDK 30 Nexacro Platform 14 Ge
14. ds newRow ds sec row aia euisttiomens 10108 ds set row name customers 1 pdata addDataSet ds 4 2 Saving a dataset as a file 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 Creating Data Transaction Service using X API 69 Processing ErrorCode and ErrorMsg The below code is for handling exceptions Pos Boll Processing miccowCocks amol mero Misa 9 int nErrorCode 0 Sipe NG msi sha oS som ARE wiy Al pa 5 2 Serting ImemorwCocks ac ineaogaViso ior SUCCESS s nErrorCode 0 SEXO mise VSUCC 2 L cacen sseowelole qim Por SoS Serias rerorCoce and J xcscoxMISXS ror allas 97 nErrorCode 1 strErrorMsg th getMessage 5 4 Saving ErrorCode and ErrorMsg to send them to the client PlatformData senddata new PlatformData VariableList varList senddata getVariableList var isterdi ME rrorc odet Error Code varList add ErrorMsg strErrorMsg Sending result data to the client Use PlatformData to let the client know whether the initial data has been successfully saved For here the previously saved ErrorCode and ErrorMsg will be delivered Since VariableList is a member of PlatformData the result of processing ErrorCode is include
15. import com nexacro xapi data gt 8 page import com nexacro xapi tx gt Defining a MIME type Define a MIME Multipurpose Internet Mail Extensions type for creating a XML file ll 2 IM qose 80 page contentType text xml charset UTF 8 gt Creating a basic object of Nexacro Platform PlatformData Declare PlatformData as a basic object for data processing PlatformData is an object that can store all types of data used in Nexacro Platform s applications such as datasets and variables Write the below code to declare PlatformData fs o Gesso a basite object ONES ON Etats fs omes PlatformData pdata new PlatformData 68 Nexacro Platform 14 Getting Started Tutorial Processing data saving data as a file Create a dataset enter information about the column create two rows and input column values to each row Register the dataset in Plat formData for easy handling of the dataset Save PlatformData under the name saveFile bin The below code is for creating a dataset and saving it as a file paz di Processing catas setas cara as ci tlle wu 4 1 Creating a dataset and inputting basic data to the dataset DataSet ds new DataSet customers ds addColumn id DataTypes STRING 4 ds addColumn name DataTypes STRING 16 int row 0 doge sd Op String customers new String 8 customers 0 SORS customers a AD starmi Foe a 09 sb lt Bp abs row
16. in parsing value for opacity Declaration dropped QuickView html 59 25 395 f A Error in parsing value for background image Declaration dropped QuickView html 06 47 835 PA Error in parsing value for box shadow Declaration dropped QuickView html 6 49 446 4 numbers of data have been found SystemBas ML5 js 24 62 Nexacro Platform 14 Getting Started Tutorial Internet Explorer The JavaScript console can be accessed via the menu below Developer tools can be accessed directly via the F12 function key Menu Tools gt developer tools gt Console Print File gt Zoom 100 K Safety K Add site to Start menu View downloads Ctri J Manage add ons v F12 developer tools Go to pinned sites Internet options About Internet Explorer File Find Disable View Images Cache Tools Validate Browser Mode IE10 Document Mode Standards rx HTML CSS Console Script Profiler Network n ES scR1PT7002 XMLHttpRequest Network Error x2ef3 Could not complete the operation due to error 00002ef3 QuickView html numbers of data have been found C numbers of data have been found 4 7 Creating Data Transaction Service using X API 6 Creating a Data Transactions Screen handled XML file data that is already written and stored In actual business environments however data transaction usually involves more complicated tasks such as querying multiple databa
17. inputting basic data to the dataset DataSet ds new DataSet Customers ds addColumn id DataTypes STRING 4 ds addColumn name DataTypes STRING 16 ds addColumn email DataTypes STRING 32 ds addColumn phone DataTypes STRING 16 ds addColumn comp name DataTypes STRING 32 ds addColumn department DataTypes STRING 32 ds addColumn comp phone DataTypes STRING 16 ds addColumn comp addr DataTypes STRING 256 int row 0 Creating Data Transaction Service using X API aigue 3L Que String customers new String 8 EROS c mer ue customers NERI SR customers 2 ceo tobesoft com stos Sl OCW Oo 4 Sun customers 4 TOBESOFT customers 5 0 customers 6 6506 7000 customers 7 Seoul Foe ab Of x lt ls dd row ds newRow dsr Set eO Wire ACTUS OTT S ON ds set row name customers 1 ds set row email customers 2 ds set row phone customers 3 ds set row comp_name customers 4 ds set row department customers 5 ds set row comp_phone customers 6 ds set row comp_addr customers 7 pdata addDataSet ds 4 2 Saving a dataset to a file String targetFilename saveFile bin OutputStream target new FileOutputStream targetFilename PlatformResponse res new PlatformResponse target PlatformType CONTENT_TYPE_BINARY res setData pdata re
18. platfoarm BA E e expr text Hello nexacro platform v wordwrap true amp Information cssclass id Static00 Design IST 2 100 v Properties G Generate Path Nexacro Platform applications don t execute the code created on Nexacro Studio directly The JavaScript code needs to be generated which can be used in any environment based on the integrated framework You need to specify the Generate Path to designate the folder where the generated JavaScript files are written You can do this using QuickView or the Options menu as described in this section Using QuickView to Specify Generate Path Access QuickView Menu Build gt Quick View gt Quick View 22 Nexacro Platform 14 Getting Started Tutorial Using Options Menu to Generate Path Another way to specify the Generate Path is by accessing Menu Tools Options Environment General gt Generate Path A new folder with the project name is created under the designated folder and the JavaScript files will be created Working Folder D 103_TESTIXPWPJ Generate Path n Base Lib Path C Program Files nexacro 14 nexacro 14lib Note This option must be set for each project Recent files items shown in recently used File items shown in recently used Project File T The followings are default set ups of Working Folder Generate Path and Base Lib Path Z Working Folder C Users user name Documents nexacro pro
19. setColumn row comp phone 6506 7000 this dsCustomers setColumn row comp addr Seoul 50 Nexacro Platform 14 Getting Started Tutorial Generate the Javascript To implement your new application on a web browser convert the current code into a JavaScript file by selecting Menu Build gt Generate Application The Output window should show the JavaScript being created Output 9 nexacro generator 9164 Save a Result File D 03_TEST XP BUILD CustomerList CustomerList xad 4 generator 9164 Loading C Users tobesoft AppData LocalLow nexacro 14 Cache Theme def generator 9164 Parsing CSS D 03_TEST XP BUILD CustomerList _theme_ default theme cs generator 9164 File information Collecting D 03_TEST XP BUILD CustomerList _theme_ generator 9164 Save a Result File D 03_TEST XP BUILD CustomerList _theme_ default generator 9164 Loading D 03 TEST XP PJ CustomerList Base frm list xfdl generator 9164 Collecting File information D 03 TEST XP PJ CustomerList Base frm list generator 9164 Save a Result File D 03 TEST XP BUILD CustomerList Base frm list xf generator 9164 Generate Project CustomerList Success 4 Fail 0 Copy 0 generator 9164 Total Time 4 56 sec Move the Library Folder to the Project Folder Once the JavaScript file has been created you have to put the library folder into the project folder Do this by adding a copy of the nexacr
20. store all types of data used in Nexacro Platform s applications such as datasets and variables Write the below code to declare Plat formData Jas 3 Creacing a basile Claject oe Nezaeno Pileicinomm PilaerormData pdata new Plat tormData Receiving a request from the client The server handles the dataset sent from the client as a parameter 4 Receiving a request from the client create HttpPlatformRequest for receive data from client HttpPlatformRequest req new HttpPlatformRequest request req receiveData Extracting and saving the data sent by the client Transform the data sent by the client into Plat formData and extract the dataset from the basic object to allow the server to handle the data Save the created Plat formData as a file under the name saveFile bin JA EE EPIS Ses sino datario ding dato non the dec A47 5 1 Loading data from the http object pdata req getData Obtaining a dataset from the received data DataSet ds pdata getDataSet dsPerson 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 84 Nexacro Platform 14 Getting Started Tutorial res sendData target close Processing ErrorCode and ErrorMsg The below
21. target close TICA Secreing 5o odcmandgismo5nMSsqge od success t nErrorCode 0 strErrorMsg person list saved complete row counti AdS s SIE EEIT OME 0 se 4 WR catch Throwable th Por 03 Serting prrorcCoce ance iniicorisc Cor failure se nErrorCode 1 strErrorMsg th getMessage System out printin ERROR strErrorMsg 6 4 Saving ErrorCode and ErrorMsg to send them to the client PlatformData senddata new PlatformData VariableList varList senddata getVariablelist ven labe palco Haro OG uy meMnbnaig 14 Com p varList add ErrorMsg strErrorMsg foe To Senchng result dera to rhe client 7 HttpPlatformResponse res new HttpPlatformResponse response PlatformType CONTENT TYPE XML UTF 8 res setData senddata res sendData oe Data Saving Event Add a button component to the screen developed in the Chapter 6 6 Creating a Data Transactions Screen and then add the onclick event as seen in the below code Clicking the button will call up the save list jsp service sending the dataset modified in the screen to the server and saving it in the server as a file You can add a simple function that can modify data Double click the grid in the screen to open the Grid Contents Editor Select the Name cell and change the edittype property to text Creating Data Transaction Service using X API 87 head amp Action asi displaytype normal te
22. the cells on the colO head rows followed by selecting the Merge Cells item on the context menu When selecting multiple cells simultaneously drag the mouse after selecting a cell or select other cells with the Shift key pressed col col col coa E Action displaytype normal edittype none tooltiptext B Appearance Ctrl N Ctrl I Ctrl D autosizecol default autosizerow default celltype none maskchar suppress 0 suppressalig first e o e mask o amp bi o wordwrap If you try a cell combination you are prompted if you want to retain the current cells properties As you will not use the sub cell properties here select No Selected Cell has a user specified properties Do you want to keep the property and merge Yes Keep the properties of the selected cell as a subcell No Merge into a single cell which does not have subcells Creating a Customer List Inquiry Screen 47 Combine cells in the body rows in colO and coll 9 If you select several cells with the Ctrl key pressed the Merge Cells item on the context menu will not be activated The following table lists the cell values illustrated in this example Column Head Cell text Body Cell text Column size colo ID bind id 80 coll Name bind name 150 col2 Email bind email 200 Phone bind phone col3 Company bind comp_name 320 Department bind department Specify cell values by selecting the cell and enteri
23. 4 Getting Started Tutorial In this example the settings will be as follows Field Description Predetermined value e Project name Hello o Project file savinglocation D XP PJ Hello e Select project format Create a new Project 0 Click Finish to save the project As the project is created the project component will be displayed in the project explorer window 9 The paths explained in this chapter are based on the Windows 7 operating system The paths may differ depending on the operating system The file will be saved automatically to this location if you don t specify an alternative ad Ld C Users User Documents nexacro If you want to add ADL Assertion Definition Language while the project is still open select Add f toCurrent Project instead of e Create a New Project Introducing Nexacro Platform 17 3 3 Creating an Application Nexacro Platform applications run based on forms While a project presents the stage for an application a form decorates the stage arranges movements and add effects Creating a Form Form Dimensions The default form size is 1024x768 which will be used for this example To modify the size and layout you will need to access the Dimension tab For now you can skip this A You can specify the basic size of a form by using Options Follow the path Tools gt Options gt Form Design gt General and revise the item Default Width and Default He
24. API simply include jar file to class path Include in class path defined while driving JVM or in WEB INF lib directory of Web Application mad pne MONA Quadr Following are X API jar files T fes T Piatto File Name Description Necessity MEDINA AIDA a nexacro xapi x x x jor x APt yes PartDaiase azer X AP1 require higher than JDK or JRE 1 4 and external component to use X API is as below PanP SERU SHD Danone robe Component Name Description Necessity Reference PlattrmenaryJavaTypeDaraS enakzer Apache Commons Logging X API internal logging yes hltp jakarta apache org commons logging Pattomenan Pari DaraSensizer Punom Caoba Type 3 License Piatformexception 7 3 initdata jsp This is a service to create basic data and save it to the server in the form of a file pseudo code Creating Data Transaction Service using X API 67 1 Designating a Java library including nexacro platform X API 2 Defining a MIME type 3 Creating a basic object of Nexacro Platform PlatformData try d 4 Processing data 5 Processing ErrorCode and ErrorMsg success message catch Error 5 Processing ErrorCode and ErrorMsg failure message 6 Sending result data to the client Coding Designating a Java library Designate a basic Java library to write a JSP service The necessary code is as below lt l i Desilcmer las a Jewea Ialoeaey gt 80 page import java io gt 8 page
25. Creating Data Transaction Service using X API 73 if code 0 this alert message trace message else this alert Error codet message trace Error code message Although you can enter a full URL whenever you need to specify the url property you can make the process simple by adding frequently used domains to TypeDefinition as service URLs Then you just need to specify a file name without having to write a long URL The following is how to use the specified service var url Service ID file name MEME Gs Services MU TES cachelevel codepage language Base http localhost Service ID Service Type Service Url File Extension ej CSS TEL tuse for norefilterino 9 Indude sub directory 74 Nexacro Platform 14 Getting Started Tutorial 7 4 search jsp This is a service to create a dataset by reading data from the saved file and then sends the dataset to a client pseudo code 1 Designating a Java library including nexacro platform X API 2 Defining a MIME type 3 Creating a basic object of Nexacro Platform PlatformData icy d 4 Processing data 5 Processing ErrorCode and ErrorMsg success message l caton rror 4 5 Processing ErrorCode and ErrorMsg failure message 6 Sending result data to the client Coding Designating a Java library Designate a basic Java library to write a JSP service The nece
26. E XML UTF 8 res setData pdata res sendData oo gt 82 Nexacro Platform 14 Getting Started Tutorial 7 5 save list Jsp This is a service to modify the file according to the data sent from a client pseudo code Unlike 7 3 initdata jsp and 7 4 search jsp there is a step called Receiving a request from the client 1 Designating a Java library including nexacro platform X API 2 Defining a MIME type 3 Creating a basic object of Nexacro Platform PlatformData ery i 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 Coding Designating a Java library Designate a basic Java library to write a JSP service The necessary code is as below lt il JL Deslcmaralas a Java Ie T gt 8 page import java io gt 8 page import com nexacro xapi data gt 8 page import com nexacro xapi tx gt Defining a MIME type Define a MIME Multipurpose Internet Mail Extensions type for creating a XML file Creating Data Transaction Service using X API 83 SERIO RIN MIMEREvp gt 80 page contentType text xml charset UTF 8 gt Creating a basic object of Nexacro Platform PlatformData Declare PlatformData as a basic object for data processing Plat formData is an object that can
27. ING size 32 gt Column id comp phone type STRING size 16 gt Column id comp addr type STRING size 256 gt ColumnInfo 1 2 3 4 5 6 7 8 9 0 T S Dataset Contents Editor P 40 Nexacro Platform 14 Getting Started Tutorial Component Assignment The customer list inquiry screen is composed of a title a search window a search button and a grid as illustrated in the picture below El frm listxfdl x dsCustomers Design A Set the overall layout and place components by using the guideline which can be shown or hidden by double clicking the screen over the graduated ruler The components and revised property values used for this sample screen composition are as follows Component Property Value Explanation e Static id sttList text Customer List Search Character string to be shown font bold 20 Verdana Font properties O Div tz id divCommand Component Property O Exit a O Button id text O cria ES a Value edtSearch btnSearch Search grdCustomers Creating a Customer List Inquiry Screen 41 Explanation Character string to be shown on button 9 The Div component plays the role of wrapping several components Assign the Div component first and then other components to be wrapped inside it such as the Edit and Button components 42 Nexacro Platform 14 Getting Started Tutorial 5 2 Linking the Grid to the Dat
28. Nexacro Platform 14 Getting Started Tutorial 14 0 0 700 ne gt acro PLATFORM 14 0 0 700 Nexacro Platform 14 Getting Started Tutorial TOBESOFT TOBESOFT strives to maintain the accuracy of information provided in this document and will consistently modify and supplement it However we cannot guarantee accuracy of information in this document TOBESOFT assumes no responsibility for errors and omissions No liability is assumed for damages resulting from the use of information contained herein Users of this document implicitly agree that they understand the contents of this disclaimer Each trademark herein including the product name of each company is a solely registered trademark of each company who developed it and is protected by patent laws and the copyright laws and should be used for the purpose of reference only TOBESOFT Co Ltd 2 bF INTOPS Building 617 Bongeunsa Ro Gangnam Gu Seoul 06083 Korea www tobesoft com Table of Contents Copyright and Disclaimer TOBESOFT n Hn nnn nn iv Table of Contents v Preface ais feet aud ieee eed e A Se Sad ee al ad as ix 1 Nexacro Platform Introduction ii 1 1 1 The Evolution of UI UX for Business s Hh BUX Business User eXperience s nme 2 12 Nexacro Platform A SE ER ED A e CR Rn ae ge ROO RU E LA RR RR dn ace Ra Rn 3 Key Features e hh hee e ee n ae erre 3 2 Overview of Nexacro Studio se RII I hh huh r hann 5 2 1 System
29. Nexacro Platform applications Click the Static component on the Objects toolbar and then click where you want it placed in the Form Design window The Static component is displayed in the default size ne gt acro 0 A G lel ao ma II RR hi O P E frm helloxfdl x enable true enableevent true e hotkey Design PMI Assign a Component in a Different Size You can assign a component to the Form Design window in a different size than the default Select the component and instead of clicking the place where you want it in the design window press and drag the left mouse button to the size you want Project Explorer LESE frm helloxfdl X a Entire Proje fos IEEE IQ Project Hello AO e Properties B Z TypeDefinition 1 iaia 2 GlobalVariables Idee E Layout Information B ES ADL Hello i ta UE e description B E Base A sacks AE suine B Z frm_hello SESTIERE MSR 104 00 III Script 100 Properties Design Sinis Introducing Nexacro Platform 21 Revise Static Component Text To revise a static component s text select the component in the Form Design window click its text area to switch to edit mode and make your changes To modify a component s properties select it in the Form Design window then edit the properties in the Properties window frm hello xfdl X X Properties Static00 Static ut GIA ER Z Z
30. Tutorial BUX Business User eXperience Nexacro enables a great business user experience by integrating three critical elements e A unified platform One set of source code easily supporting different screen sizes creating optimized results across a wide variety of operating systems browsers and devices including tablets phones and desktops e Aunified development process Nexacro Studio improves productivity by integrating all processes from development to testing and distribution while enabling simpler in house development as well as advanced UI construction e A data centric unified data framework capable of supporting structured and unstructured data as well as data from online transaction processing online analysis processing and big data visualization applications Nexacro Platform Introduction 3 1 2 Nexacro Platform Nexacro Platform uses a JavaScript based framework to accommodate enterprise demands Applications developed using Nexacro Platform with its write once deploy many capability support functionality on many different operating systems browsers and devices without requiring additional development Nexacro Studio bundled with Nexacro Platform is the WYSIWYG development environment that enables creation of mobile and web applications Nexacro Studio offers developers a variety of technical capabilities including drag and drop editing of user interface components an easy to use data binding capability A
31. Types STRING 16 ds addColumn comp name DataTypes STRING 32 ds addColumn department DataTypes STRING 32 ds addColumn comp phone DataTypes STRING 160 ds addColumn comp addr DataTypes STRING 2560 int row 0 while rs next Creating Data Transaction Service using X API 81 row ds newRow ce ser eon Vae Ss qersrimas Wale g ds set row name rs getString name ds set row email rs getString email ds set row phone rs getString phone ds set row comp_name rs getString comp_name ds set row department rs getString department ds set row comp phone rs getString comp phone ds set row comp addr rs getString comp addr Adding Dataset to PlatformData x xx xxx pdata addDataSet ds nErrorCode 0 Stia Soli SUSY p catch SQLException e ME ror Coder EE strErrorMsg e getMessage KKK KK KKK JDBC Close ex s KKK if stmt null try stmt close catch Exception e de coma le nulls ciy T comi Close catchy ssserereueabex e 4 PlatformData senddata new PlatformData VariableList varList senddata getVariableList varist radaMErrorC odet Error Code varList add ErrorMsg strErrorMsg KKK KK KKK XML qarta Create KKK x HttpPlatformResponse res new HttpPlatformResponse response PlatformType CONTENT TYP
32. a Often when composing a screen that includes a dataset it is convenient to use the Grid component to bind the data This will allow display of the data on the screen as well as entering and revising data directly on the grid The changes are reflected immediately in the dataset Binding the Data Bind the data by designating a dataset id value for the binddataset property or by clicking the dataset component on Nexacro Studio and dragging it onto the grid component frm listafdl x d id name email phone comp_name departi The grid form is changed based on the dataset columns Formatting the Data in the Grid If you want to modify how the data in the grid is formatted you can modify the format property value in the databind properties The value in the Binding formats property is initially created based on the columns in the dataset Double click the grid or click the button linked to formats on the Properties window to open and display the Grid Content Editor Properties fillareatype nodataimage nodatatext suppresslevel useselcolor B Binding binddataset formatid e formats 0 Formats Format d lt defaul B GridTree treeinitstatus treeusebutton treeusecheckbox treeuseimage treeuseline amp Information cssclass e id sameskip true dsCustomers collapse null use true true true grdCustomers Prop
33. aee http java sun com xml ns javaee web app 3 0 xsd version 3 0 metadata complete true gt lt web app gt Once you set the Options gt Generate path Nexacro Studio creates application JavaScript code in the specified folder 34 Nexacro Platform 14 Getting Started Tutorial Adding External Context Apache webapps setup is limited to a predetermined path To use a different folder for example on a Windows D drive you must use an external context To do this add an application context file created in the form of a XML file to a designated folder under the path where Tomcat is installed C Program Files Apache Software Foundation Tomcat 7 0 conf Catalina localhost Create an XML file with a name of your choice and add the following content Context path Hello docBase D 03_TEST XP BUILD Hello debug 0 prvileged true reloadable true gt lt Logger className org apache catalina logger FileLogger ditacetonyziblto gsiipractie tito cale stelo gs irreali timestame true gt lt Context gt Test Server Environment Setup 35 Testing Your Nexacro Platform Application Test your Nexacro Platform application by 1 Entering that application s path in your web browser or 2 Directly from the web browser in Nexacro Studio by clicking Web Browser on the build toolbar and enter the following URL http localhost 8080 Hello index html To shut down the web server r
34. ati frm helloxfdl X LN S TypeDefinition this StaticO0 onclick function obj Static GlobalVariables B this alert nexacro platform 14 New Form Hello nexacro platform nexacro platform 14 Output i212 nexacro generator 981 4 SB Output YW E Ready 26 Nexacro Platform 14 Getting Started Tutorial The corresponding code for the form we have created here frm hello xfdl is listed below lt xml version 1 0 encoding utf 8 SIDI yea eio IL SUS TypeDefinition url default_typedef xml gt Form id frm hello classname frm hello left 0 top 0 width 1024 height 768 titletext New Form gt Layouts Layout Sys abe Sende ias ill Nexacio Placon Juri 50 top 50 width 160 height 70 onclick Static00_onclick gt Layout lt Layouts gt SED GE AES serlo s 10 s T ICDA this Static00 onclick function obj Static e nexacro ClickEventInfo clus Alare Ness Plactzoomn 14 p lt Sersipae gt lt Form gt FDL 4 Test Server Environment Setup Before you can execute a Nexacro Platform application directly on a web browser you need to create and test an operating environment for each browser you want to support This can be done with the Windows Runtime architecture or on Nexacro Studio To run Nexacro Platform applications you only need a web server Choose a web server based n on your particular needs The following tab
35. ation Service Name Developer License Key If a correct key is entered you can see the below message and authentication is done Product Key has been granted License Type Function Limited Windows WindowsRT MAC iOS Android Time Limited by 2 Months Target Client Limited Runtime HTML5 Permitted developer count is 0 Activation Date 2014 09 01 If you put your key incorrectly or the product key is found to have been already approved the authentication will be failed with the below message on show Overview of Nexacro Studio 11 2 3 Uninstalling Nexacro Studio To uninstall the Nexacro Platform Package and Nexacro Studio access Start gt Program gt nexacro gt 14 and run Uninstall At the confirmation prompt click Yes to complete the uninstall process Are you sure you want to completely remove nexacrol4_SetupDeveloper and all of its components ade ne 12 Nexacro Platform 14 Getting Started Tutorial 2 4 Using Help To access the online help press F1 or select the menu option Help Help The following table lists sample help categories Table 2 2 Contents of Help Item Description Application Objects Reference Help related to the Application Frame Objects Reference Help related to the Frame Object Script Reference Help related to scripts Objects Reference Help related to objects Components Reference Help related to Component Plugins Reference Help related to Plugins
36. be entered manually or selected from the list Once the combodataset item is entered you can manually enter items on combocodecol and colbodatacol or select from the list Property Value Explanation displaytype combo Data indication format for the cell combodataset dsDepartment Dataset to be linked with a combo component when displaytype or edittype is combo combocodecol code Code column combodatacol value Data column 54 Nexacro Platform 14 Getting Started Tutorial col3 Company wordwrap Department head Rm expr body e text bind department E GridCombo combocodecol code combodatacol value EERE Deport gt 7G e combodisplo combodisplaynu combodisplayrov 1 B GridDate calendardisp Formats Design Source Generate When you revise a form which is not ADL simply create another file with a relevant file format You can select Generate File not Generate Application on menu Menu Build gt Generate File When you execute QuickView again you can see the Department item shown as a name instead of a code name Company Department TOBESOFT Boardroom Creating a Data Transactions Screen 55 6 2 Transaction Now let s fetch data from a server using the transaction method The test will fetch the XML file created with a data format used in Nexacro Platform applications Test data is used in this example to retrieve the data For that reason in an a
37. d in PlatformData Now you will learn how to extract XML data from Plat formData and send it to the client as Nexacro Platform can handle XML format First create the object PlatformResponse to facilitate data transfer Then write the below code to extract data from PlatformData fs 6 eol inasuile cerea ta the client HttpPlatformResponse res new HttpPlatformResponse response PlatformType CONTENT TYPE XML UTF 8 res setData senddata res sendData If the data is successfully processed the client will receive the below XML data 70 Nexacro Platform 14 Getting Started Tutorial Root xmlns http www nexacro com platform dataset ver 5000 gt Parameters Parameter id ErrorCode type int gt 0 lt Parameter gt Parameter id ErrorMsg type string gt SUCC lt Parameter gt lt Parameters gt lt Root gt Overall Code lt il i Desacineicaing a Java Library gt 8 page import java io gt 8 page import com nexacro xapi data gt 8 page import com nexacro xapi tx gt lt 2 Defining a MIME type gt 8 page contentType text xml charset UTF 8 gt lt bs Bo Creating a basie elojexcie or Nezacro Placon s PlatformData pdata new PlatformData Seo Processing ENSIS orCcode rond s 5ob5MSq int nErrorCode 0 strings ebro Ms q SRA ery d jue A Processing catas saving Caca as ci cile wa 4 1 Creating a dataset and
38. daptive Visual Editor a feature that greatly simplifies support of varying device screen sizes and orientations as well as a collection of interesting design effects all of which collectively maximize development productivity The platform supports HTML5 and hybrid architectures using the same development process and setup files HTML5 applications can be freely deployed without any special installation Applications deployed with the in the hybrid architectures attain higher performance and reliability by leveraging an installed virtual engine optimized for each supported operating system Key Features Table 1 1 Key Features Feature Description Powerful IDE Similar to existing development tools Nexacro Studio Nexacro Platform s development environment provides a variety of convenient development features With its intelligent editor and WYSIWYG screen design Nexacro Studio supports numerous convenient features for developers Support for standards The Nexacro Platform uses widely adopted standards such as JavaScript CSS and XML By using familiar technologies developers don t need to learn new languages and can become productive in the new development environment quickly Integrated device event processing By standardizing mouse touch and other event processing the same single set of code can handle 4 Nexacro Platform 14 Getting Started Tutorial Feature Quick data processing Rich Component Library
39. dataset data on a grid Creating a Transaction Screen Covers how to display on the screen after fetching data from the server It also explains the use of logs on the web browser Common Notation To increase readers understanding this user manual contains separate notations for words or sentences with special meanings The following is an explanation of the notations Notes tips and cautions are given as follows Notes are used to provide brief explanations references or comments Tips are provided to give helpful advice 9 Cautions provide information that demands special attention from readers or users 1 Nexacro Platform Introduction An application with a high quality user interface and user experience UI UX results in more rapid adoption and more productive users leading to lower support costs a reduced Total Cost of Ownership TCO and increased Return on Investment ROI The Nexacro Platform is a solution custom tailored for business users with all the features functionality and design elements required to support business requirements The Nexacro Platform will empower you to create a high quality UI UX so that you can improve productivity and reduce repetitive data entry tasks in your business 1 1 The Evolution of UI UX for Business The continued evolution of internet technology is now enabling connectivity for almost any physical object through the Internet of Things As t
40. department gt 0 lt Col gt Col id comp_phone gt 6506 7000 lt Co1 gt Col id comp_addr gt Seoul lt Col gt lt Row gt lt Rows gt lt Dataset gt lt Root gt Overall Code MID estem sting E viae iiio as 8 page import java io gt 8 page import com nexacro xapi data gt 8 page import com nexacro xapi tx gt SERIE MIN a MIMET type gt 8 page contentType text xml charset UTF 8 gt lt az Ss Creating a basie cojer Oi Mexacro Placrorm PlatformData pdata new PlatformData 5 1 Processing ErrorCode and ErrorMsg int nErrorCode 0 String strErrorMsg START pw di 78 Nexacro Platform 14 Getting Started Tutorial js di reas Pela 8 roading elica meca dae sile doaekbae cera meca e file uw 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 i 5 2 Serrano mirorCode ance jUseisxouMiexe ior success 9 nErrorCode 0 Sudameris 0 Cue catch Throwable th fos DoS Serting mrrorlode anc brrorMeg ror L nErrorcode gt strErrorMsg th getMessage ta Bye 4 Saving ErrorCode and ErrorMsg to send them to the
41. e soe veli Gate 53 Generate esses dae Chee ee eee te bre Eee Shee Ri aaa a Sale p R eed Ed ERIS IR E VE 5A 62 Transaction em Site a ta eee ee a Ree dae dee Bae ee ee a le eem ele 55 Sample rnr rrn nnne nunaa e erann naunan 55 Button click event ect tees eee Biv ae A Wa e Ii A A at ea Ss 57 Callback Function ci a ele aA E ee a e Ht Baa tanto ee ee ay ene 58 6 3 Log afb Hoy Sa E ahi deca Vy onc Echec Maie NR eee ia e a acd vi a atas sa a a ERES iid ades E hae ta Sey horas 59 Table of Contents vii Google Chrome e hh hh e eens 60 Firefox e A RR HH hhh hh hh hh ihhh on hh ohh nor rn hh hr n rn n 60 Internet Explorer ss I Ihe ehh 62 Creating Data Transaction Service using X API gt gt gt gt gt e n n X XH 63 Id Semice use oe ha Sect a quisi Wheeled destin eee oe RR ORA Sa ee uS 63 TI SCAP son adnan sheng a iii refe d amie Gi shade Cie nd en ee Ee a ed Steet nak Sinise heen D Ets 64 ProvidediFiles c ev breed bons Re Rem nue beh b Doa Rue a iie mode wa URS RU EIS Rb de bas 64 Installation uev ERR Seek bd det Rees eodd deam fece miae mede px ao a 64 Objects hh heh heh em ire eene 66 7 8 initdatajsSD hh le 66 pseudocode e hh e ll 66 Coding s ehh hme ehh ehem he hehehe eene 67 Designating a Java library sss M M nnne 67 Defining a MIME type s n e e 67 Creating a basic object of Nexacro Platform PlatformData setter n e f 0 t e n 67 Processing data saving data as a file MM 68
42. erties Creating a Customer List Inquiry Screen 43 E itself The Grid Content Editor modifies the data formats shown on a grid but does not affect the dataset Existing formats can be deleted to edit in a new format Select the head and body on the grid content editor and deletes designated formats by selecting the delete item on the context menu Ctrl X Ctrl C Ctrl N Ctrl I 44 Nexacro Platform 14 Getting Started Tutorial The newly edited columns are composed of four columns with two head rows and two body rows Add head rows by clicking the right mouse button on the Grid Content Editor and choosing Add Head Row Add Body Row Ctrl 2 Add Summ Row Ctrl 3 Creating a Customer List Inquiry Screen 45 Adding the head row also adds one column By selecting Add Column you can add additional columns col col col col Add Head Row Ctrl 1 Add Body Row Add Summ Row Formats MMT E Position e band e size To show two types of data on col2 and col3 add two head rows and two body rows You can add body rows by selecting Add Body Row col col col col3 row row Add Column Ctrl 0 Add Head Row Ctrl 1 Add Summ Row Ctrl 3 Formats METAS amp Position band size 46 Nexacro Platform 14 Getting Started Tutorial Because the col0 and coll columns connect to only one data source the cells must be combined You must select
43. et designated in a service or a file Multiple values may be designated separately Value that designates the parameters transmitted when requesting transaction The transmission format is as follows parameter name value Multiple values maybe designated separately This is a value that designates the CallBack function that processes transaction results 58 Nexacro Platform 14 Getting Started Tutorial e The transaction method has three more parameters including asynchronous binary and compressed communication If you omit the parameter the default value will be applied Callback Function Access a service or a file by transaction method and then execute the designated CallBack function The CallBack function is created as follows this received function id code message if code 0 this alert this dsCustomers rowcount numbers of data have been OVINO p trace this dsCustomers rowcount numbers of data have been QUI else this alert Error code message trace Error code message As the XML file used in the example always sends a successful message the result is as below It shows data on the Grid The page at localhost 8080 says 4 numbers of data have been found NCH 9 If a transaction URL is not on the same server as Nexacro Platform applications you may experience an Access Control Allow Origin error Creating a Data Transac
44. g the loaded data to the dataset pdata req getData Processing ErrorCode and ErrorMsg The below code is for handling exceptions fos Soil Brocessima mesias Emol BUS 5 M S GT int nErrorCode 0 String strErrorMsg START wew i ES DL T enna Error Codet and Error Msg for success nErrorCode 0 SsDEDBOSMSqe SUC e catch Throwable th 76 Nexacro Platform 14 Getting Started Tutorial joo 15 9 Serting mirorCode anc tiroe or deal las 7597 nErrorCode 1 strErrorMsg th getMessage 5 4 Saving ErrorCode and ErrorMsg to send them to the client PlatformData pdata new PlatformData VariableList varList pdata getVariableList wee labe ace ImsesexeCroxoke NECO CC de vals taa Ema o Ms Os eE OMS a Sending result data to the client Use PlatformData to let the client know whether the initial data has been successfully saved For here the previously saved ErrorCode and ErrorMsg Will be delivered While the PlatformData object in initdata jsp only contains ErrorCode and ErrorMsg the PlatformData in search jsp also includes a dataset containing the name list that the client uses Since VariableList is a member of PlatformData the result of processing ErrorCode is included in PlatformData Now you will learn how to extract XML data from PlatformData and send it to the client as Nexacro Platform can handle XML format First create the
45. he request from JSP e PlatformResponse an output object that put out XML data upon the request from JSP e DatasetList amp Dataset objects that store data in the form of a two dimensional table or table array e VariableList amp Variable objects that store a set of input output arguments See the X API manual included in the library for further explanations Al Classes CE Package Class Use Tree Deprecated Index Help ERAMOS NO FERME Packages com nexacro xapi daa Som Nesasto sapi dana databpe nexacro X API G LI X API is an API for communication with nexacro platform client amp Of nexacro xag ix com nexacro sap ix inel e All Classes Columnrieader DataDeseracrer Dataseravzer C X API is an API for communication with nexacro platform client Data Serata Converter Briel 1 Introduction DmaSetis Diner Main purpose of the X API is to provide communication with nexacro platform client data transmit and receive or to simplify operation of transmitted recel Dau Tyoecnaoger to focus on business development DacaTypet actor Dmatynes Data transmitted received between client and server exists as singular data consisted of key value and as two dimensional data similar to the Table in DB A transmit receive such data o oca Refer to com nexacro xapi data and com nexacro xapl tx for major function of X API Hlan Type tamormmesponse Hee age lata or 2 Installation Hopelaccemsequest HrpPuccemsesponse To install X
46. he scope of internet usage increases web applications have also evolved to provide richer user experiences for corporate and individual users Prior technology generations included client server C S environments which provided acceptable performance but included significant challenges associated with installation distribution and maintenance Eventually the World Wide Web fixed many of these issues but slow data transfer speeds and limited UI functionality troubled users and developers Several companies developed platforms to support the development of Rich Internet Applications to address these concerns while the HTML standard grew to enable more user interface technology over time Over time the importance of usability has led application developers to focus not only on the user interface of an application but also on the full user experience with it Those applications that deliver the best experiences to their users enjoy more rapid adoption and since a good experience is an easy to use experience these application lead to fewer support calls Recently enterprises have shown increasing interest in the business view where UI UX is optimized for the business environment Against this backdrop we seek to improve the Business User Experience including helping users make quick decisions and promoting productivity through an intuitive work environment thereby creating business value 2 Nexacro Platform 14 Getting Started
47. ight so that you can specify the basic size of created forms Run the Wizard To create a new form run the New Form Wizard and follow these steps Menu File New Form New Form Wizard Stepi Location Dimension Position Layout Name Location 18 Nexacro Platform 14 Getting Started Tutorial Field Explanation Example Value e Form name frm hello 2 Place where the service group will Base be saved default value is Base e Click the Finish button Component Assignment Once a new form is created the form design window and toolbars are activated Toolbar Description TextStyle Sets text properties Object Assigns component Align Arranges component s screen Screen Layout ne gt lt acro 8 C BBB R B 8 S TR mm Ma mR RW ORIO R3 E E M Project Explorer nx frm helloxfdl X X Properties ene EE gt B Rim teso em E amp Layout Information e description L name screenid Design IIT 100 Properties Y Output Form Area 1 Project Explorer 2 Design Source Script tabs e Properties Style Property Editor tabs Q Ribbon Introducing Nexacro Platform 19 Description List of project objects Panel for editing design source code and scripts for form Panel for modifying the form properties and styles Common commands 20 Nexacro Platform 14 Getting Started Tutorial Write Letters You can use Static components to write text in
48. ight click on the Tomcat icon and select Exit 5 Creating a Customer List Inquiry Screen The most basic item used in tasks when creating an application is the inquiry screen This chapter discusses using the Grid and Dataset components on a form to create a simple customer list inquiry screen P open This section assumes that you have already created the project and form and have the form 5 1 Dataset Component The Dataset component provides data management support for a Nexacro Platform application lt stores data fetched from the server and manages the data change status add revise delete This component manages the data in a two dimensional table format and manipulates the data in a column or row record format A form can have several datasets and multiple forms can utilize multiple datasets by using Global Variables You can add a dataset to a form by selecting the Dataset S icon on the Nexacro Studio toolbar and clicking anywhere on the form Because a dataset is an invisible component used for data management inside applications it is shown in the UI as an Invisible Objects item You can change the following Dataset properties from the Form Properties panel For further dataset properties use the Dataset Contents Editor Property dsCustomers Value Creating a Customer List Inquiry Screen Explanation Dataset id 37 38 Nexacro Platform 14 Getting Started Tutorial Dataset Conten
49. jects Generate Path C Users user name Documents nexacro outputs Base Lib Path C Program Files nexacro 14 nexacrol4lib Introducing Nexacro Platform 23 Generating the JavaScript Code Nexacro Studio creates the JavaScript files and stores them at the Generate Path location 24 Nexacro Platform 14 Getting Started Tutorial Name Type Hello xadl JScript Script File Hello xadl quickview JScript Script File index Chrome HTML Document popup Chrome HTML Document QuickView Chrome HTML Document di theme File folder e Base File folder As the converted JavaScript files are created you can see QuickView executed ne lt acro Hello 00 BB CEA S amS RIR OBI W 0 99 d Project Explorer SEE frm helloxfdl X v X Properties New Form Hello nexacro platform Output Introducing Nexacro Platform 25 Adding Events Let s create an event that displays an Alert window when the user double clicks the Static component Hello Nexacro Platform Double click the component on the Form Design window The function will be created automatically as soon as the design window switches to the Form Script window as shown here this Static00_onclick function obj Static e nexacro ClickEventInfo Declare a task in this function by adding code that displays Nexacro Platform 14 in the Alert window cule parita MN aid T SEE aan EAN p ne lt acro Hello Project Explorer sab
50. latform 14 Getting Started Tutorial e search jsp used to create a dataset by reading data from the saved file and then sends the dataset to a client e save list jsp used to modify the file according to the data sent from the client 7 2 X API Provided Files The Nexacro Platform X API library provides functions necessary for developing services for data processing The provided files are as below e nexacro xapi 1 0 jar X API library file e commons logging 1 1 1 jar http commons apache org proper commons logging e nexacro14_server_license xml license file e docs gt api X API manual A The X APIs of Nexacro Platform used for the example in this manual are just a library that contains functions necessary for data processing Therefore they are not a must use Installation Copy the two JAR files and a license file to the WEB INF folder of your web application server WAS WEB INF lib nexacro xapi 1 0 jar WEB INF lib commons logging 1 1 1 jar WEB INF lib nexacrol4 server license xml The location for copying the library can vary according to the settings of your WAS AO Library files and license file must be in the same location for the identification of those files You can verify whether the installation has been successful with the below code Creating Data Transaction Service using X API 65 8 page contentType text html charset UTF 8 gt
51. le compares two popular web servers Mongoose and Apache Tomcat If you want to test data transactions you should also install a web application server WAS Refer to 4 2 Running Apache to Test Data Transactions Feature Mongoose Apache Tomcat Installation file None Installation file provided The executable is unpacked and ready to run You must install the web server before you can use it JDK Installation Not required Separate JDK installation required Contexts None Create contexts using the Apache interface or The folder where the executable is located is by deploying a war file the web server root X API support Not available Available through separate installation XPLATFORM 9 2 Not available Available Version 9 2 requires JSP 9 For more information about various web servers refer to the vendor s documentation 28 Nexacro Platform 14 Getting Started Tutorial 4 1 Using Mongoose Use Mongoose a lightweight web server to test the Nexacro Platform application without testing data transactions Mongoose does not require installation Simply copy the executable file to your computer and run it Download Web Server Software Download the Mongoose executable for your environment from Google https code google com p mongoose Copy the downloaded file to the Generate Path that you specified in Nexacro Studio Options Generate path Nexacro Studio creates the application JavaScript code in the
52. mally an application used for business does not manage the data locally Typically the application gets and modifies data but the data is stored on the server This chapter discusses how code data is managed in Nexacro Platform applications fetched from the server and viewed on a web browser 6 1 Grid Combo Database schema often include such data as country department and rank If these data are entered as character strings users may enter them differently To avoid this the data are managed by creating separate code tables As you can see in the example below the Department item is managed not by its name but by its code in the database However the item should show users its name So in the grid component you can determine a displaytype according to data forms Dataset Create a dataset first and then enter properties and column values Property Value Explanation id dsDepartment Dataset id No id type size Explanation 1 code STRING 32 Department code 2 value STRING 32 Department name Creating a Data Transactions Screen 53 Dataset Contents Editor Contents S prop sumtext code value D Boardoom a jAcountng 2 Persona B Humanresources 6 engineering o JO n un HM ig Dataset Contents Editor Grid Execute the Grid content editor by double clicking the Grid Select the data cell of Department and revise the following items in the properties window The combodataset item can
53. ng Started Tutorial o Row Row Co Col Co Col Co Col Col Co Row Row Col Coll Co Col Co Col Col Col Row Row Col Co Col id comp_addr gt Seoul lt Col gt ical SC 002 Co id name gt Sean Oneal lt Col gt id email gt ibero Donec consectetuer ac ca lt Col gt id phone gt 7357 3715 lt Col gt id comp_name gt AC lt Col gt id department gt 0 lt Co1 gt id comp_phone gt 7357 7000 lt Col gt id comp_addr gt Lansing lt Col gt Td meme Seo id name gt ieter Valenzuela lt Col gt id email gt ornare Maecenasmifelis com lt Col gt id phone gt 9025 0645 lt Col gt id comp_name gt Maecenasmifelis lt Col gt id department gt 0 lt Co1 gt id comp_phone gt 9025 7000 lt Co1 gt id comp_addr gt Coral Springs lt Col gt id id gt TC 004 lt Col gt id name gt Mark Contreras lt Col gt id email gt vitae posuer lt Col lt Col Co Col Co Row lt Rows gt lt Dataset gt lt Root gt consectetueripsumnunc ca lt Col gt id phone gt 7026 3815 lt Col gt id comp_name gt consectetueripsumnunc lt Col gt id department gt 0 lt Col gt id comp_phone gt 7026 7000 lt Co1 gt id comp_addr gt Elmira lt Col gt Button click event Creating a Data Transactions Screen 57 Add code fe
54. ng the value in the properties window on the right side wordwrap E Binding e expr E GridCombo comp_addr combocodecol comp_name combodatacol combodataset combodisplay combodisplayrowcour B GridDate calendardisp Formats PESCINA 48 Nexacro Platform 14 Getting Started Tutorial Click OK after entering the value to show the new value on the grid frm listxfdl X EN Email Company Phone Department Creating a Customer List Inquiry Screen 49 5 3 Data Test To test the functionality of the grid we will add data using a simple script Button Click Event To process data add a click event to the btnSearch button 1 Select btnSearch button 2 Right click properties 3 When prompted add an onclick event with the value divCommand btnSearch onclick Cannot find event function divCommand_btnSearch_ondick Create The event script is as follows It adds a data row to the dataset and designates a value this divCommand btnSearch onclick function obj Button e nexacro ClickEventInfo var row this dsCustomers addRow Tails cscusecocmers ecol uou apo We p this dsCustomers setColumn row name Dustin Kim this dsCustomers setColumn row email ceo tobesoft com this dsCustomers setColumn row phone 6987 6543 this dsCustomers setColumn row comp name TOBESOFT this dsCustomers setColumn row department 0 this dsCustomers
55. o14lib to a path in which Nexacro Studio is installed Name Type de _theme_ File folder i Base File folder de nexacrol4lib File folder CustomerList xadl JScript Script File CustomerList xadl quickview JScript Script File index Chrome HTML Document c popup Chrome HTML Document c QuickView Chrome HTML Document Creating a Customer List Inquiry Screen 51 Quick View After executing the web server on Nexacro Studio QuickView is executed If you want to execute QuickView on a web browser 1 Activate the build toolbar 2 Change the browser option You can use the web browser on your desktop computer ADL CustomerList default xtheme none v Runtime Runtime Internet Explorer FireFox Safari N When you execute QuickView on a web browser for the first time you must type in a path in which the QuickView html file is located This path may differ from the Generate path ST http localhost 8080 CustomerList QuickView html While the designated web browser is running you can check Nexacro Platform applications that are processing by clicking the Search button to display data added from the script to the Grid 5 Customer List Search x WEN G 5 localhost8080 CustomerL ist QuickView html formname Base963A963Afrm listxfd Customer List Search Search Company Department TOBESOFT TC 001 Dustin Kim 0 6 Creating a Data Transactions Screen Nor
56. object Plat formResponse to facilitate data transfer Then write the below code to extract data from PlatformData as Bo SeEncliao resul cera us Ne ee ner HttpPlatformResponse res new HttpPlatformResponse response E PlatformType CONTENT TYPE XML UTF 8 res setData pdata res sendData If the data is successfully processed the client will receive the below XML data Root xmlns http www nexacro com platform dataset ver 5000 gt Parameters Parameter id ErrorCode type int gt 0 lt Parameter gt Parameter id ErrorMsg type string gt SUCC lt Parameter gt lt Parameters gt lt Dataset id customers gt ColumnInfo Column id id type string size 4 gt Column id name type string size 16 gt Column id email type string size 32 gt Creating Data Transaction Service using X API 77 Column id phone type string size 16 gt Column id 2 comp name type string size 32 gt Column id department type string size 32 gt Column id comp phone type string size 16 gt Column id comp_addr type string size 256 gt lt ColumnInfo gt lt Rows gt lt Row gt lt Col sae Vi6e Te 001 lt Col lt Col id name gt Dustin Kim lt Col gt Col id email gt ceo tobesoft com lt Col gt Col id phone gt 6987 6543 lt Col gt Col id comp_name gt TOBESOFT lt Col gt lt Col id
57. of developing separate applications optimized for different kinds of devices Nexacro Studio s Multi Layout Manager MLM enables high performance from one source which can be applied to various devices including PCs smartphones and tablets 2 1 System Requirements The following table lists the system requirements for Nexacro Studio Table 2 1 Specifications Item Minimum Requirements Recommended Requirements CPU Intel Pentium III 1GHz or Higher 1GHz or Higher 32 bit x86 Or 64 bit x64 Processor Display Graphic Device over and above 512MB with Accelerator Memory 512M 1GB 32bit or 2GB 64bit HDD 100M 16GB 32bit or 20GB 64bit Platform Windows2000 SP4 Windows 7 Home Premium 6 Nexacro Platform 14 Getting Started Tutorial 2 2 Installing Nexacro Studio Nexacro Studio is included in the Nexacro Platform install package Run the Setup file to start the installation process When prompted click Next 9 If the Security Warning Window is displayed Window Vista and above click Yes Welcome to the nexacrol4 SetupDeveloper Setup Wizard This will install nexacro14 SetupDeveloper on your computer It is recommended that you dose all other applications before Click Next to continue or Cancel to exit Setup Which additional tasks should be performed Select the additional tasks you would like Setup to perform while installing nexacro14 SetupDeveloper then dick Next Additional icons V Create
58. ouble clicking on the Nexacro Studio executable in the installation directory The default installation path is C Program Files nexacro 14 nexacrostudio14 exe 14 Nexacro Platform 14 Getting Started Tutorial Immediately after installation the Nexacro Studio UI displays the following screen without an open project ne gt lt acro 4 Output Callout Component Project Explorer Form Design Properties Output Properties Description List of components for the open project Place for designing an application screen and editing a script Properties of the form component and dataset component You can edit them in this sector List of output messages such as error messages generated messages and messages set up with trace method Introducing Nexacro Platform 15 3 2 Creating a Project Before creating a Nexacro Platform application you must create a project The project defines how the application will appear and run on the user s screen You can create a new project or reuse an existing template project In this chapter you will learn how to create a project Select the New Project Wizard from the menu Menu File gt New gt Project New Project Wizard Step1 Location Definition Screen Frame Template ESSE Default HFrame Si VFrame Si Type the projects name in the Name field Set the location where the file will be saved in the Location field 16 Nexacro Platform 1
59. pplication operating environment you have to import the data stored in a specific place for data storing sample xml The XML file to be used in the example is as follows It is assumed that there are four records and that retrieval has been successful lt xml version 1 0 encoding utf 8 Root xmlns http www nexacroplatform com platform dataset ver 5000 gt lt Parameters gt Parameter id ErrorCode type int gt 0 lt Parameter gt Parameter id ErrorMsg type string gt SUCC lt Parameter gt lt Parameters gt lt Dataset id customers gt lt ColumnInfo gt lt Column lt Column lt Column lt Column lt Column lt Column lt Column lt Column ColumnInfo lt Rows gt lt Row gt Col Co Col Co Col Col Co id id type STRING size 4 id name type STRING size 16 gt id email type STRING size 32 gt id phone type STRING size 16 gt id comp_name type STRING size 32 gt id department type STRING size 32 gt id comp_phone type STRING size 16 gt id comp_addr type STRING size 256 gt Tiida neo id name gt Dustin Kim lt Col gt id email gt ceo tobesoft com lt Col gt id phone gt 6987 6543 lt Col gt id comp_name gt TOBESOFT lt Col gt id department gt 0 lt Col gt id comp_phone gt 6506 7000 lt Co1 gt 56 Nexacro Platform 14 Getti
60. rmResponse response T PlatformType CONTENT TYPE XML UTF 8 Creating Data Transaction Service using X API res setData senddata res sendData Overall Code lt il Ll Deslicmearcias a UI Mb Eo S ER gt 8 page import java io gt 8 page import com nexacro xapi data gt 8 page import com nexacro xapi tx gt lt 2 Defining a MIME type gt 8 page contentType text xml charset UTF 8 lt fax So Creating a basie object ou Mexacro Plaga 9 PlatformData pdata new PlatformData 6 1 Processing ErrorCode and ErrorMsg int nErrorCode 0 Sucia sites ores or MS E MU SR TESTS ix d 4 Receiving a request from the client create HttpPlatformRequest for receive data from client HttpPlatformRequest req new HttpPlatformRequest request req receiveData 3 5 Processo clara io etchine clama neon la Elle s 5 1 Loading data from the http object pdata req getData Obtaining a dataset from the received data DataSet ds pdata getDataSet dsPerson 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 85 86 Nexacro Platform 14 Getting Started Tutorial res sendData
61. s sendData target close System out println after file write ps So2 Bertino macross arc ESSE OUI MS GTC ESL IS SEO nErrorCode 0 Sisi umso rss c SU e 71 72 Nexacro Platform 14 Getting Started Tutorial L cacen TR Fer Co able Por SoS Serias manto ne meo mise ror rallies 97 nErrorCode 1 strErrorMsg th getMessage 5 4 Saving the ErrorCode and ErrorMsg to send them to the client PlatformData senddata new PlatformData VariableList varList senddata getVariableList were ace Imsexee Cole inimicieoiaCorers p varList add ErrorMsg strErrorMsg ES O Sacha resul lene eo idas allen HttpPlatformResponse res new HttpPlatformResponse response PlatformType CONTENT TYPE XML UTF 8 res setData senddata res sendData gt oe Data Initialization Event Add a button component to the screen developed in the Chapter 6 6 Creating a Data Transactions Screen and then add the onclick event as seen in the below code Clicking the button will call up the initdata jsp service creating a file that contains a dataset in the server this btnInitdata onclick function obj Button e nexacro ClickEventInfo via dy Andar var Wiel VES nido ARS var reqDs var respDs wee eiags WW var callback received this transaction id url reqDs respDs args callback this received function id code message
62. ses and saving input data into databases Nexacro Platform applications employ the transaction method to transmit inputs from a form to a server and to receive data from a server The method transforms input variables and datasets into an XML format to transmit them to a server The method uses a callback to process data from a server The foregoing course of operation requires services on the server side to handle variables and datasets sent from clients and manipulate data in databases The services on the server side fetch data at the request of clients and send the data to them after processing it appropriately If there are problems for client requests the services will return error codes and messages which will help clients figure out the natures of the problems Those services can be written with various programming languages such as JSP Servlet ASP and PHP according to server environments This chapter will demonstrate how to make simple services with JSP and how they work 7 1 Service You will be taught how to develop a group of services for using the transaction method to deliver input data from a form to a server and to retrieve data stored in the server You will try to retrieve the data stored in the server instead of accessing to a database for the Y sake of simplicity The following three services will be explained e initdata jsp used to create data and save it in the form a file 64 Nexacro P
63. sonLib dll S TiScmAdpCVS dll TiScmAdpHarvest dll S TiScmAdpSourceSafe dll S TiScmAdpSVN dil v8 dll amp XAppletComp dll XAxCmp dll Es o Es Es S XBasicLib dll XChartCmp dll XChartFXCmp dll XComCmp dll XEXtAPI dll amp y XFrameworkLib dll amp amp XGridCmp dll 23 XGridCtse dll Ea S S iS 5 Es E m E XMemLib dll XMobileAPI dll XPush dll XSQLite dll XWrapComp dll unins000 dat Microsoft V C80 CRT manifest unins000 OpenSource License errordefine Overview of Nexacro Studio 9 Version Check To check the version of Nexacro Studio click Help About Nexacro Studio from the menu ne gt acro STUDIO Product Version This product is licensed to and interna any porti 10 Nexacro Platform 14 Getting Started Tutorial Licence Authentication When Nexacro Studio is first installed the development tool is set as a trial version that will be expired after 60 days If you purchase the software through an official route you can enter the given product key to authenticate your Nexacro Studio Access Help About Nexacro Studio and click Enter New License on the version check window When a pop up appears you are required to enter Application Service Name and Developer License Key ne gt acro STUDIO Product Version 14 0 0 40 File Version 2014 10 7 1 This product is licensed to Applic
64. ssary code is as below lt i 3L Desicgmacing a Java Te gt 8 page import java io gt 8 page import com nexacro xapi data gt 8 page import com nexacro xapi tx gt Defining a MIME type Define a MIME Multipurpose Internet Mail Extensions type for creating a XML file SAD AMIN IMIMENEyp gt 8 page contentType text xml charset UTF 8 gt Creating Data Transaction Service using X API 75 Creating a basic object of Nexacro Platform PlatformData Declare PlatformData as a basic object for data processing PlatformData is an object that can store all types of data used in Nexacro Platform s applications such as datasets and variables Write the below code to declare Plat formData Pre 3 Creating a ASG loei Vr Nexacro Plagio 597 PlatformData pdata new PlatformData Processing data Loading data from the file Load data from the saveFile bin file and save it to Plat formData The basic object contains the dataset The below code is for reading data from the file and saving it into Plat formData A 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 Copyin
65. t has been installed it registers as a Windows service and starts the web server In the System tray right click on the Tomcat icon to view status information or to make configuration changes 2 n your web browser enter the following URL to confirm that the server has installed successfully beep 7127 0 0 1 8080 Adding Context To execute an application on Tomcat you must add context Although there are several ways to add context this chapter discusses ways to set up context under the webapps folder and under a temporary folder Y Depending on your operating system configuration you may need system administrator privileges to add or edit files Nexacro Studio requires administrator privileges to add an application to your webapps configuration Webapps Set up The webapps folder is subordinate to the Tomcat installation folder In a default installation it is located in this path Test Server Environment Setup 33 C Program Files Apache Software Foundation Tomcat 7 0 webapps 1 In Windows Explorer add a new folder under the webapps folder And then add another folder named WEB INF 2 Using a text editor create a file in the WEB INF folder named web xml Paste the following content in web xml lt xml version 1 0 encoding UTF 8 web app xmlns http java sun com xml ns javaee xmlns xsi http www w3 org 2001 XMLSchema instance xsi schemaLocation http java sun com xml ns jav
66. tching the data by accessing the sample xml file instead of adding the data manually to a button click event divCommand btnSearch onclick The revised code is as follows Specify parameters needed for the transaction method and call the method The transaction method downloads data by accessing a service or a file to update a certain dataset value and calls up the CallBack function once the task is completed this divCommand btnSearch onclick function obj Button e nexacro ClickEventInfo Viens var MAL var Var Var Ehistitransactmoni aa id search url http localhost 8080 CustomerList sample xml reqDs respDs dsCustomers customers gusce Mp callback received il ecs esunDe args Callback y The parameters used in the transaction method are as follows Parameter Type id String url String reqDs String respDs String args String callback String Explanation ID distinguishing transactions URL of a service or a file requesting transaction This is a value that designates the dataset changed when the dataset data used in the application are revised The transmission format is as follows Dataset designated in a service or a file Dataset revised in the application Multiple values may be designated separately Value designated when receiving transaction processing results The transmission format is as follows Dataset revised in the application Datas
67. tions Screen 59 6 3 Log The error messages occurring in Nexacro Platform applications and those messages processed in the trace method differ slightly depending on the Runtime or web browser You can check the error messages occurring in Form Design and Generate in the Nexacro Studio Output window However in the Runtime version you can check errors or messages that occur while running applications in the Nexacro Studio Output window In the HTML5 version visibility of errors in the log depends on the configuration of the web browser 9 The following section is based on web browser versions listed below It is subject to change depending on the version in use Google Chrome 34 x Firefox 20 x Internet Explorer 10 x 60 Nexacro Platform 14 Getting Started Tutorial Google Chrome The JavaScript console can be accessed via the menu below Menu Tools JavaScript Console New tab Ctrl New window New incognito window Bookmarks Recent Tabs Edit Cut Copy Paste Zoom 100 ta Save page as Find Print Extensions History Task manager Downloads Clear browsing data Signed in as adobeflexkrE gmail com Report n Settings View source About Google Chrome Help Developer tools Exit JavaScript console Q Elements Network Sources Timeline Profiles Resources Audits Console 0141 gt O Y lt topframe gt v A The key
68. ts Editor For general form components the associated properties can be changed in the properties window However to manage dataset properties you need to use the Dataset Contents Editor Using the Editor you can also design columns and add data directly to a two dimensional table form Double click the dataset to display the Dataset Content Editor zz frm list xfdl X v X Dataset Contents Editor Design PITA To add columns to the dataset click the H8 icon in the Columns section Creating a Customer List Inquiry Screen 39 This example uses the following columns No id type size Explanation 1 id STRING 4 Series No 2 name STRING 16 Name 3 email STRING 32 Email 4 phone STRING 16 Phone No 5 comp name STRING 32 Company 6 department STRING 32 Department 7 comp phone STRING 16 Company Phone No 8 comp addr STRING 256 Company Address In the Rows section you can add data in the same way you add columns Review the items that have been added They are displayed as source code in the editor If you make any change directly to the source code it is immediately reflected in the dataset columns Dataset Contents Editor ITO 2202 Source ColumnInfo Column id id type STRING size 4 gt Column id name type STRING size 16 gt Column id email type STRING sizez 32 Column id phone type STRING size 16 gt Column id comp name type STRING size 32 gt Column id department type STR
69. tting Started Tutorial Installing the JDK Java SE Development Kit Tomcat is a Java based program and requires the Java SE Development Kit JDK to run The JDK is distributed by Oracle Software 1 Download the JDK for your environment from Oracle via this URL http www oracle com technetwork java javase downloads index html X If you are running Windows download the 32 or 64 bit JDK that matches your operating system Test Server Environment Setup 31 2 Run the downloaded installation file to automatically install and configure the JDK 3 You can use the command line interface to confirm that Java has installed successfully with the following command java version When installing JDK version 1 5 and later you can access the system path by copying execution files without setting up the environment variables Java Home needed for execution 32 Nexacro Platform 14 Getting Started Tutorial Installing Apache Tomcat 1 Download the version of Tomcat appropriate for your environment from the following URL http tomcat apache org E Depending on the environment Tomcat may execute a binary file directly or use a separate P installation file This section assumes you are using an installation file 2 Run the downloaded file the installation wizard leads you through the installation process and automatically locates your JRE path Testing your Tomcat Installation 1 Once Tomca
70. xt v 7 body textarea date o mask gt masknumbe j9 combo gt button o tree wordwrap none E Binding Formats MTS ETSI You can change the data by double clicking a cell where a name is written Customer List Search Search initdata Email Company ID Name Phone Department ceo tobesoft com TOBESOFT TC 001 Harry 4 Brown Boardroom Click the Save button to transmit data to the server Click the Search button after refreshing the page and you will see the data on the person that you intended to search for this btnSaveList onclick function obj Button e nexacro ClickEventInfo vew sich Uexeeuecla p var Wiel Swell sce S See Lista SO Vat neq sii cus omens dseustomerstie var respDs wee quee Wile 88 Nexacro Platform 14 Getting Started Tutorial var callback received this transaction id url reqDs respDs args callback this received function id code message if code 0 this alert message trace message else this alert Error code message trace Error code message
Download Pdf Manuals
Related Search
Related Contents
Wiley Beginning AppleScript MODULE "MV" - Made in Algeria Jean-Luc Bizien - Eastenwest and Save - Henry Schein ThinkStation Benutzerhandbuch Operating instructions - OPERTIS Produktkatalog K8N-VM Mode d`emploi - Ricoh Imaging Tender Document - Oil India Limited EX-9686U-L/XX-L/xx-LO Series Hardware User Manual Copyright © All rights reserved.
Failed to retrieve file