Saturday, September 04, 2010
Dnaxp.net Forums
Minimize

Dnaxp.net Forums

The Dnaxp.net Community is proud to present our support forums. The forums enabled us to provide more benefits and better service to our valuable community.

  
Forum
Minimize
 
ForumForumGeneralGeneralBugs & ProblemsBugs & ProblemsMaster detail link not workingMaster detail link not working
Previous Previous
 
Next Next
New Post
 8/3/2007 3:00 PM
 

I have this working on a different page, so I know it works.. I just can't get it working here:

Master SQL:

SELECT idReportPrinterThruConsumer_Title      
,[title]
FROM ReportPrinterThruConsumer_Header
where contentOwnerRoleID in (
 SELECT  r.RoleId
 FROM [OneSite2].[dbo].dnn_UserRoles r
  INNER JOIN [OneSite2].[dbo].dnn_Users on r.UserId = [OneSite2].[dbo].[dnn_Users].UserId
  INNER JOIN [OneSite2].[dbo].dnn_Roles on r.RoleId = [OneSite2].[dbo].[dnn_Roles].RoleId
 WHERE  [OneSite2].[dbo].[dnn_Users].UserId = @UserId
  AND    [OneSite2].[dbo].dnn_Roles.PortalId = @PortalId
  AND    (EffectiveDate <= getdate() or EffectiveDate is null)
  AND    (ExpiryDate >= getdate() or ExpiryDate is null))

Detail Grid SQL:

SELECT idReportPrinterThruConsumer_Title
      ,[OriginRoleID]
      ,[ContentOwnerRoleID]
      ,[title]
      ,[version]
      ,[originName]
      ,[originJobNum]
      ,[totalMailed]
      ,[totalCarrierRte]
      ,[inHomeStart]
      ,[inHomeEnd]
  FROM ReportPrinterThruConsumer_Header

But the DETAIL grid doesn't seem to get the linkage.. ie. the where clause that should be created by the grid control to link master and detail.. 

I thought that the grid would make the following where clause on the detail grid..

Where <Master>.idReportPrinterThruConsumer_Title = <Detail>.idReportPrinterThruConsumer_Title

Thoughts or assistance would be greatly appreciated.

New Post
 8/5/2007 2:25 PM
 

Hi! Thanks for your question and sorry for the delay in answering.

Both query looks good. Try to check the followings:

1. Check that the Details Grid is set to receive data from the appropriate Master Grid (Advanced Settings > Master Module)
2. Try to trim the query. A known problem is a limit in DNN Parameter value lenght. If the query is too long, then it's cutted at 200 character. Whenever is so, you can also try to wrap it into a stored procedure.

I hope it helps.
Regards,
D.

New Post
 8/8/2007 4:16 PM
 

ok.. must have been something like that. Interestingly, it appears that I can set a detail grid to use another detail grid as it's master, for cascading grids..

 

New Post
 8/8/2007 6:08 PM
 

So, how do I use a stored procedure in the Detail Grid? I was thinking the detail grid just appends a where clause..

New Post
 8/9/2007 1:59 AM
 

Hi! I'm glad you fixed your problem.

About cascading grid, this is a feature not much used but quite powerful. You can for example set a Details module rendered as a GridView and one rendered as a DetailsView.

About how to use a stored procedure, just use the same query as you do in the module. Actually the append of the query clause is done on the recordset and not on the database. The module fetch all the records, put it in the module cache, and filters the cached data. This must be improved but still works quite good for most of the cases.

Kind Regards,
D.

New Post
 1/14/2008 4:53 PM
 

Thanks,

So for a detail stored proc, I should create it to return all results (i.e. not take the @MasterID as a parameter) and then let the control filter it by masterID after the return? If so, that's not an option as there are millions of rows in that table...

 

 

New Post
 1/16/2008 10:50 AM
 

Hi!

This feature has been changed on users requests to use the @MasterID parameter. Actually the grid itself doesn't do anymore any filtering. The user should do it using it. For this reason you should have a stored procedure which accept the above parameter for making the filter at database level.

As always we're open to suggestion to improve this feature.

Kind Regards,
D.

Previous Previous
 
Next Next
ForumForumGeneralGeneralBugs & ProblemsBugs & ProblemsMaster detail link not workingMaster detail link not working

  
Forum Policy
Minimize


These Discussion Forums are dedicated to the discussion of the Dnaxp.Net Web Application Framework.

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

1. No Advertising. This includes promotion of commercial products and non-commercial products which are noectly related to the DotNetNuke Web Application Framework
2. No Flaming or Trolling.
3. No Profanity, Racism, or Prejudice.
4. Site Moderators have the final word on approving/removing a thread or post or comment.

  
Adsense
Minimize
  
 
Minimize

Full compatibility of ReportGrid & ReportChart with all releases of DNN from 4.0.2 to 5.4.4

 

The help desk support is always available to help you! Contact us!

Only $64.95 Offer expires on 12/31/2010

 


  

Snowcovered modules
Minimize
  
Privacy Statement  |  Terms Of Use
Copyright 2006-2008 by Dnaxp.Net