Re: Built Server—Best Practices...

2018-12-06 Thread Robert ListMail via 4D_Tech
Problem solved!  I'd built the server with the latest R3 version while the test 
server was running Hotfix 4. I re-built the server with HF4 and all is right 
with the world.

Robert

> On Dec 6, 2018, at 7:33 PM, Robert ListMail via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> Error: “The database or component “StructureName/4DC” requires the method 
> named “SVG_Clear” in the component “4D SVG” to be thread-safe.”
> 
> Have you seen that before?

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

Re: Built Server—Best Practices...

2018-12-06 Thread Robert ListMail via 4D_Tech
I know I’ve swapped .4DC files for minor structure updates in the past on 
built-servers; yet, I just swapped out the entire “Server Database” folder in 
the built client and I’m now setting an error that I’ve never seen before. I’m 
sure I could copy over the massive server build and be done with this error but 
I was hoping to better understand why this error came up.

Error: “The database or component “StructureName/4DC” requires the method named 
“SVG_Clear” in the component “4D SVG” to be thread-safe.”

Have you seen that before?

Thanks,

Robert

===
Robert Broussard
Houston, TX
===

> On Oct 16, 2018, at 2:24 PM, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> but will say I've
> been doing those sorts of updates to my built server app for - years. I've
> never has an issue that tracked back to it. Yet.


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

Re: CONVERT PICTURE not seeming to work for me...

2018-12-06 Thread Charles Miller via 4D_Tech
Thanks once again you are a font of great info. I didn’t know that

Regards
Chuck

On Thu, Dec 6, 2018 at 5:19 PM Keisuke Miyako via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> quicktime is only necessary if you want to convert qti images (v2004 or
> earlier used this format to handle jpeg on windows) you also need to enable
> quicktime with set database parameter.
>
> for pict (quickdraw, not quicktime) you just need 32-bit i.e. altura
> mac2win
>
>
>
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

-- 
-
 Chuck Miller Voice: (617) 739-0306 Fax: (617) 232-1064
 Informed Solutions, Inc.
 Brookline, MA 02446 USA Registered 4D Developer
   Providers of 4D, Sybase & SQL Server 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.
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Form Scaling & Optimal Fonts...

2018-12-06 Thread Robert ListMail via 4D_Tech
The “Automatic” setting appears to be using Segoe UI 12 as a default. I also 
see “Automatic (Main)” which has a default of 16 point. The sweet spot for this 
Windows interface might be 13 point font; yet, it’s my understanding that any 
font-size over-rides on a particular object drops the dynamic behavior, and key 
benefit, of the automatic style sheet. So, please tell me how you use the 
automatic stylesheet. I didn’t notice originally that there was a “main" and an 
“additional” automatic stylesheets (so 3 in total). In the past I used custom 
stylesheets and never used the automatic. Now, I’d like to understand it better 
so that I can apply this more effectively.

From the manual: "Automatic style sheets manage the font as well as its size 
and color. If you modify one of the properties managed by an automatic style 
sheet in the Form editor, this style sheet no longer works dynamically. 
However, you can apply custom style properties (Bold, Italic or Underline) 
without altering its functioning.”

Thanks,

Robert

===
Robert Broussard
Houston, TX
===

> On Nov 18, 2018, at 11:46 PM, Keisuke Miyako via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> Today it is better to use... only automatic stylesheets.

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

Re: View Pro

2018-12-06 Thread Keisuke Miyako via 4D_Tech
I have posted a demo

goto 3. WA page, click JS, select a code snippet and click Execute. click 
Method and run directly from editor to see how it works.

https://github.com/miyako/4d-tips-view-pro-javascript



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

Re: Form Scaling & Optimal Fonts...

2018-12-06 Thread Robert ListMail via 4D_Tech
I showed a scaled up version of a few forms, during a migration to v17 and 
later I decided to move everything to automatic stylesheets as recommended by 
Keisuke that this is best practices now. So, Jefferey, are you using automatic 
stylesheets?  

What determines the font size of automatic style sheets?  In Windows 10, what 
should that size be…?

I have a client that kinda liked the scaled up larger forms…. I moved away from 
that because of the “best practices” suggestions here and because the button 
graphics were also scaled and did not look as sharp. 

This is a screenshot of the current size, it does not look too small to me.
https://www.dropbox.com/s/f24b4xukcm28il9/Screenshot%202018-12-06%2018.32.29.png?dl=0
 


I appreciate your input.

Thanks,

Robert

> On Nov 19, 2018, at 8:46 AM, Jeffrey Kain via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> The Automatic style sheet on Mac still pick the wrong font on 10.11 and 
> later.  It uses Helvetica Neue instead of San Francisco.  

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

Re: CONVERT PICTURE not seeming to work for me...

2018-12-06 Thread Keisuke Miyako via 4D_Tech
quicktime is only necessary if you want to convert qti images (v2004 or earlier 
used this format to handle jpeg on windows) you also need to enable quicktime 
with set database parameter.

for pict (quickdraw, not quicktime) you just need 32-bit i.e. altura mac2win



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

Re: CONVERT PICTURE not seeming to work for me...

2018-12-06 Thread Charles Miller via 4D_Tech
You have to
A be running 32 bit version and
B have QuickTime installed

you could also try the component fro JPR and let that convert for you

Regards

Chuck


On Thu, Dec 6, 2018 at 2:51 PM Bob Miller via 4D_Tech <4d_tech@lists.4d.com>
wrote:

> Hi Everyone,
>
> I've recently discovered in my v16 (Windows) database a few rogue records
> that contain PICT images in picture fields.  These, of course, do not
> display in 64 bit 4D, so I need to convert them.
>
> When I run this:
>
> ARRAY TEXT($aPicCodecList;0)
> ARRAY TEXT($aPicCodecNames;0)
> PICTURE CODEC LIST($aPicCodecList;$aPicCodecNames)
>
> I see that .jpg is included in the codec list (along iwth png, bmp, gif,
> and others) - but notably, .pict is not there.  Also, if I run
>
> PICTURE CODEC LIST($aPicCodecList;$aPicCodecNames;*)
>
> to see what codecs can be read, .pict isn't listed, either.  I'm not
> surprised, this is a Windows 10 machine.
>
> When I run:
>
> ARRAY TEXT($aCodecs;0)
> GET PICTURE FORMATS([TextTable]PictureData;$aCodecs)  //` $aCodecs has 1
> element which is .pict
>
> CONVERT PICTURE([TextTable]PictureData;".png")
> SAVE RECORD([TextTable])
>
> ARRAY TEXT($aCodecs;0)
> GET PICTURE FORMATS([TextTable]PictureData;$aCodecs)  //` $aCodecs has 1
> element which is .pict - so nothing happened!
>
> So nothing is being converted; I start with pict and I end up with pict.
> Maybe this is because I don't have the pict codec on my machine?  (Where
> would I get a pict codec?)  Or could there be another reason?  Thoughts?
>
> Thanks for any advice -
>
>
> Bob Miller
> Chomerics, a division of Parker Hannifin Corporation
>
>
> ll
> "PLEASE NOTE: The preceding information may be confidential or privileged.
> It only should be used or disseminated for the purpose of conducting
> business with Parker. If you are not an intended recipient, please notify
> the sender by replying to this message and then delete the information from
> your system. Thank you for your cooperation."
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

-- 
-
 Chuck Miller Voice: (617) 739-0306 Fax: (617) 232-1064
 Informed Solutions, Inc.
 Brookline, MA 02446 USA Registered 4D Developer
   Providers of 4D, Sybase & SQL Server 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.
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

CONVERT PICTURE not seeming to work for me...

2018-12-06 Thread Bob Miller via 4D_Tech
Hi Everyone,

I've recently discovered in my v16 (Windows) database a few rogue records 
that contain PICT images in picture fields.  These, of course, do not 
display in 64 bit 4D, so I need to convert them.

When I run this:

ARRAY TEXT($aPicCodecList;0) 
ARRAY TEXT($aPicCodecNames;0)
PICTURE CODEC LIST($aPicCodecList;$aPicCodecNames)

I see that .jpg is included in the codec list (along iwth png, bmp, gif, 
and others) - but notably, .pict is not there.  Also, if I run 

PICTURE CODEC LIST($aPicCodecList;$aPicCodecNames;*)

to see what codecs can be read, .pict isn't listed, either.  I'm not 
surprised, this is a Windows 10 machine.

When I run:

ARRAY TEXT($aCodecs;0) 
GET PICTURE FORMATS([TextTable]PictureData;$aCodecs)  //` $aCodecs has 1 
element which is .pict

CONVERT PICTURE([TextTable]PictureData;".png")
SAVE RECORD([TextTable])

ARRAY TEXT($aCodecs;0)
GET PICTURE FORMATS([TextTable]PictureData;$aCodecs)  //` $aCodecs has 1 
element which is .pict - so nothing happened!

So nothing is being converted; I start with pict and I end up with pict. 
Maybe this is because I don't have the pict codec on my machine?  (Where 
would I get a pict codec?)  Or could there be another reason?  Thoughts?

Thanks for any advice -


Bob Miller
Chomerics, a division of Parker Hannifin Corporation


ll
"PLEASE NOTE: The preceding information may be confidential or privileged. It 
only should be used or disseminated for the purpose of conducting business with 
Parker. If you are not an intended recipient, please notify the sender by 
replying to this message and then delete the information from your system. 
Thank you for your cooperation."
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: v17 kind of gotcha

2018-12-06 Thread Charles Miller via 4D_Tech
I did not that is why it was a gotcha   These object were created at  run
time so could it check using firm get objects

Regards

Chuck

On Thu, Dec 6, 2018 at 1:13 PM Arnaud de Montard via 4D_Tech <
4d_tech@lists.4d.com> wrote:

>
> > Le 6 déc. 2018 à 18:48, Charles Miller via 4D_Tech <4d_tech@lists.4d.com>
> a écrit :
> >
> > Ok thanks for the update but I am having these problems in a v17 dB. The
> > error does not occur in v16 or v15
>
> I suppose v17 throws an error because it's less permissive.
> Did you check there is no duplicate names at runtime (FORM GET OBJECTS)?
>
> --
> Arnaud de Montard
>
>
>
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

-- 
-
 Chuck Miller Voice: (617) 739-0306 Fax: (617) 232-1064
 Informed Solutions, Inc.
 Brookline, MA 02446 USA Registered 4D Developer
   Providers of 4D, Sybase & SQL Server 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.
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: v17 kind of gotcha

2018-12-06 Thread Arnaud de Montard via 4D_Tech

> Le 6 déc. 2018 à 18:48, Charles Miller via 4D_Tech <4d_tech@lists.4d.com> a 
> écrit :
> 
> Ok thanks for the update but I am having these problems in a v17 dB. The
> error does not occur in v16 or v15

I suppose v17 throws an error because it's less permissive.  
Did you check there is no duplicate names at runtime (FORM GET OBJECTS)?

-- 
Arnaud de Montard 



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

Re: v17 kind of gotcha

2018-12-06 Thread Charles Miller via 4D_Tech
Ok thanks for the update but I am having these problems in a v17 dB. The
error does not occur in v16 or v15

Regards

Chuck

On Wed, Dec 5, 2018 at 8:22 PM Keisuke Miyako via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> in addition to accidental duplicates by SQL,
> it was also possible to end up when a listbox is grouped, duplicated and
> ungrouped. (ACI0069120 fixed in 12.6)
> also possible for headers and footers via OBJECT DUPLICATE (ACI0083469,
> fixed in 15.1 HF1)
>
> MSC added checks for duplicate object names (see v13 upgrade reference
> page 90)
>
>
> http://download.4d.com/Documents/Products_Documentation/LastVersions/Line_13/VIntl/PDF_Format/4D_v13_Upgrade.pdf
>
> 2018/12/06 8:17、Arnaud de Montard via 4D_Tech <4d_tech@lists.4d.com
> >のメール:
>
> I remember that bug, I had to rename listbox columns filled with "SELECT
> ... INTO listbox":
> 
> bug ACI0096810, fixed here:
> 
>
>
>
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

-- 
-
 Chuck Miller Voice: (617) 739-0306 Fax: (617) 232-1064
 Informed Solutions, Inc.
 Brookline, MA 02446 USA Registered 4D Developer
   Providers of 4D, Sybase & SQL Server 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.
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: How to get the current line # in 4D Write Pro

2018-12-06 Thread BTB-Gmail via 4D_Tech
Asked and answered!  I found the answer shortly after I posted.  Sorry for the 
noise.

In v17 a new command called WP GET POSITION does what I need.  I guess I need 
to get on v17!

Thanks!

David Conley
By The Book, Inc.
Office: 815-234-7530
http://www.bythebook.com




> On Dec 6, 2018, at 11:14 AM, BTB-Gmail via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Hello,
> 
> I used to use the command WR GET CURSOR POSITION in 4D Write.  This would 
> give me the current page, column, line# and position of the cursor in my 
> offscreen area.  Based on the current line # for example, I could add x 
> number of line feeds so that the next section of text would always start on 
> the same line#.  I need to do the same thing in 4D Write Pro.  I can’t find 
> any command that will tell the the same info.  Any ideas on how to do this in 
> Pro?
> 








This email was sent to 4d_tech@lists.4d.com (mailto:4d_tech@lists.4d.com)
unsubscribe from this list 
(http://emailclicks.bythebook.com/track/unsub.php?u=30055319&id=2aeba1535ca34712ab8ad6282109e4e2.6uKpduIsjJ%2FEqVQ1r%2BdLr66Tu1w%3D&r=https%3A%2F%2Fmandrillapp.com%2Funsub%3Fmd_email%3D4d_tech%2540lists.4d.com)
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

How to get the current line # in 4D Write Pro

2018-12-06 Thread BTB-Gmail via 4D_Tech
Hello,

I used to use the command WR GET CURSOR POSITION in 4D Write.  This would give 
me the current page, column, line# and position of the cursor in my offscreen 
area.  Based on the current line # for example, I could add x number of line 
feeds so that the next section of text would always start on the same line#.  I 
need to do the same thing in 4D Write Pro.  I can’t find any command that will 
tell the the same info.  Any ideas on how to do this in Pro?

Much thanks

David






This email was sent to 4d_tech@lists.4D.com (mailto:4d_tech@lists.4D.com)
unsubscribe from this list 
(http://emailclicks.bythebook.com/track/unsub.php?u=30055319&id=33ab969e80d540d49e285f251a9e3934.NlszJIRS%2FTUDQjLGi3RBQPkkK%2Bw%3D&r=https%3A%2F%2Fmandrillapp.com%2Funsub%3Fmd_email%3D4d_tech%2540lists.4D.com)
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: View Pro

2018-12-06 Thread Jeremy Roussak via 4D_Tech
Thanks, Jeremy. That’s an awful lot more difficult than the old set of PV 
commands, which I think is a shame. Hey ho.

Jeremy

> On 5 Dec 2018, at 17:35, Jeremy French  wrote:
> 
> Hi Jeremy,
> 
> I believe 4D View Pro is actually a 4D web area.
> 
> The 4D View Pro spread sheet is based on SpreadJS.
> 
> SpreadJS documentation (difficult to read) is at:
> http://help.grapecity.com/spread/SpreadJSWeb/webframe.html#welcome.html
> 
> You can use the command WA Evaluate JavaScript to do some limited things, 
> like setting and getting cell values, formatting and so on.
> 
> Here’s an example of using JSON and a single JavaScript line to place data in 
> 4D View Pro:
> http://help.grapecity.com/spread/SpreadJSWeb/webframe.html#scbindadd.html
> 
> Here’s another example using several “single” lines of JavaScript to place 
> data in 4D Pro. See commented example "or use bindColumns to bind all custom 
> columns”.
> 
> https://www.grapecity.com/en/demos/spread/JS/TutorialSample/#/demos/sheetLevelBinding
> 
> For individual cell set/get see:
> http://help.grapecity.com/spread/SpreadJSWeb/webframe.html#scvalue.html
> http://help.grapecity.com/spread/SpreadJSWeb/webframe.html#scgetvalue.html
> 
> As for 4D documentation, see this post from Laurent Esnault at 4D:
> http://forums.4d.com/Post/FR/26665847/1/26673658#26673658
> 
> There are a few helpful 4D View Pro examples at blog.4d.com. Search for 
> “View”.
> 
> - Jeremy French
> 
> 
> 
>> On Dec 5, 2018, at 9:25 AM, Jeremy Roussak via 4D_Tech 
>> <4d_tech@lists.4d.com> wrote:
>> 
>> I’ve never used View before. Older versions than v17 seem to have a suite of 
>> PV commands for getting and setting cell values and so on. They aren’t 
>> listed in the 4D View Pro documentation. What am I missing? (something 
>> obvious, I’m sure).



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