Re: Migrating Tables with Relations Between Structures

2017-04-05 Thread Keisuke Miyako via 4D_Tech
when you copy multiple tables in the structure editor,
you get the table as well as the relation.

pasting it back to the structure editor removes all ancillaries such as indexes 
and links,
but the plugin entry-point allows you to re-create them.

https://github.com/miyako/4d-plugin-structure-access

the IMPORT STRUCTURE command is also capable of restoring relations, as well as 
the indexes.
(the UI does not show bold at first but they are properly set. just re-open the 
database)

http://doc.4d.com/4Dv16/4D/16/IMPORT-STRUCTURE.301-3036688.en.html




**
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 V12.5 OK with Windows 10

2017-04-05 Thread Douglas von Roeder via 4D_Tech
A client using V12.5 is starting to adopt Windows 10 and has asked about
going to V12.6 since the newer version, apparently, resolves "the Windows
10 tiny print problem that 12.5 has."

The Cert Matrix for 12.6 states that 12.6 is "not compatible" with 8.1 and
does not list Win 10.

Is 12.6 OK to use on Win10?

Bonus question - is there any difference in Win10 compatibility between
12.5 and 12.6?


--
Douglas von Roeder
949-336-2902
**
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: CALL FORM and CALL WORKER ideas (Was: 4D World Tour - Get off the fence)

2017-04-05 Thread Jeffrey Kain via 4D_Tech
I also thought the discussion on subforms was excellent too. I have to admit 
that I've never even looked at them, but they are definitely a game-changer as 
well. So, not a new feature but definitely new to me.

--
Jeffrey Kain
jeffrey.k...@gmail.com

> On Apr 5, 2017, at 5:49 PM, David Adams via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> I noticed as a theme a lot of excitement about CALL FORM and CALL WORKER.

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

CALL FORM and CALL WORKER ideas (Was: 4D World Tour - Get off the fence)

2017-04-05 Thread David Adams via 4D_Tech
Thanks for posting about the show, it sounds like a really solid couple of
days. Likewise to all of the other, similar posts here today.

I noticed as a theme a lot of excitement about CALL FORM and CALL WORKER.
I'm pretty stoked about them and would really appreciate hearing from
people how they are using these tools, or how they're planning to use them.
I've been studying them closely for months and am pretty deep in the weeds
on the detailsit's nice to be reminded about simple, effective uses.

Any comments welcome.
**
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: Google Address Lookup/ Autocomplete

2017-04-05 Thread Sujit Shah via 4D_Tech
It's a shame that Geonames.org could not develop further. Has a very simple
web service API but does not go beyond city names.

I will have a closer look at the google pricing - I thought I was well
within the threshold

Thanks for your tips and posts as always.
On Thu, 6 Apr 2017 at 12:50 am, Kirk Brooks via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Sujit,
> A couple of things about addresses to be aware of when using google. First
> is google doesn't validate an address. Think navigation. If my primary
> interest is getting TO a place I'm not worried about delivering the mail or
> whether the address is correct. I only care about figuring out where it
> should be. That's what google does. You can't depend on google for
> confirmation a given address actually exists - only where it should be if
> it does exist. Same goes with the zip code and such. Granted they are
> pretty good but it's not their primary goal.
>
> The second thing is they get a little pricey if you do anything beyond open
> a map in a browser window.
>
> We do a lot of address verification. Google is good for looking at a
> location, like job locations, especially when the job might be someplace
> that doesn't have street names yet (housing tracts). But you can't send the
> bill there. For those addresses you need a better service. I like
> SmartyStreets but there are lot of others.
>
> On Tue, Apr 4, 2017 at 5:39 PM, Sujit Shah via 4D_Tech <
> 4d_tech@lists.4d.com
> > wrote:
>
> > I am wondering if anyone has developed code to integrate with their API
> > within the context of a 4D Form?
> >
> >
> >
> > --
> >
> > 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
> > **
>
>
>
>
> --
> 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
> **

-- 

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

Re: Is this post making to the iNUG?

2017-04-05 Thread Tom Dillon via 4D_Tech
Tim Nevels via 4D_Tech wrote:

>I am doing a test because the last few posts to the iNUG have not
>appeared in the digest email that I receive. 

If it comes in, I'll tell you.

-- 
   --
   Tom Dillon   825 N. 500 W.
   DataCraft   Moab, UT 84532
   tomdil...@datacraft-inc.com   720/209-6502
   --
   Chasing a thing does not ensure that it's actually there.
   --- Sunastar
   --


**
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: Is this post making to the iNUG?

2017-04-05 Thread Kenneth Geiger via 4D_Tech
Hi Tim,

Yes, your post is showing-up.

Best,

Ken

On Wed, Apr 5, 2017 at 1:52 PM, Tim Nevels via 4D_Tech <4d_tech@lists.4d.com
> wrote:

> I am doing a test because the last few posts to the iNUG have not appeared
> in the digest email that I receive.
>
> This is a test.
>
> 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
> **
**
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: Is this post making to the iNUG?

2017-04-05 Thread Timothy Penner via 4D_Tech
Please don't use the digest for checking if your email is sent/received. The 
digest can be delayed for up to 24 hours because the digest is only sent out 
after either 10 messages or at the end of the day. So if we only get 9 messages 
on a day then the digest would be sent at midnight.

Use an online mailing list archive instead:
https://www.mail-archive.com/4d_tech@lists.4d.com/
http://4d.1045681.n5.nabble.com/
http://kb.4d.com

p.s. you won't get this reply until the next digest gets dispatched!

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

Is this post making to the iNUG?

2017-04-05 Thread Tim Nevels via 4D_Tech
I am doing a test because the last few posts to the iNUG have not appeared in 
the digest email that I receive. 

This is a test. 

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

Re: [OFF] Hardware advice Was: 4D World Tour 2017

2017-04-05 Thread Peter Jakobsson via 4D_Tech

On 5 Apr 2017, at 19:52, Jeffrey Kain via 4D_Tech <4d_tech@lists.4d.com> wrote:

> If it was my personal money, I'd probably find a used MacBook Pro from 2014 
> or 2015, fully loaded. If the purchase is part of a budget, I'd wait for the 
> forthcoming "Kaby Lake" revision to the MacBook Pro along with a dock/hub.   



Same here.

I’m still developing on my 2009 Core 2 Duo 8Mb. (Albeit with a swapped out 
mechanical drive for an SSD). The SSD + an Acer H277HK 27’’ monitor made more 
difference than 8 years of Apple advances and now runs like a dream ;)

Peter

**
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: 4D World Tour 2017 (OFF) Hardware advice for the latest 4D Development

2017-04-05 Thread Charles Miller via 4D_Tech
On Wed, Apr 5, 2017 at 2:26 PM, Lee Hinde via 4D_Tech <4d_tech@lists.4d.com>
wrote:

> I don’t even recognize the guy in the mirror.


How could you that guy is me;)

Chuck


-- 
-
 Chuck Miller Voice: (617) 739-0306 Fax: (617) 232-1064
 Informed Solutions, Inc.
 Brookline, MA 02446 USA Registered 4D Developer
   Providers of 4D, Sybase & SQL Sever 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: [OFF] Hardware advice Was: 4D World Tour 2017

2017-04-05 Thread Kirk Brooks via 4D_Tech
Yeah, what he said.

On Wed, Apr 5, 2017 at 10:52 AM, Jeffrey Kain via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> If it was my personal money, I'd probably find a used MacBook Pro from
> 2014 or 2015, fully loaded. If the purchase is part of a budget, I'd wait
> for the forthcoming "Kaby Lake" revision to the MacBook Pro along with a
> dock/hub.
>
> I have the entry level 2014 13" MBP with "only" 2 cores and 8 GB of
> memory, and it's perfectly fine for Mac-only (no VM) use. 16GB and an SSD
> is plenty to run Windows + 4D + Parallels comfortably.
>
> --
> Jeffrey Kain
> jeffrey.k...@gmail.com
>
>
>
>
> > On Apr 5, 2017, at 1:41 PM, G-Mail via 4D_Tech <4d_tech@lists.4d.com>
> wrote:
> >
> > Jeff (and others that went to seminar - actually anyone):
> >
> > I am thinking I will splurge and get a new computer as my current one is
> a 2011 MacOS Laptop. It is the oldest on the list of Apple’s for being able
> to be upgraded to Sierra. Question is - Which one if I buy now, or should I
> wait another year?
>
> **
> 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
**

4D World Tour - Get off the fence

2017-04-05 Thread Justin Will via 4D_Tech
I highly recommend going to the 4D world tour.  There is always at least 1 
tidbit that you walk away from events like this that makes the whole trip 
worthwhile and JPR and Add are both fantastic presenters with tons of valuable 
content.

So if you are on the fence, get off the fence and sign up.  The UI tips and 
discussions about Call Form and Call Worker are worth your time and money and 
so are some of the side discussions to be had with other developers.

Thanks
Justin Will
**
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: Question about passing JSON to 4D

2017-04-05 Thread Kirk Brooks via 4D_Tech
On Wed, Apr 5, 2017 at 7:40 AM, Keisuke Miyako via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> have you tried...
>
> C_OBJECT($body)
> WEB GET HTTP BODY($body)
> ?
> it might work if you are lucky...
>
​
I did and I'm not. ​In this case it looks like it's undocumented because it
doesn't work. In v15 anyway.

​But it's really not a big deal do simply parse the text. Thanks again for
getting me oriented with this. ​

-- 
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: 4D World Tour 2017

2017-04-05 Thread Jeffrey Kain via 4D_Tech
Agreed - very glad I went also.

This was a really good seminar. I hadn't been to a World Tour before -- JPR, 
Add, and everyone from 4D were great. A lot is changing very quickly in 4D, and 
JPR said v16 is just a stepping stone to what's coming. 

Now is not the time to fall behind...

Jeff

--
Jeffrey Kain
jeffrey.k...@gmail.com




> On Apr 5, 2017, at 11:55 AM, David Porter via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> I just saw the 4D World Tour 2017 Day 2 State-of-the-art training 
> presentation in Chicago.
> Jean-Pierre Ribreau and Add Komoncharoensiri did a great job explaining and 
> demonstrating many recent changes to 4D.  
> 
> I am currently reviewing my notes, and going over the documentation and 
> examples on the usb drive.
> Multiple windows open in a single process, modular forms, better ways of 
> communicating between processes, better ways to pass parameters …
> Yes, some of this is in the manuals, it is just so much better to see it, 
> hear it explained, and ask questions.
> 
> Glad I went. 

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

Go to the World Tour 2017!

2017-04-05 Thread Ed Hammond via 4D_Tech
All,


The 4D World Tour 2017 just breezed through Chicago and it's got me 
thinking about how our user interface is designed. So much has been added 
over the last few versions and there is so little time to explore and 
understand them all yourself. If you are at all serious about your 4D 
development or if you are curious about what 4D can do, you owe it to 
yourself and your clients to attend this event. The technical sessions were 
great. There is much to learn about CALL FORM and CALL WORKER, how to 
prepare your code for 64 Bit, how do subforms work now, using 4D language 
objects, where are we headed, etc.


I have not thought about subforms for a long long long time. Now I can see 
a new use for them today!


At the Art Institute of Chicago, Brent Raymond and I have spent a great 
deal of effort over the last couple of years to move our code base to the 
current version of 4D. Now I can't wait to make things better by taking 
advantage of the things the new versions can do.


There won't be a summit until next spring. Take advantage of the World Tour 
2017.





Edgar Hammond 
ehamm...@questinformation.com

Quest Information Systems



**
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 World Tour 2017

2017-04-05 Thread David Porter via 4D_Tech
I just saw the 4D World Tour 2017 Day 2 State-of-the-art training presentation 
in Chicago.
Jean-Pierre Ribreau and Add Komoncharoensiri did a great job explaining and 
demonstrating many recent changes to 4D.  

I am currently reviewing my notes, and going over the documentation and 
examples on the usb drive.
Multiple windows open in a single process, modular forms, better ways of 
communicating between processes, better ways to pass parameters …
Yes, some of this is in the manuals, it is just so much better to see it, hear 
it explained, and ask questions.

Glad I went. 

Dave Porter
Tailored Solutions, Inc.
Business Management Software for Label Converters
http://www.labeltraxx.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: Migrating Tables with Relations Between Structures

2017-04-05 Thread John DeSoi via 4D_Tech
Hi Peter,

I have not implemented this, but I'm contemplating it for a component that 
would need to initially create some table structure in the host component. If 
you want to export/import a subset of tables, it seems not too hard to export 
the XML structure and then parse it to create a new XML file with just the 
parts you want. So if I only want 3 tables out of 100, the new XML file would 
just have those three tables and the relations between them.

Not worth it if this is a one off transfer, but it seems like something that 
could be generalized if needed more than once.

John DeSoi, Ph.D.



> On Apr 5, 2017, at 9:07 AM, Peter Jakobsson via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> Thanks for that suggestion.
> 
> I tried that but in a complex structure it’s quite a footery and unsystematic 
> process. You’ve got to identify tag blocks indirectly by UUID and so on and I 
> found it didn’t save much time over just redrawing the relations manually. It 
> probably works better when you’re transferring an entire structure rather 
> than having to fish out the stuff you want from a superset.

**
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: Google Address Lookup/ Autocomplete

2017-04-05 Thread Kirk Brooks via 4D_Tech
Sujit,
A couple of things about addresses to be aware of when using google. First
is google doesn't validate an address. Think navigation. If my primary
interest is getting TO a place I'm not worried about delivering the mail or
whether the address is correct. I only care about figuring out where it
should be. That's what google does. You can't depend on google for
confirmation a given address actually exists - only where it should be if
it does exist. Same goes with the zip code and such. Granted they are
pretty good but it's not their primary goal.

The second thing is they get a little pricey if you do anything beyond open
a map in a browser window.

We do a lot of address verification. Google is good for looking at a
location, like job locations, especially when the job might be someplace
that doesn't have street names yet (housing tracts). But you can't send the
bill there. For those addresses you need a better service. I like
SmartyStreets but there are lot of others.

On Tue, Apr 4, 2017 at 5:39 PM, Sujit Shah via 4D_Tech <4d_tech@lists.4d.com
> wrote:

> I am wondering if anyone has developed code to integrate with their API
> within the context of a 4D Form?
>
>
>
> --
>
> 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
> **




-- 
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: Question about passing JSON to 4D

2017-04-05 Thread Kirk Brooks via 4D_Tech
Miyako,
Thanks very much for pointing me in the right direction.

Let me share how I've got this working. It's better but still feels a
little kludgey.

On the javascript side here's how I changed the post method:

var postData = JSON.stringify(woData);

$.ajax({
url: '/workorder',
type: 'POST',
contentType: 'plain/text; charset=utf-8',
processData: false,
data: postData
})
.done(function(data) {
console.log(data);
// check data for error message
if(data.error){  // show the error
swal(data.error, '', 'warning');
} else {
swal(data.pageMsg, '', 'success');
}
})
.fail(function() {
swal('Fail!', '', 'warning');
})
.always(function() {
//   alert( "complete" );
});
}

'contentType' refers to the data being SENT to the server. 'dataType',
which I didn't define, deals with the data returned.

I could not get 4D to handle the JSON contentType directly so I stringify
it and send it as plain text. I'm probably missing something about how to
manage that.

'processData' is false to prevent converting it into a query string.
Converting it might not be a bad thing if you are sending form data
directly. I'm not so it didn't help.

On the 4D side all I need is:

WEB GET HTTP BODY($body)

and $body contains the text of postData which I can easily parse into a
c-object.

I played with WEB GET HTTP BODY PARTS and here is where the processData
option from above comes into play. If it's omitted or TRUE data are
converted to a query string and each 'element' is a body part. In my case
it meant instead of one element (the stringified JSON) there were about 50
or so (each key/value of the JSON). That might be desirable if I had an
array of checkboxes, for instance.

With processData = false the data is submitted as a single block and that's
why WEB GET HTTP BODY returns the complete JSON string. Interestingly if I
process it by body parts (there's only 1) it's broken into the same two
parts I found in the first place in the name/value pair.

There are a ton of useful examples to be found. This one is pretty complete
and shows how to start/stop a progress indicator (loader):

https://webdesign.tutsplus.com/tutorials/how-to-use-jquerys-ajax-function--cms-25774

this one is non-intimidating and has a concise list of $.ajax options:

https://www.sitepoint.com/use-jquerys-ajax-function/



On Tue, Apr 4, 2017 at 5:35 PM, Keisuke Miyako via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> WEB GET VARIABLES only parses form variables (x-www-form-urlencoded).
>
> and then, jQuery post() only sends x-www-form-urlencoded.
>
> http://stackoverflow.com/questions/5529685/post-doesnt-
> send-data-as-json-but-as-x-www-form-urlencoded-instead
>
> so with this setup,
> you are basically working with a string variable whose name is "data"
> and whose content just happens to look like JSON.
>
> if you want to directly work with JSON,
> then you need to use jQuery ajax (not post) as explained in the SO post
> above,
> and use
> WEB GET HTTP HEADER
> WEB GET HTTP BODY PARTS/WEB GET HTTP BODY
> JSON Parse/JSON PARSE ARRAY
> with appropriate error handling instead of WEB GET VARIABLES.
>
>
>
> **
> 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: Migrating Tables with Relations Between Structures

2017-04-05 Thread Peter Jakobsson via 4D_Tech
Hi John

Thanks for that suggestion.

I tried that but in a complex structure it’s quite a footery and unsystematic 
process. You’ve got to identify tag blocks indirectly by UUID and so on and I 
found it didn’t save much time over just redrawing the relations manually. It 
probably works better when you’re transferring an entire structure rather than 
having to fish out the stuff you want from a superset.

Peter

On 5 Apr 2017, at 14:41, John DeSoi via 4D_Tech <4d_tech@lists.4d.com> wrote:

> You could export the XML structure definition and then edit it to only 
> include the tables and relations you want. Then import it into the target 
> structure.

**
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: Migrating Tables with Relations Between Structures

2017-04-05 Thread John DeSoi via 4D_Tech
You could export the XML structure definition and then edit it to only include 
the tables and relations you want. Then import it into the target structure.

John DeSoi, Ph.D.



> On Apr 5, 2017, at 5:34 AM, Peter Jakobsson via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> Let’s say you have a group of tables with complex relations. You want to copy 
> them from one structure to another as a coherent block, retaining the 
> relations.
> 
> What’s the best way ?
> 
> - drag drop between the two respective explorers in design mode
> - copy & paste from the structure editor
> - export SQL definition
> - some other way ?

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

form fields and variables with rounded borders

2017-04-05 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi,

Is there a (smart) way to set rounded borders to fields and variables on a form?
In other apps I am seeing the use of rounded borders for fields a lot.
I know I can set border to none and put a rounded rectangle beneath, but I was 
hoping for something easier.

Also, I often see fields without border where a (blue) line appears below the 
field when it has the focus

Is there a 4D GUI expert out here that knows how to deal with these kind of 
wishes?

Thanks in advance,

Piotr

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