Hi Dirk,
With the Perl libraries I have included the entire sample application is run
through only one script. Dprun.pl The contents of this is:
#!c:\perl\bin\perl.exe
use strict ;
use warnings ;
use CGI ;
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() ;
All the rest of the work is performed in the HTML form or the DP reports. If
you run dprun.pl without any parameters or any forms it will simply run the
DP Report number 2. if you pass either via GETting with a query string
dprun.pl?r=89 it would run report number 89, if you ran it with the query
string dprun.pl?r=89,67 then it would first run report 89, and then report
number 67.
The section of code which extracts which report number or numbers to run is
if ($q->param("r")) {
@reports = split(/,/,$q->param("r")) ;
}
else {
@reports = (2) ; #defaults to report
}
$dp->reports(@reports) ;
If you wanted to write a script where the report number was hard coded then
you would say just handle the last line
$dp->reports(54)
Which would run report number 54.
All the work of handling the creation of the Transaction Log creation, and
executing DataPerfect is handled in the background by the DP Object, or in
the case of the sample DP::File object.
(By the way the CGI object contains the data passed by either a GET or POST
from the web form)
I will include some details of how this works in the tutorial, but for now
you just use the dprun.pl file as a sort of template.
Regards
Brian
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Van Wassenhove, Dirk
Sent: Tuesday, 19 May 2009 9:43 PM
To: [email protected]
Subject: [Dataperf] DP Web again
Hi Brian,
I meant portability on an USB stick without an install.
I am no programmer by profession and I am taking my first steps in Perl,
although I hesitate between Rexx (http://www.rexxinfo.org) and Perl,
since Perl is not that easy.
I discovered TinyPerl because I have no administration rights on the PC
where I do most of my work.
Working on a USB stick, I do not interfere with the rest of the
programs.
Greetings,
Dirk
========================================================================
========
Message: 3
Date: Tue, 19 May 2009 06:05:38 +1000
From: "Brian Hancock" <[email protected]>
Subject: Re: [Dataperf] DP Web again
To: <[email protected]>
Message-ID: <4d0511f6564e4ca5acd466a502786...@brian4>
Content-Type: text/plain; charset="us-ascii"
Hi Dirk,
I will take a look at that... The ActivePerl is a heavy weight
product...
In terms of portability I run the exactly same code (except for the
invocation of DataPerfect under DOSEMU) when I run it on my commercial
webhosting company, which is on RedHat and I have run the same code on
BSD.
Or did you mean portable in that you can put the entire code on a USB
stick or something without an install?
I am quite a Perl newbie so I am very happy to have input that I can use
to make my life easier.
Thanks
Brian
PS, I do use a lot of the CPAN modules, such as CGI.pm. CGI::Session.pm,
File::Temp, XML::XSLT etc, can these be added to TinyPerl.
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Van Wassenhove,
Dirk
Sent: Monday, 18 May 2009 6:45 PM
To: [email protected]
Subject: [Dataperf] DP Web again
Hi Brian,
Installing ActivestatePerl makes your application less portable.
I wonder if one could use TinyPerl
http://tinyperl.sourceforge.net/
Greetings,
Dirk
_______________________________________________
Dataperf mailing list
[email protected]
http://lists.dataperfect.nl/mailman/listinfo/dataperf
------------------------------
Message: 4
Date: Mon, 18 May 2009 20:13:26 -0400
From: Robert I Kendall <[email protected]>
Subject: Re: [Dataperf] "Conditional page break" in report body
affects function of "eliminate line if blank" in headers
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
Hi Don,
Thanks for looking at this. Is there anyway to bring this to Lew
Bastian's attention?
Robert Kendall
On May 18, 2009, at 3:22 PM, Don Codling wrote:
> May 18, 2009
>
> I get the same problem. Whenever the "conditional page eject" is
> applied, the "Skip line if blank" does not work in the next header.
>
> I think part of the problem is that you are misusing "conditional page
> eject". It's purpose is to start a record on a new page, if it will
> not all fit on the existing page. That means it should be placed as
> the first line of the report, or it will give strange results.
>
> But even if you do that, you still get failure of "Skip line if blank"
> whenever the "conditional page eject" is applied. I think you may have
> uncovered a bug.
>
> Don Codling
>
> Robert Kendall wrote:
>> *From:* Robert Kendall
>> *To:* Dataperfect Users Discussion Group
>> *Sent:* Wednesday, May 13, 2009 9:54 AM
>> *Subject:* "Conditional page break" in report body affects function
>> of "eliminate line if blank" function in headers
>>
>> I set up the following test report (12 lines long)
>>
>> -------------------FIRST PAGE HEADER----------------
>> 1 First page header
>> 2
>> 3
>> 4
>> <eliminate line if blank>
>> <eliminate line if blank>
>> 7
>> 8
>> -------------------OTHER PAGE HEADER---------------
>> 1 Other page header
>> 2
>> 3
>> 4
>> <eliminate line if blank>
>> <eliminate line if blank>
>> 7
>> 8
>> -------------------REPORT BODY-----------------------
>> 11111
>> 22222
>> 33333
>> 44444
>> 55555
>> 66666
>> 77777
>> 88888
>> ------------Conditional Page Break----------------
>> 99999
>> aaaaa
>> bbbbb
>> ccccc
>> ddddd
>> eeeee
>> fffffff
>>
>> I am using DP26x. When I run the report to the screen the blank lines
>> in the headers are not always eliminated. Maybe there is a way around
>> this but I can't figure it out.
>> ---------------------------------------------------------------------
>> ---
>>
>> _______________________________________________
>> Dataperf mailing list
>> [email protected]
>> http://lists.dataperfect.nl/mailman/listinfo/dataperf
>>
> _______________________________________________
> Dataperf mailing list
> [email protected]
> http://lists.dataperfect.nl/mailman/listinfo/dataperf
>
------------------------------
Message: 5
Date: Tue, 19 May 2009 10:27:43 +0200
From: " Ludwig G?thlein " <[email protected]>
Subject: Re: [Dataperf] DP Web again
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=UTF-8
Hello to everyone!
Following this discussion I made my first try with this DP-Web-Sample
and it works perfect on a Vista-Notebook and on a XP-Desktop. Thank you
very much.
I have translated the necessary terms of the reports into German and it
works smoothly.
I have run into one problem: If I enter a charcter of the
extended-ASCII-set it is not converted correctly.
In detail with the letter u-diaresis (i.e. a german u with 2 dots above)
= ASCII129:
- if I enter the letter ASCII-129 directly into the DP-Database it is
shown correct in the DOS environment
- then I can run DP-Web-Sample and the letter is shown correct in the
browser
- when I edit the record from the browser I can enter ASCII-129
correctly
- after saving this u-diaresis (ASCII-129) ist saved in the DP-Databse
as ASCII-236 (a y with an
accent)
-from now on the browser will always show this y with accent (ASCII-236)
Actually all letters from the extended-character-set a convert to
something (for me
unpredectable) when saved by the edit and save command of the
browser-page.
Has it something to do with my german environment of windows and dos? Is
there a way to control the conversion of these extended-charset-letters?
Thank you for any help.
DP is the fastest way to build a database and to control any amount of
data. Thank you to all who keep it alive.
Ludwig G?thlein
(My name also has this ASCII 129 letter ;-)...)
Am 19 May 2009 um 6:05, schrieb Brian Hancock:
> Hi Dirk,
>
> I will take a look at that... The ActivePerl is a heavy weight
product...
> In terms of portability I run the exactly same code (except for the
> invocation of DataPerfect under DOSEMU) when I run it on my commercial
> webhosting company, which is on RedHat and I have run the same code on
BSD.
> Or did you mean portable in that you can put the entire code on a USB
> stick or something without an install?
>
> I am quite a Perl newbie so I am very happy to have input that I can
> use to make my life easier.
>
> Thanks
> Brian
> PS, I do use a lot of the CPAN modules, such as CGI.pm.
> CGI::Session.pm, File::Temp, XML::XSLT etc, can these be added to
TinyPerl.
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Van Wassenhove,
> Dirk
> Sent: Monday, 18 May 2009 6:45 PM
> To: [email protected]
> Subject: [Dataperf] DP Web again
>
>
> Hi Brian,
>
> Installing ActivestatePerl makes your application less portable.
> I wonder if one could use TinyPerl
> http://tinyperl.sourceforge.net/
>
> Greetings,
> Dirk
> _______________________________________________
> Dataperf mailing list
> [email protected]
> http://lists.dataperfect.nl/mailman/listinfo/dataperf
>
> _______________________________________________
> Dataperf mailing list
> [email protected]
> http://lists.dataperfect.nl/mailman/listinfo/dataperf
--
Ludwig G?thlein
Berg Sion 6, 56179 Vallendar
Tel/Fax: 0261-9632223
eMail: [email protected]
------------------------------
Message: 6
Date: Tue, 19 May 2009 10:42:32 +0200
From: Gary_Gabriel <[email protected]>
Subject: Re: [Dataperf] DP Web again
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Hi Brian
In working with DPWeb there are a couple of questions-
> PS, I do use a lot of the CPAN modules, such as CGI.pm.
CGI::Session.pm,
> File::Temp, XML::XSLT etc, can these be added to TinyPerl.
>
>
A general question to the use of the Apache Web Server and ensuring it's
integrity as Localhost.
1) To ensure server integrity and operation do scripts have to be
uploaded through POST to htdocs? -or can they simply be copied into
htdocs?
2) What about html pages to display? Do they have to be uploaded through
POST to htdocs? or- can they be copied into htdocs?
3) Can you recommend a suitable POST, Get and file upload script to
upload and get pages, or documents?
What else is important to consider to ensure reliable operation?
I've been playing with DpWeb and it's nice.
Thanks- Gary
------------------------------
_______________________________________________
Dataperf mailing list
[email protected]
http://lists.dataperfect.nl/mailman/listinfo/dataperf
End of Dataperf Digest, Vol 3, Issue 15
***************************************
_______________________________________________
Dataperf mailing list
[email protected]
http://lists.dataperfect.nl/mailman/listinfo/dataperf
_______________________________________________
Dataperf mailing list
[email protected]
http://lists.dataperfect.nl/mailman/listinfo/dataperf