Re: 4D Backup causes 4D Remote to hang (15.4)

2017-11-17 Thread Perkins, Bradley D via 4D_Tech
Still having problems. Based on various email notifications, I can see
that the scripts that under past OS versions would reliably restart 4D are
trying to do so, but w/o success. I don't know why they fail, but can see
they are repeatedly trying. That continues until I remotely access the
Mac. At that point the next scheduled run of the script succeeds.

If I try to run these scripts via SSH they don't succeed. I have to launch
Apple Remote Desktop.
I also have a password protected PHP app running on that server that
allows me to kill a hung 4D from my phone. That doesn't work during these
problem periods either.

It seems like this points to a power management issue, but pmset -g would
indicate that everything is set as it should be. I did not mention it
earlier, but this Mac Mini sits in a rack and hooked to a KVM. It normally
doesn't have a display.

Are any others running v15.4 (or v15.5) 4D Remote on Mac OS High Sierra
successfully? Or, if you are running it and having problems, what are they?

Thanks,

Brad Perkins



On 11/15/17, 5:13 PM, "Perkins, Bradley D"  wrote:

>Thanks Chuck,
>
>I've reset the backup by deleting preferences. I also modified my scripts
>to use kill -9 instead of killall. Hopefully this will improve the
>situation. I should know overnight.
>
>-- Brad Perkins
>
>On 11/14/17, 1:00 PM, "4D_Tech on behalf of 4d_tech-requ...@lists.4d.com"
><4d_tech-boun...@lists.4d.com on behalf of 4d_tech-requ...@lists.4d.com>
>wrote:
>
>I would quit 4D server, delete preferences and recreate using menu
>commands
>re backup. Perhaps that us trhe problem. Also check where the backup
>is
>going to if a HD try a different location
>
>Regards and hiope this helps
>Chuck
>

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

Re: Drop Down Menu Form Event

2017-11-17 Thread Kirk Brooks via 4D_Tech
Jim,
I use On click as well, but I rarely use dropdowns that are enterable
(combo lists). In that case you want to recognize the data change event to
do whatever in that case. Or turn off the On data change event and make the
list non-enterable so you only have On clicked events to handle.

As far as 'causing' other events On click doesn't do that but it does
register on the form itself. So, when you click a button the button object
fires an On click event if you have that event enabled for it. After the
button method runs the On click event is passed on to the form method and
if you have On click enabled on the FORM that method runs.

I suggest you figure out which events you need by turning them all off and
then enabling the ones you need. By default 4D enables a lot of form
events. It's a holdover from the ancient event scheme of
Before/During/After from a long time ago. As a default they want a form or
object to behave more or less like one did back then. And that's OK I
suppose but it leads to cases of developer FE-FOMO (form event-fear of
missing out). That is, fear that by turning off events our forms will
somehow stop working.

I argue to look at it the other way - start blank and enable the events you
actually need to accomplish the form's goal. On load is almost always a
good idea on a form. I usually prefer to initialize all my form objects
from the form method rather than enable On load for individual form
objects. Just a preference. So I generally don't enable On load for form
objects. For buttons, lists and such it's On click unless I'm being fancy
with something like On drop. That's pretty much it unless I have a specific
need in which case I enable what I need - On timer, On resize, and so on.

The form itself usually gets On load, On clicked, On outside call, On data
change, On loosing focus. That will cover you most of the time. The form
method might look like this:

Case of

:(Form event = On Load) //  initialize, load lists etc.


:(Form event = On outside call) //  respond


End case

//  this code will run for every event enabled on the form

//  I use this area for code to manage the look and state of form objects

OBJECT SET VISIBLE(*;"someObject_@";$visible)
OBJECT SET ENTERABLE(*;"someObject_@";$enterable)


From there turn on what you need and update the code to accommodate it. I
like to do things like manage form objects visible, enabled, enterable
settings after evaluating the specific event but that's my preference and
style. That's why I have things like On clicked and On loosing focus
enabled on the form but don't specifically evaluate them in the form method
(or enable them on the form objects) - they trigger updates of the form
display in response to whatever the user might have done.

Final thing to remember is enabling an event on a form isn't required to
enable it on an object. And enabling an event on a object doesn't cause the
form to respond to it.

On Fri, Nov 17, 2017 at 7:31 AM, Jim Medlen via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> What is the best Form Event to use with a Drop Down Menus on a form ?
>
> Is it better to use On Clicked or On Data Change ?
>
> Does On Clicked cause multiple form events when used with a Drop down Menu
> ?
> (when opening the menu and when selecting a choice from the menu)
>

-- 
Kirk Brooks
San Francisco, CA
===

*The only thing necessary for the triumph of evil is for good men to do
nothing.*

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

Apache Kafka

2017-11-17 Thread Douglas Cryer via 4D_Tech
Hi all,

Has anyone had any experience communicating to an Apache Kafka service for 
sending or receiving data?

If so how did you do this and what were your experiences (if willing to share).

I will be needing to do this next year and wanted to get the jump on it...

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)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: v13 - Plugin inside component

2017-11-17 Thread Tim Nevels via 4D_Tech
On Nov 17, 2017, at 9:33 AM, Chip Scheide wrote:

> The host after completion of the component will not be in my control.
> 
> to install a plugin...
> the component will need to have a table - with a blob. In the blob will need 
> to be the plugin.
> 
> upon initialization of the component I can:
> check to see if the plugin is already installed
> if not
> blob to document into the plugins folder for the host (creating the plugins 
> folder for the host if needed)
> then create a shortcut/alias to the newly installed plugin inside the 
> component's plugin folder (which I will have to create as it will not be 
> there in a compiled/built component)
> then force a restart of the host so the plugin is loaded -- users will love 
> that...
> 
> - how do I find the component database (to create the shortcut/alias)
> - I do not have a language reference at hand - is there a command to create 
> an alias/shortcut?

Chip,

The fact of the matter is that when you create a component that uses a plugin, 
any plugin, installing the component in a host database has an additional step. 
That’s just how it is. Always been that way. There is really no way to simplify 
it. It is an install issue. 

When you develop the component you need the plugin in the component’s Plugins 
folder. But when you install the component in a host database the component can 
only access plugins that are in the host databases Plugins folder. 

Component work has two modes of operation. Development of the component all by 
itself. Then later component usage in a host database. Each has different 
considerations. And to use the component in a host requires installation. And 
that installation has an addition step if you use plugins from the component. 

You say “then force a restart of the host so the plugin is loaded -- users will 
love that…”. Users are never involved in any of this. Only a 4D Developer can 
install a component. And all 4D Developers know about plugins. So your “users” 
are really 4D Developers. Once the 4D Developer installs the component and 
installs any necessary plugins in the host Plugins folder all the work is done. 
It’s a one time thing.

The install instructions are this:

1. Put the component in the “Components” folder of the host.
2. Put the plugin in the “Plugins” folder of the host. 

When you deliver the component it will not have the plugin inside the 
component. It will be outside all by itself. So that the “user”, the 4D 
Developer, will see 2 items and your install instructions will tell them what 
to do. This is not a big deal.

I think you are spending too much time trying to automate something that really 
does not need to be automated. 

Tim


Tim Nevels
Innovative Solutions
785-749-3444
timnev...@mac.com


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

mirror set up

2017-11-17 Thread Chuck Miller via 4D_Tech
Hi All,

we are finally going to implement mirrors at one of my clients. For a variety 
of reasons, we are not going to use soap. I was thinking of the following 
options

1. One main machine create new log, copy to shared volume

Now I can branch
Option 1. Create a second text file that the mirror would look for every x 
minutes and when there, integrate, move the journal, delete file

Option 2. create a table that is set to no journal, using sql, add record to 
that table with journal name and ISO date time added and (not sure what else). 
On save of record on remote mirror launch a process that would integrate the 
log file and mark record as integrated

Option 3. Using sql and an FN call to mirror call and pass in journal name. The 
FN call would launch a new process to integrate.

I know this is sketchy but trying to get my hands around which one might work 
best. I am leaning towards option 2

Thanks and regards

Chuck

 Chuck Miller Voice: (617) 739-0306
 Informed Solutions, Inc. Fax: (617) 232-1064   
 mailto:cjmillerinformed-solutions.com 
 Brookline, MA 02446 USA Registered 4D Developer
   Providers of 4D and Sybase connectivity
  http://www.informed-solutions.com  

This message and any attached documents contain information which may be 
confidential, subject to privilege or exempt from disclosure under applicable 
law.  These materials are intended only for the use of the intended recipient. 
If you are not the intended recipient of this transmission, you are hereby 
notified that any distribution, disclosure, printing, copying, storage, 
modification or the taking of any action in reliance upon this transmission is 
strictly prohibited.  Delivery of this message to any person other than the 
intended recipient shall not compromise or waive such confidentiality, 
privilege or exemption from disclosure as to this communication. 

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

Re: Drop Down Menu Form Event

2017-11-17 Thread Chuck Miller via 4D_Tech
I would always use on clicked for drop downs, combo boxes, check boxes, 
buttons, radio buttons. 


Regards

Chuck

 Chuck Miller Voice: (617) 739-0306
 Informed Solutions, Inc. Fax: (617) 232-1064   
 mailto:cjmillerinformed-solutions.com 
 Brookline, MA 02446 USA Registered 4D Developer
   Providers of 4D and Sybase connectivity
  http://www.informed-solutions.com  

This message and any attached documents contain information which may be 
confidential, subject to privilege or exempt from disclosure under applicable 
law.  These materials are intended only for the use of the intended recipient. 
If you are not the intended recipient of this transmission, you are hereby 
notified that any distribution, disclosure, printing, copying, storage, 
modification or the taking of any action in reliance upon this transmission is 
strictly prohibited.  Delivery of this message to any person other than the 
intended recipient shall not compromise or waive such confidentiality, 
privilege or exemption from disclosure as to this communication. 

> On Nov 17, 2017, at 10:31 AM, Jim Medlen via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> 
> What is the best Form Event to use with a Drop Down Menus on a form ?
> 
> Is it better to use On Clicked or On Data Change ?
> 
> Does On Clicked cause multiple form events when used with a Drop down Menu ?
> (when opening the menu and when selecting a choice from the menu)

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

Drop Down Menu Form Event

2017-11-17 Thread Jim Medlen via 4D_Tech

What is the best Form Event to use with a Drop Down Menus on a form ?

Is it better to use On Clicked or On Data Change ?

Does On Clicked cause multiple form events when used with a Drop down Menu ?
(when opening the menu and when selecting a choice from the menu)



Thanks,

Jim Medlen
Computer & Information Systems
Functional Devices, Inc.
j.med...@functionaldevices.com
phone (765) 883-5538 x 428
fax (765) 883-4262
http://www.functionaldevices.com

This email was transmitted on 100 percent recycled electrons




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