Jump to content

alnickels

Members
  • Content Count

    18
  • Joined

  • Last visited

Everything posted by alnickels

  1. alnickels

    JSON array name.

    I have a JSON object that has two arrays. How can I retrieve the name of the array before I loop through all of the roes / elements? I am not sure if this is called an array name or a key.
  2. I am using Delphi 10.1 Berlin to call a Postgresql (9.5.x) function with parameters. When I call ExecFunc I receive an argument out of range exception. The function parameters are defined as numeric and text for other parameters. At one point this function worked fine. Without changing the value of the data I begin to receive this exception. the parameters in the delphi code is stated as ftFmtBCD and ftwidememo. Looking for information that helps resolve this problem. FI: I am using a fdstoredproc and have assigned the schema and catalog name.
  3. I have a datasnap server that is not a restful server. I connect to it with my delphi client and pass data via clientdatasets and other methods that I have created along the way. I have created many methods passing integers and strings. The question I have is how can I pass the JSONObject to a datasnap server as a parameter? If this is not an option then please advise on the best way to do this.
  4. Answered. I discovered that this is possible from reading the Delphi Wiki.
  5. If I create a TJSONObject in a client application and pass it as a parameter to a DataSnap server where is the object freed. Is it freed in the datasnap client or the DataSnap server. I would say the client after passing because the client and server might share totally different memory.. Can somebody share some insight on this issue.
  6. What data types can I pass from a delphi client to a datasnap server? I need to send an array of a specific type to my datasnap server. Can I also return an array?
  7. Read the list and probably should pass as a json string, but are arrays of type mytype not allowed;
  8. alnickels

    Delphi XE Zebra scanner

    Does anybody have and example example coding working with a Zebra USB scanner?
  9. I want to start working with GPS systems. Its a new environment for me and I am running into things some have nothing to do with maps and other issues do. I want to understand rendering maps from provided coordinates onto a VCL form. Do I use a twebbrowser or is there a control that can be provided coordinates that will render the map? Do I have to acquire a mapcontrol from a 3rd party? I want to use google or here for map technology. I noticed that one vendor had a request that included a curl command. What does this curl request return? curl -H "Authorization: Bearer TOKEN_HERE" "https://vector.hereapi.com/v2/vectortiles/base/mc/11/1100/673/omv"
  10. Anders, Yes I am wanting to take the next step and understand executing the curl request within delphi and taking the next steps. I am sure that I want to use here, but they mention executing thic curl statement and then there is some other operation to take next with the results. Some of the other answers are great pieces to solving this problem, but my next steps will be following the curl part of the next step. Then they follow this with Decode the tile using the related Protobuf schema. I will have to discover what the protobuf schema means.
  11. Can somebody explain curl in the original post please?
  12. Is there a way to tell if a variable or class property exist within delphi at runtime?
  13. alnickels

    does a class property or a variable exist

    Thank you very much Remy Lebeau
  14. alnickels

    does a class property or a variable exist

    Remy that will work. The application will read xml and get a variable or property name. If variable or property exists we will take certain actions depending on its value.
  15. Does anybody know where I can find an example of a delphi client and server that will download binary files of size 250k or more using soap?
  16. What are the advantages of readbytes vs readstrings or other methods that are used to read iohandlers from tidtcpclient in indy?
  17. How can I read a message from a tidtcpserver context without removing it from the read buffer? I want to preview the message and leave it in the buffer.
  18. I submit the following end point which has a API key that I do not wish to provide. I get a response in the debugger tool, but I do not know the resource or resource suffix to make it work in a project. Below is the response I get from the debugger. Note these endpoints do not have the nice .xml or .json extensions like the do in the Youtube example. Would love to know how to determine these values so that I can figure this from here. The endpoint below https://track.onestepgps.com/v3/api/public/device? Yes I left the ? but I removed the API key The results from running in the debugger below { "result_list": [ { "device_id":"6cnc3qPsQZHzH-81f07-0-", "created_at":null, "updated_at":"2019-06-20T06:22:29Z", "activated_at":"2019-02-19T01:18:53.244573Z", "delivered_at":null, "factory_id":"4562371099", "active_state":"active", "display_name":"F550", "bcc_id":"", "make":"calamp", "model":"3030 HSPA", "conn_type":"", "conn_data": { "calamp_next_lookup_time":null } , "settings": { "begin_moving_speed": { } , "begin_stopped_speed": { } , "max_drift_distance": { } , "max_hdop":null, "drive_timeout": { } , "stop_timeout": { } , "offline_timeout": { } , "history_calc_duration": { } } , "user_id_list": [ "6cA6O6RJQuLZKk81f07--V", "6cA6O6UQOo9ZKk81f07--V", "6cA6R8Z_PHLZKk81f07--V", "6clcLSCaPEeFxV81f07-0-", "6dp0oignNjaZWF81f07-0F" ] , "latest_device_point":null } , { "device_id":"6d3udZ-APYDQqV81f07-0-", "created_at":"2019-01-09T01:03:35Z", "updated_at":"2019-01-09T17:24:55Z", "activated_at":"2019-01-09T01:04:10.926502Z", "delivered_at":null, "factory_id":"R34542223348", "active_state":"none", "display_name":"orbcomm- 4542223348", "bcc_id":"", "make":"calamp", "model":"3030 CDMA 2G", "conn_type":"", "conn_data": { "calamp_next_lookup_time":null } , "settings": { "hidden":true, "begin_moving_speed": { } , "begin_stopped_speed": { } , "max_drift_distance": { } , "max_hdop":null, "drive_timeout": { } , "stop_timeout": { } , "offline_timeout": { } , "history_calc_duration": { } } , "user_id_list": [ "6cA6O6RJQuLZKk81f07--V", "6cA6O6UQOo9ZKk81f07--V", "6cA6PMvwQT5ZKk81f07--V", "6cA6R8Z_PHLZKk81f07--V", "6clcLSCaPEeFxV81f07-0-", "6dp0oignNjaZWF81f07-0F" ] , "latest_device_point":null } , { "device_id":"6d8lUOaQNw1fwk81f07-0-", "created_at":"2019-02-02T18:25:00Z", "updated_at":"2019-03-15T00:26:22Z", "activated_at":"2019-02-06T17:13:52.979652Z", "delivered_at":null, "factory_id":"R14762014590", "active_state":"none", "display_name":"Adam's - 23.15 test", "bcc_id":"", "make":"calamp", "model":"2030 HSPA", "conn_type":"", "conn_data": { "calamp_next_lookup_time":null } , "settings": { "hidden":true, "begin_moving_speed": { } , "begin_stopped_speed": { } , "max_drift_distance": { } , "max_hdop":null, "drive_timeout": { } , "stop_timeout": { } , "offline_timeout": { } , "history_calc_duration": { } } , "user_id_list": [ "6cA6O6RJQuLZKk81f07--V", "6cA6O6UQOo9ZKk81f07--V", "6cA6PMvwQT5ZKk81f07--V", "6cA6R8Z_PHLZKk81f07--V", "6clcLSCaPEeFxV81f07-0-", "6dp0oignNjaZWF81f07-0F" ] , "latest_device_point":null } ] } Results from executing as a URL {"result_list":[{"device_id":"6cnc3qPsQZHzH-81f07-0-","created_at":null,"updated_at":"2019-06-20T06:22:29Z","activated_at":"2019-02-19T01:18:53.244573Z","delivered_at":null,"factory_id":"4562371099","active_state":"active","display_name":"F550","bcc_id":"","make":"calamp","model":"3030 HSPA","conn_type":"","conn_data":{"calamp_next_lookup_time":null},"settings":{"begin_moving_speed":{},"begin_stopped_speed":{},"max_drift_distance":{},"max_hdop":null,"drive_timeout":{},"stop_timeout":{},"offline_timeout":{},"history_calc_duration":{}},"user_id_list":["6cA6O6RJQuLZKk81f07--V","6cA6O6UQOo9ZKk81f07--V","6cA6R8Z_PHLZKk81f07--V","6clcLSCaPEeFxV81f07-0-","6dp0oignNjaZWF81f07-0F"],"latest_device_point":null},{"device_id":"6d3udZ-APYDQqV81f07-0-","created_at":"2019-01-09T01:03:35Z","updated_at":"2019-01-09T17:24:55Z","activated_at":"2019-01-09T01:04:10.926502Z","delivered_at":null,"factory_id":"R34542223348","active_state":"none","display_name":"orbcomm- 4542223348","bcc_id":"","make":"calamp","model":"3030 CDMA 2G","conn_type":"","conn_data":{"calamp_next_lookup_time":null},"settings":{"hidden":true,"begin_moving_speed":{},"begin_stopped_speed":{},"max_drift_distance":{},"max_hdop":null,"drive_timeout":{},"stop_timeout":{},"offline_timeout":{},"history_calc_duration":{}},"user_id_list":["6cA6O6RJQuLZKk81f07--V","6cA6O6UQOo9ZKk81f07--V","6cA6PMvwQT5ZKk81f07--V","6cA6R8Z_PHLZKk81f07--V","6clcLSCaPEeFxV81f07-0-","6dp0oignNjaZWF81f07-0F"],"latest_device_point":null},{"device_id":"6d8lUOaQNw1fwk81f07-0-","created_at":"2019-02-02T18:25:00Z","updated_at":"2019-03-15T00:26:22Z","activated_at":"2019-02-06T17:13:52.979652Z","delivered_at":null,"factory_id":"R14762014590","active_state":"none","display_name":"Adam's - 23.15 test","bcc_id":"","make":"calamp","model":"2030 HSPA","conn_type":"","conn_data":{"calamp_next_lookup_time":null},"settings":{"hidden":true,"begin_moving_speed":{},"begin_stopped_speed":{},"max_drift_distance":{},"max_hdop":null,"drive_timeout":{},"stop_timeout":{},"offline_timeout":{},"history_calc_duration":{}},"user_id_list":["6cA6O6RJQuLZKk81f07--V","6cA6O6UQOo9ZKk81f07--V","6cA6PMvwQT5ZKk81f07--V","6cA6R8Z_PHLZKk81f07--V","6clcLSCaPEeFxV81f07-0-","6dp0oignNjaZWF81f07-0F"],"latest_device_point":null}]}
×