Hello,

I created an object similar to the FileObject, called typFile, except that
it is more flexible. I defined a property definition for this object. I then
created objects that have very similar properties and methods. Both embed
the typFile object. 

I first created the parent object
I created the typFile 
I called the typFile Edit handler in the parent object's edit handler. 

For some reason, this process works for one of the parent objects and I get
the following error for other parent object. I am not sharing the typFile.


Error resolving parameter STOBJECT.SPONSORSIMAGE.OBJECTID 
The object SPONSORSIMAGE.OBJECTID is not present in the scope named
STOBJECT. It is likely that you have misspelled the name of the object you
are trying to access. 
The error occurred while processing an element with a general identifier of
(CFA_CONTENTOBJECT), occupying document position (54:8) to (58:25).

Here is the Include files for the Edit Handlers for the Parent Objects. 

 <<edit_works.cfm>> ----> This is the edit handler of the parent object
which works.

 <<edit_doesnt_work.cfm>> -----> This is the edit hander for the parent
object that doesn't work. 
As you will see, there is hardly any difference in the files. Also, the
process I used to create the parent and the embedded objets are almost same,
with the exception of the property name and the type id:

        <cfa_contentObjectCreate
        dataSource = "#request.cfa.datasource.dsn#"
        typeid="3C2EF5B3-110E-11D5-A424006094A38F50"
        bActivate = "No"
        r_id = "thisobjectid">

        <!--- Then create the image property, calling the create method.
--->
        <cfa_contentObjectCreate
        dataSource="#request.cfa.datasource.dsn#"
        objectID="#thisobjectID#.SponsorsImage"
        typeID="3C2EF5B3-110E-11D5-A424006094A38F50"
        method="create"
        bActivate = "No"
        r_id = "imageID">

Any help will be greatly appreciated. 

Nitin








~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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