Re: SEND / RECEIVE RECORD questions

2017-08-10 Thread Robert McKeever via 4D_Tech
I’ve done this a lot over the years.

You send from a specific table. Likewise, you receive into a specific table.

The receive goes in field order. Internally, the datafile keeps a 
mini-structure map for each record that is written at the time the record is 
written. Then, if you change a field from string to text, 4D will translate the 
field when you read it, and update the map when that record is rewritten. And, 
as I recall, additional fields in the receiving record will be set to 
blank/zero/false as appropriate.

Just watch if you have an indexed field that is set to unique in the new 
structure and you have duplicates in the old table records. The import will 
just stop.

> On Aug 10, 2017, at 1:51 PM, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Hi folks,
> I have never really used SEND RECORD and RECEIVE RECORD. I get the theory
> of it and the docs explain the mechanism. I'm wondering what happens when
> you attempt to use them and the structures have changed? Or tables or
> fields were re-named?
> 
> And what about changes across 4D versions? Like attempting to RECEIVE
> RECORD in v13+ from a file created by v11 or v2004?
> 
> I'm also assuming the tables are matched by the "new" UUID instead of table
> name - yes? Or is it table number since I'm not sure there was a UUID when
> SEND RECORD was created.
> 
> And maybe I'm overthinking the whole issue. Anyway, I would appreciate some
> insight from those of you who have used these commands a lot over the
> years.
> 
> 
> -- 
> 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
> **

_
Bob McKeever  http://www.mswl.com 
McKeever's Software Wizardry
Port Coquitlam, B.C.
bobmckee...@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
**

livedoc 4D v16 R5??

2017-08-10 Thread John Baughman via 4D_Tech
Just on the livedoc site and noticed a new tab… 4D v16 R5

Nothing in the tab, but the next tab over is 4D v16 R4 BETA. H what's up 
with that? Probably just a transient thing and likely a mistake, but 
interesting.

John


John Baughman
Kailua, Hawaii
(808) 262-0328
john...@hawaii.rr.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
**

How to show / hide all on Property List in v16?

2017-08-10 Thread Kirk Brooks via 4D_Tech
In prior versions when working with a form and the Property List is
displayed I could show/hide all panes on the list by holding the Control
(not the Command) key and clicking on one of the pane triangles. This
doesn't work for me in v16.

I've tried on two different Macs, one running Sierra and the other
Yosemite. And I've tried every combination of modifiers I can think of.

I believe I asked about this before. Is there some option I may have either
set or unset to cause this? Really annoying.

Thanks

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

RE: Anybody using the TimePicker widget - TimePicker SET STEP

2017-08-10 Thread Timothy Penner via 4D_Tech
Hi John,

I found this as the first hit when I searched kb.4d.com for the term widget:
Tech Tip: TimePicker widget can only be modified if placed on page 0 or 1 of 
the form
http://kb.4d.com/assetid=77479

Hit #3 in the list was this:
Tech Tip: Using widgets on page 2+
http://kb.4d.com/assetid=76861

-Tim




**
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: Anybody using the TimePicker widget - TimePicker SET STEP

2017-08-10 Thread John Baughman via 4D_Tech
Is the page one requirement documented anywhere. Looked and could not find it. 

If not, perhaps it should be.

John


> On Aug 10, 2017, at 12:01 PM, John Baughman  wrote:
> 
> 
>> On Aug 10, 2017, at 11:17 AM, Keisuke Miyako via 4D_Tech 
>> <4d_tech@lists.4d.com > wrote:
>> 
>> and the widget must be used on page 0 or 1.
> 
> Ah Ha! That was the problem. My widget is on page 2. In any event works in an 
> on timer event.
> 
> John
> 
> 
> 
> John Baughman
> Kailua, Hawaii
> (808) 262-0328
> john...@hawaii.rr.com 
> 
> 
> 
> 
> 

John Baughman
Kailua, Hawaii
(808) 262-0328
john...@hawaii.rr.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: Anybody using the TimePicker widget - TimePicker SET STEP

2017-08-10 Thread John Baughman via 4D_Tech

> On Aug 10, 2017, at 11:17 AM, Keisuke Miyako via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> and the widget must be used on page 0 or 1.

Ah Ha! That was the problem. My widget is on page 2. In any event works in an 
on timer event.

John



John Baughman
Kailua, Hawaii
(808) 262-0328
john...@hawaii.rr.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: SEND / RECEIVE RECORD questions

2017-08-10 Thread Kirk Brooks via 4D_Tech
Miyako,
Thanks for the reassurance. Does the matching work based on the table/field
names or numbers?

On Thu, Aug 10, 2017 at 2:05 PM, Keisuke Miyako via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> RECEIVE R. command is capable of processing records sent from pre-v11
> versions,
> it looks at the header and converts ANSI to Unicode text as necessary.
>
> > 2017/08/11 5:51、Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> のメール:
> > And what about changes across 4D versions? Like attempting to RECEIVE
> > RECORD in v13+ from a file created by v11 or v2004?
>
>
>
>
> **
> 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
> **




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

Re: Relative path in SVG DOM

2017-08-10 Thread Ortwin Zillgen via 4D_Tech
> The thing is that the SVG is actually an interactive map.
> 
> So when I load the SVG from a blob field, then where does it go to find the 
> file with the relative path ‘../Image.jpg’ ?

if the SVG is displayed in a webarea, save the SVG to disk in a location 
appropriate to the relative path and use
WA OPEN URL instead of WA SET PAGE CONTENT

otherwise you probably end up using
SVG_New_embedded_image



Regards
O r t w i n  Z i l l g e n
-
   
 
member of developer-network 

**
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: Anybody using the TimePicker widget - TimePicker SET STEP

2017-08-10 Thread Douglas von Roeder via 4D_Tech
 "form local" = new (and much better) name for a dynamic variable?


--
Douglas von Roeder
949-336-2902

On Thu, Aug 10, 2017 at 2:17 PM, Keisuke Miyako via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> it works on ON LOAD, but the widget's variable must be declared with
> C_TIME,
> or set to create a form local (no variable name, type=time in property
> list.)
>
> and the widget must be used on page 0 or 1.
>
> > 2017/08/10 16:13、John Baughman via 4D_Tech <4d_tech@lists.4D.com> のメール:
> > The sample code in the picker method calls TimePicker SET STEP in the On
> Load form event. That does not work.
>
>
>
>
> **
> 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
> **
>
**
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: Anybody using the TimePicker widget - TimePicker SET STEP

2017-08-10 Thread Keisuke Miyako via 4D_Tech
it works on ON LOAD, but the widget's variable must be declared with C_TIME,
or set to create a form local (no variable name, type=time in property list.)

and the widget must be used on page 0 or 1.

> 2017/08/10 16:13、John Baughman via 4D_Tech <4d_tech@lists.4D.com> のメール:
> The sample code in the picker method calls TimePicker SET STEP in the On Load 
> form event. That does not work.




**
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: Relative path in SVG DOM

2017-08-10 Thread Keisuke Miyako via 4D_Tech
unless there is a way to define the base URL,
I don't think it is possible to specify relative paths in SVG which is itself 
not a file on disk.

my guess would be that the path is considered a name,
searched in the current directory of the executable.

unless the SVG is a file on disk,
I think you have no choice but to put the image data in  and reference it 
with .

> 2017/08/11 1:28、Two Way Communications via 4D_Tech <4d_tech@lists.4d.com> 
> のメール:
> So when I load the SVG from a blob field, then where does it go to find the 
> file with the relative path ‘../Image.jpg’ ?




**
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: SEND / RECEIVE RECORD questions

2017-08-10 Thread Keisuke Miyako via 4D_Tech
RECEIVE R. command is capable of processing records sent from pre-v11 versions,
it looks at the header and converts ANSI to Unicode text as necessary.

> 2017/08/11 5:51、Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> のメール:
> And what about changes across 4D versions? Like attempting to RECEIVE
> RECORD in v13+ from a file created by v11 or v2004?




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

SEND / RECEIVE RECORD questions

2017-08-10 Thread Kirk Brooks via 4D_Tech
Hi folks,
I have never really used SEND RECORD and RECEIVE RECORD. I get the theory
of it and the docs explain the mechanism. I'm wondering what happens when
you attempt to use them and the structures have changed? Or tables or
fields were re-named?

And what about changes across 4D versions? Like attempting to RECEIVE
RECORD in v13+ from a file created by v11 or v2004?

I'm also assuming the tables are matched by the "new" UUID instead of table
name - yes? Or is it table number since I'm not sure there was a UUID when
SEND RECORD was created.

And maybe I'm overthinking the whole issue. Anyway, I would appreciate some
insight from those of you who have used these commands a lot over the
years.


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

Re: Relative path in SVG DOM

2017-08-10 Thread Two Way Communications via 4D_Tech
Hi Keisuke,

Ok, that puts it into perspective ;-)

The thing is that the SVG is actually an interactive map.

So when I load the SVG from a blob field, then where does it go to find the 
file with the relative path ‘../Image.jpg’ ?


Regards,

Rudy Mortier
Two Way Communications bvba  -



> On 09 Aug 2017, at 21:59, Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> the doc could have been worded better, I suppose.
> 
> relative path means relative to the SVG image file.
> the doc assumes your SVG is itself inside the Resources folder, in fact at 
> the top level.
> 
>> 2017/08/09 18:55、Two Way Communications via 4D_Tech <4d_tech@lists.4d.com> 
>> のメール:
>> No, it isn’t. It is created with ’SVG_New’.
> 
> 
> 
> 
> **
> 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
> **

**
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: Method Header Strategies

2017-08-10 Thread Chip Scheide via 4D_Tech
the old "standard" of:
If (false)
  // block of comments
end if

is outdated for a variety of reasons
- it started because it made interpreted code faster - as the 
interpreter would try to 'execute' each line of comment. This was on 
Motorola 680xx/Intel x86 processors running at a few 10s to a few 
hundred mhz.
- the if (false) construct breaks the current implementation of 4D's 
method editor where the comments (until the first line of actual code) 
are displayed as tool tips

(in case you did not know this last bit, as an example)

// My_method (text:username) -> longint : UserID
//code


in another method
/some code
my_method
Tool tip: // My_method (text:username) -> longint : UserID

On Thu, 10 Aug 2017 00:35:57 +, Keisuke Miyako via 4D_Tech wrote:
> that's what I thought at first but then the "False" block already 
> does that job.
> 
>> 2017/08/10 7:58、Guy Algot via 4D_Tech <4d_tech@lists.4d.com> のメール:
>> My guess… So you can click the triangle and hide everything in the header?
> 
> 
> 
> 
> **
> 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
> **
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
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: Anybody using the TimePicker widget - TimePicker SET STEP

2017-08-10 Thread John Baughman via 4D_Tech
OK. I figured it out. The sample code in the picker method calls TimePicker SET 
STEP in the On Load form event. That does not work. Apparently it has to be 
called after the form is loaded. So I set a timer and am call all the setup 
commands in the On Timer event. Works now. 

Also if you are passing a default value, be sure to assign it to the picker 
after you have set the step or it will be handled with the default step and 
might get rounded to fit the step.

BTW, I had a typo in my original message. 45 mins is not a valid step for the 
picker. It should have red 15 mins.

John


> On Aug 9, 2017, at 3:14 PM, John Baughman via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> I have been using this for a very long time and always with a 45 min step. 
> Now I need to set it to a 10 min step Y calling..
> 
>   TimePicker SET STEP ($ObjectName;?00:10:00?)
> 
> Nothing happens. It stays at 45 mins.
> 
> Any ideas?
> 
> John
> 
> 
>   
> John Baughman
> Kailua, Hawaii
> (808) 262-0328
> john...@hawaii.rr.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
> **

John Baughman
Kailua, Hawaii
(808) 262-0328
john...@hawaii.rr.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: Animated Notifcation

2017-08-10 Thread Sujit Shah via 4D_Tech
Great thanks - thats the one

On Thu, Aug 10, 2017 at 3:22 PM, Keisuke Miyako via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> did you mean...
>
> > AnotherTip 2.0 is available
> > ———
> >
> > AJAR SA is pleased to announce a new release of the 4D widget :  Another
> Tip 2.0
> >
> > This new release 2.0 adds new animation functionalities.
> >
> > A new revamp Lab is provided, to help you build your tip styles.
> >
> > Another Tip is a 4D component to enhance your 4D Application with a
> modern, beautiful and rich tooltip.
> >
> > Really simple to use and to integrate into your current 4D Application,
> adding a tooltip has never been so easy.
> >
> > To use it, simply write in the target Method Object these three lines of
> code:
> >
> >  C_OBJECT(MyObjectVariable)
> >  OB SET(MyObjectVariable;"tip-display";true)
> >  tip(MyObjectVariable)
> >
> >
> > A full demo, documentation and videos are available here :
> >
> > http://anothertip.ajar.ch/v2/index.html
> >
> > Maurice Inzirillo
> > --
> > AJAR S.A.
>
>
>
>
> **
> 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
> **




-- 

xxx
"There must be ingenuity as well as intention, strategy as well as
strength. "
**
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
**