Re: Get System Info vs PLATFORM PROPERTIES

2019-07-18 Thread Keisuke Miyako via 4D_Tech
Hello, I think the verbose version string is for human consumption, for example, to help the end user or support contact identify the running platform. I can't think of any situation where the internal build number would be needed in 4D code. For osVersion, I think it would help if there was

Re: MacOS Character Viewer (emojis) and 4D

2019-07-16 Thread Keisuke Miyako via 4D_Tech
there was a discussion several months ago: https://forums.4d.com/Post/FR/28908540/1/28911673#28911673 but it looks like the trick no longer works with 17 R5. > 2019/07/17 8:00、Jeffrey Kain via 4D_Tech <4d_tech@lists.4d.com>のメール: > > It seems like 4D doesn't allow the macOS character viewer to

Re: Stylesheet Search?

2019-07-12 Thread Keisuke Miyako via 4D_Tech
FYI stylesheets are deprecated in project mode. I think the FORM LOAD approach continues to be the best option. > 2019/07/13 5:27、Dani Beaubien via 4D_Tech <4d_tech@lists.4d.com>のメール: > Might be easier to update it to v17 R5 and save the structure as a project > and then use a file based

Re: LISTBOX SELECT ROW

2019-07-11 Thread Keisuke Miyako via 4D_Tech
the background colour is grey when the listbox does not have focus (presumably) you could use GOTO OBJECT to move the focus. or. you could "hide selection highlight" and manage the background colour completely. https://blog.4d.com/customize-highlight-color-upon-listbox-row-selection/

Re: Entity selection / collection listbox

2019-07-08 Thread Keisuke Miyako via 4D_Tech
my understanding is that when you assign an entity selection (which is an object, not collection) as the data source of a listbox, a kind of proxy collection is created to bind the entity selection to the UI. basic features are common ("This" is an object and This.property is a value), but there

Re: Importing from camera

2019-07-07 Thread Keisuke Miyako via 4D_Tech
There are SD cards with integrated WiFi that can send media to a designated PC folder. --- plugin to monitor a folder: https://github.com/miyako/4d-plugin-folder-watch > 2019/07/08 12:25、JOHN BAUGHMAN via 4D_Tech <4d_tech@lists.4d.com>のメール: > What options are there, native or otherwise, for

Re: Subform 'Variable or Expression' (Bound variable) not working with it is a Form.variable

2019-07-07 Thread Keisuke Miyako via 4D_Tech
that is correct... an object property is not a variable, so it doesn't qualify as a bound variable. and a pointer can only point to a table, field, variable, array or array element, so again, an object property is out of luck. the widget system works best when the expression or variable is

Re: v 17.1 potential gotcha

2019-06-26 Thread Keisuke Miyako via 4D_Tech
are you referring the the scaling dialog invoked from the "Form" menu (when the form editor is frontmost) scaling is not a constant property. it is a one-shot operation that globally resizes all form objects. the dialog offers 3 options, 133% (72 to 96 DPI), 75% (opposite), or custom (default

Re: Indexing taking a log time to reindex

2019-06-26 Thread Keisuke Miyako via 4D_Tech
perhaps the reindexing of the 250k table has saturated the cache, leaving little space the smaller table. FLUSH CACHE (FLUSH BUFFERS) with the * could be used to purge objects from the cache, if that's the case. also 15R4 improved the indexing process

Re: APPLESCRIPT FROM 4D

2019-06-26 Thread Keisuke Miyako via 4D_Tech
the "tell" verb specifies the target object in applescript. so if there is only one line, > tell application "Preview" > print POSIX file "/Volumes/SnapServer/Test_Invoices/Checon_Invoices/2019/04 - > April/224747_04_12.PDF" with print dialog > end tell could be reduced to > tell application

Re: APPLESCRIPT FROM 4D

2019-06-26 Thread Keisuke Miyako via 4D_Tech
you can insert a line activate in the tell~end tell block > 2019/06/27 5:50、Chuck Miller via 4D_Tech <4d_tech@lists.4d.com>のメール: > How would I bring Preview to the front ** 4D Internet Users Group (4D iNUG) Archive:

Re: Create Object Field Under Program Control?

2019-06-25 Thread Keisuke Miyako via 4D_Tech
haven't investigated thoroughly, but I think it is possible to update an existing table with IMPORT STRUCTURE https://doc.4d.com/4Dv17/4D/17.2/IMPORT-STRUCTURE.301-4386048.en.html if the UUID matches. you might want to first test and confirm the behaviour with an existing DB. > 2019/06/25

Re: 2-Way USB Communication

2019-06-24 Thread Keisuke Miyako via 4D_Tech
it depends on the device. if it is an Human Interface Devices, https://docs.microsoft.com/en-us/windows-hardware/drivers/hid/introduction-to-hid-concepts https://developer.apple.com/documentation/kernel/iohiddevice?language=objc you normally interact via an installed device driver. if not

Re: Select document command and .4lbp files

2019-06-24 Thread Keisuke Miyako via 4D_Tech
the documentation gives examples of public UTIs. https://doc.4d.com/4Dv17R5/4D/17-R5/Select-document.301-4127312.en.html https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/understanding_utis/understand_utis_conc/understand_utis_conc.html it seems like public UTIs

Re: Rotate Picture

2019-06-23 Thread Keisuke Miyako via 4D_Tech
I think not. a DOM reference is independent from the 4D picture, except for ones that are embedded (exported with the "Own" option). then, a 4D text (the local variable) that contains the hex. representation of the reference is not in any way associated with the DOM reference, or the picture

Re: Rotate Picture

2019-06-22 Thread Keisuke Miyako via 4D_Tech
I think the default export option is "copy" if you don't SVG_CLEAR (see Cannon's code) you'd be leaking memory. I suppose you could save speed with the "own" option (you won't need to CLEAR any more) but the difference is probably negligible. 2019/06/23 9:28、JOHN BAUGHMAN via 4D_Tech

Re: Window type -724 (more info)

2019-06-19 Thread Keisuke Miyako via 4D_Tech
use a calculator to break down the number to binary values. -724 decimal is 4 + 16 + 64 + 128 + 512 negative --- old constants used by the old Open window command is a combination of flags. some are official in 4D (1, 2, 4, 8, 16, 32, 2048, 4096, 8192) some are undocumented.

Re: signature capture in 4D

2019-06-18 Thread Keisuke Miyako via 4D_Tech
browsing their web site, perhaps you could start by trying their Active X example inside a 32-bit 4D Web Area (system, not WebKit), then 64-bit Web Area (again, system, not CEF), and see what happens. https://www.topazsystems.com/sigplusproactivex.html --- if using Active X inside a Web Area

Re: Filter MSC Log File?

2019-06-18 Thread Keisuke Miyako via 4D_Tech
the 32-bit MSC calls XSLT APPLY TRANSFORMATION to convert XML to HTML. XSLT support was discontinued in the 64-bit product line for various reasons, https://doc.4d.com/4Dv15/4D/15/XSLT-commands-deprecated.300-2044605.en.html but technically, you can still use the same XSLT template to get the

Re: what format for an Icon file - windows?

2019-06-17 Thread Keisuke Miyako via 4D_Tech
it needs to be an .ico file for windows. 2019/06/18 0:52、Chip Scheide via 4D_Tech <4d_tech@lists.4d.com>のメール: does the icon file need to be in a different location for windows? ** 4D Internet

Re: 4D v17 Mac Crashing on First Launch

2019-06-14 Thread Keisuke Miyako via 4D_Tech
4D (or any .app) must be installed by drag & drop from a signed .dmg, directly to a subfolder of /Applications, or by using a signed .pkg. if you .zip it yourself, or install elsewhere, the .app is translocated and you get all sorts of problems. > 2019/06/14 0:03、Narinder Chandi via 4D_Tech

Re: v17.4 source Stand-alone and Remote: picture drop onto a picture field in an input form

2019-06-13 Thread Keisuke Miyako via 4D_Tech
I am unaware of any changes starting with v17 (I presume R4) but in general, the way to process drag and drop over a picture is: On After Edit: accept native drop or paste. On Drop: accept custom drag and drop. $0 must be assigned 0 in On Drag Over. On Drag Over: check if Pasteboard data size is

Re: Emojis in text

2019-06-12 Thread Keisuke Miyako via 4D_Tech
according to https://unicode.org/reports/tr51/#Property_Stability an Emoji is \p{RI} \p{RI} | \p{Emoji} ( \p{EMod} | \x{FE0F} \x{20E3}? | [\x{E0020}-\x{E007E}]+ \x{E007F} )? (\x{200D} \p{Emoji} ( \p{EMod} | \x{FE0F} \x{20E3}? )?)+ no kidding. but the ICU in 4D does not

Re: Conversion from v2003

2019-06-11 Thread Keisuke Miyako via 4D_Tech
it's a plugin, written for v12 (I think a couple of developers used it back then, not sure about now) https://github.com/miyako/4d-plugin-4d-for-oracle 2019/06/12 4:52、Luc Devar via 4D_Tech <4d_tech@lists.4d.com>のメール: I think M. Miyako Keisuke has developed

Re: Linefeed option not working for v16 emails

2019-06-11 Thread Keisuke Miyako via 4D_Tech
oops! sorry for that cryptic message! we had some reports that messages sent from 4D Internet commands v16 were showing up with no carriage returns for Gmail. I wanted to search the archives for any mention of similar issues.

Re: Linefeed option not working for v16 emails

2019-06-11 Thread Keisuke Miyako via 4D_Tech
参考までに アップデートで解消した: 2018/11/04 5:05、Janet Jonas via 4D_Tech <4d_tech@lists.4d.com>のメール: I went to the link Keisuke provided for the bug fix list for v16 since the v16.4 release, and I decided to be optimistic and select the last build mentioned: 228799.

Re: Special character euro sign in JSON string

2019-06-11 Thread Keisuke Miyako via 4D_Tech
JSON string should be represented in unicode https://www.json.org \u0080 is not the euro sign. $euro:=JSON Parse("{\"euro\":\"\\u20AC\"}") > 2019/06/11 16:22、Piotr Chabot Stadhouders via 4D_Tech > <4d_tech@lists.4d.com>のメール: > When I use $obj:=JSON Parse($json_string) I don't get the euro

Re: Using TRANSFORM PICTURE Crop in a Scaled to fit (Proportional) picture variable

2019-06-08 Thread Keisuke Miyako via 4D_Tech
Unfortunately TRANSFORM PICTURE applies the cropping coordinates to the full size picture not the scaled picture, which of course is way off is there a reason why your image is scaled on screen? did you scale the image with TRANSFORM PICTURE or are you relying on the image's form object

Re: Open a v17 data file when Structure is unknown

2019-06-06 Thread Keisuke Miyako via 4D_Tech
the data analyser written by JPR https://kb.4d.com/assetid=77253 had code that could essentially be used to retrieve structure information out of a data file. (but it's a compiled database) I used it to write this tool to edit the UUID of a structure and data file (was WEDD resource in

Re: 4d-component-sendmail issue

2019-06-04 Thread Keisuke Miyako via 4D_Tech
the Mail app for iOS is more faithful to the MIME specification. if you send an HTML mail with the content-type multipart/related, attachments are rendered inline where the HTML body references it by its content-id. if you do not reference your attachments in your HTML by their content-id, they

Re: Invalid JSON?

2019-06-02 Thread Keisuke Miyako via 4D_Tech
perhaps there is a BOM. did you pass a C_TEXT to HTTP Request? you might want to use a BLOB, then Convert to text (which will get rid of the BOM), then parse. 2019/06/03 10:05、JOHN BAUGHMAN via 4D_Tech <4d_tech@lists.4d.com>のメール: JSON malformed in line 1,

Re: V17R3 vs PowerShell

2019-05-31 Thread Keisuke Miyako via 4D_Tech
> QBXMLRP2.RequestProcessor is the QB SDK based on COM / OLE ? if yes, it shouldn't be a huge problem that information specific to 4D+PowerShell+QB is rather hard to find, because COM /OLE is a common technology on Windows. PowerShell is just one of the ways to invoke it. in theory, generic

Re: Variable in Dialog Doesn’t Honor Number Formatting

2019-05-15 Thread Keisuke Miyako via 4D_Tech
how did you decide that the variable is numeric? did you use C_REAL or C_LONGINT? what does the debugger/runtime explorer say? the value type in property list does not set the variable type except for form local variables. https://doc.4d.com/4Dv17/4D/17.1/Variables.300-4179325.en.html

Re: Variable in Dialog Doesn’t Honor Number Formatting

2019-05-15 Thread Keisuke Miyako via 4D_Tech
did you check: Use period and comma as placeholders in numeric formats: ? https://doc.4d.com/4Dv15/4D/15.6/Compatibility-page.300-3836777.en.html ** 4D Internet Users Group (4D iNUG) Archive:

Re: v17R4 infelicities

2019-05-14 Thread Keisuke Miyako via 4D_Tech
the expression is properly evaluated and functional without the parentheses. it is a display issue in the WYSIWYG editor, where the formula is too long to fit in the field and wrapped after the minus sign. i.e. -Form..a.aa becomes - Form..a.aa you can confirm by

Re: Sending mail in 4D v11 on Mac

2019-05-13 Thread Keisuke Miyako via 4D_Tech
that won't work. besides, STARTTLS is not just about starting with the 587 port instead of 25. a transition to TLS must follow. not possible in v11 Internet Commands unless you implement SMTP using low-level TCP commands. 2019/05/14 7:05、Tom Dillon via 4D_Tech

Re: XML real number display

2019-05-06 Thread Keisuke Miyako via 4D_Tech
I would imagine you'd need to write a wrapper DOM function that concatenates Int(), ".", Dec(). xml itself allows scientific notation but not if you filter it with a schema. you might also want to take care of INF (which is never allowed in xml) B.T.W. I confirm the e-05 threshold with the

Re: Asynchronous Progress Wheel

2019-05-06 Thread Keisuke Miyako via 4D_Tech
my 2 yen https://github.com/miyako/4d-widget-chasing-arrow 2019/05/07 3:18、Neal Schaefer via 4D_Tech <4d_tech@lists.4d.com>のメール: code for displaying an asynchronous progress wheel. ** 4D Internet

Re: Printing Structure Diagram

2019-05-06 Thread Keisuke Miyako via 4D_Tech
perhaps you could take the printing portion from this one: https://github.com/miyako/4d-utility-structure-to-svg-converter-v2 SVG is scalable and vectorial, but some picture commands would rasterise it. so don't do that. 2019/05/07 6:59、Herr Alexander Heintz via 4D_Tech

Re: WA SET PAGE CONTENT - doesn't work first time

2019-05-06 Thread Keisuke Miyako via 4D_Tech
CEF (Blink) has some specific requirements > • WA SET PAGE CONTENT: using this command requires that at least one page is > already loaded in the area (through a call to WA OPEN URL or an assignment > to the URL variable associated to the area).

Re: Multiple SSL certificates on server

2019-05-06 Thread Keisuke Miyako via 4D_Tech
the doc states > Once this command has been executed, the new path is immediately taken into > account by commands such as HTTP Request that are executed later on (you do > not have to restart the application). It is used in all the processes of the > database.

Re: Window reverse layering issues

2019-05-02 Thread Keisuke Miyako via 4D_Tech
> 1. A 4D application has two processes, each with windows being shown. > One process has two windows: a semi-modal dialog on top of a Type 8 non-modal. it is important to know that such layering issues are totally avoidable as long as modal windows are used correctly and consistently. if you

Re: Connecting to FTP

2019-05-01 Thread Keisuke Miyako via 4D_Tech
I am reluctant to include v14 and v15 in the versions list because I no longer have them installed on my computer. technically, though, v14 and above share the same plugin architecture. > 2019/05/01 16:26、Robert McKeever via 4D_Tech <4d_tech@lists.4d.com>のメール: > > Unfortunately, The plug-in is

Re: Arrow on Windows

2019-04-29 Thread Keisuke Miyako via 4D_Tech
choosing a font is so irrelevant unicode give you plenty of choices: ← ⇦ ⃖ ⃪ ⬅ ⃖ etc. > 2019/04/29 15:44、Jeremy Roussak via 4D_Tech <4d_tech@lists.4d.com>のメール: > > Is there a font, which will reliably be present on users’ machines, which > has such a character? Or must I resort to a picture

Re: Using the HELP Menu for my own purposes.

2019-04-28 Thread Keisuke Miyako via 4D_Tech
the Help menu is empty if you build the application. if you don't build the application, the end user is using "4D", not your custom application. > 2019/04/29 7:51、Herr Alexander Heintz via 4D_Tech <4d_tech@lists.4d.com>のメール: > > Is there any way out there (can be a Plugin) to do this? > In the

Re: 4D View Pro (How to set the"options.autoFitType" property?)

2019-04-27 Thread Keisuke Miyako via 4D_Tech
the GC documentation has a search box look for "autoFitType" yields https://help.grapecity.com/spread/SpreadSheets11/webframe.html#a2sheetselement.html https://help.grapecity.com/spread/SpreadSheets11/webframe.html#SpreadJS~GC.Spread.Sheets.AutoFitType.html and other pages. 2019/04/27

Re: How to use collection.query for specific element of embedded collection

2019-04-26 Thread Keisuke Miyako via 4D_Tech
square brackets have a specific meaning in query by attribute see Example 5 or Linking array attribute query arguments (16R2 and later) https://doc.4d.com/4Dv17/4D/17.1/QUERY-BY-ATTRIBUTE.301-4178904.en.html > 2019/04/27 2:01、Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com>のメール: > >

Re: Blanket Font/Stylesheet Change

2019-04-26 Thread Keisuke Miyako via 4D_Tech
I wrote this utility for a local customer https://github.com/miyako/4d-utility-restore-object-with-font-number how to use: install component open in 32-bit, on the target platform run shared method "restore_object_with_font_number" what does it do? every object of every form is parsed. for

Re: Custom Form Events

2019-04-23 Thread Keisuke Miyako via 4D_Tech
I think the future is to use New formula. it is like a function pointer in other languages, it allows the callee to invoke a callback function at a later time. https://blog.4d.com/new-formula-more-power-behind-simplicity/ alternatively, one could say that CALL FORM is like a custom form event.

Re: Encrypt & decrypt blobs

2019-04-19 Thread Keisuke Miyako via 4D_Tech
I wouldn't convert the text to MacRoman, max 32,000 bytes (i.e. v2004 format) text risking data loss - even if the possibility was minimal with small US ASCII - just to be safe (and fast). TEXT TO BLOB($Text_Ptr->;$Blob;Mac text without length) $Destination->:=BLOB to text($Blob;Mac text

Re: Checking If Methods Are Preemptive Ready

2019-04-11 Thread Keisuke Miyako via 4D_Tech
that might be one way to develop. alternatively you could limit the list to all four types of "starter" methods: 1 Execute on server 2 New process 3 CALL WORKER 4 method called via menu item with "new process" enabled there is really no need to examine every single subroutine. that said,

Re: Checking If Methods Are Preemptive Ready

2019-04-11 Thread Keisuke Miyako via 4D_Tech
that's right, method attributes only inform you of their preferences. you could enable symbol file generation, compile, and look at the bottom of the generated symbol file. > 2019/04/12 3:33、Cannon Smith via 4D_Tech <4d_tech@lists.4d.com>のメール: > > I believe that preemptive capable in that

Re: Web area and not secure site

2019-04-11 Thread Keisuke Miyako via 4D_Tech
is the internal website http: or https: ? it's not quite clear from your post. - I think the 32-bit system web area on windows inherits the registry setting for Internet Explorer such as HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\0 or

Re: v17 Print Settings in a form's Property List

2019-04-09 Thread Keisuke Miyako via 4D_Tech
I think this is the new (64-bit) behaviour for dialType:0 https://doc.4d.com/4Dv17/4D/17.1/PRINT-SETTINGS.301-4179613.en.html that said, the Design Reference is a bit vague on this point https://doc.4d.com/4Dv17/4D/17.1/Printing-a-form.300-4201214.en.html "A Print Setup dialog box appears,

Re: relation names

2019-04-09 Thread Keisuke Miyako via 4D_Tech
constraints created by SQL CREATE TABLE https://doc.4d.com/4Dv17R4/4D/17-R4/foreign-key-definition.300-4075512.en.html are visualised in the Structure Editor but they are not to be confused with 4D Relations. under system tables,

Re: ORDA Limiting number of records returned.

2019-04-08 Thread Keisuke Miyako via 4D_Tech
ORDA queries only return a reference to the selection and not the entire data set, so it's not as if the payload should be a problem (especially at 35K which is small) but you could slice it to limit the size https://doc.4d.com/4Dv17R4/4D/17-R4/entitySelectionslice.305-4055325.en.html >

Re: Best scripting language to use with LEP (docx to PDF)

2019-04-06 Thread Keisuke Miyako via 4D_Tech
if you go down the automation (applescript) route, be sure where you create the result document. Word is sandboxed, so you can only export to the temporary folder in 4D code $path:=Temporary folder+"com.microsoft.Excel"+Folder separator this would be for CFBundleShortVersionString > 14 i.e.

Re: Form Print Settings (And Their Little Secrets)

2019-04-06 Thread Keisuke Miyako via 4D_Tech
early versions of 4D used forms for multiple purposes: QUERY BY EXAMPLE IMPORT TEXT EXPORT TEXT MODIFY SELECTION DISPLAY RECORD PRINT LABEL etc. most things were done using just table forms, with little to no code. --- now, instead of storing print settings in forms, you can simply use BLOBs

Re: Form Print Settings (And Their Little Secrets)

2019-04-06 Thread Keisuke Miyako via 4D_Tech
can you not call PAGE SETUP https://doc.4d.com/4Dv17/4D/17.1/PAGE-SETUP.301-4179624.en.html followed by GET PRINT OPTIONS https://doc.4d.com/4Dv17/4D/17.1/GET-PRINT-OPTION.301-4179604.en.html ? 2019/04/06 4:18、Ben Sokal via 4D_Tech <4d_tech@lists.4d.com>のメール:

Re: Best scripting language to use with LEP (docx to PDF)

2019-04-06 Thread Keisuke Miyako via 4D_Tech
I might be mistaken, but my understanding is that Word on Windows embeds hyperlinks when exporting to PDF, whereas Word on Mac doesn't (same with any app that performs print-to-pdf using the system feature) another approach maybe to use wkhtmltox

Re: Code signing works on one app but fails on another

2019-04-03 Thread Keisuke Miyako via 4D_Tech
the text edit setting "smart dashes" may convert double hyphens to dash, which is not what you want in this context. https://support.apple.com/kb/PH23628?locale=ja_JP=en_US a single hyphen must be used with a short option name (-f) a double hyphen must be used with a short option name (--force)

Re: Printing Structure Diagram

2019-03-30 Thread Keisuke Miyako via 4D_Tech
I suppose it is possible to generate a PDF directly using something like https://github.com/miyako/4d-plugin-haru since there seems to be all the basic shapes and lines that are used in the SVG example https://github.com/miyako/4d-plugin-haru/tree/master/Haru/examples but no time to do it

Re: Printing Structure Diagram

2019-03-30 Thread Keisuke Miyako via 4D_Tech
alternatively, you create a form with one picture object, sized to fit your paper size. you use TRANSFORM PICTURE with the Translate option which allows you to "trim" the SVG at any location without bitmap resampling (which is what happens when you convert to PNG or combine pictures). you print

Re: Printing Structure Diagram

2019-03-30 Thread Keisuke Miyako via 4D_Tech
you should note that native XSLT is removed in 64-bit so you need to either use a 32-bit or an alternative solution such as https://github.com/miyako/console-xsltproc or https://github.com/miyako/4d-plugin-xslt > 2019/03/31 8:29、Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com>のメール: > Check this

Re: 4d will not start ssl on 443

2019-03-29 Thread Keisuke Miyako via 4D_Tech
the helpertool prompt is only presented if you start the web server by code, menu or click. there is no dialog if the "start web server on startup" database setting is enabled. this is to avoid the UI showing up on an unattended service. I did not get any q. from helpertool when started up 4d

Re: SFTP

2019-03-27 Thread Keisuke Miyako via 4D_Tech
I do not support (by which I mean test) versions before v16, but plugin architecture has basically not changed since v14. that said, if you mean v14 mac, you need to use the 32-bit version (carbon). > 2019/03/27 3:08、Ed Heckman のメール: > Is there a version of this plugin that works for v14? (We're

Re: Printing a PDF document from 4D

2019-03-19 Thread Keisuke Miyako via 4D_Tech
printing an HTML is not always easy (especially pagination) even with a good media specific CSS. https://github.com/miyako/4d-component-wkhtmltopdf besides, printing is a blocking process (only 1 job at a time) and not thread safe so I think it is preferable to generate PDF by code than to

Re: Apple Notary Service

2019-03-15 Thread Keisuke Miyako via 4D_Tech
> I think Miyako has something on his github account... Notarisation goes one step further than a normal code sign. This example only deals with code signing. https://github.com/miyako/4d-utility-build-application c.f. http://forums.4d.com/Post/FR/26869162/1/26874716#26874716 Further

Re: Lep Redirect

2019-03-11 Thread Keisuke Miyako via 4D_Tech
first, you should check the documentation of the command you use, to see if they support stdOut output. ( " -o - " or something like that) if not, you might want to consider calling it via bash or some other shell program. c.f. https://kb.4d.com/assetid=77974 https://kb.4d.com/assetid=76658

Re: Help LEP macOS to open the Emoji viewer

2019-03-10 Thread Keisuke Miyako via 4D_Tech
thanks for your informative reply. I've tried your plugin, but it seems that the plugin only accepts one modifier key. This code opens (only with debugger) the macOS Spotlight and close spotlight after you step over "POST VIRTUAL KEY" $modifiers:=Command key mask+Control key mask

Re: OAuth

2019-03-10 Thread Keisuke Miyako via 4D_Tech
so the first thing to do is Google the docs with the keyword "urn:ietf:wg:oauth:2.0:oob" https://www.google.com/search?client=safari=en=site:developer.service.hmrc.gov.uk+urn:ietf:wg:oauth:2.0:oob=UTF-8=UTF-8 > oob callbacks

Re: OAuth

2019-03-10 Thread Keisuke Miyako via 4D_Tech
if the service provider does not support oob callbacks then you need to start a TCP listener session on localhost. c.f. https://github.com/miyako/console-tcp-listener of course you can use 4D Internet Commands or the built-in web server. if oob is supported (you need to check with the service

Re: Help LEP macOS to open the Emoji viewer

2019-03-09 Thread Keisuke Miyako via 4D_Tech
P.S. to post keystrokes programmatically https://github.com/miyako/4d-plugin-virtual-key to do it the proper way (it seems, not tested) https://developer.apple.com/documentation/appkit/nsapplication/1428455-orderfrontcharacterpalette?language=objc

Re: Help LEP macOS to open the Emoji viewer

2019-03-09 Thread Keisuke Miyako via 4D_Tech
which version of macOS? the code is not allowed in Terminal on Mojave; osascript is not allowed to send keystrokes (1002) https://www.reddit.com/r/MacOS/comments/9lwlsv/script_editor_not_allowed_to_send_keystrokes/ on top of that, to grant automation to 4D, you must have a specific key

Re: Printing forms modified with Duplicate Object

2019-03-07 Thread Keisuke Miyako via 4D_Tech
that has been my experience, in particular when I wrote my own label editor. https://github.com/miyako/4d-component-label-editor it was useful, because the old label editor could only position objects in mac points (1/72 of an inch) but I see that the doc says C_LONGINT.

Re: Printing forms modified with Duplicate Object

2019-03-06 Thread Keisuke Miyako via 4D_Tech
have you looked into the "Print object" command? you don't need to duplicate an object, you can print the same object as many times as you like, at any position (decimal, not integer positioning) with 17R you can define an object (JSON) representation of a form from scratch, or take an existing

Re: Printing Page Subforms in Columns/Rows in v17

2019-03-04 Thread Keisuke Miyako via 4D_Tech
printing is not supported for page subforms. it's as simple as that. the only way to "print" a page subform is to FORM LOAD and Print object. I don't understand how 4D picks the table for the page subforms, but it uses the same output form as before!

Re: Highlighting rows using Row Font Color Array

2019-03-03 Thread Keisuke Miyako via 4D_Tech
see blog https://blog.4d.com/customize-highlight-color-upon-listbox-row-selection/ 2019/03/04 6:14、James Knight via 4D_Tech <4d_tech@lists.4d.com>のメール: Does anyone know a way to work around this?

Re: user-agent html formatting on android outlook

2019-02-26 Thread Keisuke Miyako via 4D_Tech
are you sure this is actually an issue specific to Active4D? it is not uncommon for mail servers or even clients to automatically create plain text versions of an HTML message. it sounds like your tags have been removed that way. you might want to widen your scope of investigation to search

Re: Comparing two structures...

2019-02-26 Thread Keisuke Miyako via 4D_Tech
I suppose you could export the structure in XML format (no command yet in v13 but you can always do it from the menu) and compare. https://doc.4d.com/4Dv17/4D/17.1/Exporting-and-importing-structure-definitions.300-4201101.en.html 2019/02/27 11:42、Robert ListMail via 4D_Tech

Re: 4D JSON Date Bug

2019-02-25 Thread Keisuke Miyako via 4D_Tech
Note: variable names are not supported to start with a number ($4dDate) the line OB SET($obj;"apiDate";"2019-02-24") does not set a date value. it sets a string that looks like a date to some people. try something like $obj:=New object OB SET($obj;"d1";Current date) OB

Re: Current Time(*) timezone

2019-02-25 Thread Keisuke Miyako via 4D_Tech
Current time(*) and Current date(*) are returned the server's timezone. if daylight saving ended on the server side, but not on the client side, nothing is done to convert the value across timezones. the advantage of using Timestamp (UTC) is that it is agnostic to timezones. 2019/02/26 6:21、Jim

Re: Replacing FootRunner in v16

2019-02-23 Thread Keisuke Miyako via 4D_Tech
the 4DCODE tag is a good place to start: https://doc.4d.com/4Dv16/4D/16/4D-Transformation-Tags.300-3035918.en.html I hate that my videos are online but what can you do: https://www.youtube.com/watch?v=R2QCWSBVcHM > 2019/02/23 17:33、Peter Adam via 4D_Tech <4d_tech@lists.4d.com>のメール: > I am going

Re: Write Hex Bytes

2019-02-21 Thread Keisuke Miyako via 4D_Tech
> 2019/02/22 9:45、Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com>のメール: > the task was to process a single value 78,487,500 or 0xCC9FAD04; correction: decimal 78,487,500 is 0x04AD9FCC > If I have a number 78487500, this translates to CC 9F AD 04. but PC byte ordering will gi

Re: Write Hex Bytes

2019-02-21 Thread Keisuke Miyako via 4D_Tech
you're right, I re-read the OP, the task was to process a single value 78,487,500 or 0xCC9FAD04; not 4 separate decimal values 78, 48, 75 and 00 > 2019/02/22 9:43、Justin Carr via 4D_Tech <4d_tech@lists.4d.com>のメール: > > C_BLOB($vX_Data) > C_LONGINT($vL_Offset) > > $vL_Offset:=0 > LONGINT TO

Re: Write Hex Bytes

2019-02-21 Thread Keisuke Miyako via 4D_Tech
it sounds like you are over-thinking :) you could just do SET BLOB SIZE($bytes;4) $bytes{0}:=78 $bytes{1}:=48 $bytes{2}:=75 $bytes{3}:=00 then BLOB TO DOCUMENT. not need to go through hex. 2019/02/22 9:27、Peter Mew via 4D_Tech <4d_tech@lists.4d.com>のメール: If I

Re: change in behavior v 15 to v 16 ?

2019-02-19 Thread Keisuke Miyako via 4D_Tech
yes right-click should work with the 64-bit system dialog. as for Request(), I would first create a new DB and confirm that there are no issues with the particular version your are using. SET MENU BAR(1) $req:=Request("";"copy and paste me") > 2019/02/20 1:53、Charles Miller のメール: > > Thanks do

Re: Epoch time in milliseconds

2019-02-19 Thread Keisuke Miyako via 4D_Tech
$P_timeString:=String(Current date(*);ISO date GMT;Current time(*)) does this not invoke 2 calls to the server in C/S mode? would rather use Timestamp https://blog.4d.com/timestamp-is-now-available/ or else an "execute on server" rapper. otherwise, I compared with a plugin call

Re: change in behavior v 15 to v 16 ?

2019-02-18 Thread Keisuke Miyako via 4D_Tech
evidently this is standard behaviour; or rather, technical limitation. the file / folder select dialog is detached from the main application menu. you can, however, paste from the contextual menu. this is limited to 64-bit (cocoa), it was reported in the early days of 64-bit and the reply from

Re: On Drag Over Behavior

2019-02-14 Thread Keisuke Miyako via 4D_Tech
I think the cursor no longer changes automatically in 4D cocoa (64-bit), v16 and above. 2019/02/15 9:48、Jeremy French via 4D_Tech <4d_tech@lists.4d.com>のメール: Then try dragging to the drop variable. When the pointer is over the drop variable, does the cursor

Re: On Drag Over Behavior

2019-02-14 Thread Keisuke Miyako via 4D_Tech
Hello, you can use SET CURSOR 9019 for no-entry, 9016 for plus. https://doc.4d.com/4Dv17/4D/17/SET-CURSOR.301-3729694.en.html > 2019/02/15 1:55、John J Foster via 4D_Tech <4d_tech@lists.4d.com>のメール: > > I have an interface with an Listbox on the left side and four text variables > on the

Re: Error 30 When Using HTTP Get or HTTP Request

2019-02-11 Thread Keisuke Miyako via 4D_Tech
in case you missed it, the blog link that Tim posted does explain how you can lower your TLS threshold on the 4D side with SET DATABASE PARAMETER. 2019/02/12 8:15、4dinug via 4D_Tech <4d_tech@lists.4d.com>のメール: I would rate my chances at getting them to re-deploy

Re: WR ON COMMAND in Write Pro

2019-02-08 Thread Keisuke Miyako via 4D_Tech
I don't think that's possible. I suppose WR ON COMMAND made more sense for 4D Write which was a completely opaque product. with Write Pro we can create our own contextual menu (Dynamic popup menu + INVOKE ACTION) so rather than trapping the existing menu, the way to customise behaviour would

Re: How to display read-only input form

2019-02-06 Thread Keisuke Miyako via 4D_Tech
DIALOG is quite capable of handling input / output forms, as long as you have activated the "make fields enterable in dialog" compatibility setting (since v2004). there is no need to use F. SET INPUT or F. SET OUTPUT. a list type subform or selection based listbox have their own input form

Re: 4D Selection from SQL Query

2019-02-05 Thread Keisuke Miyako via 4D_Tech
alternatively, I guess we can SELECT __ROW_ID == record number (not all tables have a primary key). https://doc.4d.com/4Dv17/4D/17/Replication-via-SQL.300-3786654.en.html https://doc.4d.com/4Dv17/4D/17/CREATE-SELECTION-FROM-ARRAY.301-3729926.en.html 2019/02/06 3:31、Randy Engle via 4D_Tech

Re: ListBox Header and Footer

2019-02-04 Thread Keisuke Miyako via 4D_Tech
you can hide (set to invisible) the headers and footers in the property list, likewise you can make the variables anonymous (form local or "dynamic" variables) but you can't remove them altogether because it is always possible to set them visible by code. > 2019/02/04 20:09、Andrew Hobson via

Re: How to get the Window ref of the 4D 64 bit app window

2019-02-03 Thread Keisuke Miyako via 4D_Tech
Hello, I tested with 64-bit 17.0 (230889) and 17R3 (232314) Windows 10 1803 using the sample icon (owl) included with the plugin. in both cases, the MDI icon did successfully change. so it could be... incompatible with Windows 1809 incompatible with your .ico file (if you did not try with the

Re: use (storage)

2019-02-01 Thread Keisuke Miyako via 4D_Tech
"Use" locks shared objects by locker ID. if you write Use (Storage) Storage.prop:=New shared object End use trace it, and enabled "display type" in the debugger pane, you would see that the locker id of Storage is -7 (don't ask me why). Storage.prop would be -15 (ditto) therefore, locking

Re: Popup/Dropdown element 0

2019-01-31 Thread Keisuke Miyako via 4D_Tech
2019/02/01 10:58、Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com<mailto:4d_tech@lists.4d.com>>のメール: in fact, some keen observers of ORDA have commented that to be clear, ORDA is the combination of object access to the persistent relation datastore and the binding of object data

Re: Popup/Dropdown element 0

2019-01-31 Thread Keisuke Miyako via 4D_Tech
> The object assigned to the popup menu has these 2-properties: “val” and “ref”. > Where do we find the documentation that says we can associate a popup with a > hierarchical list using a Form.object, where the object has these > 2-properties “val” and “ref” that reflect the popup’s current

  1   2   3   4   5   6   7   8   >