Re: [U2] U2 Dynamic Object API

2012-05-28 Thread Brian Leach
I've been asking for JSON support for some time, this looks like a start but it would have been better to integrate it properly into the UniBasic language than hiding it behind a set of functions like the XDOM, Socket API etc: in this case that just makes it opaque, verbose and hides the structure.

Re: [U2] U2 Dynamic Object API

2012-05-28 Thread Wally Terhune
There is a U2 University session on this - coming up June 26-8 at Carden Park, Cheshire: U2 Dynamic Objects - Hello JSON! Do you want to call a RESTful Web service and quickly deal with the data it brings back? Come learn how to use the new U2 Basic functionality to easily handle web services d

Re: [U2] U2 Dynamic Object API

2012-05-28 Thread Symeon Breen
I won't be there - where can I get more information on U2 Dynamic Objects. -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Wally Terhune Sent: 28 May 2012 13:51 To: U2 Users List Subject: Re: [U2] U2 Dynamic Object

Re: [U2] U2 Dynamic Object API

2012-05-28 Thread Doug Averch
I've been using JSON for many years now. I've written UniBasic code to build JSON in many of our Web applications and our middle-ware. I have written parser in UniBasic that can read JSON arrays and give you results. I was looking very excitedly to not having to maintain my code UniBasic code an

Re: [U2] Delphi and UniObjects

2012-05-28 Thread Augusto Alonso
Hi. By the way, does anyone know an easy way to distinguish if the uniobject session has been opened from Delphi or from VisualBasic? We will like to allow Delphi connection from our App, but avoid connection from VisualBasic. Regards -- Augusto 2012/5/23 Brian Leach > Yes, works fine. I use it

Re: [U2] U2 Dynamic Object API

2012-05-28 Thread Symeon Breen
Ok - so that kinda sounds good, I think ;) . I know where you are coming from, I too have also written heaps of stuff to generate and parse json, tho tbh I would normally do such logic (or certainly the parsing) in a middle tier like a .net webservice layer, and pass back to databasic. Generating

Re: [U2] U2 Dynamic Object API

2012-05-28 Thread Gregor Scott
All I have seen so far is in the UniData 7.3 new features PDF (see the tinyurl in my original post for a link to the PDF). I'd like to see some worked (and working!) examples at some point. -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.

Re: [U2] U2 Dynamic Object API

2012-05-28 Thread Gregor Scott
Good feedback - Thanks Doug. -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Doug Averch Sent: Tuesday, 29 May 2012 3:10 AM To: U2 Users List Subject: Re: [U2] U2 Dynamic Object API I've been using JSON for many yea

Re: [U2] U2 Dynamic Object API

2012-05-28 Thread Doug Averch
I extracted a little bit of my code to create a JSON object. This code works on Universe and Unidata. Unidata you will need to switch includes. SUBROUTINE UDOSub(PARAM1,PARAM2,RETURN.ID) * PARAM1 - Field Names separated by field marks * PARAM2 - Data separated by field marks