Thread View: borland.public.intrabuilder.forms
2 messages
2 total messages
Started by lagrave
Mon, 27 Jul 1998 00:00
_sys.forms.run() is driving me crazy
Author: lagrave
Date: Mon, 27 Jul 1998 00:00
Date: Mon, 27 Jul 1998 00:00
26 lines
1528 bytes
1528 bytes
Hi everybody
I have a problem which is driving me completely mad.
I have one form (let's call it Form1) which acts like a menu and
launches other forms (Form1a, Form1b, etc..). On every "child" form I
put a button which allows to go back to Form1 with
_sys.forms.run("form1.jfm") command.
Everything works perfectly with Form1a and Form1b, but when I click on
the button on Form1c and Form1d, it RELOADS the form from where the
event was called instead of lauching Form1. BUT, the button and the code
behind is EXACTLY the same on Form1a as on Form1b as on Form1c and so
on. I tried maybe a hundred times to make it work properly but I never
managed to.
I tried to use directly the onServerClick event or to use the
onClick/onServerSubmit/onServerClick sequence but it changed nothing.
Has someone ever experienced something like that ? Is there a solution,
or shall I hit my head against the wall, erase my "ill" forms and start
over ?
Otakar KOPECKY
(Otakar.Kopecky@nanterre.marelli.fr)
Re: _sys.forms.run() is driving me crazy
Author: Boris van Woerkom
Date: Tue, 28 Jul 1998 00:00
Date: Tue, 28 Jul 1998 00:00
36 lines
2098 bytes
2098 bytes
lagrave wrote:
>
> Hi everybody
>
> I have a problem which is driving me completely mad.
>
> I have one form (let's call it Form1) which acts like a menu and
> launches other forms (Form1a, Form1b, etc..). On every "child" form I
> put a button which allows to go back to Form1 with
> _sys.forms.run("form1.jfm") command.
>
> Everything works perfectly with Form1a and Form1b, but when I click on
> the button on Form1c and Form1d, it RELOADS the form from where the
> event was called instead of lauching Form1. BUT, the button and the code
> behind is EXACTLY the same on Form1a as on Form1b as on Form1c and so
> on. I tried maybe a hundred times to make it work properly but I never
> managed to.
>
> I tried to use directly the onServerClick event or to use the
> onClick/onServerSubmit/onServerClick sequence but it changed nothing.
>
> Has someone ever experienced something like that ? Is there a solution,
> or shall I hit my head against the wall, erase my "ill" forms and start
> over ?
>
> Otakar KOPECKY
> (Otakar.Kopecky@nanterre.marelli.fr)
I had an experience like that ( you can still see the wound on my head
;) when I had 6 buttons on my form all with the same caption. IB uses
the caption in the buttons to identify which button was pressed. You can
check the HTML source. When I changed the caption of the buttons to
"1.open", "2.open", 3.open and so on it was working fine. I don't know
if this is your problem but this took me 2 days to figure out :-(
, Boris
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads