Re: ODBC question

2017-01-25 Thread John Baughman

> 
> I am experimenting now with two approaches. One is to use Quickbooks SOAP web 
> connector, and the other is to use QODBC plugin available at qodbc.com 
> . QODBC eliminates the Quickbooks SDK and provides 
> transparent access. I have been able to connect to Quickbooks Desktop using 
> both tools.  I am leaning towards the plugin. QODBC also has great 
> documentation.

I took a fairly close look at QODBC and decided to work with the SDK 
directly from 4D instead. One, because QODBC had a cost and two, I decided I 
did not want to depend on a 3rd party plugin. QODBC is basically a wrapper for 
the SDK. Since 4D has everything needed to create the requests and receive the 
responses I decided to use the SDK directly. I just needed to figure out how to 
create and use the QuickBooks COM object. I was replacing an old 4D plugin 
called QBManager4D that did all the COM work. Got to say it was a fun project 
working with PowerShell and Windows COM objects. 

> 
> Technically, if you use the soap web connector communication is always 
> initiated from Quickbooks. It sends a message to the 4D database on a timer 
> asking for work to do, so you could ask it for changes since the last 
> exchange of information and synchronize. The timer can be set to a small 
> interval so that it is practically real time. Both the web connector and 
> QODBC have read/write access and will work even when Quickbooks is closed

From what I was able to gather when I was investigating my options, the 
SOAP communication was initiated by Quickbooks but it wasn’t doing anything but 
opening a connection with the integrated app (4D) after which all 
communications was done via requests from the integrated app. For my purposes I 
needed to have the 4D end user open the connection to send and receive 
transactions only when needed by the end user. My understanding is that no 
matter how the connection is initiated, after the connection is made, 
communication between 4D and Quickbooks is done entirely from 4D requests. No 
matter which method you use QODBC, SOAP, or using the SDK directly via COM you 
will have read/write access even when Quickbooks is closed. Using the SDK/COM 
approach each request opens a connection, sends a request, receives data 
response, then closes the connection.

I see no reason that your approach shouldn’t work just fine as long as 
it gives you the flexibility you require.

John



> 
> 
> 
>> On Jan 23, 2017, at 6:00 PM, John Baughman  wrote:
>> 
>> 
>>> On Jan 23, 2017, at 9:48 AM, Kevin Abraham  wrote:
>>> 
>>> As for the Desktop App, the way integration here works (and you may have 
>>> several options, I did not write our App and it is quite old) is that 
>>> Intuit has an SDK which can be used in Visual Studio (in our case) to 
>>> create a Windows EXE which can then be called by 4D. So with QB launched 
>>> (in our case, there are other security options here) the user can run a 4D 
>>> Method which drops and XML file in a preset location. 4D then Launches the 
>>> EXE which we call QBXMLAgent. QBXMLAgent then reads the XML and does all 
>>> the communication with QB’s and returns an XML file for 4D to the same 
>>> preset location. Note, NO ODBC setup is required to make this work. Only 
>>> that the EXE be present on the Windows machine in preset path where 4D 
>>> calls. it.
>> 
>> 
>> Similar to how Kevin uses Visual Studio, you can use Windows PowerShell. 4D 
>> creates and executes the Power Shell scripts that sends and/or receives data 
>> to and from Quickbooks. As noted these scripts are very simple and well 
>> documented in the Intuit Quickbooks SDK. if QB is installed on the same 
>> machine as 4D Server or Client you can talk directly to QuickBooks desktop 
>> from either 4D server or client. Intuit provides Client/Server utility apps 
>> that allow 4D Server or 4D client to talk QB installed on different machines 
>> than 4D. I have a 4D Client/Server/Quickbooks solution deployed that works 
>> seemlessly using PowerShell which allows the users to set there systems up 
>> in whatever configuration works best for the end user.
>> 
>> I have never tried it but, if I remember correctly there is also a web 
>> service option allowing you to talk to QB Desktop over the internet. I have  
>> not worked with the QB OnLine.
>> 
>> The communication is always 4D initiated. I do not know of any way to 
>> exchange data with 4D initiated from QuickBooks Desk Top.
>> 
>> John
>> **
>> 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 

RE: Missing Pict

2017-01-25 Thread Timothy Penner
I think we published code for this in 2013:
http://kb.4d.com/assetid=76775

-Tim PENNER
**
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: Sierra 10.12.3

2017-01-25 Thread Dave Nasralla
Hi Lee,

I just updated to Sierra last night. I'm developing with v15.3. The
update was remarkably smooth - did not loose any licensing on any
programs.

The problem I did run into was that editing a form in 4D. It became
almost to slow to manage. At first I thought is was the background
processing (photoanalysisd has a lot of work to do to update stuff),
but that didn't explain it. After searching the NUG I saw it might be
a Font issue. Font Book showed 16 duplicate fonts as a "minor" issue.
I got rid of them and did a "Restore Standard Fonts". That took care
of the slowness and everything seems fine now.

dave

On Mon, Jan 23, 2017 at 12:36 PM, Lee Hinde  wrote:
> Sierra was just updated. I have a client who is running a v14 system and
> has already started updating to Sierra (and isn't reporting any problems.).
>
> There have been quite a few threads on the topic and I don't have an
> overall sense of the issues.
>
> Is there a canonical list of concerns about Sierra, by 4D version?
>
> And barring data, is there any anecdotal info about 4D and 10.12.3?
>
> Thanks.
> **
> 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
> **



-- 
David Nasralla
Clean Air Engineering
**
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: Missing Pict

2017-01-25 Thread Lee Hinde
Thanks.

This is a v14 database and the question was which v should be next. I was 
starting with 16 since it would delay the conversation for a year. ;-) I’ll try 
15 next.

> On Jan 25, 2017, at 12:22 PM, Chip Scheide <4d_o...@pghrepository.org> wrote:
> 
> according to Apple (old)
> https://discussions.apple.com/thread/1428664?tstart=0
> 
> Preview can open PICTs and then save as jpg.
> 
> ALso I found the following online tools --NO ENDORSEMENT-- as I have 
> not used these tools
> http://image.online-convert.com/convert-to-jpg
> https://www.coolutils.com/online/PICT-to-JPG
> 
> 
> 
> On Wed, 25 Jan 2017 12:42:29 -0700, Tom Dillon wrote:
>> Lee Hinde wrote:
>> 
>>> The routine runs without errors, but OK is 0 after CONVERT PICTURE and
>>> nothing gets updated.
>>> 
>>> I'm wondering if anyone has a suggestion.
>> 
>> From testing, it looks like the picture is not being read from the 
>> picture library correctly due (probably) to it being a PICT.
>> 
>> I used GET PICTURE FROM LIBRARY then SET PICTURE TO PASTEBOARD and 
>> the clipboard in the Finder said "Clipboard contents unknown". I also 
>> tried pasting into GraphicConvertor with no luck.
>> 
>> So, then I tried:
>> PICTURE TO GIF($vpPict;$BLOB)
>> BLOB TO PICTURE($BLOB;$vpPict2)
>> SET PICTURE TO PASTEBOARD($vpPict2).
>> 
>> The camera with the red X and PICT image was on the clipboard.
>> 
>> So, do you have a v15 version of the structure? :-/
>> 
>> -- 
>>   --
>>   Tom Dillon   825 N. 500 W.
>>   DataCraft   Moab, UT 84532
>>   tomdil...@datacraft-inc.com   720/209-6502
>>   --
>>Even on a road with no turns you can head out across the
>>open field. --- Sunastar
>>   --
>> 
>> 
>> **
>> 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
> **

**
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 Write Pro (How to print page number?)

2017-01-25 Thread Jeremy French
In v16, how do we print page numbers, when printing 4D Write Pro documents 
directly?

That is, printing is initiated by either:

1) Invoking the WR PRINT command programmatically; or
2) User choosing  “Document -> Print…" from Write Pro’s contextual menu.

**
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: Missing Pict

2017-01-25 Thread Chip Scheide
according to Apple (old)
https://discussions.apple.com/thread/1428664?tstart=0

Preview can open PICTs and then save as jpg.

ALso I found the following online tools --NO ENDORSEMENT-- as I have 
not used these tools
http://image.online-convert.com/convert-to-jpg
https://www.coolutils.com/online/PICT-to-JPG



On Wed, 25 Jan 2017 12:42:29 -0700, Tom Dillon wrote:
> Lee Hinde wrote:
> 
>> The routine runs without errors, but OK is 0 after CONVERT PICTURE and
>> nothing gets updated.
>> 
>> I'm wondering if anyone has a suggestion.
> 
> From testing, it looks like the picture is not being read from the 
> picture library correctly due (probably) to it being a PICT.
> 
> I used GET PICTURE FROM LIBRARY then SET PICTURE TO PASTEBOARD and 
> the clipboard in the Finder said "Clipboard contents unknown". I also 
> tried pasting into GraphicConvertor with no luck.
> 
> So, then I tried:
> PICTURE TO GIF($vpPict;$BLOB)
> BLOB TO PICTURE($BLOB;$vpPict2)
> SET PICTURE TO PASTEBOARD($vpPict2).
> 
> The camera with the red X and PICT image was on the clipboard.
> 
> So, do you have a v15 version of the structure? :-/
> 
> -- 
>--
>Tom Dillon   825 N. 500 W.
>DataCraft   Moab, UT 84532
>tomdil...@datacraft-inc.com   720/209-6502
>--
> Even on a road with no turns you can head out across the
> open field. --- Sunastar
>--
> 
> 
> **
> 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: Missing Pict

2017-01-25 Thread Chuck Miller
OH Yeh make sure to enable quick time as it will not work without it.

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 Jan 25, 2017, at 2:42 PM, Tom Dillon  wrote:
> 
> From testing, it looks like the picture is not being read from the picture 
> library correctly due (probably) to it being a PICT.
> 
> I used GET PICTURE FROM LIBRARY then SET PICTURE TO PASTEBOARD and the 
> clipboard in the Finder said "Clipboard contents unknown". I also tried 
> pasting into GraphicConvertor with no luck.
> 
> So, then I tried:
> PICTURE TO GIF($vpPict;$BLOB)
> BLOB TO PICTURE($BLOB;$vpPict2)
> SET PICTURE TO PASTEBOARD($vpPict2).
> 
> The camera with the red X and PICT image was on the clipboard.
> 
> So, do you have a v15 version of the structure? :-/

**
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: Missing Pict

2017-01-25 Thread Tom Dillon
Lee Hinde wrote:

>The routine runs without errors, but OK is 0 after CONVERT PICTURE and
>nothing gets updated.
>
>I'm wondering if anyone has a suggestion.

From testing, it looks like the picture is not being read from the picture 
library correctly due (probably) to it being a PICT.

I used GET PICTURE FROM LIBRARY then SET PICTURE TO PASTEBOARD and the 
clipboard in the Finder said "Clipboard contents unknown". I also tried pasting 
into GraphicConvertor with no luck.

So, then I tried:
PICTURE TO GIF($vpPict;$BLOB)
BLOB TO PICTURE($BLOB;$vpPict2)
SET PICTURE TO PASTEBOARD($vpPict2).

The camera with the red X and PICT image was on the clipboard.

So, do you have a v15 version of the structure? :-/

-- 
   --
   Tom Dillon   825 N. 500 W.
   DataCraft   Moab, UT 84532
   tomdil...@datacraft-inc.com   720/209-6502
   --
Even on a road with no turns you can head out across the
open field. --- Sunastar
   --


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

[ANN] Active4D v6.4r3 released

2017-01-25 Thread Aparajita Fishman
Hi,

Active4D v6.4r3, the ultimate web development environment for 4D, has just been 
released. This is a feature and bug fix release, enhancing overall stability 
and improving logging to help you debug more easily.

All v6 users are *strongly* encouraged to upgrade. Active4D v6.3 licenses that 
are up to date do not need to purchase an upgrade, but a new license key must 
be requested via email. Upgrades from previous versions can be purchased online.

For more info:

https://www.aparajitaworld.com/active4d/

Many thanks,

- Aparajita


**
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: Missing Pict

2017-01-25 Thread Lee Hinde
I hadn't thought about resulting file size. Thanks.

On Wed, Jan 25, 2017 at 10:06 AM, Chuck Miller <
cjmil...@informed-solutions.com> wrote:

> Sorry missed that it was v16 so command is depart ate. Remainder of what I
> posted holds true
> Regards
> Chuck
>
>
> > On Jan 25, 2017, at 1:02 PM, Chuck Miller  com> wrote:
> >
> > Perhaps it is a permissions problem. Also why not use is picture
> deprecated command in api pack. Lastly, unless the pictures are really
> small I would not convert to PNG, We converted some in v15, v13, and v11
> and found that the size sometimes increased 100 fold or more
> >
> > Regards
> >
> > Chuck
>
>
>
**
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: Missing Pict

2017-01-25 Thread Chuck Miller
Sorry missed that it was v16 so command is depart ate. Remainder of what I 
posted holds true
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 Jan 25, 2017, at 1:02 PM, Chuck Miller  
> wrote:
> 
> Perhaps it is a permissions problem. Also why not use is picture deprecated 
> command in api pack. Lastly, unless the pictures are really small I would not 
> convert to PNG, We converted some in v15, v13, and v11 and found that the 
> size sometimes increased 100 fold or more
> 
> Regards
> 
> Chuck

**
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: Missing Pict

2017-01-25 Thread Chuck Miller
Perhaps it is a permissions problem. Also why not use is picture deprecated 
command in api pack. Lastly, unless the pictures are really small I would not 
convert to PNG, We converted some in v15, v13, and v11 and found that the size 
sometimes increased 100 fold or more

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 Jan 24, 2017, at 2:09 PM, Lee Hinde  wrote:
> 
>   CONVERT PICTURE(vpPict;".PNG")  // conversion to png

**
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: SVG - how to encode angle brackets as text?

2017-01-25 Thread Kirk Brooks
Ortwin,
So this is an artifact of using the SVGTool viewer as much as anything else?

On Wed, Jan 25, 2017 at 3:37 AM,  wrote:

> > SVG is all XML behind the scenes so you need to replace the angle
> brackets with < and > respectively.
>
> that's what is to be expected. But doesn't work.
> ​...
>
converted_XML;"utf-8";Document unchanged)
>
> except for SVGTool_SHOW_IN_VIEWER
>


-- 
Kirk Brooks
San Francisco, CA
===
**
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: Missing Pict

2017-01-25 Thread Lee Hinde
When I first posted this, I got a pointer to:

http://doc.4d.com/4Dv15/4D-Pack/15.1/AP-Is-Picture-Deprecated.301-2787490.en.html
 


I’m trying to upgrade a Foundation Picture Library in v16. The tech note uses 
an obsolete 4d pack command, so I re-wrote it as so:


C_LONGINT($vlPict;$vPictCount;$vPictRef;$vTotal)
C_TEXT($vPictName)
C_POINTER($vPointer)
C_PICTURE($vpPict)
C_BOOLEAN($isObs)
ARRAY TEXT($arrPictNames;0)
ARRAY LONGINT($arrPictRefs;0)

$vTotal:=0
PICTURE LIBRARY LIST($arrPictRefs;$arrPictNames)
$vPictCount:=Size of array($arrPictRefs)

ARRAY TEXT($aTPictureFormats;0)


If ($vPictCount>0)
For ($vlPict;1;$vPictCount)  // for each picture
$vPictRef:=$arrPictRefs{$vlPict}
$vPictName:=$arrPictNames{$vlPict}
GET PICTURE FROM LIBRARY($arrPictRefs{$vlPict};$vpPict)
$vPointer:=->$vpPict  // pass a pointer
  //$isObs:=AP Is Picture Deprecated($vPointer)
GET PICTURE FORMATS($vpPict;$aTPictureFormats)
If (Size of array($aTPictureFormats)>0)
$isObs:=($aTPictureFormats{1}=".pict")
If ($isObs)  // if format is obsolete
CONVERT PICTURE(vpPict;".PNG")  // conversion 
to png
  // and saving in library
SET PICTURE TO 
LIBRARY(vpPict;$vPictRef;$vPictName)
$vTotal:=$vTotal+1
End if 
End if 
End for 
ALERT(String($vTotal)+" picture(s) out of "+String($vPictCount)+" were 
converted to png.")
Else 
ALERT("The picture library is empty.")
End if 


The routine runs without errors, but OK is 0 after CONVERT PICTURE and nothing 
gets updated.

I’m wondering if anyone has a suggestion.


On Thu, Aug 4, 2016 at 4:55 PM, Lee Hinde mailto:leehi...@gmail.com>> wrote:
I have a database for which I've taken over maintenance.

There's a form that is working fine for me locally, but that is not working on 
the test server.

The form includes an image variable which is loaded from a record and passed to 
the form.

When I install it on the client's server (new Mac), I get the following image 
where the var should be. 



Both I and the server are running Mac OS 10.11.x

The database is running compiled, so it's not a missing variable - I would 
assume if the variable wasn't getting assigned the image would be blank and not 
show this.

Any tips?



**
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: ODBC question

2017-01-25 Thread Michael Ferguson
Thanks John,

I am experimenting now with two approaches. One is to use Quickbooks SOAP web 
connector, and the other is to use QODBC plugin available at qodbc.com 
. QODBC eliminates the Quickbooks SDK and provides 
transparent access. I have been able to connect to Quickbooks Desktop using 
both tools.  I am leaning towards the plugin. QODBC also has great 
documentation.

Technically, if you use the soap web connector communication is always 
initiated from Quickbooks. It sends a message to the 4D database on a timer 
asking for work to do, so you could ask it for changes since the last exchange 
of information and synchronize. The timer can be set to a small interval so 
that it is practically real time. Both the web connector and QODBC have 
read/write access and will work even when Quickbooks is closed.

Having fun with it.

If anyone wants to dive into these, maybe we could stay in contact and exchange 
techniques and examples.

Michael



 
> On Jan 23, 2017, at 6:00 PM, John Baughman  wrote:
> 
> 
>> On Jan 23, 2017, at 9:48 AM, Kevin Abraham  wrote:
>> 
>> As for the Desktop App, the way integration here works (and you may have 
>> several options, I did not write our App and it is quite old) is that Intuit 
>> has an SDK which can be used in Visual Studio (in our case) to create a 
>> Windows EXE which can then be called by 4D. So with QB launched (in our 
>> case, there are other security options here) the user can run a 4D Method 
>> which drops and XML file in a preset location. 4D then Launches the EXE 
>> which we call QBXMLAgent. QBXMLAgent then reads the XML and does all the 
>> communication with QB’s and returns an XML file for 4D to the same preset 
>> location. Note, NO ODBC setup is required to make this work. Only that the 
>> EXE be present on the Windows machine in preset path where 4D calls. it.
> 
> 
> Similar to how Kevin uses Visual Studio, you can use Windows PowerShell. 4D 
> creates and executes the Power Shell scripts that sends and/or receives data 
> to and from Quickbooks. As noted these scripts are very simple and well 
> documented in the Intuit Quickbooks SDK. if QB is installed on the same 
> machine as 4D Server or Client you can talk directly to QuickBooks desktop 
> from either 4D server or client. Intuit provides Client/Server utility apps 
> that allow 4D Server or 4D client to talk QB installed on different machines 
> than 4D. I have a 4D Client/Server/Quickbooks solution deployed that works 
> seemlessly using PowerShell which allows the users to set there systems up in 
> whatever configuration works best for the end user.
> 
> I have never tried it but, if I remember correctly there is also a web 
> service option allowing you to talk to QB Desktop over the internet. I have  
> not worked with the QB OnLine.
> 
> The communication is always 4D initiated. I do not know of any way to 
> exchange data with 4D initiated from QuickBooks Desk Top.
> 
> John
> **
> 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: How to bring an application to the foreground (Windows)?

2017-01-25 Thread Chuck Miller
Hi Christain sounds like something the would be great in hm free

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 Jan 24, 2017, at 2:50 PM, Christian Sakowski 
>  wrote:
> 
> Hi,
> 
> you can do this with hmCal: "hmCal_SET FRONT PROCESS"
> --

**
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: v12 - Drag n drop from desktop

2017-01-25 Thread Chip Scheide
Alan,
follows code I use to get a list of file(s) dragged from desktop (or 
wherever) to 'attach' to a parent record . The file is eventually 
copied to the 4D server machine, in a preference specified location. 

The drag n drop occurs onto a listbox.



  //Project Method:  atchfile_Manage_Drag_n_Drop
  // $1 - pointer - to parent record ID field 
  //(parent for attached files, i.e. Experiment, samples, project)

  // ∙ Created 4/27/10 by Chip - 
C_POINTER($1;$Parent_ID)
C_TEXT($File_Path)
C_LONGINT($i;$Items_to_Process)

ARRAY TEXT($Dropped_Files;0)

$Parent_ID:=$1
$i:=1

Repeat 
$File_Path:=Get file from pasteboard($i)

If ($File_Path#"")
APPEND TO ARRAY($Dropped_Files;$File_Path)
$i:=$i+1
End if 
Until ($File_Path="")
$Items_to_Process:=Size of array($Dropped_Files)

If ($Items_To_Process>0)  //there was at least one valid path -

For ($i;1;$Items_to_Process)
$File_Path:=$Dropped_Files{$i}

If ($File_Path[[Length($File_Path)]]=":")  //this is a directory
utl_File_Upload_Folder ($Parent_ID;$File_Path;"Start Here")
Else 
utl_File_Upload_File ($Parent_ID;$File_Path)
End if 
End for 
lstbox_Incld_Display_Current 
End if 
  //End atchfile_Manage_Drag_n_Drop

On Wed, 25 Jan 2017 09:11:10 -0500, Alan Tilson wrote:
> Hello everyone,
> 
> I'm actually using v13 and I am getting the On Drop event to occur, but I
> don't understand how to capture the data that is dropped?
> 
> And I couldn't find a place to change the settings, probably because this
> db was created in v11 (I believe).
> 
> I've tried using DRAG AND DROP PROPERTIES($vpSrcObj;$vlSrcElem;$vlPID) but
> $vpSrcObj is a nul pointer (is this just for dropping 4D objects?).
> 
> Any suggestions would be appreciated!
> 
> Alan Tilson
> 
> On Thu, Apr 21, 2016 at 5:11 PM, Chip Scheide <4d_o...@pghrepository.org>
> wrote:
> 
>> 
>> THANKS!
>> 
>> On Thu, 21 Apr 2016 22:54:28 +0200, Keisuke Miyako wrote:
>>> you have to enable the feature for converted dbs, in db settings
>>> 
>>> 
>>> 
>>> 
>>> **
>>> 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
>> **
>> 
> **
> 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: SVG - how to encode angle brackets as text?

2017-01-25 Thread Kirk Brooks
David,
Ah ha. So this is one of those situations where I'd use straight XML
commands on the object instead of the SVG commands.

Thanks.

On Wed, Jan 25, 2017 at 2:52 AM, David Samson  wrote:

> Hello Kirk,
>
> SVG is all XML behind the scenes so you need to replace the angle brackets
> with < and > respectively.
>
> HTH
> David Samson
> Manchester
> UK
>
>
>
> > I'm playing with some SVG and using the *SVGTool_SHOW_IN_VIEWER.* I
> notice
> > that when I attempt to set angle brackets in some text I get an error if
> I
> > try to display it in the viewer.
> >
> > I don't do a lot of SVG so this may be well known already but is this an
> > issue with the 4D SVG viewer tool or something about text in VSG in
> > general?
> >
> > Here's an example of what I'm doing:
> >
> > $text:=""
> > $fontSize:=80
> > $x:=25
> > $y:=10
> > $textWidth:=90
> > $font:="Helvetica"
> > $textHeight:=$fontSize+2
> >
> > $svg_textArea:=SVG_New_textArea
> > ($svgRef;$text;$x;$y;$textWidth;$textHeight;$font;$fontSize;0;Align
> > center)
> >
> >
> > ​I'm working on some code to generate file icons if you're wondering why
> > I'm trying to use such text.​
> >
> > ​That part all works fine. The error pops up when I put the $svgRef
> object
> > into the viewer tool. It only seems to be angle brackets. I tried
> escaping
> > them to no avail. I even tried rendering the text into a picture and then
> > setting the picture in the $svgRef object but the Viewer also barfed on
> > that.
> >
> > Anyone have some insight?
> >
> > Thanks​
> >
> > --
> > Kirk Brooks
> >
> >
> **
> 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
===
**
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: Plugin IDE Issues

2017-01-25 Thread truegold
Hi John,

Thanks for the step by step.

> So far, all of the things I failed to accomplish previously seem to be 
> working in version 16.

Gotta like that!

Thanks again. Much appreciated,
John...

> From: John DeSoi 
> 
> Makes sense, and I feel your pain. Xcode is is the iTunes of the programming 
> world. Hard to accomplish simple things :).
> 
> This is likely the key issue. Most of Miyako's projects have been built 
> against the 10.8 SDK which you don't likely have if you have a newer macOS. 
> Here is how to get it to build:
> 
> 1. Click on the top level project in the hierarchy (for example Simple 
> PostgreSQL Client).
> 
> 2. Click on "Build Settings" near the top of the window.
> 
> 3. Under Architectures, click on "Base SDK". 
> 
> 4. In the popup menu choose "Latest OS X" which you should have from your 
> default Xcode download.
> 
> After doing this, I was able to successfully build the downloaded project. 
> 
> Alternatively, I'm sure you can download the 10.8 SDK somehow, but this 
> easier if you just want to test and evaluate. 
> 

> I concur with your thanks to Miyako for generously providing the source for a 
> number of useful projects and examples.
> …
> 
> I'm a newbie too, just revisiting this for the first time in many years. I 
> made several attempts over the years to implement some ideas and could never 
> get around 4D crashing all the time (or me crashing 4D, more accurately). I 
> decided to try again with version 16 now that it is a full 64 bit Cocoa 
> application and the legacy MacOS stuff is gone. So far, all of the things I 
> failed to accomplish previously seem to be working in version 16.
**
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: Plugin IDE Issues

2017-01-25 Thread truegold
Hey John,

Oh yea. I had forgotten about that one. I took a look at my archive and the 
last message was Sep 20, 2015. Before that two around early May 2013.

But as it turns out Miyako had addressed an issue about old SDKs - which may or 
may not be an issue. That’s what I am trying to understand.

So thanks for the reminder as there’s some advice I need to look at there.

Appreciate,
John...


>> On Jan 23, 2017, at 9:29 PM, truegold  wrote:
>> 
>> Sorry there is little activity on the Plugin forum on the French site so I 
>> thought I’d ask here.
> 
> From: John DeSoi 
> Maybe try the plugin talk list (4d-plug...@info.4d.com). I realize no 
> messages for a while, but it seemed like in the past you could get a 
> response. Probably no one has unsubscribed, so they are more likely to see 
> your message than on a private forum where you have to login.

**
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: v12 - Drag n drop from desktop

2017-01-25 Thread Dennis, Neil
Use the pasteboard for drag and drop now, it is a good time to re-read the docs 
since the commands have changed over time.

http://doc.4d.com/4Dv13/4D/13.6/Drag-and-Drop.201-2501710.en.html

Compatibility note: Since version 11 of 4D, it is recommended to manage drag 
and drop operations, especially interprocess ones, using the On Begin Drag Over 
event and the commands of the Pasteboard theme.

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: v12 - Drag n drop from desktop

2017-01-25 Thread Alan Tilson
Hello everyone,

I'm actually using v13 and I am getting the On Drop event to occur, but I
don't understand how to capture the data that is dropped?

And I couldn't find a place to change the settings, probably because this
db was created in v11 (I believe).

I've tried using DRAG AND DROP PROPERTIES($vpSrcObj;$vlSrcElem;$vlPID) but
$vpSrcObj is a nul pointer (is this just for dropping 4D objects?).

Any suggestions would be appreciated!

Alan Tilson

On Thu, Apr 21, 2016 at 5:11 PM, Chip Scheide <4d_o...@pghrepository.org>
wrote:

>
> THANKS!
>
> On Thu, 21 Apr 2016 22:54:28 +0200, Keisuke Miyako wrote:
> > you have to enable the feature for converted dbs, in db settings
> >
> >
> >
> >
> > **
> > 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
> **
>
**
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
**

4dbb: where do I go (was Plugin IDE Issues)

2017-01-25 Thread Arnaud de Montard

> Le 24 janv. 2017 à 04:29, truegold  a écrit :
> 
> Hi Miyako (or anyone),
> 
> Sorry there is little activity on the Plugin forum on the French site so I 
> thought I’d ask here.

That's my main reproach about 4dbb… 

I like inug because it's multi subject. If i'm interested, I read.

On 4DBB:
german, japanese, spanish, etc. speakers: one forum. Never read they felt 
cramped. 

english speakers: entering the "where on earth should I yell help" zone… 

french speakers: even the "corner for those who absolutely don't want to hear 
anything about 4d" must exist, I think. Same feeling than when you just wanted 
to buy a toothbrush. 

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

How to bring an application to the foreground (Windows)? - Solution

2017-01-25 Thread Daniel N. Solenthaler
Hi everybody, found the solution to our problem:

@Jeremy:
The approach to add the expression „oApp.ActiveWindow.Activate“ to the VB 
script did not work. Outlook continued behind 4D.

@Christian:
As a matter of fact, the solution was the "hmCal_SET FRONT PROCESS“ command. 
Thank God, we are happy owners of your PlugIn :-)

Thank you for your contributions!

Best,
Daniel


Daniel Nestor Solenthaler
eMail: dan...@solenthaler.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
**

SVG - how to encode angle brackets as text?

2017-01-25 Thread info
> SVG is all XML behind the scenes so you need to replace the angle brackets 
> with < and > respectively.
>
that's what is to be expected. But doesn't work.

This works

$text:=""
$fontSize:=80
$x:=25
$y:=10
$textWidth:=90
$font:="Helvetica"
$textHeight:=$fontSize+2

$svgRef:=SVG_New
$svg_textArea:=SVG_New_text ($svgRef;$text;$x;$y;$font;$fontSize;0;Align center)
$converted_XML:=SVG_Export_to_XML ($svgRef)
SVG_CLEAR ($svgRef)
TEXT TO DOCUMENT(System 
folder(Desktop)+"text.svg";$converted_XML;"utf-8";Document unchanged)

except for SVGTool_SHOW_IN_VIEWER

Regards
O r t w i n Z i l l g e n
-
Mühlenstraße 35 • 38 685 Langelsheim
**
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: SVG - how to encode angle brackets as text?

2017-01-25 Thread David Samson
Hello Kirk,

SVG is all XML behind the scenes so you need to replace the angle brackets
with < and > respectively.

HTH
David Samson
Manchester
UK



> I'm playing with some SVG and using the *SVGTool_SHOW_IN_VIEWER.* I notice
> that when I attempt to set angle brackets in some text I get an error if I
> try to display it in the viewer.
>
> I don't do a lot of SVG so this may be well known already but is this an
> issue with the 4D SVG viewer tool or something about text in VSG in
> general?
>
> Here's an example of what I'm doing:
>
> $text:=""
> $fontSize:=80
> $x:=25
> $y:=10
> $textWidth:=90
> $font:="Helvetica"
> $textHeight:=$fontSize+2
>
> $svg_textArea:=SVG_New_textArea
> ($svgRef;$text;$x;$y;$textWidth;$textHeight;$font;$fontSize;0;Align
> center)
>
>
> ​I'm working on some code to generate file icons if you're wondering why
> I'm trying to use such text.​
>
> ​That part all works fine. The error pops up when I put the $svgRef object
> into the viewer tool. It only seems to be angle brackets. I tried escaping
> them to no avail. I even tried rendering the text into a picture and then
> setting the picture in the $svgRef object but the Viewer also barfed on
> that.
>
> Anyone have some insight?
>
> Thanks​
>
> --
> Kirk Brooks
>
>
**
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: Equals is not always transitive

2017-01-25 Thread Arnaud de Montard

> Le 24 janv. 2017 à 16:15, Chip Scheide <4d_o...@pghrepository.org> a écrit :
> 
> "@" always on the right

I'd say "not wildcard on the left" or "wildcard on the right" instead; it 
happens I put it on the left!  ;-)

 $str:="qwe@ty"
 $arobase:="@"
 ASSERT($str[[4]]=$arobase)  //wildcard
 ASSERT($arobase=$str[[4]])  //not wildcard
 ASSERT($str[[1]]=$arobase)  //wildcard
 ASSERT(Not($arobase=$str[[1]]))  //not wildcard
 ASSERT(Position($arobase;$str;*)=4)//not wildcard

It reminds me these features:
  
  
Strictly equal (==) and/or strictly different (!=) for text comparison would be 
welcome. 

-- 
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: XML Validation with XSD...

2017-01-25 Thread Bruno LEGAY
Hi Tom,

Try adding a noNamespaceSchemaLocation attribute in the root element of your 
xml.
If you pass the xsd path in the DOM Parse XML source schema parameter, the 
value for this attribute seems to be ignored (I think i.e. empirical).

So something like this :


http://www.w3.org/2001/XMLSchema-instance";
xsi:noNamespaceSchemaLocation="data.xsd-OrWhatever">

WS_SQLReg_MO
State
True



That should do the trick :-)

I don't know why this is the case (the document validates fine with other 
tools, it is just empirical (a workaround).

Also, if your path of your document is a unc path "\\share\dir\schema/xsd", the 
validation will fail.

The following xml should validate (and does validate with xmllint, oxygen, 
etc…) :




WS_SQLReg_MO
State
True



$ xmllint --noout --schema data.xsd data.xml 
data.xml validates

Maybe it is a bug. I never bothered to report it.

XSD is such a great underestimated technology IMOHO. I allows you, when you 
think about it, to write much simpler since you don't have to handle errors 
because of unexpected format.
Once your document is validated, you know what to expect in the document.

The same way you use xsd before parsing a document, you should use xsd before 
sending a document.

C_TEXT($vt_xmlPath;$vt_xsdPath)
$vt_xmlPath:="data.xml"
$vt_xsdPath:="data.xsd"

C_BOOLEAN($vb_valid)
C_ALPHA(32;$va_domRootRef)
$va_domRootRef:=DOM Parse XML source($vt_xmlPath;True;$vt_xsdPath)
$vb_valid:=(ok=1)
ASSERT($vb_valid;"file \""+$vt_xmlPath+"\" is not validated by schema 
\""+$vt_xsdPath+"\"")
If  ($vb_valid)

DOM FERMER XML($va_domRootRef)
Else// handle invalid xml here

End if

HTH
Bruno

**
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: XML Validation with XSD...

2017-01-25 Thread Epperlein, Lutz (agendo)
It seems to work if you specify the location of schema file using an absolute 
path inside the xml file, like

xsi:schemaLocation="C:\xsds\bundle_toolbar_new.xsd"

or you use the third parameter of DOM Parse XML SOURCE and provide the path to 
the xsd there (again, use an absolute path)

More infos: http://kb.4d.com/assetid=76865

Regards
Lutz

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