Re: Multi-Select Dropdown Menu

2020-03-06 Thread Keith Goebel via 4D_Tech
Hi all.
Many good ideas have been offered for this and I thought I’d share a very 
simple solution we use for actions on listbox columns.

Sort
- first click on the column title = sort the column contents in default 
direction
- click again = sort in reverse
Keep track of the last column clicked and what direction the sort was in, in 
case you need to restore the current setup on return from doing other stuff.
If a different column is clicked, revert to the default sort direction and 
update direction arrow.

Search
In columns where a search action is offered
- show a “dropdown menu” icon in the column title button.
- right-click opens a popup menu
- All  (this restores all values)
- Multi Search
—
- distinct values of column contents

Multi Search
- open dialog with 2 columns (ticks and distinct values) allowing user to do 
multiple ticks
- offer footer buttons
- Search in List  
- Search all
- Cancel

That’s it!
Very simple and the users like it.
Cheers, Keith
**
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
**

Another Signing/Notarization Question

2020-03-06 Thread Cannon Smith via 4D_Tech
Hi All,

Thanks to Miyako and Rob Laveaux updating some plugins I use, and other help, I 
now have all but one of my applications notarizing again since the recent Apple 
changes. The problem with the last application is that some years ago I started 
placing a small blob file (compressed XML, not an executable) just inside the 
Contents folder during a build. Of course, the recent rules don’t like files 
being inside the Contents folder.

I’m loathe to move this file somewhere else. Technically it is possible, but 
several applications rely on it so they would all have to be upgraded at the 
same time. And it affects the auto-update process itself which will cause 
issues for users trying to upgrade to the latest version.

So I’m wondering if there is a way to sign this file during the signing 
process. I’ve tried several variations of signing the file, but haven’t had any 
luck. I’m hoping someone knows of a way to sign a file like this so I don’t 
have to go down the difficult road of moving the file to another place.

Thanks for any ideas!

--
Cannon Smith
Synergy Farm Solutions Inc.



**
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
**

iOS 13.x User Agent Shows iPad as Macintosh

2020-03-06 Thread Tom Benedict via 4D_Tech
In iOS v13.x there is a new feature, called “Request Desktop Website”, which 
allows iPads and iPhones to pretend that they are desktop devices. It does this 
by returning a value in the UserAgent included in the HTTP Header which 
indicates “Macintosh" instead of “iPad" or “iPhone”. This new feature defaults 
to “On” in iOS13.x.

The application I am supporting serves different HTML pages depending on 
whether a desktop or mobile device is detected during On Web Authentication. 
Currently our code parses the User Agent value returned by WEB GET HTTP HEADER 
to determine whether a desktop or a mobile page should be sent. Now that that 
approach is unreliable, I’m looking for another way to determine the hardware 
platform. I need something which I can reference with server side 4D code.

What do others do in this case? 

Thanks,

Tom Benedict




**
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
**

Non-Technical Topic: Chicago Summit Vinofest - Monday Mar. 30

2020-03-06 Thread Randy Engle via 4D_Tech
Hi my dear 4Ders,

 

Yet, once again, (likely to be the last...alas)  

 

My wife Sara and I will be hosting the 4D "Vinofest" in our room on Monday
Mar. 30 after 6:00 PM

 

This started years ago, as 2-4 people bringing a bottle of wine or two
(Thanks, Jack D.!) to share at the meet and greet event.

Over time, this morphed into seeing how many people we could stuff into a
regular sized room (28 at last count), until security came at 11:00 PM and
threw everyone out.

And then we finally booked a suite to handle a larger group.

 

All are welcome.

If you would like, bring wine or beer, Pelligrino, Cognac, Sauternes,  or
whatever to share if you are so moved, by no means required.

Food/Snacks/Goodies are always welcome as well

 

It's not a huge space, but big enough to hold a small group for rich
conversation, technical/4D or otherwise.

 

Randy Engle

Email:  randy.en...@gmail.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
**

Listbox arrow navigation - line 1

2020-03-06 Thread kculotta via 4D_Tech
This code will make line1 of the listbox highlighted. Pressing the down arrow 
moves the highlight to row #2.
: (Form event code=On Load)
ARRAY TEXT(A1;5)
GOTO OBJECT(*;"ListBox")
LISTBOX SELECT ROW(*;"ListBox";1)

This code does the same thing, except pressing the down arrow the first time 
has no apparent effect.
Pressing it a second time moves the cursor down as expected.
(btw, first pressing the up arrow key highlights the last populated line)
An entity selection listbox has the same behavior.
ALL RECORDS([Client])
GOTO OBJECT(*;"ListBox")
LISTBOX SELECT ROW(*;"ListBox";1)
GOTO SELECTED RECORD([Client];1)

Adding the line "POST KEY(Down arrow key)" is one way to solve the problem for 
the user.
Is there a less tricky way to fix that first down arrow behavior?

Thanks,
Keith
**
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: 4D Write Preview Fails on certain workstation (Windows)

2020-03-06 Thread Peter Jakobsson via 4D_Tech


> On 6 Mar 2020, at 18:21, Costas Manousakis via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> We have not seen a blank preview but shrunk previews where it seemed like the 
> normal letter size page was printed, then reduced in size and then placed on 
> a letter size paper

Thanks for the reply Costas !

Actually I spent some time trying to debug it in interpreted mode on the 
workstation concerned and made some progress. It seems to be to do with 
embedded expressions and the document content. When I removed a certain 
expression (a 4D method I use to populate the document with ‘merge’ data) the 
document became visible so it might not be the preview at all.

It’s as if the logic that generates the content works differently on that 
client. Maybe it got coronavirus.

Peter

**
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: 4D Write Preview Fails on certain workstation (Windows)

2020-03-06 Thread Costas Manousakis via 4D_Tech
Hi
We have not seen a blank preview but shrunk previews where it seemed like the 
normal letter size page was printed, then reduced in size and then placed on a 
letter size paper.  Found out it had something to do with windows screen 
scaling for better viewing. Users had changed the screen scaling in their 
settings instead of changing the resolution.  I m not sure if that is the cause 
for your case but maybe related.  
Have you checked to see what the actual pixel width and height is of the 
generated picture? 

We ve also seen text disappear due to hidden characters when stuff was copied 
into 4d write areas from Word but that was when Mac users were printing 
documents generated by windows users.

Not sure if this helps any, I just feel your pain with weird cases like that 

Regards 
Costas 

> On Mar 6, 2020, at 6:02 AM, Peter Jakobsson via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> Hi
> 
> I was wondering if anybody had encountered this issue.
> 
> 4D Write document preview (created using "WR Build Preview”)  displays a 
> blank picture only on one workstation on the entire network (there are 8 
> workstations). There is nothing obviously distinct about that workstation:
> 
> 4D v15 (Client-server)
> Windows 10 Pro
> Intel Core i7-7700 3.6 GHz
> 
> I might try "myPicture:=myPicture|myPicture” to create a bitmap and try 
> displaying that. The preview is transient - does not get stored anywhere. The 
> funny thing is that one type of document displays ok. The other’s don’t so it 
> may be some bad character embedded in the document, however they all display 
> fine on all other workstations.
> 
> If anybody has seen this I’d appreciate any hints !
> 
> Regards
> 
> Peter
> 
> **
> 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
> **
**
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: 64-Bit Quick Report related fields

2020-03-06 Thread Jody Bevan via 4D_Tech
Doug I so agree with you about forced, breaking upgrades. Apple OS upgrades 
causes us so many headaches over the years with their policy of breaking 
things. Trying to have a widely distributed product running on both OSes, and 
with forced enhancements and upgrades by government was the bane of my 
existence. 

Jody

> On Mar 6, 2020, at 10:21 AM, Doug Hall via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> I worded my statement badly. I should have said, "Because Catalina is
> pre-installed on new equipment..." I hate forced, breaking upgrades.
> 
> Doug
> 
> On Thu, Mar 5, 2020 at 10:13 PM Kirk Brooks via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:

**
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: 64-Bit Quick Report related fields

2020-03-06 Thread Doug Hall via 4D_Tech
I worded my statement badly. I should have said, "Because Catalina is
pre-installed on new equipment..." I hate forced, breaking upgrades.

Doug

On Thu, Mar 5, 2020 at 10:13 PM Kirk Brooks via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Doug,
> This just in:
> https://kb.4d.com/assetid=78424
>
> I've heard it said Catalina is the Vista of MacOS.  And I am a Mac guy,
> btw.
>
> Having said that I don't see anything in the Tech Tip that relates to the
> Quick Report Editor.
>
> On Thu, Mar 5, 2020 at 12:03 PM Doug Hall via 4D_Tech <
> 4d_tech@lists.4d.com>
> wrote:
>
> > A few weeks ago, we switched to 4D v17 (64-Bit) so that our users could
> run
> > Catalina. Today, a user showed me that you can't dig more than one table
> > away from the current table, in the new 64-bit Quick Report Editor. Are
> we
> > missing something, or is there a way around this?
> >
> > 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
> > **
>
>
>
> --
> Kirk Brooks
> San Francisco, CA
> ==
> **
> 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
> **
**
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: 64-Bit Quick Report related fields

2020-03-06 Thread Jody Bevan via 4D_Tech
Doug & Tim:

I thought it was only me not understanding things again.

What I ended up doing was building my own ‘Report Editor’, where I presented 
the tables and field for the users.

Jody Bevan

Jody Bevan
Developer



Argus Productions Inc. 




> On Mar 5, 2020, at 4:45 PM, Doug Hall via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> WOW. It actually does work to use a formula, but that SUCKS as far as user
> interfaces go. It gives you the interface you'd expect (for selecting
> related tables/all tables) in the formula editor. As long as field names
> resolve properly, it should work. But, YUCK!
> 
> On Thu, Mar 5, 2020 at 2:53 PM Tim Nevels via 4D_Tech <4d_tech@lists.4d.com>
> wrote:
> 
>> On Mar 5, 2020, at 2:34 PM, Doug Hall wrote:
>> 
>>> A few weeks ago, we switched to 4D v17 (64-Bit) so that our users could
>> run
>>> Catalina. Today, a user showed me that you can't dig more than one table
>>> away from the current table, in the new 64-bit Quick Report Editor. Are
>> we
>>> missing something, or is there a way around this?
>> 
>> My users noticed it too. 4D needs to fix this in a future version.
>> 
>> You can try doing calculated column and manually entering in the related
>> field reference. It think that will work. But it’s a lot of work for the
>> user compared to just selected a field from the field list.
>> 
>> Tim
>> 
>> *
>> Tim Nevels
>> Innovative Solutions
>> 785-749-3444
>> timnev...@mac.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
>> **
> **
> 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
> **

**
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: Convert Object to shared object.

2020-03-06 Thread Eric Naujock via 4D_Tech
Thanks, That helped a lot.

> On Mar 5, 2020, at 3:49 PM, John DeSoi via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> https://kb.4d.com/assetid=78197 
**
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
**

4D Write Preview Fails on certain workstation (Windows)

2020-03-06 Thread Peter Jakobsson via 4D_Tech
Hi

I was wondering if anybody had encountered this issue.

4D Write document preview (created using "WR Build Preview”)  displays a blank 
picture only on one workstation on the entire network (there are 8 
workstations). There is nothing obviously distinct about that workstation:

4D v15 (Client-server)
Windows 10 Pro
Intel Core i7-7700 3.6 GHz

I might try "myPicture:=myPicture|myPicture” to create a bitmap and try 
displaying that. The preview is transient - does not get stored anywhere. The 
funny thing is that one type of document displays ok. The other’s don’t so it 
may be some bad character embedded in the document, however they all display 
fine on all other workstations.

If anybody has seen this I’d appreciate any hints !

Regards

Peter

**
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
**