-
- Command line
- Server Settings
- Webserver table
- Commands
- Session
- Authentication
- Custom authentication
- External authentication
- Basic authentication
- Token authentication
- Folder Security
- Data manipulation
- Read one record
- Read many records
- Write one record
- Write many records
- Delete one record
- Direct Page/DQL
- Page data definition
- Directory listing
- File handling
- Prism lists
- Data Defintions
- Get data definitions
- Create data Definitions
- Update data definitions
- Delete data definitions
- Definition format
- run dql
- run script
- A web page
- Page definition
- DQL pages
- Single file/memo DQL
- Single file/memo Page
- LiveText tags
- Url commands
- Tags
- How data is triggered in a page
- .end
- .form header
- .form trailer
- .items
- assign
- application status
- backup db
- begin transaction
- break
- call menu
- call program
- case
- cluster by
- commit
- connect
- copy all from
- data-entry
- db status
- delete records
- define
- disconnect
- do
- documents
- exec SQL
- else
- end
- enter a record
- error messages off
- error messages on
- exit
- export
- for
- global
- if
- import
- imports
- in
- input using
- install application
- into
- list records
- lock
- lock db
- modify records
- message
- named
- others
- prompt
- query selection
- record entry
- records
- reorganize
- restore db
- rollback
- run procedure
- servers
- temp
- then
- tran off
- tran on
- unclustered
- unlock
- unlock db
- via form
- while
- with
- abs
- acos
- addressof
- ampm
- anylookup
- asin
- atan
- atan2
- ceil
- CHR
- concat
- ConsoleCopy
- ConsoleMemoCopy
- ConsoleShow
- ConsoleWriteToFile
- cos
- cosh
- date
- DatePicker
- day
- DEOS
- DialogOpen
- DialogOpenRelated
- DocumentCloseName
- DoesObjectExist
- ExecDQL
- ExecuteFile
- exp
- FileExecDQL
- firstc
- firstlast
- firstw
- FixedWidth
- floor
- futurevalue
- GetCurrent
- GetVar
- hours
- if
- installment
- jointext
- julian
- lastc
- lastfirst
- lastw
- length
- log
- log10
- lower
- MemoChunk
- MemoCopy
- MemoDecodePair
- MemoExecDQL
- MemoFind
- MemoGetGlobal
- MemoLength
- MemoMemoCopy
- MemoMemoReplace
- MemoReadFromFile
- MemoReplace
- MemoSetGlobal
- MemoStringBetween
- MemoStringFrom
- MemoStringTo
- MemoWordCount
- MemoWriteToFile
- midc
- midw
- minutes
- mod
- month
- OpenForm
- OpenMenu
- OpenProcedure
- OpenReport
- periods
- power
- presentvalue
- proper
- random
- rate
- RefreshForm
- RefreshScreen
- RefreshStatus
- Remote
- Remote authentication
- Remote POP3
- Remote IMAP
- Remote SMTP
- Remote XML
- seconds
- SetColor
- SetCurrent
- SetFocus
- SetLabelText
- SetMemoValue
- SetState
- SetStyle
- SetValue
- SetVar
- sin
- sinh
- spellcurrency
- spelldate
- spellmonth
- spellnumber
- spellweekday
- sqrt
- StringBetween
- StringEscape
- StringFind
- StringFrom
- StringReplace
- StringTo
- tan
- tanh
- textpos
- timeampm
- ToText
- UniqueID
- upper
- Wait
- weekday
- WriteToFile
- year
- yearday
- yearweek
- " (quotation marks)
- () (parentheses)
- + (addition)
- , (comma)
- - (subtraction)
- . (period)
- -- (comment)
- / (division)
- * (multiplication)
- * (asterisk)
- ? (question mark)
- ~ (tilde)
- : (colon)
- := (assignment operator)
- ; (semicolon)
- < (less than)
- <= (less than or equal to)
- = (equals)
- > (greater than)
- >= (greater than or equal to)
- all
- all files
- and
- any
- between
- blank
- count
- count of
- file
- highest of
- in groups
- in groups with group-totals
- in order
- in reverse
- item (Statistical)
- item (Conditional Statistical)
- lock files
- lock nothing
- lock records
- lookup
- lowest of
- max
- mean
- mean of
- min
- not
- number
- numeric string
- or
- pause
- percent
- selected record
- std.dev.
- std.err.
- sum
- sum of
- text
- time
- to
- variance
- window
- @GetDefinition
- . document
- . listcommands
- . listdocuments
- . listdrives
- . listfiles
- . listfunctions
- . listinternals
- . listoperators
- . listrelated
- . listtables
- . object
- . table
- . testdql
- @SetDefinition
- . document
- . object
run script
Used to run a script from the server and return the output form the script back to the caller.. Any errors are returned as json data. Data coming back are checked for [ or { in start and then deemed json or html.
To call use /run/script/scriptname
The script name is the name it is defined as in WebServer table or a filename relative to root of system. The type should be Script, name should be unique and security can be set to any level you want the be able to run this script.
How to define a script definition
A script are composed of a cmd that call the exe file to run and 0 - 9 args and a payload that goes to stdin if wanted. All parts of the script definition understands LiveText, so you can use these to read information from the server.
Payload specific LiveText
.session.payload for raw payload send with put or post. The livetext .session.payload.keyname for any _indata with name. Only work for one level payloads at the moment, but will be extended. Indata will be auto parsed of firs use and will only do the parsing the first time. The settings for type and charset can be read by .session.payload.payloadtype and .session.payload.payloadcharset.
run: /run/script now can take payload to send to stdin on call.How to call a python script that read from stdin for a what to do
.cmd C:\ProgramData\ds2imply\dedsscripts3\Scripts\python.exe
.arg1 C:\ProgramData\ds2imply\dedsscripts3\main.py
.payload
{
"action": "versions"
}This one have the payload embedded and can be called by get
A script that takes whatever you send in a post or put and send that to stdin
.cmd C:\ProgramData\ds2imply\dedsscripts3\Scripts\python.exe
.arg1 C:\ProgramData\ds2imply\dedsscripts3\main.py
.payload [{session.payload}]This one read it form the raw buffer send, so it you send a json string that is what is forwarded to the script
A normal script that only takes args
.cmd C:\ProgramData\ds2imply\dedsscripts3\Scripts\python.exe
.arg1 C:\ProgramData\ds2imply\dedsscripts3\main.py
.arg2 versions
.arg3 C:\ProgramData\ds2imply\localappsettings\hxvdcdijrgzn5d2y.json
.arg4 C:\ProgramData\ds2imply\dedsscripts3\input.jsonthis will send just normal args to the script runner and the rules is not "" around each arg as the spawn process will do it for you. Also see that the args are numbered as reading commands are put in a json object and the keys need to be uniqe names in correct case.
The old format still allowed execept for ARG
The script is defined in the body of the document in ini file format KEY=VALUE one each line.
CMD The executable to be called. You can use LiveText in the value to manipulate the command. ARG One arg to be added to arguments sent as a string. It will be read in the order set in body. It will then put together the args manually by seperating with space between. It will be looking for -, / or " to just add the value or if none, check for space in arg and add "aroundval". You can use LiveText to manipulate the arg. ARGS All arguments in the exact format it will be sent to the subprocess command. It supports LiveText to take any before script run data like [{session.query.name}] that will take the name in ?&name=value CMD=C:\DEDSScripts\python.exe
ARGS="E:\Projects\DENext\DataEase4Web\DEDeploy\appdifffromconfig.py" "C:\ProgramData\ds2imply\localappsettings\[{session.query.name}].json"Example that call a python script the will do a diff on a application. The name of the application is read from query parameter name=