Re: Coloured button background

2016-09-01 Thread Jody Bevan
Mitch: I think the way to get all that you want is to create an SVG object. Within this Object we had a two column pallet of buttons, where the users could: change the colours, and on the fly we could change background colour, text colour, text style. They could have popular or not on the fly.

Re: Coloured button background

2016-09-01 Thread Mitchell Shiller
Merci Arnaud… mais (but) Custom buttons do not allow you to have a popup menu feature. So I can get most of what I want but not all. BTW, it is not to hard to create my own- using a text variable and the form events:On Mouse Enter, On Mouse Leave and On Clicked. I can create a highlight effe

Re: Named selection based List Box

2016-09-01 Thread Chuck Miller
You betcha and as a named selection sorting stays. I have used it as well. Regards Chuck Chuck Miller Voice: (617) 739-0306 Informed Solutions, Inc. Fax: (617) 232-1064 mailto:cjmillerinforme

Re: Trapping for 'not a valid object'

2016-09-01 Thread Lee Hinde
Thanks Tim; that's great. As a side note, it's interesting that I frequently get html responses to error pages from apis that would otherwise return json. Like many of us, they assume everything will work. On Thu, Sep 1, 2016 at 11:03 AM, Timothy Penner wrote: > Hi Lee, > > I think what you are

Re: Trapping for 'not a valid object'

2016-09-01 Thread Lee Hinde
On Thu, Sep 1, 2016 at 10:57 AM, Keisuke Miyako wrote: > //you parsed rubbish > I think that's the name of my next business. ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.

Datetime fields in 4D... (was: How to find 2 digit years in legacy..)

2016-09-01 Thread Benedict, Tom
A few days ago I responded to: >>if a date field is created with legacy tools, can it be used it as a datetime? >>And an hour field? >Apparently so: > >C_DATE($dOutput) >C_TIME($dtOutput) > > // Misc is a table created using 4D legacy tool (structure editor) > >$sKey:="DateTime Test"

Re: [resolved - Programmer BUG] Re: v13 - Object get Coordinates

2016-09-01 Thread Chip Scheide
I realized ... OF COURSE! in Client/Server, Apply to Selection will NOT be able to get coordinates!!! as it executes ON THE SERVER, and can not see the open form on the client ! Duh. On Thu, 1 Sep 2016 12:52:00 -0400, Chip Scheide wrote: > I was calling the method which used Get Coordi

RE: Trapping for 'not a valid object'

2016-09-01 Thread Timothy Penner
Hi Lee, I think what you are looking for is this: http://kb.4d.com/assetid=77555 === Tech Tip: How to check if TEXT is an OBJECT / JSON PRODUCT: 4D | VERSION: 15.2 | PLATFORM: Mac & Win Published On: June 23, 2016 Here is a utility method that can be used to check if some T

Re: Trapping for 'not a valid object'

2016-09-01 Thread Keisuke Miyako
C_OBJECT($o) ON ERR CALL("ERR") $o:=JSON Parse("rubbish";Is object) ON ERR CALL("") If (Not(OB Is defined($o))) //you parsed rubbish End if > 2016/09/02 2:39、Lee Hinde のメール: > > I think the answer is an On Err Call, but... > If I do something like: JSON Parse($response;Is object) > Is the

Re: Trapping for 'not a valid object'

2016-09-01 Thread Lee Hinde
I realized I'm looking for try/except... Never mind. On Thu, Sep 1, 2016 at 10:39 AM, Lee Hinde wrote: > I think the answer is an On Err Call, but... > > If I do something like: JSON Parse($response;Is object) > > Is there some way to trap if the response isn't a valid json object? > > ***

Trapping for 'not a valid object'

2016-09-01 Thread Lee Hinde
I think the answer is an On Err Call, but... If I do something like: JSON Parse($response;Is object) Is there some way to trap if the response isn't a valid json object? ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d

[resolved - 4D BUG] Re: v13 - Object get Coordinates

2016-09-01 Thread Chip Scheide
I was calling the method which used Get Coordinates via APPLY TO SELECTION Some how, inside the apply to selection GET COORDINATES would not return a value?!?!?! Replacing the APPLY TO SELECTION with a For loop resolves the issue, and Get Coordinates returns values as expected. So... It might

Re: v13 - Object get Coordinates

2016-09-01 Thread Douglas von Roeder
Chip: Check the syntax of the second parameter. -- Douglas von Roeder 949-336-2902 On Thu, Sep 1, 2016 at 9:41 AM, Chip Scheide <4d_o...@pghrepository.org> wrote: > as a followup - when I exit the method where there is a zero coordinate > value he coordinates are again available. > > On Thu, 1

Re: v13 - Object get Coordinates

2016-09-01 Thread Chip Scheide
as a followup - when I exit the method where there is a zero coordinate value he coordinates are again available. On Thu, 1 Sep 2016 12:29:36 -0400, Chip Scheide wrote: > any ideas as to why this command is returning all 0's ? > > I am in a call chain: > New process > Opened window > entry fo

Re: v13 - Object get Coordinates

2016-09-01 Thread Douglas von Roeder
On Thu, Sep 1, 2016 at 9:29 AM, Chip Scheide <4d_o...@pghrepository.org> wrote: > OBJECT GET > COORDINATES(*;*$"Actual_Object_Name"*;$Box_Left;$Box_Top;$Box_ > Right;$Box_Bottom) > -- Douglas von Roeder 949-336-2902 ** 4D Inter

v13 - Object get Coordinates

2016-09-01 Thread Chip Scheide
any ideas as to why this command is returning all 0's ? I am in a call chain: New process Opened window entry form (calendar) Form method Project method for form (on outside call) redraw calendar place boxes, day numbers etc * Place appointments/events * actuall

Re: New 4D v15 DB--What foundational decisions are important...?

2016-09-01 Thread Walt Nelson
Robert, Foundation 5.6.1 (current version) is v15 based. Thanks, Walt Nelson (Seattle) New stuff coming! www.foundationshell.com w...@foundationshell.com > On Aug 31, 2016, at 11:39 AM, Robert ListMail wrote: > > Walt, the current v5 Foundation is based on a v11 structure? > > Thanks, > > Ro

Re: Coloured button background

2016-09-01 Thread Arnaud de Montard
> Le 1 sept. 2016 à 04:30, Mitchell Shiller a écrit : > > Thanks Tom. > > What I learned is that OBJECT SET COLOR works with regular buttons as your > demo shows. > However, it does not work with 3D Buttons. I want to display an icon at the > same time. > So I will roll my own. Hi Mitchell,

Re: v15 DLL Plugin Issue

2016-09-01 Thread Randy Jaynes
Is it a path issue with how Windows is seamlessly running things out of the C:/ProgramData folder when your application is in C:/Program Files? That could screw up paths in our code. Randy -- Randy Jaynes Senior Programmer and

RE: Upgrading 2004 to v15

2016-09-01 Thread Myriad List
> From: Doug Hall > To: 4D iNug Technical <4d_tech@lists.4d.com> > Subject: Upgrading 2004 to v15 RE: Should I shoot for an interim version, say v13, or is it possible (practical) to go all the way from 2004 to v15? Doug; Definitely do not bother with incremental version upgrading unless you a

v15 DLL Plugin Issue

2016-09-01 Thread Douglas Cryer
I have an issue which is quickly becoming a major issue with a Plugin that was working and is now no longer working since upgrading to v15. The plugin wqs originally written with DLLWizard as a WIN4DX header to a DLL. It calls an address lookup solution by passing a postcode. It was then conve

AW: 4D Shell or not so much...?

2016-09-01 Thread flury olivier
Hi, It depends what you mean by shell. IMO any "generic" function (methods, UI's) can be considered (may be part of) a shell. Ideally as a component, so it can be easily moved from one application to the other. Example: a method that puts a CSV file into a 2D Array. Or a type ahead component

Re: Using ListBoxes as Output forms

2016-09-01 Thread Arnaud de Montard
> Le 1 sept. 2016 à 00:19, Sannyasin Siddhanathaswami a > écrit : > > I’m still stuck on not being able to get a complex sort from a selection so I > can do a sort again after changing the selection. I guess I need to add a > feature request. Not having this limits the usefulnees of listboxes

Re: Can't Save Record Mandatory field is null

2016-09-01 Thread Arnaud de Montard
> Le 1 sept. 2016 à 00:34, Sannyasin Siddhanathaswami a > écrit : > > Aloha Kirk, Good hint. I’ll look at related tables/fields for mandatory. I’ll > also double check I have primary keys on everything. I thought I did. > > Chip, unfortunately I get this error when I try to save a record with

Re: Using ListBoxes as Output forms

2016-09-01 Thread Nigel Greenlee
Alan. I have been using listbox for output since V12 or 13-whenever they brought in Field based listboxes. Acrually since V13 you can stop the left (or whatever you want) box scrolling off. I allow users to define the ‘locked’ columns. and the addition of column totals in V13 was also a big w