Web Areas On Form Page >1

classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Web Areas On Form Page >1

4D Tech mailing list
Is there something different about web areas when they are on a form page > 1? I’ve used lots of web areas before and never run into my current problem and the only thing I can think of that is different is that it is on form page 3. Here is roughly what happens:

FORM GOTO PAGE(3)
//Set up the web area, create an html page, save it to disk, etc.
WA OPEN URL(*;"waHealthReport";$tHTMLFilePath)

The first time this runs, nothing happens. Subsequent runs work correctly.

Anything I’m missing?

--
Cannon.Smith
Synergy Farm Solutions Inc.
Hill Spring, AB Canada
403-626-3236
<[hidden email]>
<www.synergyfarmsolutions.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:[hidden email]
**********************************************************************
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: Web Areas On Form Page >1

4D Tech mailing list
Cannon,

I vaguely remember running into this, but don't remember the exact details, or what I may have done to deal with it.

I can tell you that we use web areas on form pages 7+ and they work correctly.  Let me see if I can jog my memory on anything special we may do.

Steve

*********************************************
  Stephen J. Orth                                                
  The Aquila Group, Inc.         Office:  (608) 834-9213
  P.O. Box 690                           Mobile:  (608) 347-6447
  Sun Prairie, WI 53590

  E-Mail:  [hidden email]
*********************************************
-----Original Message-----
From: 4D_Tech [mailto:[hidden email]] On Behalf Of Cannon Smith via 4D_Tech
Sent: Monday, May 29, 2017 10:12 AM
To: 4D iNug Technical <[hidden email]>
Cc: Cannon Smith <[hidden email]>
Subject: Web Areas On Form Page >1

Is there something different about web areas when they are on a form page > 1? I’ve used lots of web areas before and never run into my current problem and the only thing I can think of that is different is that it is on form page 3. Here is roughly what happens:

FORM GOTO PAGE(3)
//Set up the web area, create an html page, save it to disk, etc.
WA OPEN URL(*;"waHealthReport";$tHTMLFilePath)

The first time this runs, nothing happens. Subsequent runs work correctly.

Anything I’m missing?

**********************************************************************
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:[hidden email]
**********************************************************************
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Web Areas On Form Page >1

4D Tech mailing list
In reply to this post by 4D Tech mailing list
Cannon,
I had the same problem. I just looked to see how I resolved it. Turns out I
just brute-forced the matter and put that second 'page' onto a separate
form and open it into the window. Looks & behaves just like 'page 2' but
it's not.

I'm actually using multiple pages more conservatively - rarely more than 3
or 4 pages anymore. Either I use dialogs like this (encapsulating the form
actions on the dialog) or use object names to group things together and use
visibility to manage them.

On Mon, May 29, 2017 at 9:12 AM, Cannon Smith via 4D_Tech <
[hidden email]> wrote:

> Is there something different about web areas when they are on a form page
> > 1? I’ve used lots of web areas before and never run into my current
> problem and the only thing I can think of that is different is that it is
> on form page 3. Here is roughly what happens:
>
> FORM GOTO PAGE(3)
> //Set up the web area, create an html page, save it to disk, etc.
> WA OPEN URL(*;"waHealthReport";$tHTMLFilePath)
>
> The first time this runs, nothing happens. Subsequent runs work correctly.
>
> Anything I’m missing?
>
> --
> Cannon.Smith
> Synergy Farm Solutions Inc.
> Hill Spring, AB Canada
> 403-626-3236
> <[hidden email]>
> <www.synergyfarmsolutions.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:[hidden email]
> **********************************************************************




--
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:[hidden email]
**********************************************************************
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Web Areas On Form Page >1

4D Tech mailing list
Hi Kirk,

It’s interesting that this works correctly for Steve. I’m wondering if it’s because I’ve only tried on the Mac so far and he’s using Windows. Do you know if you’ve tried it on both platforms?

Thanks.

--
Cannon.Smith
Synergy Farm Solutions Inc.
Hill Spring, AB Canada
403-626-3236
<[hidden email]>
<www.synergyfarmsolutions.com>


> On May 29, 2017, at 11:23 AM, Kirk Brooks via 4D_Tech <[hidden email]> wrote:
>
> I had the same problem. I just looked to see how I resolved it. Turns out I
> just brute-forced the matter and put that second 'page' onto a separate
> form and open it into the window. Looks & behaves just like 'page 2' but
> it's not.
>

**********************************************************************
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:[hidden email]
**********************************************************************
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Web Areas On Form Page >1

4D Tech mailing list
In reply to this post by 4D Tech mailing list
I did run into this issue, too. At the end of the "On load" form event i set a flag and run Set timer. In the "on timer" event i check if the flag is still set and if i'm on the page with the web area. If yes, i do WA OPEN URL and clear the flag.
My understanding of this is that the web area isn't 'instantiated' until the form page containing it is shown for the first time.

HTH
Ingo Wolf

__
ViELMAC Ingo Wolf
Rheinhessenring 53A
D 55597 Wöllstein
Tel. +49 (0)6703 3070320
Fax +49 (0)6703 3070321
e-Mail [hidden email]

> Is there something different about web areas when they are on a form page > 1? I’ve used lots of web areas before and never run into my current problem and the only thing I can think of that is different is that it is on form page 3. Here is roughly what happens:
>
> FORM GOTO PAGE(3)
> //Set up the web area, create an html page, save it to disk, etc.
> WA OPEN URL(*;"waHealthReport";$tHTMLFilePath)
>
> The first time this runs, nothing happens. Subsequent runs work correctly.
>
> Anything I’m missing?

**********************************************************************
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:[hidden email]
**********************************************************************
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Web Areas On Form Page >1

4D Tech mailing list
Hi Ingo,

This is basically the workaround I’m using right now. Do you know if this is necessary on both Mac and Windows? I haven’t tested Windows yet, but I’m curious.

Thanks.

--
Cannon.Smith
Synergy Farm Solutions Inc.
Hill Spring, AB Canada
403-626-3236
<[hidden email]>
<www.synergyfarmsolutions.com>


> On May 29, 2017, at 1:33 PM, Ingo Wolf via 4D_Tech <[hidden email]> wrote:
>
> I did run into this issue, too. At the end of the "On load" form event i set a flag and run Set timer. In the "on timer" event i check if the flag is still set and if i'm on the page with the web area. If yes, i do WA OPEN URL and clear the flag.
> My understanding of this is that the web area isn't 'instantiated' until the form page containing it is shown for the first time.
>

**********************************************************************
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:[hidden email]
**********************************************************************
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Web Areas On Form Page >1

4D Tech mailing list
In reply to this post by 4D Tech mailing list
Using 4D v15.2 Win we have forms with 7 or 8 web areas on different pages - all work fine.
I can’t get at the code at the moment but I think I just made sure each web area had a different variable name.
If that’s not it, I’ll send another message.
**********************************************************************
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:[hidden email]
**********************************************************************
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Web Areas On Form Page >1

4D Tech mailing list
In reply to this post by 4D Tech mailing list
This is needed and works on both Mac and Windows.

__
ViELMAC Ingo Wolf
Rheinhessenring 53A
D 55597 Wöllstein
Tel. +49 (0)6703 3070320
Fax +49 (0)6703 3070321
e-Mail [hidden email]

> Hi Ingo,
>
> This is basically the workaround I’m using right now. Do you know if this is necessary on both Mac and Windows? I haven’t tested Windows yet, but I’m curious.

**********************************************************************
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:[hidden email]
**********************************************************************
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Web Areas On Form Page >1

4D Tech mailing list
In reply to this post by 4D Tech mailing list
Cannon,
I know my solution works on both platforms but since I develop on a Mac I
don't know if it even showed up on the Windows side.

I seem to recall coming to the same conclusion Ingo mentioned - that the
web area isn't instantiated until it's actually displayed.

This is all in v15 , BTW. And using the webkit. I don't know if any of this
changed since or if it's tied to the webkit. Basically I got what I needed
working and moved on...

On Mon, May 29, 2017 at 1:32 PM, Cannon Smith via 4D_Tech <
[hidden email]> wrote:

> Hi Kirk,
> ​
>
> It’s interesting that this works correctly for Steve. I’m wondering if
> it’s because I’ve only tried on the Mac so far and he’s using Windows. Do
> you know if you’ve tried it on both platforms?
>
> --
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:[hidden email]
**********************************************************************
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Web Areas On Form Page >1

4D Tech mailing list
In reply to this post by 4D Tech mailing list
Thanks, Ingo.

--
Cannon.Smith
Synergy Farm Solutions Inc.
Hill Spring, AB Canada
403-626-3236
<[hidden email]>
<www.synergyfarmsolutions.com>


> On May 29, 2017, at 4:09 PM, Ingo Wolf via 4D_Tech <[hidden email]> wrote:
>
> This is needed and works on both Mac and Windows.

**********************************************************************
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:[hidden email]
**********************************************************************
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Web Areas On Form Page >1

4D Tech mailing list
In reply to this post by 4D Tech mailing list
Thanks, Kirk.

--
Cannon.Smith
Synergy Farm Solutions Inc.
Hill Spring, AB Canada
403-626-3236
<[hidden email]>
<www.synergyfarmsolutions.com>


> On May 29, 2017, at 7:52 PM, Kirk Brooks via 4D_Tech <[hidden email]> wrote:
>
> I know my solution works on both platforms but since I develop on a Mac I
> don't know if it even showed up on the Windows side.

**********************************************************************
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:[hidden email]
**********************************************************************
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Web Areas On Form Page >1

4D Tech mailing list
In reply to this post by 4D Tech mailing list
Actually, the variable names are all the same - it is the object names that are different.

> Using 4D v15.2 Win we have forms with 7 or 8 web areas on different pages - all work fine.
> I can’t get at the code at the moment but I think I just made sure each web area had a different variable name.
> If that’s not it, I’ll send another message.
**********************************************************************
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:[hidden email]
**********************************************************************
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Web Areas On Form Page >1

4D Tech mailing list
I have web areas on a multi page layout each with its own variable. Works
well for me. There was a Kirk - Mayako iNUG message exchange on this and I
am not sure now what made it work for me.



On Wed, 31 May 2017 at 8:00 am, Keith Goebel via 4D_Tech <
[hidden email]> wrote:

> Actually, the variable names are all the same - it is the object names
> that are different.
>
> > Using 4D v15.2 Win we have forms with 7 or 8 web areas on different
> pages - all work fine.
> > I can’t get at the code at the moment but I think I just made sure each
> web area had a different variable name.
> > If that’s not it, I’ll send another message.
> **********************************************************************
> 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:[hidden email]
> **********************************************************************

--

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
"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:[hidden email]
**********************************************************************
Loading...