Re: Why won't Help Tip editor accept Carriage Return?

2018-06-11 Thread Keisuke Miyako via 4D_Tech
for the record, problem does not exist for v14 or later.

this is basically a compatibility issue between macOS 10.8/9 and 13.6
(evidently a regression from 13.5, really sorry about that...),
which was released in the first half of 2015.

> 2018/06/12 13:22、Dan Ivy via 4D_Tech <4d_tech@lists.4d.com> のメール:
>
> I agree with Doug about where this is coming from. Also as a workaround I had
> success using a text editor to create the help text with carriage returns
> and then paste it into the 4D help editor. After that 4D seems to allow
> returns to be added or deleted from the text displayed in the help editor.



**
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-unsubscr...@lists.4d.com
**

Re: Why won't Help Tip editor accept Carriage Return?

2018-06-11 Thread Keisuke Miyako via 4D_Tech
I wouldn't beat myself over that.

UI threads are never preemptive. (and who needs helps tips outside the UI?)

2016/11/08 6:22、Keith Goebel 
mailto:keit...@clear.net.nz>> のメール:

Downside:
Perhaps not such a good solution now, with Preemptive Processing not working 
when there are IP vars involved...
Cheers, Keith



**
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-unsubscr...@lists.4d.com
**

Re: Build with code signing

2018-06-11 Thread Justin Carr via 4D_Tech
Building on Cannon's code, rather than calling codesign directly with the 
--deep flag we use the shell script that is distributed in the 4D app bundle, 
which takes care of the signing of all of the subcomponents for you. You still 
need to remove the extended attributes first (with xattr -cr) as Cannon does, 
but the codesigning would do something like this instead:

C_BLOB($vX_StdIn;$vX_StdOut;$vX_StdErr)

$vT_AppPath:=Convert path system to POSIX($vT_AppPath)
 //Make sure the path to the app does not end with a path delimiter - this 
breaks the SignApp.sh script
If (Substring($vT_AppPath;Length($vT_AppPath))="/")
$vT_AppPath:=Substring($vT_AppPath;1;Length($vT_AppPath)-1)
End if 

$vT_SignScriptPath:=Convert path system to POSIX(Application 
file+":Contents:Resources:SignApp.sh")

LAUNCH EXTERNAL PROCESS(\
"\""+$vT_SignScriptPath+"\" "+\
"\""+$vT_CertificateName+"\" "+\
"\""+$vT_AppPath+"\"";$vX_StdIn;$vX_StdOut;$vX_StdErr)

Success is determined by:
* OK=1
* last line of $vX_StdErr = $vT_AppPath+": signed @bundle with Mach-O@"
* ERREUR not found in $vX_StdOut



> On 12 Jun 2018, at 3:45 am, Cannon Smith via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Hi Jeff,
> 
> I can’t give you a step by step guide, especially including getting the 
> signing certificate. But here is a code snippet which I use for signing my 
> apps which works. The takeaways will be in the comments as well as the two 
> commands that are run using LEP.
> 
> Hopefully that is enough to get you pointed in the right direction.
> 
> P.S. Apple just introduced the idea of notarizing apps at WWDC last week. 
> That will be additional steps and required in the future, but I haven’t tried 
> it yet. Sigh.
> 
> 
> //If on Mac and a certificate is provided, we now code sign the app. Nothing 
> inside the
> //application package should be changed after this point.
> //Use "codesign --verify --verbose /pathtoapp.app" to see if the application 
> signing is still valid.
> //Use "codesign -dv /pathtoapp.app" to get the code signing information.
> //See http://kb.4d.com/assetid=77078 if we need to skip signing certain 
> folders in the future.
> //Also, see 
> http://stackoverflow.com/questions/39652867/code-sign-error-in-macos-sierra-xcode-8-resource-fork-finder-information-or
> //which explains that code signing no longer works with extended attributes 
> on files in the app. It seems easiest to simply
> //use a command to strip all extended attributes before signing. We don't 
> seem to need them anyway.
> If (OS_IsMac =True)
>   $tCertificate:=BuildApp_Hook_MacCodeSign 
>   If ($tCertificate#"")
>   BuildAppP_Log_Action ("Stripping files of extended attributes.")
>   $tCommand:="xattr -cr "+FilePath_ConvertTo (OBJ_Get_Text 
> (voBuildInfo;"PathToBuiltStandaloneApp");kFilePath_LEP)
>   LAUNCH EXTERNAL PROCESS($tCommand;$tIn;$tOut;$tError)  //If 
> error, $tOut will be filled
>   
>   BuildAppP_Log_Action ("Code signing standalone.")
>   $tCommand:="codesign -s \""+$tCertificate+"\" -fv --deep "+\
>   FilePath_ConvertTo (OBJ_Get_Text 
> (voBuildInfo;"PathToBuiltStandaloneApp");kFilePath_LEP)
>   LAUNCH EXTERNAL PROCESS($tCommand;$tIn;$tOut;$tError)  //If 
> error, $tOut will be filled
>   If ($tOut#"")
>   BuildAppP_Log_Action ("Code signing error: "+$tOut;True)
>   End if 
>   End if 
> End if 
> 
> 
> --
> Cannon.Smith
> Synergy Farm Solutions Inc.
> Hill Spring, AB Canada
> 403-626-3236
> 
> 
> 
> 
>> Can someone please direct me to documentation on how to code sign apps for
>> MacOS with 4D.  I need the entire process in a step-by-step guide from
>> explaining how to obtain the code signing certificate from Apple through
>> adding it to the 4D XML build files and building.
> 
> **
> 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-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: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Date entry

2018-06-11 Thread Robert McKeever via 4D_Tech
Well, looks like the form was corrupt. I rebuilt it using one that was similar, 
and it now works.

> On Jun 10, 2018, at 7:46 AM, Jody Bevan via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Bob:
> 
> Nasty date formats. About 15 years ago we created our own tool for the date 
> entry, and display in 4D. The dates are always stored in date fields, but we 
> let the user define the way the dates get displayed. This way it does not 
> matter what the computer’s region or date settings are. The format set in the 
> application controls the display of the date. It also resulted in some great 
> tools for quick entry of dates. Still loving that way of doing thing in v16.
> 
> Jody
> 
> 
>> On Jun 9, 2018, at 5:49 PM, Robert McKeever via 4D_Tech 
>> <4d_tech@lists.4d.com> wrote:
>> 
>> 4D V15.4, Mac OS 10.13.4
>> 
>> A site that uses 4D Server. Mostly mini’s as clients. Has been working fine 
>> for years. Then growth, so someone brought in some PC’s. Then they scrounged 
>> around and now all minis. But, since we are in Canada, sometimes when the OS 
>> is loaded anew, this select Canadian English keyboard instead of US. So, 
>> date entry gets set to -MM-DD instead of MM-DD-.
>> 
>> Dates display fine, regardless of format. But, on a couple of machines, you 
>> can not enter dates. I take my record, place the cursor in the field, and 
>> type - it moves the cursor along the character string, but nothing changes. 
>> So, they just go to another machine that ‘works’ and does the entry there. 
>> Started a couple of weeks ago.
>> 
>> So, why, and how to fix it?
>> 
>> Changing the date format in the system preferences changes the way it is 
>> displayed, but still no entry.
>> 
>> _
>> Bob McKeever  http://www.mswl.com 
>> McKeever's Software Wizardry
>> Port Coquitlam, B.C.
>> bobmckee...@mac.com
>> 
> 
> **
> 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-unsubscr...@lists.4d.com
> **

_
Bob McKeever  http://www.mswl.com 
McKeever's Software Wizardry
Port Coquitlam, B.C.
bobmckee...@mac.com




**
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-unsubscr...@lists.4d.com
**

Re: v16 Time picker - bound variable changed

2018-06-11 Thread Keisuke Miyako via 4D_Tech
LISTBOX SET PROPERTY was created in 16R2, it's normal that it won't compile on 
16.3 (if that is what you mean)

http://doc.4d.com/4Dv16R6/4D/16-R6/LISTBOX-SET-PROPERTY.301-3547819.en.html

2018/06/12 6:09、Jody Bevan via 4D_Tech 
<4d_tech@lists.4d.com> のメール:
I submitted a bug on Sunday in regard to 16.3 Hotfix 4 where the command 
Listbox Set Property and all the lk_ constants are not dereferenced (thus 
cannot compile). In the Method editor one ends up with just a numerical 
reference.



**
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-unsubscr...@lists.4d.com
**

Re: Scroll position of display-type subform

2018-06-11 Thread Keisuke Miyako via 4D_Tech
haven't tried,
but I wonder if CONVERT COORDINATES would be smart enough to take into account 
the scrolled amount of a detail subform.

http://doc.4d.com/4Dv16/4D/16.3/CONVERT-COORDINATES.301-3651760.en.html

> 2018/06/12 7:37、Richard Wright via 4D_Tech <4d_tech@lists.4d.com> のメール:
> I need to get the position of an object on a display-type subform in global 
> coordinates and the subform may be scrolled.




**
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-unsubscr...@lists.4d.com
**

Re: select from _USER_COLUMNS

2018-06-11 Thread Jeremy French via 4D_Tech
OOPS - CORRECTION (“tab” should be “tag”)



Hi Chuck,

I believe you are encountering the SQL data type codes.

In the SQL implementation, there is "DATA_TYPE" and "OLD_DATA_TYPE".

For a chart, see tech note "System table column OLD_DATA_TYPE" at:
http://kb.4d.com/assetid=76350 

The SQL table "_USER_COLUMNS" reports both the SQL data type and the 4D data 
type.

The SQL data type appears in the column "DATA_TYPE".

The 4D data type appears in the column "OLD_DATA_TYPE".

And oddly, when you export the 4D structure (using the 4D command EXPORT 
STRUCTURE), the SQL data codes are used instead of the 4D data type codes for 
the “type” attribute in the “field” tag.

Hope this helps.

Jeremy French

> On Jun 11, 2018, at 4:33 PM, Chuck Miller via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Given the following code
> select 
> COLUMN_NAME, 
> DATA_TYPE, 
> DATA_LENGTH, 
> COLUMN_ID 
> from
> _USER_COLUMNS
> where
> TABLE_ID = :$TableNumber_L
> into
> :$Cname_atxt, :$DataType_aL, :$DataLength_aL,  :$ColumnID_aL;
> 
> What values can be returned in $DataType_aL It seems that they do not equal 
> 4D data types (I did not expect it to) Is there a chart I can not find that 
> lists them?

**
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-unsubscr...@lists.4d.com
**

Re: select from _USER_COLUMNS

2018-06-11 Thread Jeremy French via 4D_Tech
Hi Chuck,

I believe you are encountering the SQL data type codes.

In the SQL implementation, there is "DATA_TYPE" and "OLD_DATA_TYPE".

For a chart, see tech note "System table column OLD_DATA_TYPE" at:
http://kb.4d.com/assetid=76350

The SQL table "_USER_COLUMNS" reports both the SQL data type and the 4D data 
type.

The SQL data type appears in the column "DATA_TYPE".

The 4D data type appears in the column "OLD_DATA_TYPE".

And oddly, when you export the 4D structure (using the 4D command EXPORT 
STRUCTURE), the SQL data codes are used instead of the 4D data type codes for 
the “type” attribute in the “field” tab.

Hope this helps.

Jeremy French

> On Jun 11, 2018, at 4:33 PM, Chuck Miller via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Given the following code
> select 
> COLUMN_NAME, 
> DATA_TYPE, 
> DATA_LENGTH, 
> COLUMN_ID 
> from
> _USER_COLUMNS
> where
> TABLE_ID = :$TableNumber_L
> into
> :$Cname_atxt, :$DataType_aL, :$DataLength_aL,  :$ColumnID_aL;
> 
> What values can be returned in $DataType_aL It seems that they do not equal 
> 4D data types (I did not expect it to) Is there a chart I can not find that 
> lists them?

**
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-unsubscr...@lists.4d.com
**

Re: Build with code signing

2018-06-11 Thread Cannon Smith via 4D_Tech
Hi Wayne,

The point of that comment was that nothing should change during the build 
process after signing and before distributing to the user. Once macOS has 
checked the code signing before running on the user’s machine, it doesn’t seem 
to care if it changes again.

Of course, it is only a matter of time before that changes. I keep encouraging 
4D to finish the job and ensure that nothing in the application bundle needs to 
change when running. I would encourage everyone that cares about this to ask 4D 
to make this a priority.

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




> On Jun 11, 2018, at 4:22 PM, Wayne Stewart via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
>> Nothing inside the application package should be changed after this point.
> 
> That's pretty much going to stop 4D then, it writes to the structure
> all the time even in a built application
> 

**
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-unsubscr...@lists.4d.com
**

Scroll position of display-type subform

2018-06-11 Thread Richard Wright via 4D_Tech
Does anyone know how to get the scroll position of a display-type subform? 
OBJECT GET SCROLL POSITION apparently works only for list-type subforms. I need 
to get the position of an object on a display-type subform in global 
coordinates and the subform may be scrolled.


Richard Wright
DataDomain
rwri...@datadomainsoftware.com


**
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-unsubscr...@lists.4d.com
**

Re: Build with code signing

2018-06-11 Thread Jim Crate via 4D_Tech
I’ve been curious about that too, with users/groups/lists being stored in the 
structure. Last time I tried to sign a standalone 4D app it didn’t work well, 
so I’ve just been making signed installers using the Packages app.

Jim Crate

> On Jun 11, 2018, at 3:22 PM, Wayne Stewart via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
>> Nothing inside the application package should be changed after this point.
> 
> That's pretty much going to stop 4D then, it writes to the structure
> all the time even in a built application
> 
> Regards,
> 
> Wayne
> 
> 
> Wayne Stewart
> about.me/waynestewart
> 
> 
> 
> 
> On 12 June 2018 at 03:45, Cannon Smith via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
>> Hi Jeff,
>> 
>> I can’t give you a step by step guide, especially including getting the 
>> signing certificate. But here is a code snippet which I use for signing my 
>> apps which works. The takeaways will be in the comments as well as the two 
>> commands that are run using LEP.
>> 
>> Hopefully that is enough to get you pointed in the right direction.
>> 
>> P.S. Apple just introduced the idea of notarizing apps at WWDC last week. 
>> That will be additional steps and required in the future, but I haven’t 
>> tried it yet. Sigh.
>> 
>> 
>>  //If on Mac and a certificate is provided, we now code sign the app. 
>> Nothing inside the
>>  //application package should be changed after this point.
>>  //Use "codesign --verify --verbose /pathtoapp.app" to see if the 
>> application signing is still valid.
>>  //Use "codesign -dv /pathtoapp.app" to get the code signing information.
>>  //See http://kb.4d.com/assetid=77078 if we need to skip signing certain 
>> folders in the future.
>>  //Also, see 
>> http://stackoverflow.com/questions/39652867/code-sign-error-in-macos-sierra-xcode-8-resource-fork-finder-information-or
>>  //which explains that code signing no longer works with extended attributes 
>> on files in the app. It seems easiest to simply
>>  //use a command to strip all extended attributes before signing. We don't 
>> seem to need them anyway.
>> If (OS_IsMac =True)
>>$tCertificate:=BuildApp_Hook_MacCodeSign
>>If ($tCertificate#"")
>>BuildAppP_Log_Action ("Stripping files of extended 
>> attributes.")
>>$tCommand:="xattr -cr "+FilePath_ConvertTo (OBJ_Get_Text 
>> (voBuildInfo;"PathToBuiltStandaloneApp");kFilePath_LEP)
>>LAUNCH EXTERNAL PROCESS($tCommand;$tIn;$tOut;$tError)  //If 
>> error, $tOut will be filled
>> 
>>BuildAppP_Log_Action ("Code signing standalone.")
>>$tCommand:="codesign -s \""+$tCertificate+"\" -fv --deep "+\
>>FilePath_ConvertTo (OBJ_Get_Text 
>> (voBuildInfo;"PathToBuiltStandaloneApp");kFilePath_LEP)
>>LAUNCH EXTERNAL PROCESS($tCommand;$tIn;$tOut;$tError)  //If 
>> error, $tOut will be filled
>>If ($tOut#"")
>>BuildAppP_Log_Action ("Code signing error: 
>> "+$tOut;True)
>>End if
>>End if
>> End if
>> 
>> 
>> --
>> Cannon.Smith
>> Synergy Farm Solutions Inc.
>> Hill Spring, AB Canada
>> 403-626-3236
>> 
>> 
>> 
>> 
>>> Can someone please direct me to documentation on how to code sign apps for
>>> MacOS with 4D.  I need the entire process in a step-by-step guide from
>>> explaining how to obtain the code signing certificate from Apple through
>>> adding it to the 4D XML build files and building.
>> 
>> **
>> 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-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: https://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: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Build with code signing

2018-06-11 Thread Wayne Stewart via 4D_Tech
> Nothing inside the application package should be changed after this point.

That's pretty much going to stop 4D then, it writes to the structure
all the time even in a built application

Regards,

Wayne


Wayne Stewart
about.me/waynestewart




On 12 June 2018 at 03:45, Cannon Smith via 4D_Tech <4d_tech@lists.4d.com> wrote:
> Hi Jeff,
>
> I can’t give you a step by step guide, especially including getting the 
> signing certificate. But here is a code snippet which I use for signing my 
> apps which works. The takeaways will be in the comments as well as the two 
> commands that are run using LEP.
>
> Hopefully that is enough to get you pointed in the right direction.
>
> P.S. Apple just introduced the idea of notarizing apps at WWDC last week. 
> That will be additional steps and required in the future, but I haven’t tried 
> it yet. Sigh.
>
>
>   //If on Mac and a certificate is provided, we now code sign the app. 
> Nothing inside the
>   //application package should be changed after this point.
>   //Use "codesign --verify --verbose /pathtoapp.app" to see if the 
> application signing is still valid.
>   //Use "codesign -dv /pathtoapp.app" to get the code signing information.
>   //See http://kb.4d.com/assetid=77078 if we need to skip signing certain 
> folders in the future.
>   //Also, see 
> http://stackoverflow.com/questions/39652867/code-sign-error-in-macos-sierra-xcode-8-resource-fork-finder-information-or
>   //which explains that code signing no longer works with extended attributes 
> on files in the app. It seems easiest to simply
>   //use a command to strip all extended attributes before signing. We don't 
> seem to need them anyway.
> If (OS_IsMac =True)
> $tCertificate:=BuildApp_Hook_MacCodeSign
> If ($tCertificate#"")
> BuildAppP_Log_Action ("Stripping files of extended 
> attributes.")
> $tCommand:="xattr -cr "+FilePath_ConvertTo (OBJ_Get_Text 
> (voBuildInfo;"PathToBuiltStandaloneApp");kFilePath_LEP)
> LAUNCH EXTERNAL PROCESS($tCommand;$tIn;$tOut;$tError)  //If 
> error, $tOut will be filled
>
> BuildAppP_Log_Action ("Code signing standalone.")
> $tCommand:="codesign -s \""+$tCertificate+"\" -fv --deep "+\
> FilePath_ConvertTo (OBJ_Get_Text 
> (voBuildInfo;"PathToBuiltStandaloneApp");kFilePath_LEP)
> LAUNCH EXTERNAL PROCESS($tCommand;$tIn;$tOut;$tError)  //If 
> error, $tOut will be filled
> If ($tOut#"")
> BuildAppP_Log_Action ("Code signing error: 
> "+$tOut;True)
> End if
> End if
> End if
>
>
> --
> Cannon.Smith
> Synergy Farm Solutions Inc.
> Hill Spring, AB Canada
> 403-626-3236
> 
> 
>
>
>> Can someone please direct me to documentation on how to code sign apps for
>> MacOS with 4D.  I need the entire process in a step-by-step guide from
>> explaining how to obtain the code signing certificate from Apple through
>> adding it to the 4D XML build files and building.
>
> **
> 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-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: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Build with code signing

2018-06-11 Thread Jeff Grann via 4D_Tech
This is part of what I need but it is hopelessly out of date.

--
Jeff Grann
SuccessWare, Inc.

> On Jun 11, 2018, at 1:51 PM, Keith Culotta via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Would this still be relevant: http://kb.4d.com/assetid=76697 ?
> 
> Keith - CDI
> 
>> On Jun 11, 2018, at 12:34 PM, Peter Bozek via 4D_Tech <4d_tech@lists.4d.com> 
>> wrote:
>> 
>>> Can someone please direct me to documentation on how to code sign apps for
>>> MacOS with 4D.  I need the entire process in a step-by-step guide from
>>> explaining how to obtain the code signing certificate from Apple through
>>> adding it to the 4D XML build files and building.

**
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-unsubscr...@lists.4d.com
**

Re: v16 Time picker - bound variable changed

2018-06-11 Thread Jody Bevan via 4D_Tech
I submitted a bug on Sunday in regard to 16.3 Hotfix 4 where the command 
Listbox Set Property and all the lk_ constants are not dereferenced (thus 
cannot compile). In the Method editor one ends up with just a numerical 
reference.

Jody



> On Jun 11, 2018, at 2:40 PM, Keisuke Miyako via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> it is a bug that was fixed in 16.3 Hotfix 1 (latest is Hotfix 4)
> 
> ACI0097700
> 
> 2018/06/12 0:40、David Samson via 4D_Tech 
> <4d_tech@lists.4d.com> のメール:
> Should I be defaulting the time on the on-load of the holding form now? Or
> is it something else?
> 

**
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-unsubscr...@lists.4d.com
**

Re: v13+ Progress component, and other components

2018-06-11 Thread Keisuke Miyako via 4D_Tech
you are working on a component that "wraps" around another component?

just as a reminder,
the progress component is open-source since v16,
partners have ways to customise and distribute them.

> 2018/06/11 23:21、Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> のメール:
> In component (wrappers for progress methods including):




**
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-unsubscr...@lists.4d.com
**

Re: v13+ Progress component, and other components

2018-06-11 Thread Keisuke Miyako via 4D_Tech
remember, "progress" is itself a component,
so your callback method is always called from outside (EXECUTE METHOD) .

the method must be shared.

> 2018/06/11 23:21、Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> のメール:
>
> I do not understand why I am getting this error, as the callback method
> (user_Closed_Progress) exists in the component.




**
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-unsubscr...@lists.4d.com
**

Re: v16 Time picker - bound variable changed

2018-06-11 Thread Keisuke Miyako via 4D_Tech
it is a bug that was fixed in 16.3 Hotfix 1 (latest is Hotfix 4)

ACI0097700

2018/06/12 0:40、David Samson via 4D_Tech 
<4d_tech@lists.4d.com> のメール:
Should I be defaulting the time on the on-load of the holding form now? Or
is it something else?


**
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-unsubscr...@lists.4d.com
**

select from _USER_COLUMNS

2018-06-11 Thread Chuck Miller via 4D_Tech
Given the following code
select 
COLUMN_NAME, 
DATA_TYPE, 
DATA_LENGTH, 
COLUMN_ID 
from
_USER_COLUMNS
where
TABLE_ID = :$TableNumber_L
into
:$Cname_atxt, :$DataType_aL, :$DataLength_aL,  :$ColumnID_aL;

What values can be returned in $DataType_aL It seems that they do not equal 4D 
data types (I did not expect it to) Is there a chart I can not find that lists 
them?

Thanks and 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. 

**
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-unsubscr...@lists.4d.com
**

RE: Bug reports?

2018-06-11 Thread Timothy Penner via 4D_Tech
> Where do we file bug reports now? bugs.4d.fr  no longer 
> exists,
> and TAOW doesn’t allow me to create any bug reports, I’m not a partner.

Partners can use TAOW:
https://taow.4d.com

Non-partners can use the Forums:
http://forums.4d.com/Bugs/EN/

-Tim



**
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-unsubscr...@lists.4d.com
**

Re: Why won't Help Tip editor accept Carriage Return?

2018-06-11 Thread Douglas von Roeder via 4D_Tech
Alan:

The messages in the thread "Text Editing Bug Introduced with v13.6" (from
10/2015) might shed some light on things.

--
Douglas von Roeder
949-336-2902


On Mon, Jun 11, 2018 at 12:50 PM Alan Tilson via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Hello Jim & everyone,
>
> I still have this issue with 4D v13.6 in sometimes in Help Tips and
> sometimes in text fields.
>
> Has it been resolved somehow?
>
> Thanks!
> Alan
>
> On Sun, Nov 6, 2016 at 7:13 PM Jim Labos - infobase 
> wrote:
>
> > Sorry for double post. I meant to post to 4D Tech)
> >
> > The first edit works fine but when I move to another Help Tip the cursor
> > will not respond to Carriage Return. I get a system beep instead.
> >
> > Any clues?
> >
> > OSX 10.8.5  4D Developer v13.6
> >
> > Thanks
> >
> > Jim Labos - infobase
> >
> >
> >
> > -
> > Jim Labos - infobase
> > --
> > View this message in context:
> >
> http://4d.1045681.n5.nabble.com/Why-won-t-Help-Tip-editor-accept-Carriage-Return-tp5748437.html
> > Sent from the 4D Tech mailing list archive at Nabble.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: https://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: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Why won't Help Tip editor accept Carriage Return?

2018-06-11 Thread Alan Tilson via 4D_Tech
Hello Jim & everyone,

I still have this issue with 4D v13.6 in sometimes in Help Tips and
sometimes in text fields.

Has it been resolved somehow?

Thanks!
Alan

On Sun, Nov 6, 2016 at 7:13 PM Jim Labos - infobase 
wrote:

> Sorry for double post. I meant to post to 4D Tech)
>
> The first edit works fine but when I move to another Help Tip the cursor
> will not respond to Carriage Return. I get a system beep instead.
>
> Any clues?
>
> OSX 10.8.5  4D Developer v13.6
>
> Thanks
>
> Jim Labos - infobase
>
>
>
> -
> Jim Labos - infobase
> --
> View this message in context:
> http://4d.1045681.n5.nabble.com/Why-won-t-Help-Tip-editor-accept-Carriage-Return-tp5748437.html
> Sent from the 4D Tech mailing list archive at Nabble.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: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Build with code signing

2018-06-11 Thread George Huhn via 4D_Tech
This is how I sign app bundles manually using 2 Terminal commands:

Step 1: First I need to get rid of all the extended attributes in the app 
bundle:

1. Type: xattr -cr
Note: If you drag and drop the app to the terminal, the path will 
automatically be typed in terminal.
2. 

Step 2: Next , I sign the app:

1. Type: codesign -s"Developer ID Application:  
(Developer_ID)”-f--deep
2. 

I was told that the “--deep” command at the end ensures that everything in the 
app bundle that needs to be signed is signed.

I have copied and saved both Terminal commands with the file paths so that I 
can just copy and paste them in when I need to use them.
**
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-unsubscr...@lists.4d.com
**

Re: Build with code signing

2018-06-11 Thread Keith Culotta via 4D_Tech
Would this still be relevant: http://kb.4d.com/assetid=76697 ?

Keith - CDI

> On Jun 11, 2018, at 12:34 PM, Peter Bozek via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
>> Can someone please direct me to documentation on how to code sign apps for
>> MacOS with 4D.  I need the entire process in a step-by-step guide from
>> explaining how to obtain the code signing certificate from Apple through
>> adding it to the 4D XML build files and building.

**
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-unsubscr...@lists.4d.com
**

Re: v13 - [Warning] Caomiler misses syntax problem

2018-06-11 Thread Jeffrey Kain via 4D_Tech
The v17 compiler does not miss stuff like this. We apparently once had a 
developer who liked to declare variables like this:

C_LONGINT(;\
  Var1; \
  Var2; \
  Var3; \
)
 
Two compiler errors in one, once you get to v17!


> C_Boolean(;$My_Local_Var_Name)

**
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-unsubscr...@lists.4d.com
**

Re: v13 - [Warning] **Compiler** misses syntax problem

2018-06-11 Thread Chip Scheide via 4D_Tech

sorry fixed title :)


On Mon, 11 Jun 2018 12:29:27 -0400, Chip Scheide via 4D_Tech wrote:
> given:
> C_Boolean(;$My_Local_Var_Name)
> 
> Compiler fails to find the syntax error in the above.  During execution 
> (nterp) this results in My_Local_Var_Name being undefined.
> 
> hint in case you do not see the syntax error
> (;
> 
> Chip
> 
> ---
> Gas is for washing parts
> Alcohol is for drinkin'
> Nitromethane is for racing 
> **
> 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-unsubscr...@lists.4d.com
> **
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
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-unsubscr...@lists.4d.com
**

Re: WR Count equivalent in 4D Write Pro

2018-06-11 Thread JOHN BAUGHMAN via 4D_Tech
Of course that works. Thanks. I was getting tired and cranky last night.

> On Jun 10, 2018, at 10:36 PM, Keisuke Miyako via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> I suppose you could use EDIT FORMULA, for a start...
> 
>> 2018/06/11 16:06、JOHN BAUGHMAN via 4D_Tech <4d_tech@lists.4d.com> のメール:
>> 
>> BTW, another thing I cannot find is any way to provide a means for end users 
>> to insert 4D expressions as they can in 4D Write. I could write a dialog for 
>> this, but it already exists in 4D so why not provide the same functionality 
>> out of the box?
> 
> 
> 
> 
> **
> 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-unsubscr...@lists.4d.com
> **

John Baughman
1331 Auwaiku Street
Kailua, Hawaii  96734
(808) 262-0328
john...@hawaii.rr.com
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Flexible SVG ID Strategy

2018-06-11 Thread John J Foster via 4D_Tech
Hi Tom,

I have looked at a few but thought it might be work. But now I am not so sure. 
It is something I will building on for years so…

Which JS SVG library do you recommend?

I assume I’ll be able to:

Create template objects that can be reused and dynamically updated based upon 
the record they are associated wth?

Thus able to save and restore.

Able to click on any property and dynamically change it using some sort of 
property palette?

Speedy redraw?

Still lots to do so building a strong and flexible foundation paramount.

Thanks for the idea,
John…


> 
> From: Tom DeMeo  >
> Subject: Re: Flexible SVG ID Strategy
> Date: June 6, 2018 at 1:14:39 PM PDT
> To: 4d_tech@lists.4d.com 
> 
> 
> Hi John,
> 
> 
> I understand there are cases where you might build an SVG interface using 4D 
> commands instead of using javascript in a web area. But when you want to do 
> drag and drop, that is probably the use case that will most benefit from 
> using javascript. You can use a parent/child technique that works so well in 
> js. Your IDs can just be auto assigned and can relate to the IDs of your 
> associated 4D data.
> 
> 
> 
> Tom DeMeo
**
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-unsubscr...@lists.4d.com
**

Build with code signing

2018-06-11 Thread Jeff Grann via 4D_Tech
Can someone please direct me to documentation on how to code sign apps for 
MacOS with 4D.  I need the entire process in a step-by-step guide from 
explaining how to obtain the code signing certificate from Apple through adding 
it to the 4D XML build files and building.

--
Jeff Grann
SuccessWare, Inc.

**
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-unsubscr...@lists.4d.com
**

Re: v13+ Progress component, and other components

2018-06-11 Thread Chuck Miller via 4D_Tech
What happens if you check this method as shared. Remember you are running in 
your own process. Not sure if this does anything. 

Regards
Chuck

Sent from my iPhone

> On Jun 11, 2018, at 10:21 AM, Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> closing the progress object 
> (user_Closed_Progress).

**
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-unsubscr...@lists.4d.com
**

RE: Moving Methods/Forms between structures seems disabled

2018-06-11 Thread Randy Engle via 4D_Tech
Let me ask this another way hopefully someone knows:

If I "wanted" to not allow "moving" objects into a structure using the "moving" 
features of 4D, what setting would I check/uncheck?



Thanks to all who entertain this option!

Randy Engle, Director
XC2 Software LLC – XC2LIVE!


**
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-unsubscr...@lists.4d.com
**

Re: v13+ Progress component, and other components

2018-06-11 Thread Chip Scheide via 4D_Tech

maybe I need to try explaining the situation again...

In component (wrappers for progress methods including):
- New progress object wrapper (New_Progress)
- call back method for managing a user closing the progress object 
(user_Closed_Progress).
- The call back method is referenced in the wrapper for a new Progress 
object.

In the host
- a call to New_Progress which looks like this:
$Progress_ID:=New_Progress("Top message};"Bottom message")

this opens a progress object/window and it functions as expected.
calls to the update progress' messages work as expected.
closing the progress object (by code) work as expected.

However, if the user closes the progress object - I am getting an 
error, previous mentioned, saying:
- The callback method 'user_Closed_Progress' does not exist, or is not 
shared by the host.

I do not understand why I am getting this error, as the callback method 
(user_Closed_Progress) exists in the component.

On Fri, 8 Jun 2018 17:32:02 -0700, Kirk Brooks via 4D_Tech wrote:
> Chip,
> Keep in mind that if you call the Progress methods from the component they
> run in the context of the component. Which means they aren't sharing memory
> space with the host db.
> 
> 
> On Fri, Jun 8, 2018 at 3:27 PM Chip Scheide via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> 
>> I am referencing Progress (4D natively installed component), in a
>> component.
>> I wrap Progress calls in my own methods, including the call to New
>> Progress where I install my own callback method to execute on user
>> close of the progress thermometer.
>> 
>> I am getting an error when the user tries to close the progress window
>> saying that the callback method either does not exist (it does in the
>> component referencing Progress) or it is not shared in the host.
>> 
>> Any ideas?? the documentation on Progress is thin...
>> 
>> Thanks
>> Chip
>> 
>> ---
>> Gas is for washing parts
>> Alcohol is for drinkin'
>> Nitromethane is for racing
>> **
>> 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-unsubscr...@lists.4d.com
>> **
> 
> 
> 
> -- 
> Kirk Brooks
> San Francisco, CA
> ===
> 
> *We go vote - they go home*
> **
> 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-unsubscr...@lists.4d.com
> **
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
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-unsubscr...@lists.4d.com
**

Re: Save Record($vptr_Table->)

2018-06-11 Thread Jody Bevan via 4D_Tech
Arnaud de Montard:

Thanks, I will keep these in mind. These kinds of things are ‘hard’ to deal 
with until one comes upon the solution. The thing is to remember doing it, then 
it is not so bad.

Jody

> On Jun 11, 2018, at 2:56 AM, Arnaud de Montard via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> 
>> Le 10 juin 2018 à 23:18, Jody Bevan via 4D_Tech <4d_tech@lists.4d.com> a 
>> écrit :
>> 
>> Sujit:
>> 
>> I do not think it is a table number issue in our code. We built the local 
>> pointer early into the new process by code similar to 
>> $vptr_Table:=->[StandardOrder]
>> 
>> In one last try, before giving up on the few hours of code I wrote and go to 
>> my backup from last night, I compacted the structure. MSC said there was no 
>> need to do that. Fortunately their compacting does more and fixes some 
>> things that they do not detect otherwise.
>> 
>> Once I relaunched the application with the compacted structure all was fine 
>> again - WHEW!
>> 
>> Thanks all that rattled your brains out on this one for me.
> 
> Coming late, but I've seen exactly the same error on find by array recently. 
> - delete 4dindx
> - delete 4dindy
> - compact structure
> ---> end of error. 
> 
> -- 
> Arnaud de Montard 
> 

**
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-unsubscr...@lists.4d.com
**

RE: Losing memory on 4D web application

2018-06-11 Thread Olson, Brad via 4D_Tech
Hi Dani,
I am not using the Object Tools plug-in.  The only plug-in I am using is 4D 
InternetCommands

Thank you,
Brad



-Original Message-
From: Dani Beaubien [mailto:dbeaub...@openroaddevelopment.com] 
Sent: Friday, June 08, 2018 2:35 PM
To: 4D iNug Technical <4d_tech@lists.4d.com>
Cc: Olson, Brad 
Subject: Re: Losing memory on 4D web application

Email Security Warning:

The following message was sent from an external e-mail address. Exercise 
caution when opening attachments, clicking links, or exchanging information.

Hi Brad,

Are you using ObjectTools? We have a similar setup and we were leaking 
mysteriously.  I did a bunch of research and I landed on that ObjectTools was 
the issue. I switched everything away to C_OBJECTS (no other changes) and the 
memory issues went away.

ObjectTools is pretty heavily used plugin so I as surprised. It might have to 
do with it running in a web process. Not sure. Regardless, my problem was 
solved by going to C_OBJECTs.

Dani


> On Jun 8, 2018, at 11:50 AM, Olson, Brad via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> I have a large 4D web intranet application that, over the course of a week, 
> runs out of memory.  It is running 4D Server 16R4 on Windows Server 2012, 
> with 16GB RAM, and no other applications are running on it.  This application 
> does a lot of calls to a middleware server that returns large quantities of 
> data in XML format.  The returned data is parsed using the XML DOM commands, 
> but in each case I am calling the DOM CLOSE XML command.
> 
> I have checked that all blobs are being resized to 0, and I have included at 
> the bottom of each web page a wrapper that clears variables and reduces all 
> table selections to 0.  
> 
> jQuery ajax calls are used extensively in the web pages.  The resulting data 
> from these ajax calls is passed back from 4D in html files that use 4D tags 
> and formats the data into JSON format.  At the bottom of each of these files 
> I have also put the Clear Variables and Reduce Selection wrappers.
> 
> What am I missing?  Are there any tools or logs that will tell which methods 
> are not releasing memory?  What else should I be checking?
> 
> Thank you for any assistance,
> 
> Brad 
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  
> http://secure-web.cisco.com/1e7adGti34aX6bA3Zcd9eLpO9GXMcygzKRbLIod9ThKyqMQujtdtdPiysw_1bOr7ICbkcRgMeCDxEkGtZeJWqRSY_Wzerm0W3_J9D8agrymJSm5O2PsJUemF8onBMmWzllhM4COmwdd8YUj3Jq0TceB4Xef1SvglYBzWDY2lJCicmrNtM8N3sIvVL0SrlC-wADokcqh1AkCYRfV-1FzM-EqkMdZfJsRNnf-5GQtMtvLimKT9GVXMwJUJrbHT82l-Fvkva3TZiFqi5eSZRs_UyU_Oqq0AUq-XfQdvav6O7hl1L5D0WnTNhoj5wDqqrhRGE/http%3A%2F%2Flists.4d.com%2Ffaqnug.html
> Archive:  
> http://secure-web.cisco.com/1vktuvllCJE-eyOTvrhuJBGudyeVnOwonltWre91H6VI2FwYTo4yny4UaXY73PQWdkbtlN2SpbIxwOkATlHFHyAkLrzqt1ZUCam_cChlLu4ueHJTK79nV8mHOGK0s5YU9HExIDj2CT8Sc0Z6X01L26dKtdt3u9zHngXY7bZgwFsI2MCxIBnNXc-eq5ctEJx5VKp_r_34aupJMXdgKi3AGjE3UbnS1eeigz0WK_kuHiennWS6mKNG4fWT8FlcfO0yK6iBkJTxtH3pXSArnUHOvrc6MqRfl7rVG-5c9lrHY11bpLICcnaJjD2WrhGdQDUb-/http%3A%2F%2Flists.4d.com%2Farchives.html
> Options: 
> https://secure-web.cisco.com/1iIkS9EgAFppCHkuk7gnQ-KV4Xgy0UQ-JHJKH7Jsw-AqcSKxPq_sGCgNf1vDkZk3xFvGReLiYl9BrOmGd10B4VLSnZ48ZTOg_Au57QDjLGcSpiQLZMBClgg_WxkOaDjt5zDvXxuLPg0ofPREJpSbQcPX50xi_C-m_JM5XPOjSNwLvHLZsiOi_RLKdLRFn5_8eNGyj3zDorZHWghm6FdfLV1_FcqC8K9tPbsfCH4AfOT0045cQFqfHQDUKiS5Uspn8jZzjLRoTYVo9J1IYoFm2co9lQNorbkhr5tR4Vck5UxwTDhFZ_4HT-juuWbbTw-BU/https%3A%2F%2Flists.4d.com%2Fmailman%2Foptions%2F4d_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: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Save Record($vptr_Table->)

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

> Le 10 juin 2018 à 23:18, Jody Bevan via 4D_Tech <4d_tech@lists.4d.com> a 
> écrit :
> 
> Sujit:
> 
> I do not think it is a table number issue in our code. We built the local 
> pointer early into the new process by code similar to 
> $vptr_Table:=->[StandardOrder]
> 
> In one last try, before giving up on the few hours of code I wrote and go to 
> my backup from last night, I compacted the structure. MSC said there was no 
> need to do that. Fortunately their compacting does more and fixes some things 
> that they do not detect otherwise.
> 
> Once I relaunched the application with the compacted structure all was fine 
> again - WHEW!
> 
> Thanks all that rattled your brains out on this one for me.

Coming late, but I've seen exactly the same error on find by array recently. 
- delete 4dindx
- delete 4dindy
- compact structure
---> end of error. 

-- 
Arnaud de Montard 



**
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-unsubscr...@lists.4d.com
**

Re: WR Count equivalent in 4D Write Pro

2018-06-11 Thread Keisuke Miyako via 4D_Tech
I suppose you could use EDIT FORMULA, for a start...

> 2018/06/11 16:06、JOHN BAUGHMAN via 4D_Tech <4d_tech@lists.4d.com> のメール:
>
> BTW, another thing I cannot find is any way to provide a means for end users 
> to insert 4D expressions as they can in 4D Write. I could write a dialog for 
> this, but it already exists in 4D so why not provide the same functionality 
> out of the box?




**
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-unsubscr...@lists.4d.com
**

Re: WR Count equivalent in 4D Write Pro

2018-06-11 Thread JOHN BAUGHMAN via 4D_Tech


> On Jun 10, 2018, at 8:37 PM, Keisuke Miyako via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> I must say it would be difficult to manipulate an existing anchored image 
> without Get elements or Get element by id (v17).


You assumed correctly in that these are anchored pictures. I have discovered as 
you have pointed out that the reference returned by Add picture is destroyed 
when the record is unloaded. I think you have confirmed for me that there is no 
way currently to use picture place holders in a 4D Write Pro template as I did 
in 4D Write.

I will give this a bit more thought, but I am about to give up on this part of 
my attempt to upgrade my client to v16. Since it is way to early to deploy v17, 
I will have to tell them they will have to wait until we upgrade to v17 to move 
any of their photo templates to Pro or create any new ones. Of course this 
prevents me from moving them to 64 bit until then as well.

BTW, another thing I cannot find is any way to provide a means for end users to 
insert 4D expressions as they can in 4D Write. I could write a dialog for this, 
but it already exists in 4D so why not provide the same functionality out of 
the box?

John



John Baughman
1331 Auwaiku Street
Kailua, Hawaii  96734
(808) 262-0328
john...@hawaii.rr.com
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: WR Count equivalent in 4D Write Pro

2018-06-11 Thread Keisuke Miyako via 4D_Tech
WP SET A. expects different kind of "range", depending on the attribute type.

for example,

// a regular range to specify where to insert the image
$range:=WP Create range($wp_l;wk end text;wk end text)

// insert the image in range
WP INSERT PICTURE($range;$data;wk append)

// the URL is a property of the regular range
WP SET ATTRIBUTES($range;wk link url;"...")

// the size is a property applies to the "picture" reference, not the range
$insertedImage:=WP Create picture range($range)
WP SET ATTRIBUTES($insertedImage;wk width;"...pt")

now, in your case, you are counting on "wk image"
to changes the data for an image that already exists in the document.

so you keep the picture reference returned from Add picture
but you can't just store for later use,
because it is not a static JSON structure,
it is a reference to an instance of 4D Write Pro
which is destroyed when you unload the form.

if this is an inline picture,
maybe you can construct a regular range (Create range) based on start/end,
then a picture range (Create picture range=Get pictures).

but it sounds like this is an anchored picture (because you mention Add 
picture),
which is not bound to any position in text.

(if it is not an anchored picture, it would make more sense to use INSERT 
PICTURE as shown above)

since it is not possible to converted an inline imaged to anchored,

http://doc.4d.com/4Dv16R6/4D/16-R6/4D-Write-Pro-Attributes.300-3605889.en.html

and only inline images can be an ST expression,
it seems anchored images are pretty much static.

I must say it would be difficult to manipulate an existing anchored image 
without Get elements or Get element by id (v17).

http://doc.4d.com/4Dv16R6/4D/16-R6/Handling-pictures.200-3624743.en.html

2018/06/11 12:18、JOHN BAUGHMAN via 4D_Tech 
<4d_tech@lists.4d.com> のメール:
how can I use WP SET ATTRIBUTES



**
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-unsubscr...@lists.4d.com
**