Ray,

That's so odd. What you suggested wasn't very different from what I had been
attempting. However, I used the basic suggestion you outlined and it worked
the very first time.

Thanks again!

Nate

-----Original Message-----
From: Raymond Camden [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 26, 2001 8:29 AM
To: Spectra-Talk
Subject: RE: Creating an Object Outside of the Webtop


Here is one way of handling creating objects:

1) On a page, have a link:  href="whatever.cfm?newOb=1">

2) whatever.cfm does:
        <CFIF URL.newOb>
                make the object
                <CFLOCATION whatever.cfm but DONT pass newob=1, pass the ID
of the new ob>
        </CFIF>

3) whatever.cfm does:
        <CFIF NOT URL.newOb and URL.ID>
                call edit handler on the URL.ID
        </CFIF>

Of course, this is pseudo-code, and is just one of many ways.

Basically, you want to do this:
        Create the object and get the ID.
        Call the edit handler for the ID.
        If the edit handler calls a PLP, then you be calling yourself again
and
again, and you want to make sure that if you use a URL flag to say 'make a
new object' that you dont pass it again. Luckily, the CFA_PLP tag allows you
to specify what QUERYSTRING to use, so you can select what to pass in.



=======================================================================
Raymond Camden, Principal Spectra Compliance Engineer for Macromedia

Email   : [EMAIL PROTECTED]
ICQ UIN : 3679482

"My ally is the Force, and a powerful ally it is." - Yoda

> -----Original Message-----
> From: Nate Smith [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 23, 2001 11:08 AM
> To: Spectra-Talk
> Subject: RE: Creating an Object Outside of the Webtop
>
>
> Ray,
>
> Yes, I'm only seeing the first step. I can't figure out how to
> make the PLP
> run outside of the webtop app. I've tried countless work-arounds, but I
> don't think it's supposed to be this difficult to employ.
>
> My edit handler is a custom handler that is registered, and it
> calls an edit
> PLP. Here's a question... if the page keeps submitting to itself, then I
> can't really use a cfa_contentObjectCreate with a method of
> 'edit' here can
> I?
>
> Can you suggest something that will work?
>
> Thanks,
> Nate
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/spectra_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to