Re: Question about storing data outside of datafile

2017-02-16 Thread Peter Bozek via 4D_Tech
On Thu, Feb 16, 2017 at 4:55 PM, G-Mail via 4D_Tech <4d_tech@lists.4d.com> wrote: > We programmed in the management of the files outside of the database. We > started doing this with 4D version 3.5 so we had to. We continued doing > this since it worked very well. There was no need for us to

Re: Question about storing data outside of datafile

2017-02-17 Thread Peter Bozek via 4D_Tech
On Thu, Feb 16, 2017 at 11:55 PM, G-Mail via 4D_Tech <4d_tech@lists.4d.com> wrote: > There is lots of decisions we made for our purposes, and there are > different ways to do things for sure. We had to meet various security > regulations therefore we changed some of the ways we did things over

Re: C-objects and memory use

2017-07-25 Thread Peter Bozek via 4D_Tech
On Tue, Jul 25, 2017 at 9:49 PM, Keith Culotta via 4D_Tech < 4d_tech@lists.4d.com> wrote: > It was mentioned at the introduction of CALL WORKER that not needing > global variables was somehow in the mix. Is C_Object the thing that > enables this? In other words, have a WORKER with a $myGlobals

Re: JSON Tools Was: Re: C-objects and memory use

2017-07-26 Thread Peter Bozek via 4D_Tech
On Wed, Jul 26, 2017 at 12:09 PM, Benedict, Tom via 4D_Tech < 4d_tech@lists.4d.com> wrote: > David Adams dpad...@gmail.com writes: > > >Well, 4D's tools for manipulating JSON are sub-standard, if your goal is > to parse/produce JSON freely. In this respect, the XML tools

Re: C-objects and memory use

2017-07-25 Thread Peter Bozek via 4D_Tech
On Tue, Jul 25, 2017 at 1:41 AM, Kirk Brooks via 4D_Tech < 4d_tech@lists.4d.com> wrote: > I want to make sure my understanding about how c-objects are handled in 4D > memory. Mainly because it seems this understanding is cobbled together from > a number of different sources few of which I can

POST with Server Name Indication

2017-05-10 Thread Peter Bozek via 4D_Tech
I am sending data to web server using POST protocol. Recently, web server changed its URL and attempts to send data resulted in error -403 with reason "The client software did not provide a hostname using Server Name Indication (SNI), which is required to access this server" It seems that the

Re: POST with Server Name Indication

2017-05-10 Thread Peter Bozek via 4D_Tech
On Wed, May 10, 2017 at 6:08 PM, Timothy Penner via 4D_Tech < 4d_tech@lists.4d.com> wrote: > > "The client software did not provide a hostname using Server Name > Indication (SNI), which is required to access this server" > > Did anybody run into this problem? > > Yes, here is a feature request

Bug when printing to preview on Mac

2017-05-17 Thread Peter Bozek via 4D_Tech
I run into strange behavior, probably bug, when printing from 4D v15.4. Maybe somebody has a feedback or workaround. I made a single printing code PRINT SETTINGS $l:=Print form("printTest") PAGE BREAK called from button script (printTest form fontain just one static test.) Clicking on button

Storing an using Print sttings

2017-06-22 Thread Peter Bozek via 4D_Tech
I have a database that use AP Print settings to BLOB / AP BLOB to print settings. After complains from users appeared recently, I did some testing, and found out that the commands do not work reliably. For example, using the same printer, on Mac I get about 20kB blob from AP Print settings to

Re: Storing an using Print sttings

2017-06-23 Thread Peter Bozek via 4D_Tech
On Fri, Jun 23, 2017 at 7:12 AM, Keisuke Miyako via 4D_Tech < 4d_tech@lists.4d.com> wrote: > There used to be a compatibility issue onWin10 and 15.2 (ACI0095543) > but that should be fixed now. > I believe I upgraded to lat 4D Pack(15.4 build 15.208269) before testing, but will retest again. --

Re: Help with Regex

2017-05-29 Thread Peter Bozek via 4D_Tech
On Mon, May 29, 2017 at 8:29 PM, Tim Nevels via 4D_Tech < 4d_tech@lists.4d.com> wrote: > $regexPattern_t:="what do I put here" > with a timi little bit of playing, $regexPattern_t:="SP_(\\D{3}|)(?>_|)(\\d{2})(\\d{2})(\\d{2})" catches prefix (INS) without "_". -- Peter Bozek

Re: Help with Regex

2017-05-29 Thread Peter Bozek via 4D_Tech
On Mon, May 29, 2017 at 8:29 PM, Tim Nevels via 4D_Tech < 4d_tech@lists.4d.com> wrote: > $regexPattern_t:="what do I put here" > Tim, Try SP_(\D{3}_|)(\d{2})(\d{2})(\d{2}) with properly escaped backslashes, it means regexPattern_t:="SP_(\\D{3}_|)(\\d{2})(\\d{2})(\\d{2})" This should catch for

Re: The language is letting you down (Was: Re: Custom comments: Lots of tips, more wanted!)

2017-06-05 Thread Peter Bozek via 4D_Tech
On Mon, Jun 5, 2017 at 11:15 AM, David Adams via 4D_Tech < 4d_tech@lists.4d.com> wrote: > In order of complexity: > I would add my favorite two: * return statement - yes, Pascal does not have a return statement, but it is so useful and need so little effort to implement that having 'clean'

Re: 4D and Sage

2017-06-13 Thread Peter Bozek via 4D_Tech
On Tue, Jun 13, 2017 at 1:17 PM, Pat Bensky via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Basically we need to: > - Extract data into our 4D database > - Push data from 4D to Sage > I did export of accounting info from 4D based CRM system to Sage (German). It is quite simple, export - import of

Time stamp with milliseconds

2017-09-20 Thread Peter Bozek via 4D_Tech
I would like to implement my own event logging with millisecond resolution - like 2017-05-12 20:52:50,147 to use for sorting of events. There is Milliseconds command, but thus provide information I need. If it is not possible, did somebody tested single alternative like incrementing global

Re: Time stamp with milliseconds

2017-09-20 Thread Peter Bozek via 4D_Tech
On Wed, Sep 20, 2017 at 10:03 AM, Christian Sakowski < christian.sakow...@heubach-media.de> wrote: > Why not using the command „Timestamp“? > It returns exactly what you need: > > Because I did not know this command exists. Thanks for pointing out. I look it is available from 16R2, project is not

Re: VOIP caller ID interface

2017-10-08 Thread Peter Bozek via 4D_Tech
On Sun, Oct 8, 2017 at 2:11 AM, Joe Dombroski via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Has anyone extracted caller ID from a VOIP phone and used it to open a > client record in 4D? > > > I am now solving same problem so would be interested in answer as well. I am able to communicate with

Re: VOIP caller ID interface

2017-10-08 Thread Peter Bozek via 4D_Tech
On Sun, Oct 8, 2017 at 8:10 PM, Nigel Greenlee via 4D_Tech < 4d_tech@lists.4d.com> wrote: > > I have been writing an interface to the Asterisk VOIP software(Using PHP). > At this point I am waiting for the client to decide how they want the > interface to work-if you are using Asterisk I can

Re: QUERY BY ATTRIBUTE is slow af

2017-09-13 Thread Peter Bozek via 4D_Tech
On Tue, Sep 12, 2017 at 11:07 PM, Jeffrey Kain via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Yeah, so many caveats to object fields. Bite the bullet, use a related > table... > > Well, I wrote that i am playing with it, Testing how it can be used, what commands are available and where are

Re: QUERY BY ATTRIBUTE is slow af

2017-09-12 Thread Peter Bozek via 4D_Tech
On Tue, Sep 12, 2017 at 7:10 PM, Herr Alexander Heintz via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Absolutely. > I exclusively use object fields for additional data and storage of > connected information to a specific data row, such as record and field > history, specific item settings etc. >

Re: Is it possible to put a SVG file directly on a form?

2017-09-26 Thread Peter Bozek via 4D_Tech
On Mon, Sep 25, 2017 at 12:51 AM, Kirk Brooks via 4D_Tech < 4d_tech@lists.4d.com> wrote: > or does it have to be converted to a picture? > > > > No, you can use SVG file as any other picture file (say PNG.) No need to manipulate it in 4D, though you can. -- Peter Bozek

Re: SVG add object question

2017-10-22 Thread Peter Bozek via 4D_Tech
On Sat, Oct 21, 2017 at 8:48 PM, Kirk Brooks via 4D_Tech < 4d_tech@lists.4d.com> wrote: > > For example: > > $svgImg:=SVG_Open_file ($path+$aDocs{$n}) > > $svg:=SVG_Copy ($svgImg) > $pic1:=SVG_Export_to_picture ($svg;0) > SVG_CLEAR ($svg) > > This works as expected. > > $svg:=SVG_New >

Re: 4D v6.8

2017-11-13 Thread Peter Bozek via 4D_Tech
On Mon, Nov 13, 2017 at 3:36 PM, Jody Bevan via 4D_Tech < 4d_tech@lists.4d.com> wrote: > > I need to convert a v 6.8 database up to v16. The problem I am > encountering is that there are components and possibly some plugins in the > structure. It has been so long ago that I dealt with that

Re: [Warning] Settings properties values on object field by object notation

2017-11-01 Thread Peter Bozek via 4D_Tech
On Wed, Nov 1, 2017 at 2:17 AM, Keisuke Miyako via 4D_Tech < 4d_tech@lists.4d.com> wrote: > > to explicitly indicate that the object has been modified, just use the line > > [myTable]myObjectField:=[myTable]myObjectField > YEs, I use wrapper around SAVE RECORD, so can put there

Re: Primary Key in 4Dv15

2017-10-24 Thread Peter Bozek via 4D_Tech
On Tue, Oct 24, 2017 at 11:49 AM, Ronnie Teo via 4D_Tech < 4d_tech@lists.4d.com> wrote: > > > Need to seek some advice in converting a client’s database from v11 to v15. > > For one of the tables, 4D reported that the primary key contains NULL > values upon conversion or that the primary key

Re: Bug reports?

2018-06-12 Thread Peter Bozek via 4D_Tech
On Mon, Jun 11, 2018 at 9:00 PM, Alan Chan via 4D_Tech <4d_tech@lists.4d.com > wrote: > Try > > http://forums.4d.com/Bugs/EN/ > > this just redirect me to http://forums.4d.com/MyHome/EN, so I gather it does this to non-partners too. -- Peter Bozek

Re: Difference between OB Copy and :=

2018-06-13 Thread Peter Bozek via 4D_Tech
On Wed, Jun 13, 2018 at 3:26 AM, johnbdhPop via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Thanks Cannon, > > So maybe I want to use OB Copy when I load the record in an input > form. That way I can make changes to the object without changing the object > in the field. That way if the user

Re: Creating .docx files

2018-01-18 Thread Peter Bozek via 4D_Tech
On Thu, Jan 18, 2018 at 12:39 PM, Pat Bensky via 4D_Tech < 4d_tech@lists.4d.com> wrote: > > If the two folders (Brownies and Brownies-CB) contain the exact same > contents, why would one work and the other, not? > > Note - there is one hidden file in the package and I checked to make sure > that

Re: Document capture

2018-01-25 Thread Peter Bozek via 4D_Tech
On Thu, Jan 25, 2018 at 6:39 PM, Kenneth Geiger via 4D_Tech < 4d_tech@lists.4d.com> wrote: > > If any of you have done something similar, I would really appreciate any > feedback on my approach and would welcome any suggestions, pseudo-code, or > code that you would be willing to share. > We did

Re: "Goodbye 4D Write" email

2018-02-01 Thread Peter Bozek via 4D_Tech
On Thu, Feb 1, 2018 at 3:53 PM, Herr Alexander Heintz via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Come on you plugin developers, give us a real Word processing Plugin and > there will be a market for it. > Sadly this kind of development is out of my league, or i’d do it. > > > > Definitely, do

Re: Picture in PagePro

2018-02-12 Thread Peter Bozek via 4D_Tech
On Mon, Feb 12, 2018 at 9:28 PM, David Ringmsuth wrote: > Peter, > > > > After opening the graphic, we must select a “Format” that makes it visible. > > > > It is working! > > > > THANKS!! > > > > David Ringsmuth > > > David, I was testing various images to find the problem,

Re: PagePro picture

2018-02-09 Thread Peter Bozek via 4D_Tech
David, I am looking at that problem, will let you know as soon as I know more. Peter Bozek On Fri, Feb 9, 2018 at 4:47 PM, David Ringsmuth via 4D_Tech < 4d_tech@lists.4d.com> wrote: > 4D v15.4 > PagePro 1.4.2 ©2009-2015 > Windows 10 > Source code > > I’m trying to add a picture to a PagePro

Re: text2picture

2018-02-14 Thread Peter Bozek via 4D_Tech
On Wed, Feb 14, 2018 at 11:06 AM, Jörg Knebel via 4D_Tech < 4d_tech@lists.4d.com> wrote: > > > On 14 Feb 2018, at 21:03 AEDT, Herr Alexander Heintz via 4D_Tech < > 4d_tech@lists.4d.com> wrote: > > > > But why not use SVG if available? > > Its blinding fast > > > I’ll take a look into it. > Long

Re: Electronic Signature Pads

2017-12-28 Thread Peter Bozek via 4D_Tech
On Thu, Dec 28, 2017 at 12:57 AM, Jim Crate via 4D_Tech < 4d_tech@lists.4d.com> wrote: > > The ScripTel also integrates with Adobe Reader for cryptographically signing PDF documents, if that’s necessary. I used 4D to create a PDF, launch Adobe Reader with that PDF, monitor the file for an

Re: just a curiosity - pre emptive threads

2018-07-12 Thread Peter Bozek via 4D_Tech
On Thu, Jul 12, 2018 at 8:11 AM Alan Chan via 4D_Tech <4d_tech@lists.4d.com> wrote: > Simply put, preemptive triggers are not for client/server operations even > all the codes are preemptive-compliant. > > - data entry UI and do entry data > - click a button call a method that contains SAVE

Re: just a curiosity - pre emptive threads

2018-07-12 Thread Peter Bozek via 4D_Tech
On Thu, Jul 12, 2018 at 11:47 AM Alan Chan via 4D_Tech <4d_tech@lists.4d.com> wrote: > I'm a bit confused. > > When I just call SAVE RECORD in data entry form (cooperative process), I > was told it's not OK because it's from a process that have UI. Now, your > latest reply claimed it's OK. Or

Re: just a curiosity - pre emptive threads

2018-07-12 Thread Peter Bozek via 4D_Tech
On Thu, Jul 12, 2018 at 1:57 PM Jeffrey Kain via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Does it make sense for most triggers? Usually you want to know for sure > that code in a trigger has completed before doing anything else in the > table/process, which is kind of the opposite of a preemptive

Re: Collections

2018-03-22 Thread Peter Bozek via 4D_Tech
On Thu, Mar 22, 2018 at 1:16 AM, John DeSoi via 4D_Tech < 4d_tech@lists.4d.com> wrote: > In the 4D case and in the cases below (plus PHP), I suspect a collection > is really just an "object" (hash table) with numeric keys instead of string > keys. For example, if I write > > $collection := New

Re: Scope of entity selection

2018-10-18 Thread Peter Bozek via 4D_Tech
On Thu, Oct 18, 2018 at 2:30 PM Christian Sakowski < christian.sakow...@heubach-media.de> wrote: > > > I did not find a way how to do a shared collection from selection, > > You don’t need this. Just pass the object into the process. The object will be copied. > If you have performance problems,

Re: Shared Object - NOT!

2018-10-22 Thread Peter Bozek via 4D_Tech
On Mon, Oct 22, 2018 at 5:10 PM Keith Culotta via 4D_Tech < 4d_tech@lists.4d.com> wrote: > If a method creates an object ($no:=new object), the object is destroyed > when the method ends? > and > if a method creates a new shared object ($nso:=new shared object), the > object continues to exist

Re: Shared Object - NOT!

2018-10-21 Thread Peter Bozek via 4D_Tech
On Sun, Oct 21, 2018 at 6:29 AM Keisuke Miyako via 4D_Tech < 4d_tech@lists.4d.com> wrote: > > the best way to share an object or collection between processes is to pass a shared object or shared collection as a parameter. > there is no need to use Storage, there is no need to use interprocess

Re: Shared Object - NOT!

2018-10-21 Thread Peter Bozek via 4D_Tech
On Sun, Oct 21, 2018 at 12:41 PM Keisuke Miyako via 4D_Tech < 4d_tech@lists.4d.com> wrote: > you will probably not like my answer, but here goes. > > for creating a shared collection from a 4D array, > ARRAY TO COLLECTION has a special syntax that does just that. > the trick is to pass a New

Re: Shared Object - NOT!

2018-10-21 Thread Peter Bozek via 4D_Tech
On Sun, Oct 21, 2018 at 7:36 PM Kirk Brooks via 4D_Tech < 4d_tech@lists.4d.com> wrote: > > > Personally I have a lot of concepts about how to do code operation in 4D > that are strongly rooted in what it was possible to do in 4D. ORDA > frequently goes in a different direction and the optimal

Re: Scope of entity selection

2018-10-18 Thread Peter Bozek via 4D_Tech
On Sat, Oct 13, 2018 at 10:29 PM Christian Sakowski via 4D_Tech < 4d_tech@lists.4d.com> wrote: > > > like: > $object.myIDs:=$entitySelection.toCollection("ID“).extract(„ID“) > new process(…;$object) > > and in the new process just create the new entity selection: > > ds.Table.query(„ID IN

Re: Scope of entity selection

2018-10-13 Thread Peter Bozek via 4D_Tech
On Sat, Oct 13, 2018 at 10:29 PM Christian Sakowski via 4D_Tech < 4d_tech@lists.4d.com> wrote: > $object.myIDs:=$entitySelection.toCollection("ID“).extract(„ID“) > new process(…;$object) > > and in the new process just create the new entity selection: > > ds.Table.query(„ID IN :1“;$object.myIDs)

Scope of entity selection

2018-10-13 Thread Peter Bozek via 4D_Tech
This may be related to other thread - Defining and documenting objects - as it is related to scope of new objects: I am playing a bit with 4D v17, and, if I understand it correctly, I can pass around shared objects and shared collection between processes (and workers, but I am not that far yet.)

Re: ORDA Entity From

2018-10-23 Thread Peter Bozek via 4D_Tech
On Tue, Oct 23, 2018 at 10:23 PM Dennis, Neil via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Is there a way to determine where an entity is from? In the debugger it > shows in the value "Entity () from ", but I can't fine a way to > get using a method from code. Does such a method exist? > > Neil

Re: 2 Factor Authentication

2018-09-19 Thread Peter Bozek via 4D_Tech
On Wed, Sep 19, 2018 at 7:49 PM Timothy Penner via 4D_Tech < 4d_tech@lists.4d.com> wrote: > > Did you go to the 4D Summit? > > If so, then you should have access to this: > http://kb.4d.com/assetid=78020 > > - Hmm, I went to Summit in Paris and do not have access to the article. -- Peter

Re: Coding/Development Style Guide?

2018-12-16 Thread Peter Bozek via 4D_Tech
On Sun, Dec 16, 2018 at 10:15 PM B.Bippus via 4D_Tech <4d_tech@lists.4d.com> wrote: > Begin each variable name with a character to specify what type it is: > · String: s > · Text: t > · Boolean: y > > To add the Variable Type to the Variablename is a big help. I started many > years

Re: [off-ish] Regex help

2018-11-28 Thread Peter Bozek via 4D_Tech
On Wed, Nov 28, 2018 at 7:30 PM Chip Scheide via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Thanks Kirk, > > According to Wiki : > . - matches any single character > ( ) - defines a marked subexpression > * - matches the preceding element zero or more times > so... as I read the definitions... >

Re: not enough space in memory

2019-04-16 Thread Peter Bozek via 4D_Tech
On Tue, Apr 16, 2019 at 8:15 PM Peter Mew via 4D_Tech <4d_tech@lists.4d.com> wrote: > Hi > I'm trying to load a large, 1.5G, audio file into a blob using document to > blob, and Im getting a not enough spce in memory error. I can load a file > that is 1G ok. > Is there a setting I can change to

Dialog (;*) question

2019-06-25 Thread Peter Bozek via 4D_Tech
I maybe already asked this question, but anyway I am still a bit confused: I wanted to use DIALOG with * as an additional parameter, but have problem to make it work. I have app that display several info windows - like palettes, progress messages, communication statuses etc.Currently, I often

Re: Dialog (;*) question

2019-06-25 Thread Peter Bozek via 4D_Tech
with are actually references and 4D is super optimized for working > with this. > > Hope this helps. > > On Tue, Jun 25, 2019 at 6:45 AM Peter Bozek via 4D_Tech < > 4d_tech@lists.4d.com> wrote: > > > I maybe already asked this question, but anyway I am still a bit

Re: Encrypt & decrypt blobs

2019-04-20 Thread Peter Bozek via 4D_Tech
Chip, How you found that text is 2 bytes longer? If you wrote the text to file, 4D would put BOM before text, which is 2 bytes. Normally, BOM is used by text editors and is not displayed, to check if there is BOM prepended I had to use hex editor and look at the file. While most text editors

Re: _ as first character in Method Name [was 64 bit...]

2019-08-20 Thread Peter Bozek via 4D_Tech
On Mon, Aug 19, 2019 at 9:58 PM Keisuke Miyako via 4D_Tech < 4d_tech@lists.4d.com> wrote: > 4D already uses some private property names, > > e.g. > > __LockerID > __NEW > __KEY > > > https://doc.4d.com/4Dv17R5/4D/17-R5/dataClassfromCollection.305-4128671.en.html > >

Re: 4D 2003 export structure

2019-09-04 Thread Peter Bozek via 4D_Tech
This is method I used in older version of 4D, not sure if it will work in 4D 2003 but it should: // == //exporting procedure for structure C_TIME($refNum) C_STRING(3;$cr;$tb) C_STRING(31;$s) C_LONGINT($table;$field;$len;$type;$ot;$of;$cf)

Re: v17 obsolete commands SET DOCUMENT CREATOR / SET DOCUMENT TYPE

2019-08-08 Thread Peter Bozek via 4D_Tech
Dňa št, 8. aug 2019, 7:13 Jörg Knebel via 4D_Tech <4d_tech@lists.4d.com> napísal(a): > G’day All, > > Does someone has already developed a replacement (LEP or other) for both > platforms? > I believe they are obsolete as they are no longer used and supported by macOS and document type is defined

Re: FORMAT NUMBER

2019-08-06 Thread Peter Bozek via 4D_Tech
Dňa ut, 6. aug 2019, 0:31 Chuck Miller via 4D_Tech <4d_tech@lists.4d.com> napísal(a): > Read my previous note. You will need to convert the array to text array > and fill as a formatted number using code I already supplied > Format "### ###. 00;### ###. 00;" (format for positive, negative, zero)

Re: [repost - desperate]What runs before ON STARTUP?

2019-10-01 Thread Peter Bozek via 4D_Tech
On Tue, Oct 1, 2019 at 5:11 PM Chip Scheide via 4D_Tech < 4d_tech@lists.4d.com> wrote: > > > I am at a loss. > > Any plugins? They are initialised before On startup runs. -- Peter Bozek ** 4D Internet Users Group (4D iNUG)

Re: Difference between loading a compiled and interpreted component

2019-10-02 Thread Peter Bozek via 4D_Tech
On Wed, Oct 2, 2019 at 7:37 PM Chip Scheide via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Repair, Compact, Repair of Host structure, and Repair of Host data file > Does not solve the problem. > > Chip > This is rather very far-fetched idea, but once I run into similar problems when I had a

Edit menu support in ListBoxes

2019-11-05 Thread Peter Bozek via 4D_Tech
I would like to implement Edit menu functionality in ListBoxes, where user would be able to copy lines and paste it into different listbox. However, it seems that 4D handles enabling / disabling of edit menu and I have not find a way how it could be overridden. A workaround would be to do a

Re: Trapping the 'return' key in list forms

2019-12-03 Thread Peter Bozek via 4D_Tech
Sorry to enter the thread late, but tried to implement similar functionality several years ago. Ended up with variable set in On getting / on loosing focus. Button that handled Enter checked value of the variable and either processed script or saved record. Final implementation was more complex,

Re: How one does RELATE MANY with ORDA

2019-10-21 Thread Peter Bozek via 4D_Tech
On Mon, Oct 21, 2019 at 9:39 AM Christian Sakowski < christian.sakow...@heubach-media.de> wrote: > Normally, just call entity.reload() to refresh an entity and its related > selections. > -- > > That would work, but wanted to avoid that as I would loose changes done to the edited record, or

Re: Web Area, 4D method Parameters

2019-11-11 Thread Peter Bozek via 4D_Tech
On Mon, Nov 11, 2019 at 10:29 PM Mitchell Shiller via 4D_Tech < 4d_tech@lists.4d.com> wrote: > > > BUT, $1 is blank. Anyone know why $1 does not pick up the “Row 1” or “Row > 2”? > > Thanks. Probably pretty basic but I am very novice with HTML. > > It probably should be -- Peter Bozek

Re: selecting pixels

2019-10-10 Thread Peter Bozek via 4D_Tech
On Thu, Oct 10, 2019 at 2:57 PM Peter Mew via 4D_Tech <4d_tech@lists.4d.com> wrote: > Thanks > Could you expand a bit on your reply > Thanks > -pm > What exactly you want to achieve? You want to allow user to drag something or draw on screen? Over some area, or outside the 4D window as well?

Re: v15 - Array Object and Append array

2019-10-03 Thread Peter Bozek via 4D_Tech
On Thu, Oct 3, 2019 at 10:55 PM Chip Scheide via 4D_Tech < 4d_tech@lists.4d.com> wrote: > ok.. > why does this not work??? > > in a loop > For ($i;1;$Column_Count) > INSERT IN ARRAY($Columns;1) > OB SET($Columns{$i};) > end for > How it could? Line INSERT IN ARRAY($Columns;1) tries to

Re: v15 - Array Object and Append array

2019-10-03 Thread Peter Bozek via 4D_Tech
On Thu, Oct 3, 2019 at 10:26 PM Chip Scheide via 4D_Tech < 4d_tech@lists.4d.com> wrote: > is it possible to use append array with an object array? > > I forgot - append to array works fine as well: ARRAY OBJECT($ao;0) C_OBJECT($o) OB SET($o;"property";$value) APPEND TO ARRAY($ao;OB COPY($o)) OB

Re: v15 - Array Object and Append array

2019-10-03 Thread Peter Bozek via 4D_Tech
On Thu, Oct 3, 2019 at 10:26 PM Chip Scheide via 4D_Tech < 4d_tech@lists.4d.com> wrote: > is it possible to use append array with an object array? > > Sure, I started to use it in v15 and code seems to be working in v17 without problem > I was playing, and I do not see a way to get this to

Re: stack error - again

2019-10-11 Thread Peter Bozek via 4D_Tech
Again giant PITA, I know, but what other choices do you have? > > if it is a machine specific problem, rebuilding structure may not help. More useful may be to reinstall system - which is PITA, too. What may help in such case (and is still PITA) is install Win developer tools. Then crash should

Re: SVG Eetracted to clip or png

2020-02-28 Thread Peter Bozek via 4D_Tech
Just use a XML commands and copy the node to another SVG files. AS SVG files are XML documents, you can use any XML DOM commands to manipulate SVG files. Something like $group:=DOM Find XML element by ID(oldSVGImage;$groupID) If (OK=1) $newEl:=DOM Append XML element(newSVGImage;$group) end if

Re: SVG Extracted to clip or png

2020-02-28 Thread Peter Bozek via 4D_Tech
On Fri, Feb 28, 2020 at 5:50 PM John J Foster via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Hi Peter, > > Ah yes thanks, I tend to forget that an SVG doc is in XML format. > > Sometimes the solution winds up being so simple in 4D. > > If the SVG doc uses for displaying various glyphs in the

Re: What is equivalent to SELF when a form object's "variable or expression" is an object attribute?

2020-02-04 Thread Peter Bozek via 4D_Tech
I believe this is related to other topic that was discussed here, namely that you cannot get pointer to object properties. So there is no way how to get a pointer pointing to Form.LB.Browser.en_edit.FirstName. As you noticed, you can still manipulate such form objects with commands that accept

Re: What is equivalent to SELF when a form object's "variable or expression" is an object attribute?

2020-02-05 Thread Peter Bozek via 4D_Tech
On Wed, Feb 5, 2020 at 7:04 PM Add Komoncharoensiri via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Just a little modification from Peter's code > > Instead of defining an object attribute in the Variable and Expression, > leave it blank so 4D will generate a dynamic variable for it. In the object >

Re: What is equivalent to SELF when a form object's "variable or expression" is an object attribute?

2020-02-05 Thread Peter Bozek via 4D_Tech
On Tue, Feb 4, 2020 at 9:58 PM Chris Belanger via 4D_Tech < 4d_tech@lists.4d.com> wrote: > > So I had to resort to creating a FORMULA OBJECT that gets executed to do > the update of the .storeLoc > > $formula:=Formula from string($storeLoc+":="+Qu ($UUID)) // $storeLoc is > the full ‘path’ of

Re: Dates and 4 digit years.

2020-01-17 Thread Peter Bozek via 4D_Tech
On Fri, Jan 17, 2020 at 10:33 PM Eric Naujock via 4D_Tech < 4d_tech@lists.4d.com> wrote: > I am running with 4d V17R5 and am seeing some odd date behaviors. When I > search for a record with a date prior to 1921 I get all records in the > database. Though most of the records are have dates newer

Re: Reading and writing large arrays to disk

2020-01-06 Thread Peter Bozek via 4D_Tech
Mitch, If the speed is the issue, you may try to write/read array elements to disk using SEND PACKET / RECEIVE PACKET. If you want to speed up reading, insert number of elements into first line, like Create document SEND PACKET(file;Size of array(arrayElement)+"\n") loop for all elements in

Re: Active Listbox/Form while listbox dynamically built

2020-03-09 Thread Peter Bozek via 4D_Tech
We did something similar with colleague, some time ago, not in 4D, but idea would be similar: 1. we initialised arrays to proper size (amount of data was know beforehand). At that moment, user would see an area with empty lines 2. we run a process that calculated the lines and updated arrays and

Re: Active Listbox/Form while listbox dynamically built

2020-03-09 Thread Peter Bozek via 4D_Tech
On Mon, Mar 9, 2020 at 4:46 PM John J Foster via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Hi Olivier, > > I think I’m so use to thinking of a process, aka CALL WORKER, as being > independent. The variables are of the process. So in this case that would > have to mean that the listbox and arrays

Re: Active Listbox/Form while listbox dynamically built

2020-03-09 Thread Peter Bozek via 4D_Tech
On Mon, Mar 9, 2020 at 5:52 PM John J Foster via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Hi Peter, > > I haven’t used CALL WORKED/CALL FORM yet. I’ve seen some tutorials by John > Baughman which made sense when I watched them. But a different context I > think. > > Idea is as follows: you cannot

Re: Active Listbox/Form while listbox dynamically built

2020-03-09 Thread Peter Bozek via 4D_Tech
On Mon, Mar 9, 2020 at 6:22 PM John J Foster via 4D_Tech < 4d_tech@lists.4d.com> wrote: > > Ref: "An easier way to think of CALL FORM is to look at it as the old ON > OUTSIDE CALL event in a form, but with the added bonus of being able pass > data to the form as parameters from the calling

Re: Longitude Index: B-Tree or Cluster

2020-04-14 Thread Peter Bozek via 4D_Tech
John, I do not think using text for dat that can be represented by number is a good idea. It require more memory - do not forget that Unicode uses 2 bytes for each character - and manipulation of bigger data structures is slower, but, especially, string manipulation, including comparison,

Re: Longitude Index: B-Tree or Cluster

2020-04-21 Thread Peter Bozek via 4D_Tech
On Tue, Apr 14, 2020 at 11:12 PM Tim Nevels via 4D_Tech < 4d_tech@lists.4d.com> wrote: > > > traversed. That make a perfect sense for foreign key indexes - when > loading > > 1-record, you have immediately a selection of N-records available, and > you > > (almost) never do a search for range of

Re: Worker and UI

2020-03-27 Thread Peter Bozek via 4D_Tech
On Fri, Mar 27, 2020 at 5:29 PM Jeremy Roussak via 4D_Tech < 4d_tech@lists.4d.com> wrote: > v18.1, Mac > > What can a worker process do by way of UI? Are there any restrictions? > I am not sure what you want to achieve, but yes, there is a restriction: no UI for worker. None. Worker cannot

Re: Worker and UI

2020-03-27 Thread Peter Bozek via 4D_Tech
On Fri, Mar 27, 2020 at 8:01 PM Douglas von Roeder wrote: > Peter: > > "Worker cannot display anything.” > Why do you say that? > My understanding of a worker is a process that can (potentially) run on different core or processor - what means, communicating with other processes with messages

Re: Worker and UI

2020-03-27 Thread Peter Bozek via 4D_Tech
On Fri, Mar 27, 2020 at 9:14 PM Douglas von Roeder wrote: > Peter: > > "My understanding of a worker is a process that can (potentially) run on > different core or processor - what means, communicating with other > processes with messages only, limited ability to share data, no > interprocess

Re: Using the length parameter in a ORDA query.

2020-04-27 Thread Peter Bozek via 4D_Tech
On Mon, Apr 27, 2020 at 6:54 PM Eric Naujock via 4D_Tech < 4d_tech@lists.4d.com> wrote: > I am trying to preform an unusual query. I em effectively thing to find > all the records in a parent where the parent has children. Any suggestions > other than build a collection of records primary keys

Re: Using the length parameter in a ORDA query.

2020-04-27 Thread Peter Bozek via 4D_Tech
On Mon, Apr 27, 2020 at 8:19 PM Eric Naujock wrote: > Thanks Peter. > That could be considered but the part I asked about was only part of the > query, In reality it had more parts to the query. Where essayWordCount is > an long integer. > > $records:= ds.Parent.query (“essayWordCount >100 and >

Re: V18 ORDA — What is the Best substitution option for BLOB fields

2020-04-24 Thread Peter Bozek via 4D_Tech
Look at BASE64 ENCODE / DECODE https://doc.4d.com/4Dv17/4D/17.4/BASE64-DECODE.301-4882388.en.html Peter Bozek On Fri, Apr 24, 2020 at 9:05 AM Chris Belanger via 4D_Tech < 4d_tech@lists.4d.com> wrote: > ORDA does not support BLOB fields. So I need a different way of storing > things that would

Re: Drag and drop replacement command(s)?

2020-09-14 Thread Peter Bozek via 4D_Tech
On Mon, Sep 14, 2020 at 12:35 AM Keith Goebel via 4D_Tech <4d_tech@lists.4d.com> wrote: > > So, if I am understanding you correctly, we need to replace the command with: > - create an object during On Begin Drag Over (source object) > - store the source listbox variable (pointer/name?) and its

Re: SFTP & PGP Encryption

2020-10-13 Thread Peter Bozek via 4D_Tech
On Wed, Oct 14, 2020 at 3:03 AM Tarawerkz via 4D_Tech <4d_tech@lists.4d.com> wrote: > 1. to provide an external facing SFTP through which the enterprise SAP can > connect to ? SFTP is a protocol running under SSH, and while 4D contains OpenSSL library, to provide SSH functionality is far

4D View Pro question

2020-07-12 Thread Peter Bozek via 4D_Tech
Or rather, two: I play with conversion of 4D View to 4D View pro, and while it seems it goes OK, I run into one problem: in 4D View it was to possible to set column headers with PV SET COLUMN HEADER call. I did not found the way how to set column headers in View Pro, and did not found a way how to

Re: Attempt to read beyond end of stream

2020-12-03 Thread Peter Bozek via 4D_Tech
On Thu, Dec 3, 2020 at 4:59 PM Tarawerkz via 4D_Tech <4d_tech@lists.4d.com> wrote: > > Thanks Chip, > > I’ll try that, hopefully can find a version from not too far back. > > Any idea what could have caused this? My info is not very recent, but few years ago I analysed structure of data and

Re: 4D scanning

2021-06-19 Thread Peter Bozek via 4D_Tech
On Thu, Jun 17, 2021 at 5:55 PM Peter Mew via 4D_Tech <4d_tech@lists.4d.com> wrote: > Hi > I havent done any of this for a while so Im a bit! rusty. > I looking to download Miyakos twain plug in, Where do I find it? or is > there a better plugin that will capture scans and work with 4D v13 mac

Re: [4D v18.3; Mac {10.13.6} + {10.15.7}] LEP-voodoo

2021-03-04 Thread Peter Bozek via 4D_Tech
On Thu, Mar 4, 2021 at 1:59 PM Jörg Knebel via 4D_Tech <4d_tech@lists.4d.com> wrote: > > $FoDoPath:=Get 4D folder(Current resources folder) > $FoDoPath:=Convert path system to POSIX($FoDoPath) > > $cmd:=$FoDoPath+"./imagesnap -w 2.0 " Jörg, what seems suspicious to me is the "./" in above. "./"

Re: Search & menu questions

2021-10-29 Thread Peter Bozek via 4D_Tech
On Fri, Oct 29, 2021 at 1:25 AM Stephane Potvin via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Hello all. > > Hoping someone can help me. > > I have two questions. > > 1. My partner provides piano tuning services and I built a DB for us to > keep track of her clients, their pianos, and the