Re: Typing a menu ref for Dynamic pop up menu

2017-12-07 Thread Kirk Brooks via 4D_Tech
 Yeah, I've spent no small amount of time maintaining code I eventually
determined wasn't being used too.

On Thu, Dec 7, 2017 at 1:31 PM, John Baughman via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Duh!  Of course. Actually the method in question had been replaced and was
> not being used anymore, or more probably not ever used.
>
> Thanks,
>
> John
>
>
>
> > On Dec 7, 2017, at 11:13 AM, Kirk Brooks via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> >
> > John,
> >
> > On Thu, Dec 7, 2017 at 1:00 PM, John Baughman via 4D_Tech <4d
> > _t...@lists.4d.com> wrote:
> >
> >> The compiler then complains when I try to append to the list saying
> >> “Changing the type of vTopLevelList from type text to type Real.
> >>
> >
> > ​You can only use APPEND MENU ITEM with a menu ref. You mention "I try to
> > append to the list" which suggests you're using APPEND TO LIST which is
> > looking for a list ref and that's a longint.
> >
> > --
> > Kirk Brooks
> > San Francisco, CA
> > ===
> >
> > The only thing necessary for the triumph of evil is for good men to do
> > nothing.
> >
> > - Edmund Burke
> > **
> > 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
> > **
>
> John Baughman
> Kailua, Hawaii
> (808) 262-0328
> john...@hawaii.rr.com
>
>
>
>
>
> **
> 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
> **
>



-- 
Kirk Brooks
San Francisco, CA
===

*The only thing necessary for the triumph of evil is for good men to do
nothing.*

*- Edmund Burke*
**
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: Typing a menu ref for Dynamic pop up menu

2017-12-07 Thread John Baughman via 4D_Tech
Duh!  Of course. Actually the method in question had been replaced and was not 
being used anymore, or more probably not ever used.

Thanks,

John



> On Dec 7, 2017, at 11:13 AM, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> John,
> 
> On Thu, Dec 7, 2017 at 1:00 PM, John Baughman via 4D_Tech <4d
> _t...@lists.4d.com> wrote:
> 
>> The compiler then complains when I try to append to the list saying
>> “Changing the type of vTopLevelList from type text to type Real.
>> 
> 
> ​You can only use APPEND MENU ITEM with a menu ref. You mention "I try to
> append to the list" which suggests you're using APPEND TO LIST which is
> looking for a list ref and that's a longint.
> 
> -- 
> Kirk Brooks
> San Francisco, CA
> ===
> 
> The only thing necessary for the triumph of evil is for good men to do
> nothing.
> 
> - Edmund Burke
> **
> 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
> **

John Baughman
Kailua, Hawaii
(808) 262-0328
john...@hawaii.rr.com





**
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: Typing a menu ref for Dynamic pop up menu

2017-12-07 Thread Kirk Brooks via 4D_Tech
 John,

On Thu, Dec 7, 2017 at 1:00 PM, John Baughman via 4D_Tech <4d
_t...@lists.4d.com> wrote:

> The compiler then complains when I try to append to the list saying
> “Changing the type of vTopLevelList from type text to type Real.
>

​You can only use APPEND MENU ITEM with a menu ref. You mention "I try to
append to the list" which suggests you're using APPEND TO LIST which is
looking for a list ref and that's a longint.

-- 
Kirk Brooks
San Francisco, CA
===

The only thing necessary for the triumph of evil is for good men to do
nothing.

- Edmund Burke
**
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
**

Typing a menu ref for Dynamic pop up menu

2017-12-07 Thread John Baughman via 4D_Tech
vTopLevelList:=Create menu

If I try to compile the structure without explicitly typing the variable 
vTopLevelList, the complains that the result of the function is not compatible 
with the expression.

If I type the variable…

 C_TEXT(vTopLevelList)

The compiler then complains when I try to append to the list saying “Changing 
the type of vTopLevelList from type text to type Real. 

A menu ref is supposed to be a text variable.

What am I missing.

Is anyone else getting a bit annoyed at the changes in typing behavior in the 
latest R release? I am getting many syntax errors in interpreted mode that I 
did not get in prior versions. SET QUERY DESTINATION(Into 
Variable;$foundCount), for example will throw a runtime error in interpreted 
mode if $foundCount is not explicitly typed.

john



John Baughman
Kailua, Hawaii
(808) 262-0328
john...@hawaii.rr.com





**
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: Anyone seeing issues with OPEN PRINTING JOB and Windows 10?

2017-12-07 Thread Kirk Brooks via 4D_Tech
 Sorry - I should mention this is v15.4.

On Thu, Dec 7, 2017 at 12:14 PM, Kirk Brooks  wrote:

> I have a user running a brand new Win10 laptop and is unable to print a
> report built inside an OPEN/CLOSE PRINTING JOB clause. This is an old
> report and no other users are having issues.
>
> I'm looking for ideas about what it might be.
>
> --
> Kirk Brooks
> San Francisco, CA
> ===
>
> The only thing necessary for the triumph of evil is for good men to do
> nothing.
>
> - Edmund Burke
>
>


-- 
Kirk Brooks
San Francisco, CA
===

*The only thing necessary for the triumph of evil is for good men to do
nothing.*

*- Edmund Burke*
**
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
**

Anyone seeing issues with OPEN PRINTING JOB and Windows 10?

2017-12-07 Thread Kirk Brooks via 4D_Tech
 I have a user running a brand new Win10 laptop and is unable to print a
report built inside an OPEN/CLOSE PRINTING JOB clause. This is an old
report and no other users are having issues.

I'm looking for ideas about what it might be.

-- 
Kirk Brooks
San Francisco, CA
===

The only thing necessary for the triumph of evil is for good men to do
nothing.

- Edmund Burke
**
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: Sending Email To FastMail

2017-12-07 Thread Cannon Smith via 4D_Tech
Wow, I didn’t know that parameter existed! That does indeed solve the issue.

Thanks, Tim!

--
Cannon.Smith
Synergy Farm Solutions Inc.
Hill Spring, AB Canada
403-626-3236




> On Dec 7, 2017, at 11:52 AM, Timothy Penner  wrote:
> 
> What are you issuing as the second parameter to SMTP_SEND?
> If you want to explicitly use SSL this parameter should be 1.
> 
> http://livedoc.4d.com/4D-Internet-Commandsv16-R4/help/Command/en/page88989.html

**
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: Sending Email To FastMail

2017-12-07 Thread Timothy Penner via 4D_Tech
What are you issuing as the second parameter to SMTP_SEND?
If you want to explicitly use SSL this parameter should be 1.

http://livedoc.4d.com/4D-Internet-Commandsv16-R4/help/Command/en/page88989.html

-Rim



**
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: Sending Email To FastMail

2017-12-07 Thread Cannon Smith via 4D_Tech
I think I’ve uncovered a bug in Internet Commands. When setting up the code to 
send a new email, I use this command:

$lError:=IT_SetPort (12;465)

which should enable SSL and have the SMTP_Send command use port 465. When I see 
what is actually going on using Wireshark, I see that 4D is ignoring my request 
to use port 465 and tries to connect on port 25 instead. I haven’t noticed this 
bug for years because my previous email host allowed port 25 as a fallback. My 
new one (I think correctly) does not, so the SMTP server rejects my attempt to 
connect to it.

I’ve created a tech support case, but am wondering if anyone else has noticed 
this or figured out any workarounds.

Thanks.

--
Cannon.Smith
Synergy Farm Solutions Inc.
Hill Spring, AB Canada
403-626-3236




> On Dec 6, 2017, at 4:17 PM, Cannon Smith via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Is anyone using 4D to send email through a FastMail account? I just switched 
> an email address to FastMail and think I have things set up in 4D to send to 
> it through the smtp server, but it isn’t working. Using WireShark I can see 
> it connects to the server on the TCP level, but that’s about all that happens 
> until it times out. I’m wondering if there are any tricks I’m missing.

**
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: Interaction with Microsoft Web Service

2017-12-07 Thread Dennis, Neil via 4D_Tech
> No offense intended:

It is hard to offend me, even if you are trying :)

I don't use 4D SOAP very often... but I have always been able to get it work 
even if I had to go to a low level. I totally agree it is difficult to 
understand and way over complicated. In more recent years I have found that 
many services that I want to communicate with offer alternative service types, 
such as REST like services with a secure login. I use those instead of SOAP 
every chance I get.

I think that it is cool you put together a component for this.

Neil





--


Privacy Disclaimer: This message contains confidential information and is 
intended only for the named addressee. If you are not the named addressee you 
should not disseminate, distribute or copy this email. Please delete this email 
from your system and notify the sender immediately by replying to this email.  
If you are not the intended recipient you are notified that disclosing, 
copying, distributing or taking any action in reliance on the contents of this 
information is strictly prohibited.

The Alternative Investments division of UMB Fund Services provides a full range 
of services to hedge funds, funds of funds and private equity funds.  Any tax 
advice in this communication is not intended to be used, and cannot be used, by 
a client or any other person or entity for the purpose of (a) avoiding 
penalties that may be imposed on any taxpayer or (b) promoting, marketing, or 
recommending to another party any matter addressed herein.
**
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: Interaction with Microsoft Web Service

2017-12-07 Thread Herr Alexander Heintz via 4D_Tech
Am 07.12.2017 um 15:26 schrieb npdennis via 4D_Tech <4d_tech@lists.4d.com>:
> 
>> Thank you for the response. What i was omitting to say is that i was looking
>> for a solution for the v12 version of 4D and i'm dealing with a SOAP
>> comunication.
> 
> 
> The commands haven’t changed much that I know of between version. Check the 
> v12 manual for web services (web services are SOAP services)

Sorry Neil,
No offense intended:
But:

Won’t ever work!

You cannot use the 4D SOAP Commands with EWS, as EWS requires different 
(unsupported) authentication mechanisms (like NTLM) along with a heavily 
modified SOAP header, wich again cannot be done as required with 4D internal 
tools.

In addition to that, communicating with Exchange Web Services is a dark art, 
tedious, only partly documented, overly complicated!
Took me 2 Months to get it going, as understanding the concepts behind 
creation/modification and deletion of Items is a nightmare.
Look at the introductions to my component and a few of the command descriptions 
and you might understand why.

http://manual.4d-exchange.com/doku.php

You are of course welcome to re-invent the wheel, if not, feel free to contact 
me.

Cheers

Alex


> 
> Neil
> 
> --
> Neil Dennis
> 4D Developer since 1990
> 
> GreaText - Designing Software for the Way You Work
> 716 East 1850 N
> North Ogden, UT 84414
> 
> mailto:npden...@greatext.com
> http://www.greatext.com/
> 
> 
> Neil
> **
> 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
> **

**
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: Interaction with Microsoft Web Service

2017-12-07 Thread npdennis via 4D_Tech
> Thank you for the response. What i was omitting to say is that i was looking
> for a solution for the v12 version of 4D and i'm dealing with a SOAP
> comunication.


The commands haven’t changed much that I know of between version. Check the v12 
manual for web services (web services are SOAP services)

Neil

--
Neil Dennis
4D Developer since 1990

GreaText - Designing Software for the Way You Work
716 East 1850 N
North Ogden, UT 84414

mailto:npden...@greatext.com
http://www.greatext.com/


Neil
**
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: Interaction with Microsoft Web Service

2017-12-07 Thread Herr Alexander Heintz via 4D_Tech
Well, 
I might have something for you:

I wrote a component a few years ago to communicate with Exchange Web Services 
and it still works quite well.

The Manual is here:

http://manual.4d-exchange.com/doku.php 

Sadly, NO Version 12, as it makes good use of C_Objects.
Also it is not possible to bring it to V12 without a huge amount of work, and I 
do not see that happening unless it’s paid for. Actually, I do not even have a 
V12 installed anymore!
I know, I know, hat it myself when people tell me to update, but nevertheless: 
Update :-)
V16 is a real and true progress compared to 12 or 13 or 14 or 15….
And that from someone who has been working with 4D since the late 80ies and who 
for good reason used to stay 2 versions behind, for my and my clients sake…
Feel free to contact me by PM.

Cheers
Alex

> Am 07.12.2017 um 10:17 schrieb STARDATA via 4D_Tech <4d_tech@lists.4d.com>:
> 
> Hey Neil, 
> Thank you for the response. What i was omitting to say is that i was looking
> for a solution for the v12 version of 4D and i'm dealing with a SOAP
> comunication.
> 
> 
> 
> --
> Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
> **
> 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
> **

**
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: Saving an object array to disk

2017-12-07 Thread Arnaud de Montard via 4D_Tech

> Le 5 déc. 2017 à 20:45, Timothy Penner via 4D_Tech <4d_tech@lists.4d.com> a 
> écrit :
> 
> Why don't you just use SQL EXPORT SELECTION and SQL EXECUTE SCRIPT?

Hi Tim, 
I had to use that last month for a crashed DB in which there was no other 
solution after repair than export/import all. 
Code easy and short to write, fast, reliable: great! 
But I was lucky that DB had no object fields… 

SQL EXPORT SELECTION is fast and easy to compress (sizes in Mb): 
  4DB -> 27.6
  compressed "normal" 4BK -> 8
  not compressed 4BK -> 27.9
  not compressed 4BK.zip -> 4.3
  not compressed 4BK.7z -> 2.9
  SQL dump -> 9.2
  SQL dump.zip -> 1.8
  SQL dump.7z -> 1.4
I wish I could use it as an alternate to existing backup  :-(

-- 
Arnaud de Montard 




**
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: Interaction with Microsoft Web Service

2017-12-07 Thread STARDATA via 4D_Tech
Hey Neil, 
Thank you for the response. What i was omitting to say is that i was looking
for a solution for the v12 version of 4D and i'm dealing with a SOAP
comunication.



--
Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
**
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
**