11.21.2008
Register     Login      
 
DotNetNuke Platinum Benefactor

We're happy to show our support for the DotNetNuke platform and community by contributing back to the project at the highest "Platinum" level.

XMod Form & Template Exchange Highlights
Here's a few of the latest additions to the XMod Form & Template Exchange. The Exchange contains snippets, samples, and solutions. It's free and open to all XMod users. We encourage you to use the samples and submit your own.

Visit the Exchange
Contribute to the Exchange

Mashups for XMOD
by Ray Chance
Java Enabled form with email
by Tony Smith
YouTube Video Include
by Patrick Cummings
BrightCove Player using the BrightCove ID ( Flash Player)
by Craig Porter
Kill the 'Edit Item' title
by Eric Mourant
Fading News Ticker
by Kelly Ford
GymnasticsMedia Store
by GymnasticsMedia
Parent Child Relationship For Categories (Select1)
by Ben Bahrenburg
Link Exchange
by Ben Bahrenburg
Fast and Easy News Scroller
by Sean Moran
Powered By XMod
DNNDev.com Forums
Subject: Updating InstanceData field?
Prev Next
You are not authorized to post a reply.

Author Messages
MartinvanBalkom482User is Offline
XMod Newcomer
XMod Newcomer
Posts: 4




8/17/2008 6:28 PM  
I just bought XMod5.1. Last time I worked with XMod it was the 3.0 version. Wow, so many improvements! But I have one nagging problem.

I am aware of the dbo.KB_XMod_ExtractFieldValue function to extract a single field from the InstanceData column; very useful. But is there a similar way to also update a field? I tried (this is just an example):

UPDATE
KB_XMod_Modules
SET
dbo.KB_XMod_ExtractFieldValue(InstanceData,'Node') = 'value'
WHERE
XModID=1

...but it throws an error.

I remember that back then when I was working with XMod 3, I was using xurlp to save Xmod data to a separate table, which I was then able to UPDATE using regular SQL commands, and I was retrieving the data with XMRD. But it's a crutch at best, and I was hoping that perhaps by now there is an easier way to modify the native InstanceData?

Another thing I tried, by the way - since InstanceData is saved out as XML - was to use some of the new XQuery functions available in MSSQL 2005. Alas, InstanceData is saved as ntext, and these functions only work on xml formatted data. Could I simply change the format to xml in the database, or will that likely break everything?

As you might have noticed I am not particularly savvy in SQL, XML and what not... any hints are greatly appreciated!
MartinvanBalkom482User is Offline
XMod Newcomer
XMod Newcomer
Posts: 4




8/18/2008 4:40 AM  
More thorough search through the forums dug out this:

http://dnndev.com/Forums/tabid/215/forumid/18/postid/7730/view/topic/Default.aspx

Have yet to try it but it sounds promising.
You are not authorized to post a reply.
Forums > DNNdev Forums > Extending XMod > Updating InstanceData field?



ActiveForums 3.7
       Terms Of Use      Privacy Statement      © 2004-2008 Kelly Ford