OK found (with the help of Mr. Kent), that in navajo/edit.cfm that dmHTML is
hardcoded:

can we have line 76

oHTML = createObject("component", application.types.dmHTML.typePath);

updated to:

oHTML = createObject("component", application.types[url.typename].typePath);



<cfif isDefined("URL.deleteDraftObjectID")>
 <cfscript>
  //Delete the copied draft object containers
  oCon =
createObject('component','#application.packagepath#.rules.container');
  oCon.delete(objectid="#URL.deleteDraftObjectID#");
  //Delete the copied draft object
  oHTML = createObject("component", application.types.dmHTML.typePath);
<-------------------------------------------- dmHTML
  oHTML.deletedata(objectId="#URL.deleteDraftObjectID#");
  //Log this activity against live object
  oAuthentication = request.dmSec.oAuthentication;
  stuser = oAuthentication.getUserAuthenticationData();

application.factory.oaudit.logActivity(objectid="#url.objectid#",auditType="
delete", username=StUser.userlogin, location=cgi.remote_host, note="Deleted
Draft Object (#stObj.title#)");
 </cfscript>


-- 
Regards,
Michael J. Sammut
________________________________________________
F O U R  E Y E S  P R O D U C T I O N S

think | plan | create :: web site design & development :: NYC

E. [EMAIL PROTECTED] | T: 718.254.9557 ext. 101 | F: 718.254.0399

W. http://www.foureyes.com
"Michael @ Four Eyes" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> I just created a custom type based upon dmhtml.  Really all I did was add
a
> few fields.  Everything works fine, except when I try to delete an
> underlying draft piece of content, I get the below error.  I have never
sen
> this before.  Any thoughts?  BTW I am on the V22
>
>
>       Element STATUS is undefined in STOBJDRAFT.
>
>
>       The error occurred in
>
C:\_FourEyesWebDev\FarCry\farcry_core\packages\types\_types\renderObjectOver
> view.cfm: line 47
>       Called from
>
C:\_FourEyesWebDev\FarCry\farcry_core\packages\types\_types\renderObjectOver
> view.cfm: line 37
>       Called from
>
C:\_FourEyesWebDev\FarCry\farcry_core\packages\types\_types\renderObjectOver
> view.cfm: line 17
>       Called from
>
C:\_FourEyesWebDev\FarCry\farcry_core\packages\types\_types\renderObjectOver
> view.cfm: line 1
>       Called from
> C:\_FourEyesWebDev\FarCry\farcry_core\packages\types\types.cfc: line 246
>       Called from
> C:\_FourEyesWebDev\FarCry\farcry_core\admin\edittabOverview.cfm: line 45
>
> 45 : <td>What would you like to do now?</td>
> 46 : </tr>
> 47 : <tr class="overview<cfoutput>#stobjDraft.status#</cfoutput>">
> 48 : <td width="50%" valign="top">
> 49 : <!--- column 1 - overview --->
>
>
>
> -- 
> Regards,
> Michael J. Sammut
> ________________________________________________
> F O U R  E Y E S  P R O D U C T I O N S
>
> think | plan | create :: web site design & development :: NYC
>
> E. [EMAIL PROTECTED] | T: 718.254.9557 ext. 101 | F: 718.254.0399
>
> W. http://www.foureyes.com
>
>
>
>



---
You are currently subscribed to farcry-dev as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to