×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
I think you are confusing external file definitions with what I'm trying
to do. Basically what I want to end up with is 2 service programs and 1
program. 1 service program for all interaction with the database (the
model), 1 service program for all interaction with the display (the
view), and the program that uses them to control the flow (the
controller).
It's the code that interacts with the model and view that I want to
separate. I think the definition of the view should contain the
procedures that act on it, as well as the display file definition
obviously.
Having said that, I haven't been able to find a good example where
subfiles are concerned, and maybe for good reason.
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Bryce Martin
Sent: Monday, January 05, 2009 3:23 PM
To: RPG programming on the IBM i / System i
Subject: Re: MVC Subfile Example
Isn't the view and controller always seperate in RPG and DDS no matter
what? MVC comes in to play mostly in the web world where you can have
code that is responsible for formatting the screen data as well as
generation of said data. But in the case of coding in RPG and DDS the
DDS
is the view. You can't use DDS to change the actual data, only how the
data passed to it is displayed. RPG is your controller and the data
structures and database tables would be your model. So just by coding
in
RPG and DDS you are already coding in MVC as long as you use external
datastructures and tables.
Please feel free to correct me if I've missed something.
Thanks
Bryce Martin
Programmer/Analyst I
Ext. 4777
"Coyle, Stephen F." <SCoyle@xxxxxxxxxxxxx>
Sent by: rpg400-l-bounces@xxxxxxxxxxxx
01/05/2009 03:02 PM
Please respond to
RPG programming on the IBM i / System i <rpg400-l@xxxxxxxxxxxx>
To
<RPG400-L@xxxxxxxxxxxx>
cc
Subject
MVC Subfile Example
Happy new year everyone,
Can anyone point me in the direction of an example
subfile
program that uses an MVC pattern? Or should the view and controller be
combined?
I've tried an MVC pattern on a single page display file
but am
now thinking of trying it on a subfile. Any suggestions or past
experiences would be very helpful.
Thanks all...
- Steve
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.