Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListReporting F & L DataReporting F & L Data
Previous
 
Next
New Post
10/1/2009 11:43 AM
 

Lars Tungen wrote
 

I posted a script that can be used to create sql selects for udt data in this thread:

http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/56/threadid/316216/scope/posts/threadpage/3/Default.aspx

Hi Lars

Your script works great ----- unless there is a lookup entry in the table, then it always returns an empty column even though the column does have a value.

Do you know what might be causing this ?

Many thanks - Guy

 
New Post
10/2/2009 4:49 AM
 

If this happens for lookup fields, it will happen also for other fields which have no values. As the values for the "lookup" fields are not stored inside the UDT tables, they ill be always NULL, same for calculated column.

 
New Post
10/9/2009 10:52 AM
 

Stefan Cullmann wrote
 

If this happens for lookup fields, it will happen also for other fields which have no values. As the values for the "lookup" fields are not stored inside the UDT tables, they ill be always NULL, same for calculated column.

Hey Stefan

For the fields that have no value, where are the lookup values stored? You say not in the UDT tables but how can I modify my SP to return these values.
Does F&L have a stored proc to retrieve the stored (and calculated) values for a UDT/F&L. Might it be helpful to have a look at that ?

Cheers - Guy

 

 
New Post
10/9/2009 7:07 PM
 

Fnl/UDT doesn't work that way, it does not call any other SQL or Stored Procedures. As a good DNN citizen, it uses the DotNetNuke API.

One example: If you link to a local file using the datatype URL or Download, FNL/UDT stores "FiledID={Internal ID of the file}", and it retrieves that same value out of the database. In a later step the FileID gets resolved using the API and retrieves a DotNetNuke FileInfo object. The lookup datatype allows to query this FileInfo object and return properties like FileName, Extension, FileSize or the number how  often the file was clicked.

Whether these information is retrieved from additional database calls or not, FnL/UDT doesn't care about that. It trusts that API that it does something senseful. In fact, these values are often (if not to say most time) cached internally, they don't cause additional calls to database.

We could have written the module in a different way and retrieve this kind of data directly from the database, maybe directly during the SP call which retrieves the UDT data.  This would be a bad design, as we would rely on a structure which is not under our control. We would fear that each update of the underlaying framework can possible harm the module. Instead we trust in the public API.

Don't think SQL, think OO and use the rich function set of the platform.

 
New Post
10/13/2009 6:40 AM
 

Hey Stefan

Many thanks for the explaination, now it all makes sense.  It looks like I'll have to wait for the F&L/UDT datasource to be released before I can do my report.

Cheers - Guy

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListReporting F & L DataReporting F & L Data


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out