Hi Tony,
I chose Perl for my backend scripting, but it does need to be some form of
programming language so you do have to get your hands a little dirty.
However in the sample app I have included some files from my library which
can be simply installed and used. Consequently the application that you use
with your DP application can be quite small and relatively simple to
understand. You could use the same library in any application, with very
little modification.
Once you have tweaked your library for an application it is simple to work
with. For example I am only using once script as the interface between the
browser and DP, and the contents of that script is pretty easy. E.g.
#!c:\perl\bin\perl.exe
use strict ;
use warnings ;
use CGI ;
use Carp ;
use lib 'C:\DPWEB\Apache2.2\cgi-bin\lib' ;
use Folders qw(:All) ;
use DP::File ;
my $q = CGI->new ;
my $dp = DP::File->new();
my @reports = undef;
if ($q->param("r")) {
@reports = split(/,/,$q->param("r")) ;
}
else {
@reports = (2) ; #defaults to report
}
$dp->reports(@reports) ;
$dp->cgi($q) ;
$dp->output_suffixes(".htm") ;
$dp->run() ;
$dp->print() ;
For the sample application, all the output is from HTML files out from DP,
so the script doesn't have to do much except connect the information being
provided in the webform. In this form the thing that does most of the work
is the DP and DP:File module, these are Perl Object which hide the
complexity, my original Perl programs were very difficult to understand and
Tony, I think you would have had a fit had you seen them, in comparison to
the one above.
Of course if I was going to take data from DP and then do something with it
in the script, such as creating and sending emails, Text Messaging, faxing,
generating PDF or Excel spreadsheets or authenticating logins and tracking
sessions, then this would make the scripts a little more complex.
I will be using the sample as the basis of a set of tutorials, where I will
touch on the basics of Perl, and extending the DP application. Hopefully you
will be able to follow it though and I think you will find it is not as
daunting as it might now seem.
Install the files and let me know what you think. They are there to whet the
appetite, to show the basic functionality and to give you something to play
with.
Bye
Brian
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Tony Perez
Sent: Saturday, 16 May 2009 4:23 PM
To: [email protected]
Subject: Re: [Dataperf] DP Web again
Hi Brian,
I am going to make some time in the next couple of weeks to "learn" what's
involved with your DP Web app. I am totally unfamiliar with Perl. Is some
knowledge of Perl or a similar programming language required? If so, my
learning curve is going to be very steep. I was able to develop DP apps
because it was so "smart-user" friendly and the help one could get on the
Compuserve/WordPerfect/DataPerfect forum.
I look forward to your comments.
All the best,
Tony
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Brian Hancock
Sent: Friday, May 15, 2009 11:16 AM
To: [email protected]
Subject: Re: [Dataperf] DP Web again
Hi Gary,
Have you got it working yet? Did you have any troubles? I watned to make
it as reliable and as trouble free as possible...
I am ok with the work being republished... my main aim is to encourage
people to give it a go...
Bye
Brian
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Gary_Gabriel
Sent: Friday, 15 May 2009 6:14 PM
To: [email protected]
Subject: Re: [Dataperf] DP Web again
Hi Brian,
Glad to hear from you and Thanks.
You went to a lot of work and did a good job. I appreciate it very much.
I am planning to write an article or multiple articles on your developments
depending on the material probably to place on Scribd. I organize and start
to write as the work goes on. This requires written permission to use your
material and any restrictions or requirements you may have. Brain you write
very well, and based on what you have written some of your material can be
incorporated pretty much as it comes. So I was planning to use a
co-authorship if you are willing to let me use the material. Send me any
ideas you may have or may get in the future or let me know what you think. I
would also like to include some of your posts as they present important
aspects. Material on Scribd is not exclusive so it could also be placed on
the DP web, your web or links to it.
I am looking forward to learning about your developments and seeing DP in
new light.
It looks good- Gary
_______________________________________________
Dataperf mailing list
[email protected]
http://lists.dataperfect.nl/mailman/listinfo/dataperf
_______________________________________________
Dataperf mailing list
[email protected]
http://lists.dataperfect.nl/mailman/listinfo/dataperf
No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.329 / Virus Database: 270.12.31/2116 - Release Date: 05/15/09
06:16:00
_______________________________________________
Dataperf mailing list
[email protected]
http://lists.dataperfect.nl/mailman/listinfo/dataperf
_______________________________________________
Dataperf mailing list
[email protected]
http://lists.dataperfect.nl/mailman/listinfo/dataperf