Re: Bug or feature?

2018-01-31 Thread Keisuke Miyako via 4D_Tech
JSON Parse error can be handled with ON ERR CALL, because it is not a runtime 
error.

"Current method name" requires range checking (see docs), but that is unrelated.

you just have to be aware that OK isn't updated,
you can consult "OB Is defined" instead.

> 2018/02/01 14:20、Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> のメール:
>
>  in the absence of a workable
> way to test the validity of a JSON string in compiled mode




**
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: Bug or feature?

2018-01-31 Thread Kirk Brooks via 4D_Tech
Hey Tim,

Thank you for the references. You are always so prompt with spot on links
like that.

I get the thinking about runtime errors - but in the absence of a workable
way to test the validity of a JSON string in compiled mode it seems a good
place for an actual method to do this. Or writing in something in the JSON
Parse methods that throw that error as something that can be trapped. Not
to re hash this discussion but it sure seems like a real problem.

Kirk Brooks
San Francisco, CA
===

*We go vote - they go home*


On Wed, Jan 31, 2018 at 4:09 PM, Timothy Penner via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Hi Kirk,
>
> Have you seen these tech tips?
>
> Tech Tip: Range checking errors are not caught ON ERR CALL in compiled mode
> http://kb.4d.com/assetid=77848
>
> Tech Tip: Consider disabling "Interact with the desktop" when running 4D
> Server as a Service
> http://kb.4d.com/assetid=77847
>
> We also have this tech tip - but I suppose it doesn't work in compiled
> mode...
>
> Tech Tip: How to check if TEXT is an OBJECT / JSON
> http://kb.4d.com/assetid=77555
>
> -Tim
>
>
>
> **
> 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(2): "Goodbye 4D Write" email

2018-01-31 Thread Don Lapin via 4D_Tech
Hi Brian,

You did not answer the question regarding whether 4D will continue to work with 
4D Write (the regular version, not the Pro). That's my primary concern at the 
moment. 

Since my rep told me that it would continue to work at the last developer event 
in San Jose, I don't understand why I would be getting a "Goodbye" email at 
this point. Was he wrong? Did I understand him incorrectly? This product is 
based on the functionality and capability of 4D Write, as painful as it was to 
write those lines of code.

With regard to Pro, last I looked it had a ruler which blocks a much larger 
amount of the writing area (*thick* vertically), making the writing area too 
small on detailed forms. 

The existing 4D Write menus and toolbar use about 2.5 cm on the form, leaving 
about 8.5 cm of useful area (before zoom) for composing. The example you linked 
to, of a 4D Write Pro toolbar and menu combination, is about twice as thick. I 
think I have seen that example before.

How would someone be able to use a word processing area over half of which is 
taken over by those thick elements? 

Fold in:
 
- the apparent absence of the rich command set available in 4D Write, 
particularly commands involving procedural generation of forms and style sheets;
- the absence of control for placing graphics on forms;
- the absence of Word-compatible style sheets;
- the absence of a Word export;

...what is left that's of any utility?

Given how intuitive the existing 4D Write interface is for the average, 
word-processing-type user, why would 4D abandon that? Why do the 4D developers, 
rather than the developers of 4D, need to spend hours trying to reproduce a 
detailed, compact interface that was already in the product?  

Please find some answers if you can. A negative answer to the first one would 
make a product that I have spent most of my time working on since early 2015 
become useless in new versions of 4d. These are all Windows users, so I have no 
interest in 64-bit stuff.


Thank you for responding, 
Don



>Hi Don,
>
>If you haven't already, please add your concern about "Export to MS
>Word" to the 4D Forum where the Product team can see it and respond.
>Here is a feature request you can up-vote:
>
>http://forums.4d.com/Post/EN/20813501/1/20814772#20814772
>
>Among the posts linked in the email today is one that gives example code
>to build a toolbar similar to the one in 4D Write:
>
>https://blog.4d.com/4d-write-like-toolbar-example-for-4d-write-pro/
>
>We are working to make sure you and the 4D community are aware of the
>resources already available by bundling 4D Write Pro related info together.
>
>my very best
>
>-Brian
>
>
>
>   
>Brian Young
>Technical Marketing Manager
>Telephone :+1-408-557-4626
>Email :byo...@4d.com
>Web :  www.4D.com  
>4D inc
>95 S. Market Street, Suite #240
>95113 San Jose - United States
>Standard : +1-408-557-4600
>Fax :  +1-408-271-5080
> 
>On Jan 31, 2018, at 12:59 PM, Don Lapin via 4D_Tech <4d_tech@lists.
>4d.com> wrote:
>
>Did anyone else get this "Goodbye 4D Write" email today?
>
>I was told by my rep that 4D Write would continue to work with future
>versions of the program. I have over 200 customers on a 4D Write-based
>application. Thousands of lines of code that procedurally assemble long
>OSHA, Canadian, and EU chemical compliance-related documents. Complete
>with Word-compatible style sheets and the export directly into the Word
>(.doc) format. It's one of our biggest selling points compared to the
>competition. 
>
>When I last looked at their so-called "Pro" version, it had a tiny
>fraction of the capability of 4D Write, and a clunky, witless widget
>interface that won't even fit on my forms. No Word export. After all
>time that they have taken to make a replacement, they came up with this.
>
>Am I not up to speed with progress on the "pro" version? Does it have a
>normal interface again? Can it procedurally assemble documents with Word
>style sheets and a Word export?
>
>Please let me know if you know more, or if I am mistaken.
>
>Thanks,
>Don
>
>
>
>**
>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: ImageCaptureCore - to Variable?

2018-01-31 Thread Keisuke Miyako via 4D_Tech
yes,

but you receive binary RGB data in chunks,
and you have to build your own JPG, PNG, TIFF, whatever, by code.

do you really want to go down that path?

2018/02/01 8:03、Keith Culotta via 4D_Tech 
<4d_tech@lists.4d.com> のメール:
Is an image available somewhere using this option?



**
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: Bug or feature?

2018-01-31 Thread Timothy Penner via 4D_Tech
> I don't see why?

Because runtime errors are not caught in compiled mode:
{
Tech Tip: Range checking errors are not caught by ON ERR CALL in compiled mode
http://kb.4d.com/assetid=77848
}

-Tim



**
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: Bug or feature?

2018-01-31 Thread Arnaud de Montard via 4D_Tech

> Le 1 févr. 2018 à 01:09, Timothy Penner via 4D_Tech <4d_tech@lists.4d.com> a 
> écrit :
> 
> Hi Kirk,
> 
> [...]
> 
> We also have this tech tip - but I suppose it doesn't work in compiled mode...
> Tech Tip: How to check if TEXT is an OBJECT / JSON
> http://kb.4d.com/assetid=77555

I don't see why?

-- 
Arnaud 




**
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: Bug or feature?

2018-01-31 Thread Timothy Penner via 4D_Tech
Hi Kirk,

Have you seen these tech tips?

Tech Tip: Range checking errors are not caught ON ERR CALL in compiled mode
http://kb.4d.com/assetid=77848

Tech Tip: Consider disabling "Interact with the desktop" when running 4D Server 
as a Service
http://kb.4d.com/assetid=77847

We also have this tech tip - but I suppose it doesn't work in compiled mode...

Tech Tip: How to check if TEXT is an OBJECT / JSON
http://kb.4d.com/assetid=77555

-Tim



**
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: Bug or feature?

2018-01-31 Thread Kirk Brooks via 4D_Tech
Has anything moved on this issue?

Just today I was getting runtime errors on the server. You know, the open
dialog, processes hung up. Sigh. It was in a component so i dug into to see
why the error was propagating to the level of stopping things and found
exactly this situation.

Even more, in the midst of looking at things I noticed this quote on the JSON
Parse 
docs:

"This string must be formatted correctly, otherwise a parsing error is
generated. JSON Parse can therefore be used to validate JSON strings."

​And thought: uh - cool. I'll just make a method to test strings more
completely. And ran right into this issue when it's compiled. ​


I hate this sort of stuff.

Kirk Brooks
San Francisco, CA
===

*We go vote - they go home*


On Fri, Mar 3, 2017 at 7:06 AM, Jeffrey Kain via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> The following behaves differently in interpreted vs. compiled:
>
>   C_OBJECT($oResponse)
>   C_TEXT($tResponse)
>
>   ON ERR CALL("ErrHandler")
>   $tResponse:="False"
>   $oResponse:=JSON Parse($tResponse)
>   ON ERR CALL("")
>
> In interpreted mode, the error handler catches an Error value of 54, and
> $oResponse is undefined.
>
> In compiled mode, the error handler catches an Error value of -1, and then
> 4D throws a runtime error dialog on the screen for JSON Parse ("Attempting
> to retype by using a pointer.") even though an ON ERR CALL is still in
> effect.
>
> If I change the JSON Parse line to:
>
>   $oResponse:=JSON Parse($tResponse;Is object)
>
> ... then 4D behaves the same in interpreted and compiled. Both catch an
> error of -1 in the error handler and no runtime error is generated.
>
> Feature or bug?
>
> --
> Jeffrey Kain
> jeffrey.k...@gmail.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
**

ImageCaptureCore - to Variable?

2018-01-31 Thread Keith Culotta via 4D_Tech
Hello,

I'm experimenting with 4d-plugin-ica and it's working.  Is it possible to avoid 
scanning to a disk file?
I tried ICA SET SCAN OPTION ($scanner;Scanner transfer mode;String(Scanner 
transfer mode data))
and can see a BLOB is being built.

Using BLOB TO PICTURE  and BLOB TO VARIABLE (with a picture variable) do not 
result in an image.

Is an image available somewhere using this option?

Thanks,

Keith - CDI
**
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: "Goodbye 4D Write" email

2018-01-31 Thread Brian Young via 4D_Tech
Hi Don,

If you haven’t already, please add your concern about "Export to MS Word" to 
the 4D Forum where the Product team can see it and respond. Here is a feature 
request you can up-vote:

http://forums.4d.com/Post/EN/20813501/1/20814772#20814772

Among the posts linked in the email today is one that gives example code to 
build a toolbar similar to the one in 4D Write:

https://blog.4d.com/4d-write-like-toolbar-example-for-4d-write-pro/

We are working to make sure you and the 4D community are aware of the resources 
already available by bundling 4D Write Pro related info together.

my very best

-Brian





On Jan 31, 2018, at 12:59 PM, Don Lapin via 4D_Tech 
<4d_tech@lists.4d.com> wrote:

Did anyone else get this "Goodbye 4D Write" email today?

I was told by my rep that 4D Write would continue to work with future versions 
of the program. I have over 200 customers on a 4D Write-based application. 
Thousands of lines of code that procedurally assemble long OSHA, Canadian, and 
EU chemical compliance-related documents. Complete with Word-compatible style 
sheets and the export directly into the Word (.doc) format. It's one of our 
biggest selling points compared to the competition.

When I last looked at their so-called "Pro" version, it had a tiny fraction of 
the capability of 4D Write, and a clunky, witless widget interface that won't 
even fit on my forms. No Word export. After all time that they have taken to 
make a replacement, they came up with this.

Am I not up to speed with progress on the "pro" version? Does it have a normal 
interface again? Can it procedurally assemble documents with Word style sheets 
and a Word export?

Please let me know if you know more, or if I am mistaken.

Thanks,
Don



**
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: Problems installing built application

2018-01-31 Thread Timothy Penner via 4D_Tech
> I will experiment with signing BUT I really don't think this is the issue

A quick test to see if your application is in a Translocated (Read-Only) 
quarantine is to run the following code:

ALERT(APPLICATION FILE)

Then check the output.

If the Path is correct and matches where the application is actually installed, 
then you have successfully bypassed GateKeeper.

If the Path is wrong and looks like it begins with a UUID, then your 
application is being Translocated to a Read-Only quarantine due to GateKeeper.
http://forums.4d.com/4DBB_Main/x_User/1178015/files/18720934.png


-Tim



**
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: Problems installing built application

2018-01-31 Thread John DeSoi via 4D_Tech
You can do this with the default data file. The new model allows you to startup 
your app and then switch to another database without showing the open database 
dialog. You can switch to an existing one or create a new one on the fly.

John DeSoi, Ph.D.


> On Jan 31, 2018, at 1:35 PM, macjimbo via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Finally, you are right that the app ought to be a good candidate for using a
> default data file, but unfortunately the previous developer built some code
> that required the use of the data file as a temporary store for building
> certain reports. It's annoying, but I don't have time to unpick all that
> stuff! So, for now, the data file will have to stay outside the app.

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

"Goodbye 4D Write" email

2018-01-31 Thread Don Lapin via 4D_Tech
Did anyone else get this "Goodbye 4D Write" email today?

I was told by my rep that 4D Write would continue to work with future versions 
of the program. I have over 200 customers on a 4D Write-based application. 
Thousands of lines of code that procedurally assemble long OSHA, Canadian, and 
EU chemical compliance-related documents. Complete with Word-compatible style 
sheets and the export directly into the Word (.doc) format. It's one of our 
biggest selling points compared to the competition. 

When I last looked at their so-called "Pro" version, it had a tiny fraction of 
the capability of 4D Write, and a clunky, witless widget interface that won't 
even fit on my forms. No Word export. After all time that they have taken to 
make a replacement, they came up with this.

Am I not up to speed with progress on the "pro" version? Does it have a normal 
interface again? Can it procedurally assemble documents with Word style sheets 
and a Word export?

Please let me know if you know more, or if I am mistaken.

Thanks,
Don



**
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: https with client as web server

2018-01-31 Thread Timothy Penner via 4D_Tech
> But I don't know were to put it if the web server is a client using a "web 
> server for 4d client" licence

http://doc.4d.com/4Dv16R5/4D/16-R5/Using-TLS-Protocol.300-3481187.en.html#2643168
{
key.pem (document containing the private encryption key) and cert.pem (document 
containing the certificate):
- with 4D in local mode or 4D Server, these files must be placed next to the 
database structure file
- with 4D in remote mode, these files must be located in the local resources 
folder of the database on the remote machine (for more information about the 
location of this folder, refer to the 4D Client Database Folder paragraph in 
the description of the Get 4D folder command). Note that you must copy these 
files manually on the remote machine.
}

-Tim



**
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: Intermittent 4D Server / System crashes

2018-01-31 Thread Alberto Bachler via 4D_Tech
Memory usage/leaks?
Are you using a 32 or 64 bit server?

> El 28-01-2018, a las 22:50, Mitchell Shiller via 4D_Tech 
> <4d_tech@lists.4d.com> escribió:
> 
> Hi,
> 
> 4D Server 16.2
> Mac OS  10.13.2 running on a MacMini (Late 2014) 8GB RAM
> External RAID 0+1 Samsung SSD. Using SoftRaid XT 
> 
> Only applications running are:
> 4D Server (no stored procedures), 15 users
> Carbon Copy Cloner 5.05 (latest) scheduled to run every hour except from 
> 22:00 - 6:00 when there are no users logged in)
> Retrospect Client (14.6.0.127 latest) (which backs up a second attached drive 
> that contains the 4D backup files at 23:00)
> 
> I have been having  intermittent system crashes. These happen every 2-5 
> days.. Never when the system is in use. (8-21:00) Usually  early in the 
> morning long after Retrospect has run. Retrospect Client takes about 15-30 to 
> back up to our main Server. 
> I get the spinning beach ball of death. So it is not just a 4D crash.  
> Nothing is responsive. The computer requires a hard reboot to get going again 
> and then I am fine for 2-5 days.
> Usually no users are logged in at the time.
> 
> In the console I get the following information from the most recent 2 crashes;
> 
> https://www.dropbox.com/sh/2xejz2dehwqf3wu/AADcablM2L7vzu8uLRxY0-Hxa?dl=0
> 
> I have tested the disk integrity, RAM integrity. All OK. I changed to a new 
> computer with no change.
> The previous computer was running 10.12
> I contacted the SoftRaid support who downloaded  a crash report and stated 
> that the crash is not happening with a disk access to the RAID system.
> 
> 
> Any idea what the next step should be?
> 
> Thanks
> 
> Mitch
> **
> 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
**

https with client as web server

2018-01-31 Thread Arnaud de Montard via 4D_Tech
Hi all, 
on the server, the key.pem file must be near the 4db file. But I don't know 
were to put it if the web server is a client using a "web server for 4d client" 
licence. Wondering about local ressources, near the 4db "clone" but I did not 
try yet. Some help?  

-- 
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: Problems installing built application

2018-01-31 Thread macjimbo via 4D_Tech
Thanks for your replies to this. I will experiment with signing BUT I really
don't think this is the issue, for 2 reasons:

1. I've had this problem since before Gatekeeper was invented.
2. I'm familiar with the Gatekeeper dialogs and this isn't one of them.
Gatekeeper would normally prevent the app being opened, but this can be
bypassed by right-clicking the app and selecting 'open'. That's not the
problem here.

This does seem to be some weird permission scenario but I can't get to the
bottom of it. Details of any other successful runtime installations would be
helpful - especially where problems have been found and overcome.

Finally, you are right that the app ought to be a good candidate for using a
default data file, but unfortunately the previous developer built some code
that required the use of the data file as a temporary store for building
certain reports. It's annoying, but I don't have time to unpick all that
stuff! So, for now, the data file will have to stay outside the app.

Thanks!



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

Array of objects and collection

2018-01-31 Thread Arnaud de Montard via 4D_Tech
Hi all, 
I have the following piece of code code in a v14R5 DB:

$type:=OB get type($obj;"attrib")
case of
  :($type=is object)  //38
  :($type=is array object) //39
else
  unexpected  //error
end case

It reads a home made json that defines a home made listbox description. 

When upgrading to v16R5, the code goes to unexpected because $type returns Is 
collection (42). Easy to deal with, but is it normal that 4D makes no 
difference between a collection and a "true" object array?

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