Select the search type
  • Site
  • Web
Search
You are here:  Support/Forums
Support

Bring2mind Forums

Upload Post-Processing
Last Post 02/17/2008 10:34 PM by Peter Donker. 5 Replies.
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
A B
New Member
New Member
Posts:20


--
02/12/2008 1:14 AM

Does anyone know of any way to hook into the DMX upload script to run some custom code after the upload is complete?

I'm thinking that adding a custom attribute with a custom control may work, but I don't know what interface that would implement.  If the EntryId isn't definied at this point I don't see that work around working.

Anyone else have any ideas?

Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
02/12/2008 10:14 PM
Hi Chris,

I was waiting for a custom project where I really needed this before I'd implement it. I have given this some thought and have not yet found the 'perfect' solution. I think ideally I'd like to have a full-fledged workflow engine underneath it all. But that is for DMX 5. If we keep our feet on the ground I can only think of 2 methods: 1 is to copy the edit page and plug your logic in there, then override the standard edit page in DMX_Extensions. Secondly you could play around with custom attributes. If you use a custom control type for this then that custom control gets called upon Update. Which would you prefer?

Peter
A B
New Member
New Member
Posts:20


--
02/14/2008 10:08 PM
Hi Peter,

That's a though trade off. I like the custom control option as it would keep my custom code somewhat separate from the DMX code, however it complicates the UI as I don't have any use for the extra control. Replacing the edit page would be more work and would make DMX upgrades harder to merge, however it would offer more flexibility and probably a better overall end user experience. I guess replacing the edit page would be my preferred solution at this point (a workflow engine for DMX 5 would be very cool).

If you could provide some guidance on what I need to implement to replace the edit page and any sub systems I could call to reduce the amount of code duplication that would be great.

Thanks
Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
02/15/2008 9:40 PM

Hi Allan,

Copy EditEntry.ascx and code behind. Go to your db and find the table DMX_Extensions. Find the Command.Edit record and change the ControlToLoad to what you have made. I agree it is less isolated than the custom attribute solution but the latter does not (yet) have an update at the very end of the edit process. So for now you'll have to do with this. Sorry. I think the DMX updates will be a relatively minor issue as you probably won't add/change that much code (just a call to your logic in the Wizard Finish probably).

Peter

PS DMX_Extensions is cached. Always recycle the app after changing this.

A B
New Member
New Member
Posts:20


--
02/15/2008 10:35 PM
Thanks Peter, but where can I find the code behind file? It's not included with the DMX 04.02.00 as far as I can tell.
Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
02/17/2008 10:34 PM
No, you need a partial source code license for that. Contact me for this. Currently it is sold for 449 $. I'll deduce what you paid for the regular license.
Peter
You are not authorized to post a reply.