Yes, I tried to suggest that in my previous post. jsoRecWrt() also automatically applies edit codes that may be defined in the record format for numeric fields. Our toolkit already had a similar procedure for mapping IBM i records to HTML templates, so I was able to leverage that to additionally generate JSON formatted output streams.
I'm currently working on another procedure - jsoRecGet(), to validate and map JSON formatted "input" streams to IBM i record formats to streamline that interface as well. I've been feeling pressure for quite some time to provide an interface for ExtJs and similar clients, in addition to the HTML interfaces I have been supporting. Then your project added more pressure to provide more streamlined interfaces than ones offered by Mihael Schmidt and Henrik Rützou.
There are quite a few synergies between traditional HTML interfaces and newer RUI clients.
Nathan.
www.relational-data.com
----- Original Message ----
From: Aaron Bartell <aaronbartell@xxxxxxxxx>
To: Web Enabling the AS400 / iSeries <web400@xxxxxxxxxxxx>
Sent: Fri, January 1, 2010 6:56:34 AM
Subject: Re: [WEB400] PowerExt (www.PowerExt.com)
After looking at your code some more I think I realized another aspect of
what you are doing. On this line:
jsoRecWrt('ITEM':itemrec@);
Does that do some sort of DSPFFD to obtain the layout of the record and then
"parse" the record to put into the JSON data stream? I did something
similar for an EDI web app at a previous employer and totally forgot about
it.
Aaron Bartell
http://mowyourlawn.com
http://mowyourlawn.com/blog/
On Thu, Dec 31, 2009 at 2:14 PM, Nathan Andelin <nandelin@xxxxxxxxx> wrote:
I don't find traditional JavaScript to be highly prone to error, but the
JavaScript Object Notation used to define widgets in ExtJs and similar
libraries, is. It's both prone to error, and hard to debug. It was good to
see them coming out with a WYSIWYG designer.
I don't fully understand your suggestion for storing UI elements in DB2
tables. I assumed the ExtJs designer would output stream files, which could
be used as templates, with substitution variables, where needed.
Nathan
http://www.relational-data.com
As an Amazon Associate we earn from qualifying purchases.