1) it is the kind of app that is tracking a lot of data and we do not want
to chance losing it in one fashion or another. Besides, there are many
instances where you want to get the PK back to do some other stuff. Maybe we
can kick it around more once PLUM 1.0 is released.

2) Thanks - Interesting. Seems like maybe one of the ways PLUM can be
extended in some fashion. Not sure if ADAM foresees that for PLUM's future,
but would be interesting to discuss.

Dan
----- Original Message ----- 
From: "Jeff Fleitz" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, November 09, 2004 11:04 AM
Subject: RE: [plum] returning inserted PK & Menu's


> 1) I am pretty sure the IDE will not do this.  The IDE allows you to
> redirect from an action page to basically any template you want, but
that's
> it.  Any reason why you want to save the first page and have a PK
returned?
> To me it makes more sense to just store your wizard field data in a
Session
> structure and do one insert at the Finish button of the last page.
>
> 2) Yeah, modules outside of the admin area require a manual tweak. I
> actually stopped using the databaselinks.cfm page, because it gets
> overwritten each time you generate.  I either copy it to an adminlinks.cfm
> template which I can control, or eliminate the include call altogether and
> place the nav links directly in the leftnavbar.cfm template.
>
> HTH,
>
> Jeff
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Dan
> O'Keefe
> Sent: Tuesday, November 09, 2004 10:03 AM
> To: [email protected]
> Subject: [plum] returning inserted PK & Menu's
>
> 1)    Does the PLUM IDE support generating an action page for inserting a
> record and returning the identity PK so I can use it on the next form in a
> wizard style interface? Poking around in the database blocks component, I
> see there is a method there for doing that, but wanted to see if there is
a
> way to do that from the IDE.
>
> 2)    For Navigational Menu's, I realize that adding additional Modules
adds
> the menu link automatically on the admin side, but adding additional links
> on the menu's elsewhere takes code changes outside the IDE? Not a big
deal,
> just want to make sure I am not missing something.
>
> Dan
>
> ----- Original Message ----- 
> From: "Jeff Fleitz" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Friday, November 05, 2004 11:59 AM
> Subject: Re: [plum] Extending a PLUM generated app
>
>
> > I did a simple wizard page a couple months ago, and it was very simple.
> >   I am using sessions so here is what I did.
> >
> > 1. Create a new module for the wizard. You will want to do this because
> > Plum's  Module exit routine handles destroying the persistent variables
> > for you once you leave the wizard (module). Read up on the module exit
> > routine in the Plum Framework section of the help file for more info.
> >
> > 2. Use the IDE to create an add form set for each step of your wizard
> > (Step1AddForm.cfm, Step1AddAction.cfm, etc).
> >
> > 3. Place the fields for each form on the add forms.  In the action page,
> > set your variables:
> >
> > <cfscript>
> > Session.variable1 = #Form.Fieldname1#;
> > Session.variable2 = #Form.Fieldname2#;
> > </cfscript>
> >
> >
> > <!--- Route to step 2 of the form --->
> > <cflocation url="Step2AddForm.cfm">
> >
> > repeat as necessary.
> >
> > The last action page will do the insert or update as normal.  When you
> > are done, redirect the user out of the module, and the framework will
> > take care of destroying the variables.
> >
> > You can of course use more advanced structures than my example.
> >
> >
> > You look like you are ready to spend more time coding in a traditional
> > cf manner now. I don't know that you ever totally divorce yourself from
> > the ide, because it is so easy to go in a create a form that does
> > something neat in 5 minutes, without affecting your project.
> >
> > I don't know what you are using for a database, but if you use MS SQL,
> > don't forget to check out the SP and component generators.
> >
> > Jeff
> >
> >
> >
> > Dan O'Keefe wrote:
> > > Kind of an architectural question - Plum app is generated and tweaked
to
> > > work with all existing table in a database. Forms have been enhanced
and
> > > modified to a reasonable extent.
> > >
> > > Now, I want to create some app specific functionality, say a wizard
that
> > > will step through several screens adding data to a few different
tables
> > > as I go along.
> > >
> > > Question - time to divorce from the plum IDE? I am not seeing an easy
> > > way to do this thought the IDE. I am also thinking I will need to call
> > > my next display page from the action page to step through the wizard.
> > >
> > > Any thoughts in this area?
> > >
> > > Dan
> >
>
>
>
>
>
>



Reply via email to