SCAN INDEX broken 18.0 client/server?

2020-02-13 Thread John DeSoi via 4D_Tech
Just started 18.0 client/server testing and was hoping to deploy sooner rather 
than later. But SCAN INDEX seems to be broken returning zero records in 
client/server mode. 

The other thing I'm not seeing is what I need to do with the users and groups 
directory.json for built client/server applications. It works with 4D Server 
from the default location but not a built server (my default user is missing). 
Does it have to be copied somewhere during the build process?

Anyone care to share their experience with 18.0 deployments? I'm especially 
interested in client/server developed with project (source) mode.

John DeSoi, Ph.D.

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

Re: Component methods not properly recognized in parent database

2020-02-13 Thread John DeSoi via 4D_Tech
What behavior are you expecting? I thought components from the host (even 
interpreted) are read only. 

4D does not do the right thing, but I thought the only thing it should do is 
maybe show the method preview in the explorer. It would be really nice to edit 
the component from the host, but I was not aware that ever worked in any way.


John DeSoi, Ph.D.


> On Feb 13, 2020, at 11:27 AM, Doug Hall via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> While in my main database, when I use a shared method from a component, the
> +K shortcut (Goto Definition) directs me to an object method of
> one of my parent database's input forms. How do I fix this? I've tried
> throwing away structure indexes, with no success. I'm now using v17.3

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

Re: Data file is locked

2020-02-13 Thread James Brown via 4D_Tech
> Sep 02, 2006; 3:35am — by Spencer Hinsdale 
> On
>  9/1/06 9:07 AM, "Pat Bensky" <[hidden email] 
> >
>  wrote: 
> 
> > Using 2004.4, OSX: 
> > 
> > I have a copy of a client's database. When I try to open it, using 4D or 4D 
> > Server, I get a message "You cannot open this database because the data 
> > file 
> > (or one of its segments) is locked". This is after entering the password. 
> > It 
> > doesn't have any segments (it's 19.8Mb) and it isn't locked. Any ideas? 
> > 
> 
> Pat, 
> 
> Did you Get Info on the file(s) and check Ownership and Permissions? 
> Changing the Owner to your User is worth a try.  Also, if it came on 
> read-only media like a CD, you might launch with the Option key again to 
> make sure you are using the copy on your hard drive. 
> 
> -Spencer 

Well Spencer, over 14 years after you posted this suggestion, it saved me!

Automatic overnight upload of my datafile to Amazon S3. Restored it to my 
Backup server and got the error about the database or one of its segments being 
locked.

In Terminal, ran:

sudo chown -R myusername:admin /path/to/my/datafile 

And all was good after that!

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

Code Signing Certificate issues

2020-02-13 Thread Paul Ringsmuth via 4D_Tech
I have a code signing certificate by the name of "Disability Representative 
Services LLC” and it is visible in the KeyChain Access app on my mac. The 
certificate works on the windows version of my application although it uses a 
different file which I have named something else like RepTools. 

Now I am attempting to code sign my mac version of RepToolsSSD3 with the the 
certificate named "Disability Representative Services LLC” and the build fails 
with the log showing a ton of errors that basically say" Application NO_ERR 0 
Signing tool return status: 0
Application NO_ERR 0 Signed file: error: The specified item could not be found 
in the keychain.

The certificate was purchased and Issued by: Sectigo RSA Code Signing CA.

Does code signing on the Mac require a certificate issued by Apple? 

I’m on v18.0 of 4D on mac Mohave. 

Paul Ringsmuth
pringsm...@charter.net



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

Re: Component methods not properly recognized in parent database

2020-02-13 Thread Doug Hall via 4D_Tech
Well, my component's name is "Foundation_561". (I've changed it a bunch,
but I never changed the name.)

On Thu, Feb 13, 2020 at 11:32 AM Justin Will  wrote:

> Doug,
>
> I recently had this and had to rename my components with sorter names with
> no spaces on the server.  Was it the shorter name or no spaces...I don't
> know I think it was removing the space but whichever it was it solved my
> problem.
>
> Thanks
> Justin Will
>
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Component methods not properly recognized in parent database

2020-02-13 Thread Doug Hall via 4D_Tech
While in my main database, when I use a shared method from a component, the
+K shortcut (Goto Definition) directs me to an object method of
one of my parent database's input forms. How do I fix this? I've tried
throwing away structure indexes, with no success. I'm now using v17.3

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

v18: bug in METHOD SET CODE?

2020-02-13 Thread Jeremy Roussak via 4D_Tech
I’m using METHOD SET CODE from a component to inject a callback method into the 
host. It’s worked well until now but in v18 it going wrong. The code 
(simplified) is

C_TEXT($hostName;$componentName;$code)
$componentName:="_injectedMethod"
$hostName:="injectedMethod"

METHOD GET CODE($componentName;$code)
METHOD SET CODE($hostName;$code;*)

The method _injectedMethod in the component contains a few lines of comments, 
for testing.

This code creates a method in the host, called injectedMethod, as it should; 
but the method is empty.

If I execute the METHOD SET CODE call a second time, it injects the code of 
_injectedMethod as it should,

Can anyone enlighten me, before I post a bug report?

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

Write PICT to disk, 64bit

2020-02-13 Thread Bill Hutten via 4D_Tech
Hi all: We have some 4D Write Pro documents that contain PICT (and other 
format) images. This code will give us a list of all images from the document:

$res := WP Get Elements($area; wk_type_image)

We would like to be able to write these images to disk - but PICTURE TO BLOB 
and WRITE PICTURE FILE both require a relevant codec, which of course for PICT 
does not exist in 64bit 4D. Does anyone have any idea how we might solve this 
problem?


Thanks

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

RE: Entity Selection Listbox with Image

2020-02-13 Thread Douglas Cryer via 4D_Tech
Update.

Having run many tests it would appear that I was experiencing some data issues 
possibly due to some internal data conversion.

Having reset all the thumbnail images in the table the awful lag that was being 
experienced when using an entity selection with a list box went away.  I then 
re-populated those thumbnails that were previously present and all was still 
good.

Classic (current selection) is still ever so slightly quicker on the scroll 
than entity selection but nothing to be worried about IMHO.

Bob Miller said:
I’m very interested in your approach to creating the generic listing.  Have you 
found a demo somewhere that shows how to do this?  I'm just opening the book on 
ORDA and this is one of the first projects I'd like to try, but am befuddled 
where to start.

What are the features of your generic listing?  What does it look like?  Can 
you share a bit about your spec and how you are going about creating this?

It is a bit too much for this list but maybe we could touch base offline.  4D 
showed a demo at the World Tour and I am sure someone else will be doing 
something at the Summit.  In short our approach is as follows:

We are writing as a component as it will eventually replace the existing 
"classic" Browser component that we have been using for many years.  We are 
using the project methodology as this works really well for writing components.
The interface is largely driven by a single window made up of:
- Side bar to list the tables
- Data list area which is populated based on what is selected from the sidebar
- Header/button area that is populated by buttons many of which have standard 
options mixed with actions governed by the host via callbacks

The component will require the host to have a single table to hold objects for 
the various tool elements such as:
- Saved searches to be used by the components search editor
- Saved views to allow the user to have multiple view definitions
- Saved selections to allow the user to save selections and manipulate them 
like sets via Venn diagrams
- Saved sorts to allow the user to apply a predefined sort to selection

So far we have been working on it in our spare time for less than a month so it 
is very early days.  We have a working model and are building out the 
functionality when we have a spare moment from our heavy workload.

Regards,  Dougie


telekinetix Limited- J. Douglas Cryer
Phone : 01234 761759  Mobile : 07973 675 218
2nd Floor Broadway House, 4-6 The Broadway, Bedford MK40 2TE
Email : jdcr...@telekinetix.com  Web : http://www.telekinetix.com 


 
 



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