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 List1 Table, Multiple Outputs1 Table, Multiple Outputs
Previous
 
Next
New Post
7/24/2009 3:16 AM
 

 I'm using UDT with 4.9.3, can you trick dotnetnuke into doing this on the same page?

Scenario:

1.) Create "Main FNL Page" with one FNL module and associated list.

2.) Create pages (not included in the menu), add the FNL module from the "Main FNL Page" above.

3.) Link back to the modules in the pages you created in point 2 inside the "Main FNL Page".

Am I chasing a parked car with this?

Peter.

P.S. Just completed my own custom SQL update statement for 1000 rows :( If only I new about Csv2UdtImport!

 
New Post
7/24/2009 6:56 AM
 

No, step 3 doesn't work.

 
New Post
7/24/2009 7:24 AM
 

 Here's a little script I use to generate SQL statements for selecting rows from a UDT.

You will need to know the ModuleID of your UDT. Paste the script given below  into your Host SQL page.

Replace the ModuleID (461) with the ModuleID of your UDT.

Run the script and the output will be a SQL SELECT statement you can use in the reportsmodule.

If you want to project, restrict or aggregate the results you can create a view in the database and then select from that view in the reports module:

"CREATE VIEW MyView AS <generated select goes here>"    

then you can SELECT * FROM MyView like it was a normal table. 

The script:

 

DECLARE @UDT_ModuleId int 
SET @UDT_ModuleId=461  
SELECT 'SELECT {databaseOwner}{objectQualifier}UserDefinedRows.UserDefinedRowId AS Id' +
           ( SELECT ' ,['+ udt2.FieldTitle +'].FieldValue AS ['+udt2.FieldTitle+']'
               FROM {databaseOwner}{objectQualifier}UserDefinedFields udt2
              WHERE udt2.ModuleID = udt1.ModuleID AND udt2.Visible <> 0 AND udt2.ModuleID=@UDT_ModuleId
              ORDER BY FieldOrder
                FOR XML PATH('') )
        + ' FROM {databaseOwner}{objectQualifier}UserDefinedRows ' +
       (SELECT ' LEFT OUTER JOIN {databaseOwner}{objectQualifier}UserDefinedData AS ['
               + {databaseOwner}{objectQualifier}UserDefinedFields.FieldTitle 
               +'] ON {databaseOwner}{objectQualifier}UserDefinedRows.UserDefinedRowId = ['
               +{databaseOwner}{objectQualifier}UserDefinedFields.FieldTitle+'].UserDefinedRowId AND ['
               +{databaseOwner}{objectQualifier}UserDefinedFields.FieldTitle+'].UserDefinedFieldId='
               +CAST({databaseOwner}{objectQualifier}UserDefinedFields.UserDefinedFieldId as nvarchar)
  	   FROM   {databaseOwner}{objectQualifier}UserDefinedFields
         INNER JOIN {databaseOwner}{objectQualifier}Modules 
           ON ({databaseOwner}{objectQualifier}UserDefinedFields.ModuleId={databaseOwner}{objectQualifier}Modules.ModuleId)  	   
         WHERE {databaseOwner}{objectQualifier}UserDefinedFields.ModuleId=@UDT_ModuleId 
          AND {databaseOwner}{objectQualifier}UserDefinedFields.Visible<>0  
         ORDER BY FieldOrder FOR XML PATH('') )
       + ' WHERE {databaseOwner}{objectQualifier}UserDefinedRows.ModuleId = ' + CAST(@UDT_ModuleId as nvarchar)       
       AS UdtSql       
       FROM {databaseOwner}{objectQualifier}UserDefinedFields udt1
       GROUP BY ModuleId
       HAVING ModuleID=@UDT_ModuleId 
 
New Post
7/24/2009 10:08 AM
 

Though the Reports module was probably the correct solution, at the point when I needed it at deadline the UDT data source/provider was not available (DNN 5.1, Reports 5.1, and FnL 5.0.2).  I turned to commercial modules.  I bought 3 and settled on Netism Satellite Extreme.  I would recommend this module only if you are at least an intermediate coder/scripter of some sort.  If you are, then this module is too good to be true.  I not only solved my problem, but went on to use the module replace 2 other "wonky hacks*" I had done elsewhere in my project.  Here is the link to the module on SnowCovered.  They just released v1.7 adding $sql.Pivot which mades getting data out of the FnL/UDT module a breeze - take a look at their Sample Library.  Cheers - Jeremy

* self-described brilliant work that I am too embarrassed to show real programmers ;)


- Accuraty / Jeremy
 
New Post
7/25/2009 3:53 AM
 

Well, I fixed and extended  the UDT data source provider, it was submitted to the Reports team on Monday.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and List1 Table, Multiple Outputs1 Table, Multiple Outputs


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