Re: JPR_Text2Pict and Objects, a perfect engagement...

2017-02-21 Thread Keisuke Miyako via 4D_Tech
> 2017/02/22 7:32、David Adams via 4D_Tech <4d_tech@lists.4d.com> のメール: > Version 1.2 does have a textArea object that Miyako mentions. This supports > text wrap, but I don't know how widely supported it is. 4D added a limit subset of SVG Tiny 1.2 in 11.3, notably, textArea, tbreak, text-align,

Re: Detecting field properties that can take nulls

2017-02-20 Thread Keisuke Miyako via 4D_Tech
the way forward is EXPORT STRUCTURE, which gives you an XML representation of the structure in full detail. read http://blog.4d.com/detailed-analysis-database-structure/ includes a utility that converts the XML to JSON. > 2017/02/21 4:52、bob.miller--- via 4D_Tech <4d_tech@lists.4d.com> のメール: >

Re: How to not close all windows on restart - v16

2017-02-19 Thread Keisuke Miyako via 4D_Tech
that is interesting. so that confirms the previous comment that the RESTART 4D (or OPEN DATAFILE) command which I suspect the Pop is using internally, could be the real problem. > 2017/02/19 11:38、Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> のメール: > > Hi Miyako, > I think I stumbled across a

Re: ST Get plain text (Why does a space character get returned?)

2017-02-16 Thread Keisuke Miyako via 4D_Tech
is it a problem that an inserted dynamic expression is returns a length:1 placeholder as "plain text"? it has been that way since the feature was introduced, same with old 4D Write plugin. a URL, when highlighted would be $highlightedText:=ST Get plain text(ST Get text(...;ST Start

Re: Structure and Data File do not match

2017-02-23 Thread Keisuke Miyako via 4D_Tech
for investigative purposes, and brute-force correction, you could peek the structure/data UUID using this tool https://github.com/miyako/4d-utility-uuid-manager UUID replaces the old WEDD resource. > 2017/02/24 0:53、bob.miller--- via 4D_Tech <4d_tech@lists.4d.com> のメール: > This is in v15r4, and

Re: How to not close all windows on restart - v16

2017-02-19 Thread Keisuke Miyako via 4D_Tech
I understand. my post was in reply to Kirk's comment (4DPOP constants module to restart) but sure, I would imagine there is no difference how the same command is used, inside a component or directly. > 2017/02/20 7:09、David Adams via 4D_Tech <4d_tech@lists.4d.com> のメール: > I'm not using 4D Pop in

Re: JPR_Text2Pict and Objects, a perfect engagement...

2017-02-21 Thread Keisuke Miyako via 4D_Tech
one possibility would be to use textArea instead of text, which allow you to use tbreak for every new line. you would need to use DOM SET XML ELEMENT VALUE for line #1 and DOM Append XML child node for all other lines. you can still use an in-memory text element+PICTURE PROPERTIES to calculate

Re: Old doesn't work with object fields

2017-02-22 Thread Keisuke Miyako via 4D_Tech
while I love discussing feature requests, I also take the pragmatic view that every new feature comes at the cost of an idea delayed if not discarded. so, if anything is already possible with a little bit of creativity, and fulfils the immediate need, I would be ready to accept that, to clear

Re: Permanently Sort Data

2017-02-15 Thread Keisuke Miyako via 4D_Tech
ACI0096295 is already fixed in 16208092 16R2208094 > … Anyone else seeing this? I’m considering filing a bug. ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive:

Re: Where is the error - Solved

2017-02-15 Thread Keisuke Miyako via 4D_Tech
for those following the thread, according to "ACI0058762", ALERT(String(2+2^3)) returns... 64 - not compiled (correct according to 4D left to right math) 10 - compiled (incorrrect according to 4D left to right math) 2017/02/16 6:57、Timothy Penner via 4D_Tech

Re: v12 - Query problem

2017-03-01 Thread Keisuke Miyako via 4D_Tech
but did you use the "query by formula" dialog and use [table]Sent_Date = Date("02/27/17") as the criteria? it might we worth creating a new DB with just one date field and see if the results are reproducible. then upgrade to a higher version and compare results. 2017/03/02 7:44、Chip Scheide via

Re: repost : Printer selection issue

2017-03-24 Thread Keisuke Miyako via 4D_Tech
I think what you describe is a "32-bit" thing. the code SET CURRENT PRINTER("_192_168_1_33") PRINT SETTINGS(Page setup dialog) shows "any printer" on v16 32-bit, the default printer on v16 64-bit. - even using 32-bit, once you have chosen the printer in the page setup dialog, and stored that

Re: HTML Editor in 4D

2017-03-28 Thread Keisuke Miyako via 4D_Tech
I think it depends on the application. for instance, in sone cases, using a regular text input for editing the HTML and a web area for preview might turn out to be better than a single object. ** 4D Internet Users Group (4D

Re: HTTP Patch request

2017-03-27 Thread Keisuke Miyako via 4D_Tech
just pass "PATCH" as text literal to HTTP Request. standard constants (GET, POST, etc) are string constants too. 2017/03/28 0:09、Tom Swenson via 4D_Tech <4d_tech@lists.4d.com> のメール: However, there doesn’t seem to be a Constant for a HTTP patch method Any ideas?

Re: [4DTidbits Blog] Epoch & Unix Timestamp Conversion

2017-03-26 Thread Keisuke Miyako via 4D_Tech
you could also... C_LONGINT($yearPosition;$monthPosition;$dayPosition) C_TEXT($digitPosition) GET SYSTEM FORMAT(Short date year position;$digitPosition) $yearPosition:=Num($digitPosition) GET SYSTEM FORMAT(Short date month position;$digitPosition) $monthPosition:=Num($digitPosition) GET SYSTEM

Re: 4D email client from Dave Batton, where to get the old sample 4DB ?

2017-03-26 Thread Keisuke Miyako via 4D_Tech
Web 2.0 Pack was released more than 10 years ago (v2004). then, the Live Window Plugin was the predecessor to the Web Area form object introduced in v11.2. I am afraid the project (TinyMCE or something similar) has very limited value today. 2017/03/26 0:15、Armin Deeg via 4D_Tech

Re: 4D v15.4: Internet commands *SOLVED*

2017-03-26 Thread Keisuke Miyako via 4D_Tech
my speculation is that the new line characters have been removed so that the base64 string can now be incorporated more easily as data URIs in SVG and HTML, but I do not know the full story. as a stop-gap measure I posted this plugin https://github.com/miyako/4d-plugin-base64 2017/03/15

Re: SVG Text Width and Height

2017-03-24 Thread Keisuke Miyako via 4D_Tech
in general, it is best to instruct the rendering engine to decide how to align objects, rather than to compute the exact coordinates yourself. "text-anchor" (start, middle, end) should take care of horizontal align in , but vertical align is going to be difficult since 4D does not support

Re: 4D Query error, Beware

2017-03-24 Thread Keisuke Miyako via 4D_Tech
there has been a couple of fixes related to the database engine (transactional query in particular) in recent nightly builds, part of the reasons why some hot-fixes were released during a relatively short time span. 4D v16.0 Hotfix 2 (http://bugs.4d.fr/fixedbugslist?Version=16.0_HF2)

Re: SVG Text Width and Height

2017-03-24 Thread Keisuke Miyako via 4D_Tech
Hello, could you not simply set text-anchor to middle? ** 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

Re: y2038 -- is 4D ready?

2017-03-28 Thread Keisuke Miyako via 4D_Tech
so code to convert date to epoch time like that one just recently discussed (Re: [4DTidbits Blog] Epoch & Unix Timestamp Conversion) could potentially have trouble... > 2017/03/29 0:37、Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> のメール: > Just reading an article about the next Y2K - y2038. > IN

Re: OPEN PRINTING FORM

2017-03-27 Thread Keisuke Miyako via 4D_Tech
FORM LOAD the command was so useful, it can now be used outside of a printing context. > 2017/03/28 10:04、Sujit Shah via 4D_Tech <4d_tech@lists.4d.com> のメール: > I see this command is not available in v15. > What is the replacement?

Re: repost : Printer selection issue

2017-03-24 Thread Keisuke Miyako via 4D_Tech
the label editor, as well as regular forms, only accepts integer units. the label editor appears to accept decimal coordinates, but it is only a unit converter, internally the values are always stored in points (integer). remarkably, the "Print object" command works with decimal coordinates, as

Re: tab seperated text - what to use for Cr

2017-03-15 Thread Keisuke Miyako via 4D_Tech
to be pedantic, you need to do more than double quote the values, in case the value themselves contain a double quote. and then, importing gets even more messy, since the values may or may not be quoted. anyway, I've published the component here: https://github.com/miyako/4d-component-csv >

Re: v13 - Select & Create Document

2017-03-14 Thread Keisuke Miyako via 4D_Tech
and for multiple files, there is an optional array parameter to receive all paths. > 2017/03/15 6:36、John Baughman via 4D_Tech <4d_tech@lists.4D.com> のメール: > After the call to Select document, the system variable Document contains the > full path to the document selected.

Re: 4D V16 fails to launch external programs asynchronously

2017-03-21 Thread Keisuke Miyako via 4D_Tech
it (ACI0096092) is also fixed in 16.0 Hotfix 1 (16.0 Hotfix 2 is the latest) > 2017/03/22 5:16、Julio Carneiro via 4D_Tech <4d_tech@lists.4d.com> のメール: > Downloading V16R2 to confirm that it is fixed. ** 4D Internet Users Group

Re: Unique Files Verification Software (Mac)

2017-03-14 Thread Keisuke Miyako via 4D_Tech
I guess Git does a pretty decent job at tracking changes and movements in a designated directory, but if you feel 4D give you the strength and flexibility to do exactly what you want, I have nothing against it. > 2017/03/15 8:46、Robert ListMail via 4D_Tech <4d_tech@lists.4D.com> のメール: > Chip,

Re: Unique Files Verification Software (Mac)

2017-03-14 Thread Keisuke Miyako via 4D_Tech
for simply synchronising two directories possibly on a separate volume, rsync has been around for quite some time. https://en.wikipedia.org/wiki/Rsync but I may be getting wrong the "this" in "anything that will do this". > 2017/03/15 6:56、Robert ListMail via 4D_Tech <4d_tech@lists.4D.com>

Re: tab seperated text - what to use for Cr

2017-03-15 Thread Keisuke Miyako via 4D_Tech
not sure if Excel supports it, (FileMaker does) but the formal way to include multiple lines in a TSV field is to use the vertical tab character Char(11). (side-note: Char(11) shows up as \v in the debugger, although you can't it in literal text) if you are interested I can share a set of

Re: Weird variable (non-)refresh issue

2017-03-15 Thread Keisuke Miyako via 4D_Tech
to refresh variables on display, one must CALL PROCESS(-1) http://doc.4d.com/4Dv15/4D/15/CALL-PROCESS.301-2006854.en.html > 2017/03/16 4:56、bob.miller--- via 4D_Tech <4d_tech@lists.4d.com> のメール: > > I've tried throwing in a REDRAW(variablename) and even a DELAY > PROCESS(Current process;60) -

Re: Question about passing JSON to 4D

2017-04-04 Thread Keisuke Miyako via 4D_Tech
WEB GET VARIABLES only parses form variables (x-www-form-urlencoded). and then, jQuery post() only sends x-www-form-urlencoded. http://stackoverflow.com/questions/5529685/post-doesnt-send-data-as-json-but-as-x-www-form-urlencoded-instead so with this setup, you are basically working with a

Re: delete or truncate

2017-04-04 Thread Keisuke Miyako via 4D_Tech
ALL RECORDS + DELETE SELECTION, or selecting all records and deleting them in User Mode logs "delete" action for each record in the journal file. TRUNCATE TABLE, on the other hand, has its own single action in the journal file. "Truncate" clears the address table, whereas "Delete" does not. the

Re: Anyone using v16 in WAN

2017-04-04 Thread Keisuke Miyako via 4D_Tech
Hello, I think it is important to investigate whether the instability is specific to application code or not. for instance, it is possible to create a bare bone copy of you database with the export structure command. you can then open a copy of your production data with that structure file.

Re: Methods starting with a number

2017-04-03 Thread Keisuke Miyako via 4D_Tech
I guess SQL/import export would break since it adds an underscore to illegal field names. perhaps the same with XML export of structure. if has been working for some time, maybe it's not such a high priority, but you'd also want to be prepared for dot-notation support whenever that is going to

Re: Replacing - OAuth.bundle

2017-04-12 Thread Keisuke Miyako via 4D_Tech
Hello, in general, only the source files (plain text) are expected to be under source-control, as well as common format documents such as PDF or images. large binary files are expected to be published under "Releases". 4D is an unusual case, because the source code (the structure file) is

Re: Project Method not found in Quick Report Editor

2017-04-06 Thread Keisuke Miyako via 4D_Tech
did you call set allowed methods? ** 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:

Re: Project Method not found in Quick Report Editor

2017-04-06 Thread Keisuke Miyako via 4D_Tech
is the method made available for components? > 2017/04/07 1:43、John Baughman via 4D_Tech <4d_tech@lists.4D.com> のメール: > I tried another method with the same results. ** 4D Internet Users Group (4D iNUG) FAQ:

Re: Copy out of read only variable/field

2017-04-06 Thread Keisuke Miyako via 4D_Tech
you set the field to non-enterable+focusable. 2017/04/07 6:16、Dennis, Neil via 4D_Tech <4d_tech@lists.4d.com> のメール: I'm questioning if this is possible? Anyone? ** 4D Internet Users Group (4D

Re: Migrating Tables with Relations Between Structures

2017-04-05 Thread Keisuke Miyako via 4D_Tech
when you copy multiple tables in the structure editor, you get the table as well as the relation. pasting it back to the structure editor removes all ancillaries such as indexes and links, but the plugin entry-point allows you to re-create them.

Re: Off topic, sending binary files

2017-04-09 Thread Keisuke Miyako via 4D_Tech
perhaps you could add another call to LEP that would chmod +x immediate before you call LEP on to execute scamimage... > 2017/04/09 20:09、Peter Mew via 4D_Tech <4d_tech@lists.4d.com> のメール: > The binary is a command line program called scanimage, which allows me to > interface with a flatbed

Re: Unexpected Command Key Shortcuts (15.4)

2017-04-08 Thread Keisuke Miyako via 4D_Tech
in fact, command+L is defined twice, once in File > Open > Form and again in Method > Goto Line when you are using the method editor. similar situation with File > Open > Method and Method > Open Definition both of which are command + K. it is a bad factory setting, in my opinion, as a

Re: How can I suppress the web server creating default index.html?

2017-04-14 Thread Keisuke Miyako via 4D_Tech
just goto preferences > web > settings (path) and remove "index.html" > 2017/04/14 23:37、Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> のメール: > Can I suppress 4D's urge to create that page if it's missing? ** 4D Internet

Re: Clean Slate - Modern User Experience.

2017-04-15 Thread Keisuke Miyako via 4D_Tech
Hello, if you could spare some time to go through the various "HDI" examples, especially those themes on the listbox, I think it would be a good way to get tuned with the current development styles in 4D. ftp://ftp.4d.com/SAMPLE_DATABASES/4D/ HTML/SVG/Objects are obviously modern and cool, but

Re: Questions about the 'Sum' function

2017-04-13 Thread Keisuke Miyako via 4D_Tech
Sum() has been improved to work with indexes since v11, with arrays since v13. if the restriction is still there, perhaps one can "selection to array" as a workaround. > 2017/04/14 0:06、Keith White via 4D_Tech <4d_tech@lists.4d.com> のメール: > > QUERY([ClientInvoices]; blah blah blah..) >

Re: PK wizard, how to start?

2017-04-13 Thread Keisuke Miyako via 4D_Tech
if you can find the component in Explorer, there should be a shared method that triggers the dialog. right click and run it... ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive:

Re: Converting Little Endian Byte Representation To a String

2017-04-18 Thread Keisuke Miyako via 4D_Tech
I think this will do it: ASSERT("840003123456770"=Get_value ("02ABC877FAFB0200")) using primary school maths only... -- C_TEXT($1;$0) Case of : (Count parameters=1) C_TEXT(hex;$e;$total) C_LONGINT($i) $hex:=$1 For ($i;1;Length($hex);2) //hex byte code to integer string

Re: Converting Little Endian Byte Representation To a String

2017-04-18 Thread Keisuke Miyako via 4D_Tech
oops, had some type mismatches (result of combining 2 methods) -- C_TEXT($1;$0) Case of : (Count parameters=1) C_TEXT(hex;$exp;$total) C_LONGINT($i) $hex:=$1 For ($i;1;Length($hex);2) //hex byte code to integer string $byte:=Substring($hex;$i;2) $code:="" PROCESS 4D TAGS($code;$code) If

Re: Why does 4D have uppercase UUIDs?

2017-04-23 Thread Keisuke Miyako via 4D_Tech
I wasn't aware of the argument that they should always be lowercase. it's true that the native function on Windows (UuidCreate, UuidToString) creates lowercase, but on Mac (NSUUID.UUIDString, CFUUIDCreate/CFUUIDCreateString) they are uppercase and also hyphenated. uppercase-non-hyphenated

Re: 4D Write Pro CSS

2017-04-23 Thread Keisuke Miyako via 4D_Tech
Hello, if the question is "which experimental CSS is supported in 4D Write Pro?", then I think you might be asking the wrong question. quote: "4D specific tags" means 4D XHTML with a 4D namespace and 4D CSS styles. http://doc.4d.com/4Dv16/4D/16/WP-EXPORT-DOCUMENT.301-3048103.en.html in other

Re: Preventing On Start Up from Running

2017-04-23 Thread Keisuke Miyako via 4D_Tech
Hello, find {Get 4D folder}/Favorites v16/Local/ open the 4DLink file with a text editor, in the element database_shortcut, add skip_onstartup_method="true", save, and open it with 4D. > 2017/04/24 5:13、Mitchell Shiller via 4D_Tech <4d_tech@lists.4d.com> のメール: > > I accidentally inserted some

Re: 4D Write Pro CSS

2017-04-22 Thread Keisuke Miyako via 4D_Tech
http://doc.4d.com/4Dv15/4D/15.4/Supported-tags.300-3274727.en.html explains proprietary CSS attributes such as and Click here > 2017/04/23 1:12、Pat Bensky via 4D_Tech <4d_tech@lists.4d.com> のメール: > its own subset of HTML/CSS attributes and tags, specified in this manual."

Re: WEB SERVICE CALL parsing error

2017-03-09 Thread Keisuke Miyako via 4D_Tech
when you process the WSDL (if there is one) using the built-in Wizard of 4D, you would see orange flags, denoting "complex" types. http://doc.4d.com/4Dv15/4D/15.4/Subscribing-to-a-Web-Service-in-4D.300-3285567.en.html Note: If the parsing of the WSDL file reveals the presence of complex type

Re: Email Component

2017-03-03 Thread Keisuke Miyako via 4D_Tech
from what you describe, it sounds like a problem in Internet Commands v16, not the component that presumably generates the HTML. F.Y.I. you can use v15 Internet Commands with v16, just install it in the Plugins folder inside the database folder, and it will take precedence over the one inside the

Re: osx open url vs osascript FYI

2017-03-13 Thread Keisuke Miyako via 4D_Tech
for opening documents plugin https://github.com/miyako/4d-plugin-shell-execute component (internally LAUNCH EXTERNAL PROCESS) https://github.com/miyako/4d-component-sublaunch in particular, the escaping of paths is quite robust, not just double-quoting the whole string. but going back to the

Re: PHP EXECUTE in a loop

2017-03-12 Thread Keisuke Miyako via 4D_Tech
PHP Execute restarts after a set number of calls. PHP max requests http://doc.4d.com/4Dv15/4D/15.4/SET-DATABASE-PARAMETER.301-3274410.en.html if you always call PHP from the same process, and you can keep track of the number of calls, perhaps you could restart it every now and then:

Re: Dynamic PDF Page Extraction...

2017-03-13 Thread Keisuke Miyako via 4D_Tech
1. these are LEP based; probably not performant in a loop... https://github.com/miyako/4d-component-poppler https://github.com/miyako/4d-component-pdftk 2. this one is Mac only https://github.com/miyako/4d-plugin-pdf-kit 3. this one is not very good with Japanese text (returns duplicates)

Re: htaccess and .gz

2017-03-13 Thread Keisuke Miyako via 4D_Tech
the web server has a built-in compression feature, Web HTTP compression level Web HTTP compression threshold http://doc.4d.com/4Dv16R2/4D/16-R2.1620/Web-Server.302-3112186.en.html so normally you shouldn't have to care about gunzipping files yourself. 2017/03/13 21:18、Andrea Angeli via 4D_Tech

Re: Host Structure in a component

2017-03-13 Thread Keisuke Miyako via 4D_Tech
the code "seems OK..." doesn't it work inside a different host? what if you rename the arrays to something different? local variables are permitted in that context, but sometimes strange things occur. ** 4D Internet Users

Re: query re database setting on 4D server v15.4

2017-03-06 Thread Keisuke Miyako via 4D_Tech
Hello, 64-bit Mac (Server or Client) can only use the New Layer, regardless of the settings. 32-bit Mac Clients can adapt "can adapt their protocol dynamically (doc)", they start with the New Layer or automatically switch during initial connection.

Re: Saved query files (.4df) and changes from v12 to v15 - automated conversion?

2017-03-06 Thread Keisuke Miyako via 4D_Tech
Thank you Arnaud your code gave me the needed inspiration :) https://github.com/miyako/4d-component-classic-query-editor/ 2017/03/07 5:42、Arnaud de Montard via 4D_Tech <4d_tech@lists.4d.com> のメール: I just translated some comments, and, again, I never ended the job. HTH…

Re: Adding fields to tables using SQL

2017-03-02 Thread Keisuke Miyako via 4D_Tech
IMPORT STRUCTURE is powerful, but I don't think it can modify existing tables... http://doc.4d.com/4Dv16/4D/16/IMPORT-STRUCTURE.301-3036688.en.html maybe the plugin entry-point is more forgiving (haven't tried) https://github.com/miyako/4d-plugin-structure-access > 2017/03/03 5:56、bob.miller---

Re: RESOURCE LIST & XLIFF Resource Files

2017-03-07 Thread Keisuke Miyako via 4D_Tech
Hello, the command RESOURCE LIST was never associated with XLIFF. resource commands that work with XLIFF are: STRING LIST TO ARRAY http://doc.4d.com/4Dv15/4D/15.4/STRING-LIST-TO-ARRAY.301-3274706.en.html and Get indexed string

Re: Unexpected External Call Back...

2017-04-08 Thread Keisuke Miyako via 4D_Tech
sounds like method with "execute on server" property. > 2017/04/08 12:39、Robert ListMail via 4D_Tech <4d_tech@lists.4D.com> のメール: > "External Call Back” was part of the call chain. ** 4D Internet Users Group (4D iNUG) FAQ:

Re: Listbox row select

2017-04-06 Thread Keisuke Miyako via 4D_Tech
in general, selected list items are grey when inactive (does not have focus) > 2017/04/07 8:38、Sujit Shah via 4D_Tech <4d_tech@lists.4d.com> のメール: > > I am getting 2 different row highlight (colors) > > - When row is selected indirectly LISTBOX SELECT ROW (grey) > - When row is directly clicked

Re: Remedial question about components

2017-04-18 Thread Keisuke Miyako via 4D_Tech
Hello, + to check current execution context Structure file=Structure file(*) this is documented (see example 2) http://doc.4d.com/4Dv15/4D/15.4/Structure-file.301-3274414.en.html + when the host and component share the same methods names this is also documented (see Naming conflicts: masking

Re: Converting Little Endian Byte Representation To a String

2017-04-18 Thread Keisuke Miyako via 4D_Tech
Hello, I think there was a bug in the carry-over logic, I've uploaded a cleaner version here: https://github.com/miyako/4d-tips-text-integer-maths > 2017/04/19 2:03、Cannon Smith via 4D_Tech <4d_tech@lists.4d.com> のメール: > Thanks, Miyako! That does indeed work and is plenty fast as well. I really

Re: Remedial question about components

2017-04-18 Thread Keisuke Miyako via 4D_Tech
I think you can do something like $name:="test" (""#METHOD Get path(Path project method;$name)) is a "local" method (""#METHOD Get path(Path project method;$name;*)) //with asterisk is a "host" method > 2017/04/18 19:16、David Adams via 4D_Tech <4d_tech@lists.4d.com> のメール: > As far as I know,

Re: Remedial question about components

2017-04-18 Thread Keisuke Miyako via 4D_Tech
to recap, why do you need to know from a compiled component if the host is interpreted? > 2017/04/18 19:16、David Adams via 4D_Tech <4d_tech@lists.4d.com> のメール: > > is there a way to find out if the host is compiled without having the > host pass that information into the component?

Re: Top Menu Vs Sidebar (Web Applications)

2017-04-18 Thread Keisuke Miyako via 4D_Tech
perhaps the screen aspect ratio has some part to play, you'd rather not block the whole top (or bottom) strip unless you really have a lot of menus. but then, responsive UI's (like Google) tend to collapse their side menu in button on a square or portrait screen. finally, the human eye is better

Re: Automated tasks on 4D Server

2017-04-18 Thread Keisuke Miyako via 4D_Tech
some time ago our Tech Support (not me) posted this: https://github.com/4D-JP/sample-outside-call-for-windows please don't freak out because of the language, the sample code is what's important. basically, you configure the Windows Task Scheduler to run a script (JS) periodically. the script

Re: Components and custom constants files

2017-04-18 Thread Keisuke Miyako via 4D_Tech
maybe one or more constants are redefining default 4D constants with a different type. > 2017/04/19 13:01、David Adams via 4D_Tech <4d_tech@lists.4d.com> のメール: > The argument list for the method named "MessageHub_Unsubscribe" in the > component "MesageHub" is incompatible with the database or

Re: Question about PaySimple http request

2017-08-02 Thread Keisuke Miyako via 4D_Tech
> 2017/08/03 7:02、Michael Ferguson via 4D_Tech <4d_tech@lists.4D.com> のメール: > t_Request is properly formatted JSON text by the way if the JSON is an object (not array) you can directly pass C_OBJECT to HTTP Get/Request > headernames_at{1} := “Authorization” > $headervalues_at{1}:=Authorization:

Re: Listbox Printing

2017-08-02 Thread Keisuke Miyako via 4D_Tech
have you looked into "Print object"? http://doc.4d.com/4Dv16/4D/16/Print-object.301-3035768.en.html > 2017/08/03 3:18、James Crate via 4D_Tech <4d_tech@lists.4d.com> のメール: > > I am printing a listbox on a form which just has a detail section (i.e. Print > Form). The listbox is printing, but

Re: Is there a way to put a separator line in a macro list?

2017-08-02 Thread Keisuke Miyako via 4D_Tech
macros are loaded every time a method editor window is activated, until, it fails dues to XML parsing error. no more reloads once an error is encountered. same rule for XLIFF and form editor windows. (but only if the XLIFF file is already loaded; new files are not added) but there is no single

Re: Listbox Printing

2017-08-02 Thread Keisuke Miyako via 4D_Tech
https://github.com/miyako/4d-tips-print-form-print-object-combo 2017/08/03 12:34、miyako > のメール: I don't see any reasons why they won't work in tandem. ** 4D Internet Users

Re: Listbox Printing

2017-08-02 Thread Keisuke Miyako via 4D_Tech
I don't see any reasons why they won't work in tandem. in the context of OPEN PRINTING JOB, you are just printing objects on top of each other, in memory. > 2017/08/03 12:01、James Crate via 4D_Tech <4d_tech@lists.4d.com> のメール: > it doesn’t look like Print Object can work in combination with

Re: External data storage question

2017-08-04 Thread Keisuke Miyako via 4D_Tech
what happens if you do [myTable]myPicture:=[myTable]myPicture*0 before you load the new jpg ? your trigger is running, so the picture is touched for the database, we can assume that. but the picture on form is not updated, so it sounds like a ref count issue for the form. besides, you

Re: Listbox Printing

2017-08-14 Thread Keisuke Miyako via 4D_Tech
FORM LOAD simply loads the form definition. the data source (variables and arrays) are not bound automatically in print. you need to populate the objects by their names: SET PRINT PREVIEW(True) If (OK=1) OPEN PRINTING JOB FORM LOAD("Form1") $aA:=OBJECT Get pointer(Object named;"Column1")

Re: Animated Notifcation

2017-08-09 Thread Keisuke Miyako via 4D_Tech
did you mean... > AnotherTip 2.0 is available > ——— > > AJAR SA is pleased to announce a new release of the 4D widget : Another Tip > 2.0 > > This new release 2.0 adds new animation functionalities. > > A new revamp Lab is provided, to help you build your tip styles. > >

Re: SEND / RECEIVE RECORD questions

2017-08-10 Thread Keisuke Miyako via 4D_Tech
RECEIVE R. command is capable of processing records sent from pre-v11 versions, it looks at the header and converts ANSI to Unicode text as necessary. > 2017/08/11 5:51、Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> のメール: > And what about changes across 4D versions? Like attempting to RECEIVE >

Re: Relative path in SVG DOM

2017-08-10 Thread Keisuke Miyako via 4D_Tech
unless there is a way to define the base URL, I don't think it is possible to specify relative paths in SVG which is itself not a file on disk. my guess would be that the path is considered a name, searched in the current directory of the executable. unless the SVG is a file on disk, I think

Re: Anybody using the TimePicker widget - TimePicker SET STEP

2017-08-10 Thread Keisuke Miyako via 4D_Tech
it works on ON LOAD, but the widget's variable must be declared with C_TIME, or set to create a form local (no variable name, type=time in property list.) and the widget must be used on page 0 or 1. > 2017/08/10 16:13、John Baughman via 4D_Tech <4d_tech@lists.4D.com> のメール: > The sample code in

Re: Listbox Printing

2017-08-13 Thread Keisuke Miyako via 4D_Tech
have you tried using the object name instead ? > 2017/08/13 5:46、Keith Culotta via 4D_Tech <4d_tech@lists.4d.com> のメール: > $obj:=(->Box_Sum) ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive:

Re: Listbox Printing

2017-08-14 Thread Keisuke Miyako via 4D_Tech
I am not sure I understand your code; are you not supposed to populate the arrays AFTER you call FORM LOAD (unless the listbox already exists in the current form) ? > 2017/08/14 23:29、Keith Culotta via 4D_Tech <4d_tech@lists.4d.com> のメール: > > I tried with the name as well. It works that way

Re: UTF-8 to ASCII during data export issues

2017-08-16 Thread Keisuke Miyako via 4D_Tech
also there is a chance that your "encoding" attribute doesn't match the XML content. I find it hard to believe that a program exists which can't process UTF-8. or maybe you are using BLOB (in which case the content is not UTF-8), but the "encoding" says that it is, hence the error. in that

Re: UTF-8 to ASCII during data export issues

2017-08-16 Thread Keisuke Miyako via 4D_Tech
try blob instead of text. > Compatibility note: Beginning with version 12 of 4D, when you use BLOB type > parameters, the command automatically considers that the character set used > for BLOBs is MacRoman. For better efficiency, it is strongly recommended to > use Text type parameters for

Re: v13+ - How to do a 'Find in array' with a picture array?

2017-07-13 Thread Keisuke Miyako via 4D_Tech
perhaps you should use an array of pointers (pointers to pictures) instead. > 2017/07/13 2:03、Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> のメール: > any ideas? code? ** 4D Internet Users Group (4D iNUG) FAQ:

Re: Very Simple Way to Access Server with Two Copies of Remote from the Same Machine

2017-07-14 Thread Keisuke Miyako via 4D_Tech
I don't think it is necessary to create copies if you are connecting to different servers. just use open -n https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man1/open.1.html but you do need to create a copy and give it a ClientLocal folder if you need to

Re: Packages-building an installer

2017-07-11 Thread Keisuke Miyako via 4D_Tech
I believe there are some nice applications that makes the process easier, but you can still use basic command line tools to deploy a built 4D desktop application for macOS. if you want to create an installer package, the steps are: 1. sign the application and move it to /Applications (locally)

Re: revelation! - Choose

2017-07-10 Thread Keisuke Miyako via 4D_Tech
"Choose" is a useful tool in specific cases but I would not use it everywhere. 1. unlike Case of~End case, Choose evaluates all expressions. for example you can do something like Case of :(Count parameters>0) //do something with $1 :(Count parameters>1) //do something with $2 :(Count

Re: Object Field Questions and Comments

2017-07-09 Thread Keisuke Miyako via 4D_Tech
but I think the term "hash table" has only been mentioned in describing how the keys are indexed stored, not the values. > 2017/07/10 13:48、David Adams via 4D_Tech <4d_tech@lists.4d.com> のメール: > So, do you know anything about the indexing scheme? Or anything about the > hash table?

Re: Object Field Questions and Comments

2017-07-09 Thread Keisuke Miyako via 4D_Tech
> 2017/07/09 20:00、David Adams via 4D_Tech <4d_tech@lists.4d.com> のメール: > > { > "date":"2017-01-01", > "items_total": 37, > "request_max": 12, > "request_min: 0 > } an object is not just an opaque container of JSON string. a date value is converted to ISO string (so it is larger, if you

Re: Object Field Questions and Comments

2017-07-09 Thread Keisuke Miyako via 4D_Tech
I don't think there is any difference between what you call text and binary, what you report sounds more like the difference between UTF-16 and UTF-8. technically, the 2:1 ratio you describe is variable, but I understand for all practical purposes in ASCII, you could say that it is pretty much a

Re: Automatic Font

2017-07-12 Thread Keisuke Miyako via 4D_Tech
some developer use $autofont:=OBJECT Get font(*;"") but $autofont:=_o_Font name(0) also works. but to set at runtime, I think it is better to OBJECT SET STYLE SHEET(*;"";Automatic style sheet) OBJECT SET STYLE SHEET(*;"";Automatic style sheet_additional) OBJECT SET STYLE

Re: CROP A PDF DOCUMENT

2017-07-14 Thread Keisuke Miyako via 4D_Tech
this might work https://github.com/miyako/4d-plugin-imagemagick documented here https://github.com/miyako/4d-plugin-imagemagick/blob/master/ImageMagick/06-32%20ImageMagick.pdf 2017/07/15 6:40、stardata.info via 4D_Tech <4d_tech@lists.4d.com>

Re: Arrays vs Object for Key/Value pair lookups

2017-07-17 Thread Keisuke Miyako via 4D_Tech
the "Find" commands accept wild cards and evaluate using collation algorithms (case-insensitive comparison plus some other locale specific rules) is it really fair to compare the two against object keys? > 2017/07/18 9:44、David Adams via 4D_Tech <4d_tech@lists.4d.com> のメール: > > * Sequential Find

Re: version of openssl in 15.4 mac

2017-07-17 Thread Keisuke Miyako via 4D_Tech
you could also... $version:="" $param:=Get database parameter(94;$version) but it is good to make it a habit of reading the release notes for every update. ** 4D Internet Users Group (4D iNUG) FAQ:

Re: Print Project Form

2017-07-16 Thread Keisuke Miyako via 4D_Tech
the command is called Print form, it can not be more obvious! http://doc.4d.com/4D-Language-Reference-15.4/Printing/Print-form.301-3273939.en.html > 2017/07/17 6:26、Robert Livingston via 4D_Tech <4d_tech@lists.4d.com> のメール: > Is it possible to print a project form?

Re: Collections in v16R4

2017-07-19 Thread Keisuke Miyako via 4D_Tech
you can open multiple windows using SDI, each with its own menu bar. but many developers who requested SDI support seem to have a single window app in mind. SDI is only available for engined applications. since SDI is not (yet) available in the design environment. for now, you can't quickly

Re: Image Export to Excel

2017-07-19 Thread Keisuke Miyako via 4D_Tech
the component was meant to be a simple demonstration of how one can call AppleScript and VBA from 4D. it was never meant to be an "out of the box" kind of production tool. if possible, you should consider writing your own script rather than using the component "as is". calling those segmented

  1   2   3   4   5   6   7   8   >