If you like a free tool you can have a look at our WOPiXX Tool (can be downloaded and used for free, but support and education must be paid)
http://www.wopixx.com/en
Neither HTML, nor JAVASCRIPT know how required. Web-Programs can be written solely with RPGIV!
Complete Source Code for a List (Subfile) Program incl. Filters and Context Menu (Add, Change, Delete, Properties) and Add Button:
H/Include QCPYLESRC,WX_HSPECS
//**********************************************************************************************
// P R O T O T Y P I N G
//*********************************************************************************************
D/INCLUDE QPROLESRC,WX_PROTO
//**********************************************************************************************
*INLR = *On;
//1. Define/Open HTML-Document
Wx_OpnHTMLWrk('TIT0001': 'TRCHGADD2'); //Open HTML Document
//2. Define Header fields/textes (Optional)
//3. Define Filter (Optional)
// 3.1. Define phys.files/Tables/views to be used
Wx_FltFile('ADDRESSX'); //Address Master Table
// 3.2. Define Generic Filter
// Wx_GenFlt('ADDRESSX': 'CustName1': '': 'CustName2': 'Contact');
// 3.3. Define other filter fields
Wx_FltFld('CustNo': 'DSP0001': '>=': '': '10000'); //Customer No
Wx_FltFld('Country': 'DSP0007': '=': 'SelectList casesensitive':
'D'); //Country
Wx_FltFld('City': 'DSP0002': '=':
'DependList(Country) Casesensitive'); //City
//4. Define Context Menu Items and Buttons
// if neither a context menu item nor a button is defined
// the add button and a context menu
// with the itmes change, copy, delete and property
// automatically added
//5. Define Worktable
// 5.1. Define Unique Key Column
Wx_WrkKeyRRN('ADDRESSX'); //Relative Record No
// 5.2. Define all other Columns (at least 1 column required)
Wx_WrkFld('CustNo': 'DSP0001');
Wx_WrkFld('CustName1': 'DSP0003');
Wx_WrkFld('CustName2': 'DSP0003');
Wx_WrkFld('Contact': 'DSP0008');
Wx_WrkFld('Country': 'DSP0007': 'CTL(Country) Center');
Wx_WrkFld('ZipCode': 'DSP0006');
Wx_WrkFld('City': 'DSP0002');
Wx_WrkFld('Street': 'DSP0004');
// 5.3. Default Order By (optional)
Wx_WrkDftOrder('CustNo');
//6. Write HTML Documen
Wx_WrtWrkTbl(); //Write Work Table
Return;
Mit freundlichen Grüßen / Best regards
Birgitta Hauser
"Shoot for the moon, even if you miss, you'll land among the stars." (Les Brown)
"If you think education is expensive, try ignorance." (Derek Bok)
"What is worse than training your staff and losing them? Not training them and keeping them!"
„Train people well enough so they can leave, treat them well enough so they don't want to.“ (Richard Branson)
-----Original Message-----
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Jean-Marc Duval
Sent: Mittwoch, 5. Juli 2017 16:13
To: RPG programming on the IBM i (AS/400 and iSeries) <rpg400-l@xxxxxxxxxxxx>
Subject: Use web screens instead of 5250 screens
Hi all,
What is the best method to use web screens instead of 5250 screens ?
(With RPG programming, of course...)
Regards,
Jean-marc DUVAL
Informatique Étude MDG
Consultant
mobile +33 (0) 6 48 30 21 09
bureau +33 (0) 2 34 59 52 91
jean-marc.duval@xxxxxxxxxxx
36 rue de la manufacture
45160 Olivet
www.axereal.com
----- Mail original -----
| De: "Henrik Rützou" <hr@xxxxxxxxxxxx>
| À: "RPG programming on the IBM i (AS/400 and iSeries)"
| <rpg400-l@xxxxxxxxxxxx>
| Envoyé: Mercredi 5 Juillet 2017 15:39:57
| Objet: Re: RPG easier/harder to use than other languages?
|
| Well it all depens if one is coding for web 1.0 or web 2.0 that in the
| client uses AJAX to retreive data from the server and typical is based
| on high level widgets that provides advanced functionality and device
| scalability.
|
| On Wed, Jul 5, 2017 at 3:16 PM, Raul A Jager W <raul@xxxxxxxxxx> wrote:
|
| > Lack of options can be an advantage, if-when you have all what you need.
| >
| > Read an account number -> show a web table with the transactions is
| > a typical request and it does not require sophisticated structures.
| >
| > Show a form, read, validate, store in data base is easily done in RPG.
| > Javascrit will be the best tool to help the user to fill the form.
| >
| >
| >
| > On 07/04/2017 07:16 PM, Henrik Rützou wrote:
| >
| >> The real problem with RPG is the lack of options. If we compare RPG
| >> with javascript, RPG must be procedural while javascript may be a
| >> mix of procedural and OO code.
| >>
| >>
| >> Javascript has also much more advanced datastructures where RPG is
| >> limited to predefined arrays with fields javascript has dynamically
| >> defined arrays and objects where objects may consist of data,
| >> array’s, sub-objects or code. Besides that data structures in
| >> javascript may be redefined in new data structures as referential, shallow or deep copies of the original.
| >>
| >>
| >> And then there is the processing-model that in javascript may be
| >> either synchrone or asynchrone or a mix of both.
| >>
| >>
| >> In other words you may code javascript as you code RPG but you
| >> can’t and will never be able to code RPG like you code javascript
| >> so a javascript programmer will always see RPG as a language that lack options.
| >>
| >> On Wed, Jul 5, 2017 at 1:02 AM, Richard Schoen <
| >> Richard.Schoen@xxxxxxxxxxxxxxx> wrote:
| >>
| >> Do you have some examples of how these former disgrunted OO devs
| >> have
| >>> found OO programming to be flawed ?
| >>>
| >>> Just curious since your statement seems pretty generic.
| >>>
| >>> Regards,
| >>>
| >>> Richard Schoen
| >>> Director of Document Management
| >>> e. richard.schoen@xxxxxxxxxxxxxxx
| >>> p. 952.486.6802
| >>> w. helpsystems.com
| >>>
| >>> ------------------------------
| >>>
| >>> message: 2
| >>> date: Tue, 4 Jul 2017 01:37:25 +0000
| >>> from: Justin Taylor <JUSTIN@xxxxxxxxxxxxx>
| >>> subject: RE: RPG easier/harder to use than other languages?
| >>>
| >>> I'm seeing a number of disgruntled former OO devs these days claim
| >>> that OO is flawed in concept. Personally I haven't done enough to
| >>> have my own opinion. I have seen some crazy designs where people
| >>> try to force a strict "text book" OO solution over problems where
| >>> that concept doesn't really seem to fit.
| >>>
| >>>
| >>> -----Original Message-----
| >>> From: Raul A Jager W [mailto:raul@xxxxxxxxxx]
| >>> Sent: Monday, July 03, 2017 5:32 PM
| >>> To: rpg400-l@xxxxxxxxxxxx
| >>> Subject: Re: RPG easier/harder to use than other languages?
| >>>
| >>> Lots of business needs are better served by OLTP and relational
| >>> database rather than OO. Sure, for the user interface OO is great,
| >>> so use javascript in the browser and RPG in the server. Do not use
| >>> 5250. Do not use "screen scrapers". Develop for web.
| >>>
| >>> How do you classify a language as modern or not? The OO model is
| >>> quite old. Java is showing its age to. Python is from the 80s.
| >>>
| >>> Is OO the right tool for everything? Interpreted languages
| >>> require very careful testing, and control over the input.
| >>>
| >>> When there are lots of transactions, a compiled language like RPG
| >>> or Cobol will enable the same processor to handle easily 20 times
| >>> more transactions than the same code in PHP. Moore law does not
| >>> work anymore, the speed has remained at 4 GH since the last 10
| >>> years or more. It is far more expensive to set up 20 servers
| >>> rather than the difference of cost between developing in PHP or
| >>> RPG.
| >>>
| >>>
| >>>
| >>>
| >>>
| >>>
| >>> --
| >>> This is the RPG programming on the IBM i (AS/400 and iSeries)
| >>> (RPG400-L) mailing list To post a message email:
| >>> RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list
| >>> options,
| >>> visit:
http://lists.midrange.com/mailman/listinfo/rpg400-l
| >>> or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please
| >>> take a moment to review the archives at
| >>>
http://archive.midrange.com/rpg400-l.
| >>>
| >>> Please contact support@xxxxxxxxxxxx for any subscription related
| >>> questions.
| >>>
| >>> Help support midrange.com by shopping at amazon.com with our
| >>> affiliate
| >>> link:
http://amzn.to/2dEadiD
| >>>
| >>>
| >>
| >>
| >
| > -- Este e-mail fue enviado desde el Mail Server del diario ABC Color --
| > -- Verificado por Anti-Virus Corporativo Symantec --
| > --
| > This is the RPG programming on the IBM i (AS/400 and iSeries)
| > (RPG400-L) mailing list To post a message email:
| > RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list
| > options,
| > visit:
http://lists.midrange.com/mailman/listinfo/rpg400-l
| > or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take
| > a moment to review the archives at
| >
http://archive.midrange.com/rpg400-l.
| >
| > Please contact support@xxxxxxxxxxxx for any subscription related
| > questions.
| >
| > Help support midrange.com by shopping at amazon.com with our
| > affiliate
| > link:
http://amzn.to/2dEadiD
| >
|
|
|
| --
| Regards,
| Henrik Rützou
|
|
http://powerEXT.com <
http://powerext.com/>
| --
| This is the RPG programming on the IBM i (AS/400 and iSeries)
| (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx
| To subscribe, unsubscribe, or change list options,
| visit:
http://lists.midrange.com/mailman/listinfo/rpg400-l
| or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a
| moment to review the archives at
http://archive.midrange.com/rpg400-l.
|
| Please contact support@xxxxxxxxxxxx for any subscription related questions.
|
| Help support midrange.com by shopping at amazon.com with our affiliate link:
|
http://amzn.to/2dEadiD
--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/rpg400-l.
Please contact support@xxxxxxxxxxxx for any subscription related questions.
Help support midrange.com by shopping at amazon.com with our affiliate link:
http://amzn.to/2dEadiD
As an Amazon Associate we earn from qualifying purchases.