Re: Printing Page Subforms in Columns/Rows in v17

2019-03-04 Thread Alan Tilson via 4D_Tech
Hello Miyako,

That is shocking and undocumented as far as I can tell. And expensive for
us since we have invested quite a few hours into this approach.

So is it possible to print a form full of page forms using FORM Load and
Print Object? If yes, is there an example somewhere?

Thanks a bunch for letting me know but it is very strange to have  such a
cool feature and not be able to print it!

Cheers, Alan

On Mon, Mar 4, 2019 at 4:28 PM Keisuke Miyako via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> printing is not supported for page subforms.
> it's as simple as that.
>
> the only way to "print" a page subform is to FORM LOAD and Print object.
>
> I don't understand how 4D picks the table for the page subforms, but it
> uses the same output form as before!
>
>
>
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Windows Server 2019

2019-03-04 Thread Randy Engle via 4D_Tech
Anyone tried to run 4D Server (v17.xxx) on Windows Server 2019

I haven't. but we have customers asking.

Many thanks

Randy Engle


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

Re: Printing Page Subforms in Columns/Rows in v17

2019-03-04 Thread Keisuke Miyako via 4D_Tech
printing is not supported for page subforms.
it's as simple as that.

the only way to "print" a page subform is to FORM LOAD and Print object.

I don't understand how 4D picks the table for the page subforms, but it
uses the same output form as before!



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

Re: Printing Page Subforms in Columns/Rows in v17

2019-03-04 Thread Alan Tilson via 4D_Tech
Using print form the page forms don't print at all...

On Mon, Mar 4, 2019 at 4:09 PM Alan Tilson  wrote:

> And I also tried moving the Page Subforms into the header, no change.
>
> On Mon, Mar 4, 2019 at 4:08 PM Alan Tilson  wrote:
>
>> I created a new project form for the Page Subform and copied the objects
>> into it. Same result.
>>
>> On Mon, Mar 4, 2019 at 3:51 PM Alan Tilson  wrote:
>>
>>> I did try changing the Page Subform form to a project form, but the
>>> results are the same.
>>>
>>> I don't understand how 4D picks the  table for the page subforms, but it
>>> uses the same output form as before!
>>>
>>> Ideas?
>>>
>>> Alan
>>>
>>> On Mon, Mar 4, 2019 at 3:25 PM Alan Tilson  wrote:
>>>
 Hello everyone,

 I'm creating a SPC inspection sheet for part dimensions and I'm using a
 page subform for each dimension. I loop through and set the subform object
 values and it looks ok on screen. However, when I print it the subform
 contest are replaced with the output form for the dimensions table.

 The page subforms are laid out in rows and columns, currently
 bassically 5x8.

 Is this not possible?

 Any ideas and/or suggestions would be appreciated!
 Alan Tilson

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

Re: Printing Page Subforms in Columns/Rows in v17

2019-03-04 Thread Alan Tilson via 4D_Tech
And I also tried moving the Page Subforms into the header, no change.

On Mon, Mar 4, 2019 at 4:08 PM Alan Tilson  wrote:

> I created a new project form for the Page Subform and copied the objects
> into it. Same result.
>
> On Mon, Mar 4, 2019 at 3:51 PM Alan Tilson  wrote:
>
>> I did try changing the Page Subform form to a project form, but the
>> results are the same.
>>
>> I don't understand how 4D picks the  table for the page subforms, but it
>> uses the same output form as before!
>>
>> Ideas?
>>
>> Alan
>>
>> On Mon, Mar 4, 2019 at 3:25 PM Alan Tilson  wrote:
>>
>>> Hello everyone,
>>>
>>> I'm creating a SPC inspection sheet for part dimensions and I'm using a
>>> page subform for each dimension. I loop through and set the subform object
>>> values and it looks ok on screen. However, when I print it the subform
>>> contest are replaced with the output form for the dimensions table.
>>>
>>> The page subforms are laid out in rows and columns, currently bassically
>>> 5x8.
>>>
>>> Is this not possible?
>>>
>>> Any ideas and/or suggestions would be appreciated!
>>> Alan Tilson
>>>
>>
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Printing Page Subforms in Columns/Rows in v17

2019-03-04 Thread Alan Tilson via 4D_Tech
I created a new project form for the Page Subform and copied the objects
into it. Same result.

On Mon, Mar 4, 2019 at 3:51 PM Alan Tilson  wrote:

> I did try changing the Page Subform form to a project form, but the
> results are the same.
>
> I don't understand how 4D picks the  table for the page subforms, but it
> uses the same output form as before!
>
> Ideas?
>
> Alan
>
> On Mon, Mar 4, 2019 at 3:25 PM Alan Tilson  wrote:
>
>> Hello everyone,
>>
>> I'm creating a SPC inspection sheet for part dimensions and I'm using a
>> page subform for each dimension. I loop through and set the subform object
>> values and it looks ok on screen. However, when I print it the subform
>> contest are replaced with the output form for the dimensions table.
>>
>> The page subforms are laid out in rows and columns, currently bassically
>> 5x8.
>>
>> Is this not possible?
>>
>> Any ideas and/or suggestions would be appreciated!
>> Alan Tilson
>>
>
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Printing Page Subforms in Columns/Rows in v17

2019-03-04 Thread Alan Tilson via 4D_Tech
I did try changing the Page Subform form to a project form, but the results
are the same.

I don't understand how 4D picks the  table for the page subforms, but it
uses the same output form as before!

Ideas?

Alan

On Mon, Mar 4, 2019 at 3:25 PM Alan Tilson  wrote:

> Hello everyone,
>
> I'm creating a SPC inspection sheet for part dimensions and I'm using a
> page subform for each dimension. I loop through and set the subform object
> values and it looks ok on screen. However, when I print it the subform
> contest are replaced with the output form for the dimensions table.
>
> The page subforms are laid out in rows and columns, currently bassically
> 5x8.
>
> Is this not possible?
>
> Any ideas and/or suggestions would be appreciated!
> Alan Tilson
>
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Printing Page Subforms in Columns/Rows in v17

2019-03-04 Thread Alan Tilson via 4D_Tech
Hello everyone,

I'm creating a SPC inspection sheet for part dimensions and I'm using a
page subform for each dimension. I loop through and set the subform object
values and it looks ok on screen. However, when I print it the subform
contest are replaced with the output form for the dimensions table.

The page subforms are laid out in rows and columns, currently bassically
5x8.

Is this not possible?

Any ideas and/or suggestions would be appreciated!
Alan Tilson
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: PDF as base 64

2019-03-04 Thread Janet Jonas via 4D_Tech
The BASE64 ENCODE command is the one you are looking for. The BASE64 DECODE 
documentation in the online Language Reference has a nice example to get you on 
your way, substituting the DOCUMENT TO BLOB command for the PICTURE TO BLOB 
command. 

JJ


> On Mar 4, 2019, at 12:00 PM, 4d_tech-requ...@lists.4d.com wrote:
> 
> --
> 
> Message: 8
> Date: Mon, 4 Mar 2019 14:42:24 -0500
> From: "cjmil...@informed-solutions.com 
> "
>>
> To: 4DTechList Tech <4d_tech@lists.4d.com >
> Subject: PDF as base 64
> Message-ID:
>>
> Content-Type: text/plain; charset=us-ascii
> 
> Hi all environment 4D 16.4. I have a need to create PDF documents as base 64 
> on Mac clients. Has anyone done this?  Any suggestions. 
> 
> Regards 
> 
> Chuck 
> 
> Sent from my iPhone
> 
> 
> --
> 
> Subject: Digest Footer
> 
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html 
> 
> Options: https://lists.4d.com/mailman/options/4d_tech 
> 
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com 
> 
> **
> 
> --
> 
> End of 4D_Tech Digest, Vol 142, Issue 5
> ***

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

Re: PDF as base 64

2019-03-04 Thread Charles Miller via 4D_Tech
Never mind. I figured out you can use IT_endode command.

Regards


Chuck

 Chuck Miller Voice: (617) 739-0306
 Informed Solutions, Inc. Fax: (617) 232-1064   
 mailto:cjmillerinformed-solutions.com 
 Brookline, MA 02446 USA Registered 4D Developer
   Providers of 4D and Sybase connectivity
  http://www.informed-solutions.com  

This message and any attached documents contain information which may be 
confidential, subject to privilege or exempt from disclosure under applicable 
law.  These materials are intended only for the use of the intended recipient. 
If you are not the intended recipient of this transmission, you are hereby 
notified that any distribution, disclosure, printing, copying, storage, 
modification or the taking of any action in reliance upon this transmission is 
strictly prohibited.  Delivery of this message to any person other than the 
intended recipient shall not compromise or waive such confidentiality, 
privilege or exemption from disclosure as to this communication. 

> On Mar 4, 2019, at 2:42 PM, cjmiller--- via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Hi all environment 4D 16.4. I have a need to create PDF documents as base 64 
> on Mac clients. Has anyone done this?  Any suggestions. 
> 
> Regards 
> 
> Chuck 
> 
> Sent from my iPhone
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

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

Re: PDF as base 64

2019-03-04 Thread Koen Van Hooreweghe via 4D_Tech
Hi chuck,

Create your PDF as usual (set print option...), then read the pdf file into a 
blob (document to blob), convert the blob to base64 (base64 encode) and finally 
write the resulting text data (or blob if you want) to disk.

HTH
Koen

> Op 4 mrt. 2019, om 20:42 heeft cjmiller--- via 4D_Tech <4d_tech@lists.4d.com> 
> het volgende geschreven:
> 
> Hi all environment 4D 16.4. I have a need to create PDF documents as base 64 
> on Mac clients. Has anyone done this?  Any suggestions. 




Compass bvba
Koen Van Hooreweghe
Kloosterstraat 65
9910 Aalter
Belgium
tel +32 495 511.653

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

PDF as base 64

2019-03-04 Thread cjmiller--- via 4D_Tech
Hi all environment 4D 16.4. I have a need to create PDF documents as base 64 on 
Mac clients. Has anyone done this?  Any suggestions. 

Regards 

Chuck 

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

RE: 4D Web Log Out

2019-03-04 Thread Epperlein, Lutz (agendo) via 4D_Tech
Hi Douglas,

> In our case we land the user at a login page which handles the httpAuth send 
> avoiding
> the nasty dialog.
> If the user is not authenticated they do not get in.  No problem there.
> If the user is authenticated then they are taken to the application (written 
> in Angular)
> At some point they will click the logout button/link and this would cause the 
> session to
> close (WEB CLOSE SESSION) and they are redirected to the login page.

Nearly the same what we do. I don't see a problem here.

> If they then typed in the index of the application index.shtml file the 
> browser was still
> passing in the old username and password so the client was getting through 
> the On
> Web Authentication and was issued with a new session ID and could use the 
> system as
> before the logout.

That's a bit strange and I don't understand it fully. 
Only one guess:
You mentioned Angular as the web framework (some call it platform, anyway).
I don't know the architecture of your web app, but it seems the problem is 
buried there. With Angular you produce so-called single page applications 
(SPA). That means that all the data entered are stored in the front end. 
Angular works with scopes, where the data is stored. So I think you have a 
scope containing the user credentials and if you go back to your start page 
this credentials are there in this scope yet. The start page isn't really a new 
page since you have single page application.
What you have to do is deleting them or destroying the scope after sending the 
credentials to server. Your current solution (see below) tries to locate the 
problem in the backend/the server. But I'm quite sure the problem is related to 
your frontend code and has nothing to do with 4D.
And for security reasons it is better to delete the credentials immediately 
after the login request, whether it is successful or not. 

Disclaimer: This hint is a guess as I said already since I don't know enough 
about your application.

Regards
Lutz 

> What I have done today is when the logout happens I now place a call using JS 
> from
> the logout page with invalid (null) credentials which causes the username and 
> password
> to be cleared.  Having carried out significant testing we have not been able 
> to get back
> in to an application page following a log out using this method.
> 
> Regards,  Dougie
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**