-
- Form goals
- Auto form
- Setting up autoform
- A single form
- Form with subform
- Form actions
- Call script after startup
- About Update
- Using tools
- About DataEaseConnect
- checkquery
- callbacksuccess
- clearrecord
- connectonfieldchange
- convertvaltonumber
- decodequery
- deletedata
- deletetdf
- displayerrormsg
- doaction
- ensurequry
- fetchrecord
- fetchrecords
- finddatatype
- findfieldindef
- formdata
- formdefs
- forminit
- forminitdone
- formloaded
- generateid
- getcookied
- getdata
- getelement
- getfield
- getmyhost
- getnumlines
- getrecordcontent
- getrecorddef
- getrecordnofromurl
- gettdf
- gettablefromurl
- istrueval
- login
- logout
- makenewline
- multirecordinit
- newdata
- newtdf
- rundql
- populateoneselect
- selectpopulate
- setcsrfheader
- setelement
- setfield
- singlerecordinit
- stringify
- stripsuffix
- updatedata
- updatetdf
- useisodatetime
- usenumber
- version
- About decommon.js
- The loader
- calccaretpos
- decodequery
- generateid
- insertitem
- loadfilelist
- loadfile
- loadinternals
- message
- rundql
- runpage
- savefile
- selectitem
- testdql
- version
About DataEaseConnect
The dataeaseconnect.js will help you do connect to DataEase PRISM data and to do all the heavy lifting. This chapter will be the reference guide documenting all the different parts and how to use it with samples. The library will be described in many other chapter as well, but then in it's context like forms, data manipulation etc. The library comes with the server and are found in static/deserver under the folder \static in the program catalog of the installation.
<script src="https://code.jquery.com/jquery-3.4.1.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script> <script type="text/javascript" src="/deserver/dataeaseconnect.js"></script> <script> var deconnect = new DataEaseConnect(); deconnect.forminit("[{user.sessionid}]","[{user.token}]"); </script>This is how you set up the library. First load jquery as this is used by our library. Then load dataeaseconnect.js, create the deconnect object and then do some forminit code and you are ready to go. The forminit code read the settings inside the html document and connects data, fields and buttons to simulate a DataEase form on web based on html settings only. For more information look in the form section of this book.