Creating a form entry for a specific form definition. Every form belongs to a vehicle, a driver and a time, when the form is valid and this has to be given when the form is created.
POST do_customdialog_data.php?company=COMPANY_RTIKEY&vehicle=VEHICLE_RTIKEY&driver=DRIVER_HEXKEY&form=formname&ts=timestamp&val1=field 1-value&val2=field 2-value&valX=field X-value
|company||RTI Firmenschlüssel||string||comany RTI key is needed||yes|
|vehicle||RTI Fahrzeugschlüssel||string||vehicle RTI key is needed||yes|
Time of the form is set.
The following format is needed: YYYYMMDDhhmmss
|valX||form entry field X||integer|
Each form definition has up to 10 field which can be send.
For every form you have to observe the form structure, because of the types and order of each entry.
Fields with pictures or signatures can not be set by this function and you let them free, also if they are mandatory.
yes, if mandatory field, if not it is optional
Field type formats
- date: YYYYMMDD
- time: hhmmss
- integer: 0123456789
- float: 123.4567890
- text 10: text with the length of 10 characters
- text 30: text with the length of 30 characters
- text 500: text with the length of 500 characters
- options field: text, which is one of the defined options of the form field
- yes/ no-field: yes = 1, no = 0
- pictures/ signatures/ forms: you send no value, this can not be set by this RTI function
The standard return is a "OK"-message, which marks the succes of the function. If a mandatory parameter is missing or values have a wrong format the retrurn message is "ERROR:Description".
Possible error Messages and their meaning:
"PARAMETER_TS_NOT_GIVEN" - no timestamp passed
"PARAMETER_DRIVER_NOT_GIVEN" - no driver key passed
"PARAMETER_FORM_NOT_GIVEN" - no form name passed
"PARAMETER_TS_INVALID" - timestamp is no correct date/time value
"PARAMETER_DRIVER_HEXKEY_INVALID" - driver key is not correct or is not existing
"FORM_NOT_FOUND" - no form found with this name
"WRONG_FORMATTED_FIELDS(Feldnummern)" - list of fields where the values are wrong formatted
"MANDATORY_FIELDS_MISSING(Feldnummern)" - list of fields, which are mandatory, but no value is passed