Re: Listbox Printing

2017-08-12 Thread Keith Culotta via 4D_Tech
I tried several combinations of the code below showing a button method on the 
form "SumForm".  The parent method gets passed some arrays, opens its form 
"SumForm", displays them in the LB, and provides a button with the below code.

The button method prints fine in a DB.  When the DB is used as a component, the 
page prints blank.  All code and the form are in the component.
The fix is to copy the source LB to the LB on the form being opened.  It's odd 
because it's the same form and LB.  Am I missing a simple step to make this 
work from a component?  FORM LOAD("SumForm";*) would not help since the Host 
does not contain the form.

PRINT SETTINGS  // Does not work when displaying the LB from a component
If (OK=1)
$obj:=(->Box_Sum)
OPEN PRINTING JOB
If (OK=1)
FORM LOAD("SumForm")  // this form has Box_Sum on it
Repeat 
$end:=Print object($obj->)
If (Not($end))
PAGE BREAK
end if
Until ($end)
End if 
CLOSE PRINTING JOB
End if 

Thanks,

Keith - CDI

> On Aug 2, 2017, at 10:34 PM, Keisuke Miyako via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> I don't see any reasons why they won't work in tandem.
> 
> in the context of OPEN PRINTING JOB,
> you are just printing objects on top of each other, in memory.
> 
>> 2017/08/03 12:01、James Crate via 4D_Tech <4d_tech@lists.4d.com> のメール:
>> it doesn’t look like Print Object can work in combination with Print Form.
> 

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: 4D Client/Remote as Web Server

2017-08-12 Thread Randy Engle via 4D_Tech
Hi Justin,

Many thanks!
Good innovative ideas!

Randy Engle
XC2 Software LLC – XC2LIVE!

-Original Message-
From: Justin Will [mailto:jw...@willwerks.com] 
Sent: Friday, August 11, 2017 7:43 PM
To: 4D iNug Technical <4d_tech@lists.4d.com>
Cc: Randy Engle <4d.l...@xc2.us>
Subject: RE: 4D Client/Remote as Web Server

Randy,

I have 4D Client running as a web server on windows.  I have the client write a 
text file every 45 seconds or so to disk.  I then have a batch script that runs 
every minute and looks for that file and deletes it.  If the file is not found 
it kills the 4D task and restarts 4D Client.  I also have software the monitors 
a page on the site and if the page is unavailable for more than a couple 
minutes starts sending emails and text messages etc so that someone can check 
it out.

Thanks
Justin Will

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**