CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeCharge.Discussion

 Automatic call of a new form when updating a NEW record, not when editing one

Print topic Send  topic

Author Message
Christian Hamel
Posted: 07/31/2001, 7:08 AM

Hello
I would like to automaticcaly called a new form upon updating a new
record. But I do not want this form be called when user is editing an
existing record. Any idea ?

Thank you.

Alexey Alexapolsky
Posted: 08/01/2001, 2:21 AM

I don't quite get what you want.
This is how inserts/updates are handled in CC
1) We have a grid form with list of items.
If you want to update some item , you click on it and it brings you to its
record
If you want to insert a new item there is a link "Insert" on a grid ,
and it brings an empty record that will be inserted later on



--
Alex

Christian Hamel <chamel@technilab.NOSPAM.ca> wrote in message
news:9k6e4k$d3e$1@news.codecharge.com...
> Hello
> I would like to automaticcaly called a new form upon updating a new
> record. But I do not want this form be called when user is editing an
> existing record. Any idea ?
>
> Thank you.
>
>

Christian Hamel
Posted: 08/01/2001, 12:36 PM

Well, simple. Let's say I have a grid display my employees.
If I click on Insert, I'm then redirected to a data entry form.
If I click on Edit, I'm then redirected to the same form with the values
already in all the textbox.

What I want is when I'm on Insert mode (New employee), after I click on
Update button, I want to be redirected not to the grid but to another form
form data entry. But the thing is I do not want this form be called if I'm
not into record modification process, only in newrecord mode..
Is that possible ?


"Alexey Alexapolsky" <alexa@codecharge.com> wrote in message
news:9k8hmi$m69$1@news.codecharge.com...
> I don't quite get what you want.
> This is how inserts/updates are handled in CC
> 1) We have a grid form with list of items.
> If you want to update some item , you click on it and it brings you to its
> record
> If you want to insert a new item there is a link "Insert" on a grid ,
> and it brings an empty record that will be inserted later on
>
>
>
> --
> Alex
>
> Christian Hamel <chamel@technilab.NOSPAM.ca> wrote in message
>news:9k6e4k$d3e$1@news.codecharge.com...
> > Hello
> > I would like to automaticcaly called a new form upon updating a new
> > record. But I do not want this form be called when user is editing an
> > existing record. Any idea ?
> >
> > Thank you.
> >
> >
>
>

David A. Lee
Posted: 08/01/2001, 3:15 PM

I do this by making a 'dummy page' called 'goto'
I make the action of any form I want to redirect go to the 'goto' page.
Then This goto page uses a session variable to determine which
page to *really* go to ....
How exactly to code this depends on what language you are using,
I'm using perl and use the SetSessionVar() method to set the
'goto page' and http_redirect() to enact the real 'goto' in the "Open"
section of a dummy (empty) form in the goto page.
Works great, entirely programable. Anywhere in my code I can
change what the 'next' page will be by setting the session variable.



> Well, simple. Let's say I have a grid display my employees.
> If I click on Insert, I'm then redirected to a data entry form.
> If I click on Edit, I'm then redirected to the same form with the values
> already in all the textbox.
>
> What I want is when I'm on Insert mode (New employee), after I click on
> Update button, I want to be redirected not to the grid but to another form
> form data entry. But the thing is I do not want this form be called if
I'm
> not into record modification process, only in newrecord mode..
> Is that possible ?
>
>
> "Alexey Alexapolsky" <alexa@codecharge.com> wrote in message
>news:9k8hmi$m69$1@news.codecharge.com...
> > I don't quite get what you want.
> > This is how inserts/updates are handled in CC
> > 1) We have a grid form with list of items.
> > If you want to update some item , you click on it and it brings you to
its
> > record
> > If you want to insert a new item there is a link "Insert" on a grid ,
> > and it brings an empty record that will be inserted later on
> >
> >
> >
> > --
> > Alex
> >
> > Christian Hamel <chamel@technilab.NOSPAM.ca> wrote in message
> >news:9k6e4k$d3e$1@news.codecharge.com...
> > > Hello
> > > I would like to automaticcaly called a new form upon updating a
new
> > > record. But I do not want this form be called when user is editing an
> > > existing record. Any idea ?
> > >
> > > Thank you.
> > >
> > >
> >
> >
>
>

Christian Hamel
Posted: 08/02/2001, 7:22 AM

Thank you very much, I'll try that..


"David A. Lee" <dave@calldei.com> wrote in message
news:9k9v2r$le7$1@news.codecharge.com...
> I do this by making a 'dummy page' called 'goto'
> I make the action of any form I want to redirect go to the 'goto' page.
> Then This goto page uses a session variable to determine which
> page to *really* go to ....
> How exactly to code this depends on what language you are using,
> I'm using perl and use the SetSessionVar() method to set the
> 'goto page' and http_redirect() to enact the real 'goto' in the "Open"
> section of a dummy (empty) form in the goto page.
> Works great, entirely programable. Anywhere in my code I can
> change what the 'next' page will be by setting the session variable.
>
>
>
> > Well, simple. Let's say I have a grid display my employees.
> > If I click on Insert, I'm then redirected to a data entry form.
> > If I click on Edit, I'm then redirected to the same form with the values
> > already in all the textbox.
> >
> > What I want is when I'm on Insert mode (New employee), after I click on
> > Update button, I want to be redirected not to the grid but to another
form
> > form data entry. But the thing is I do not want this form be called if
> I'm
> > not into record modification process, only in newrecord mode..
> > Is that possible ?
> >
> >
> > "Alexey Alexapolsky" <alexa@codecharge.com> wrote in message
> >news:9k8hmi$m69$1@news.codecharge.com...
> > > I don't quite get what you want.
> > > This is how inserts/updates are handled in CC
> > > 1) We have a grid form with list of items.
> > > If you want to update some item , you click on it and it brings you to
> its
> > > record
> > > If you want to insert a new item there is a link "Insert" on a grid ,
> > > and it brings an empty record that will be inserted later on
> > >
> > >
> > >
> > > --
> > > Alex
> > >
> > > Christian Hamel <chamel@technilab.NOSPAM.ca> wrote in message
> > >news:9k6e4k$d3e$1@news.codecharge.com...
> > > > Hello
> > > > I would like to automaticcaly called a new form upon updating a
> new
> > > > record. But I do not want this form be called when user is editing
an
> > > > existing record. Any idea ?
> > > >
> > > > Thank you.
> > > >
> > > >
> > >
> > >
> >
> >
>
>


   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.