John Baughman | 24 Jul 00:57 2014
Picon

PDF problem

I am having a strange problem with PDFs which is probably a php problem and not a 4D problem. I am creating pdfs
in the 4D HTML Root folder from 4D as well as uploads from a flash/flex based web site. I am then merging these
pdfs into a single document.

The 4D generated pdfs are being creating using the 4D Print commands. The uploads are being received as data.

The php code I am using is from this TechTip and it works fine with the 4D generated pdfs, but not the uploaded
pdfs. I don't get any errors, the php just does not merge the uploaded file. If I open the uploaded file with
Preview and save it back to disk, it will then merge fine.

I am saving the uploaded pdf with the following code...

$fileName:=String($projectID)+"_"+$regPackID+".pdf"
$vhDocRef:=Create document($webFolderPath+$fairFolder+$fileName;"PDF")  // Save the document of
your choice
If (OK=1)  // If a document has been created
   CLOSE DOCUMENT($vhDocRef)  // We don't need to keep it open
   BLOB TO DOCUMENT(Document;FileData)  // Write the document contents, FileData has been received by 4D Web Server
End if 

Originally I was using BLOB TO DOCUMENT directly but thought using Create Document would work better
because I can force the file type as PDF. No sure I am passing the file type correctly. 

Obviously there is something different about the uploaded file, but I am not sure if there is anything I can
do programmatically to resolve the problem. 

Any suggestions?

John

(Continue reading)

Joshua Hunter | 24 Jul 00:32 2014

Team Web Development Setup

We are embarking on a project that involves the 4D web server. We found that errors in methods executed
within the 4D Web Server process can crash the entire 4D server that all of our developers are actively
using (making the new web development team very unpopular).

What is the best way to set up our development environment to meet these goals:
* Web method errors won't crash the 4D server used by everyone.
* Ready access to the debugger of the web process.
* No copy and paste of code between a local version and the shared development server.

Right now each member of the web dev team is running a standalone copy of our software with a local web server.
We write our code and copy/paste to the master served up version used by everyone. This solves the first two
issues, but means we spend a good chunk of time in tedious (and error prone) copy/paste.

Much appreciated,
Joshua

Joshua Hunter
joshua@...<mailto:joshua@...>
(425) 673-1974
www.dwdev.com<http://www.dwdev.com/>
Dataworks Development, Inc.
Providing secure and configurable data management solutions for research and clinical labs since 1987.

**********************************************************************
See how easy it is to extend your 4D solutions to Web and mobile. New opportunities await you with 4D v14!

4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
(Continue reading)

David Rose | 23 Jul 22:28 2014
Picon

Copy/Paste Email into 4D

I have a client running 4D v13.5 client/server un-compiled on OSX 10.9.4 and 
he uses Apple Mail v7.3 . He likes to click on an email in his Inbox, copy 
it, and then paste it into a text field in his 4D app. This worked fine 
prior to 4D v13.5. What got pasted was the sender, date sent, recipient 
name, and subject, followed by the email body. When he upgraded to v13.5 
this stopped working - nothing gets pasted into the 4D text field. "Paste 
and Match style" also doesn't work. He is able to paste into a text editor, 
and copy and paste from there into 4D. This is the method that I have been 
recommending to him for years, but he does this frequently enough to make 
the extra copy/paste a nuisance.

Anyone know of a work-around? 

**********************************************************************
See how easy it is to extend your 4D solutions to Web and mobile. New opportunities await you with 4D v14!

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

Nick Middleweek [4D] | 23 Jul 20:18 2014

Re: set RGB Colours

Mmmm, this is a shame, it doesn't actually seem to work.

#414141 thinks it has a negative hue, I've moved the last Case to the top
as it made more sense and works for some but using reliable sources it's
just not cutting the colours correctly.

If anyone has a reliable RGB to HSL converter, I'd love to hear from you.

Cheers,
Nick

On 23 July 2014 17:27, Nick Middleweek [4D] <nmiddleweek4d@...>
wrote:

> I've just downloaded it separately from
> http://sources.4d.com/trac/4d_4dpop/browser#14.x
>
> Opened up the bad boy and copy-pasted the method i need.
>
>
> Cheers!
>
> p.s. Everytime I use 4D it reminds me how absolutely amazing it is. Such a
> shame there's no UK contract jobs out there :(
>
>
>
>
>
> On 23 July 2014 17:24, Arnaud de Montard <arnaud@...> wrote:
(Continue reading)

Chuck Miller | 23 Jul 18:24 2014

query strangeness

Hi All

Environment
v 13.5 development on mac

I created a new table

One of fields is completed_d typed as a date. 

I am doing a query where completed_d = !00/00/00!

I know there are two records but get none

I have tried with sql and also get no  keys

When I do the same query on another table all works as expected

I have compacted data I have repaired and then compacted structure _ no problems

Thanks and regards

Chuck
------------------------------------------------------------------------------------------------
 Chuck Miller Voice: (617) 739-0306
 Informed Solutions, Inc. Fax: (617) 232-1064       
 PO Box 1720 mailto:cjmiller<AT SIGN>informed-solutions.com 
 Brookline, MA 02446 USA Registered 4D Developer                
       Providers of 4D and Sybase connectivity
          http://www.informed-solutions.com  
------------------------------------------------------------------------------------------------
(Continue reading)

Kirk Brooks | 23 Jul 16:31 2014
Picon

How are you using DESCRIBE QUERY EXECUTION?

I'm looking for ideas for implementing this. So far I've used it a few
times and have been pretty inelegant - just hard coding it in before and
after some queries like the example in the docs. Before I reinvent another
wheel I'd appreciate some input on how it's being used and setup.

--

-- 
Kirk Brooks
San Francisco, CA
=======================
**********************************************************************
See how easy it is to extend your 4D solutions to Web and mobile. New opportunities await you with 4D v14!

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

Philippe Ganter | 23 Jul 15:33 2014
Picon

PrintList Pro v5.2 released

Dear developers,

PrintList Pro v5.2 is now available at http://www.e-node.net/plp

PrintList Pro is an easy-to-use tool for printing arrays and records on 4th Dimension layouts.

As with AreaList Pro, PrintList Pro provides capabilities not available in native 4D, such as automatic
column sizing, custom formatting, robust break level processing, calculated columns and more.

PrintList Pro is the perfect complement to the AreaList Pro best seller plugin, providing a full-featured
plug-in which can be used to print columns of data. You can use PrintList Pro for any standard columnar
output (arrays or fields, calculated columns) and it be configured to easily print an AreaList Pro object
- retaining all formatting features.

Version 5.x is a full rewrite including Unicode mode, compatibility with AreaList Pro v9, 4D v11, v12, v13,
v14 and above, with exciting new features.

Version 5.2 brings new features, fixes and improved compatibility with 4D v14.	

This release is a free upgrade from v4.7 and above.

Regards,
--

-- 
Philippe Ganter
www.e-node.net

**********************************************************************
See how easy it is to extend your 4D solutions to Web and mobile. New opportunities await you with 4D v14!

4D Internet Users Group (4D iNUG)
(Continue reading)

Keith Goebel | 22 Jul 23:35 2014
Picon

Re: LAUNCH EXTERNAL PROCESS - open file in Win - how?

Spenser, 
Thanks for the details of the command. I'll try that.
I especially like step 3 - I'll definitely try that too :-)
Cheers, Keith

> Here a 3 step solution:
> 1. copy and paste example 10 from LEP docs:
>    LAUNCH EXTERNAL PROCESS("cmd.exe /C start \"\" \""+$docname+"\"")
> 2. put your path that work in Run into $docname
> 3. have a nice day
**********************************************************************
See how easy it is to extend your 4D solutions to Web and mobile. New opportunities await you with 4D v14!

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

Keith Goebel | 22 Jul 23:32 2014
Picon

Re: LAUNCH EXTERNAL PROCESS - open file in Win - how?

Randy,
Thanks for the tip - I'll try that too.
Cheers, Keith

> ...
> OPEN WEB URL("file://C:/Users/Lauren/Documents/pending.htm")...
**********************************************************************
See how easy it is to extend your 4D solutions to Web and mobile. New opportunities await you with 4D v14!

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

Keith Goebel | 22 Jul 23:13 2014
Picon

Re: LAUNCH EXTERNAL PROCESS - open file in Win - how?

Miyako,
I found what I needed in your component - many thanks.
Cheers, Keith

> ...
> arguments to cms.exe differ depending on what you want to acheive...

>> ...
>> Using 4D v13.5 Win, I have a disk file I want to open in the default
>> application for the file type, using LAUNCH EXTERNAL PROCESS.
> 

**********************************************************************
See how easy it is to extend your 4D solutions to Web and mobile. New opportunities await you with 4D v14!

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

Keith Goebel | 21 Jul 23:03 2014
Picon

Re: LAUNCH EXTERNAL PROCESS - open file in Win - how?

Miyako,
Thanks for your reply.
I will check out the component's examples.

I must admit I was hoping for an actual answer for this "just quickly, do this..." problem, but I know I'll
learn more by having to go through documentation :-)

> ...
> arguments to cms.exe differ depending on what you want to acheive...

I want to open a given document with its default application.
Cheers, Keith

>> ...
>> Using 4D v13.5 Win, I have a disk file I want to open in the default
>> application for the file type, using LAUNCH EXTERNAL PROCESS.
> 

**********************************************************************
See how easy it is to extend your 4D solutions to Web and mobile. New opportunities await you with 4D v14!

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


Gmane