Print Page | Close Window

Urgent: Constraints for rows/records

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=12027
Printed Date: 29 September 2024 at 11:22pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Urgent: Constraints for rows/records
Posted By: csunita
Subject: Urgent: Constraints for rows/records
Date Posted: 29 August 2008 at 2:31pm

How does one add constraints/combo box for each of the rows or records in report control?

Meaning that for Column 2 for example, depending on the row number, the contents of the combo box are going to be different.

Can someone please explain with a code snippet?

 
Thanks.



Replies:
Posted By: AndreiM
Date Posted: 30 August 2008 at 3:39am
Hi,
 
Constraint set in EditOptions. Look at TaskList form in our ReportSample to see how add constraint to EditOptions object.
 
EditOptions may be commom for whole column (stored in CXTPReportColumn) or it may be a separate object for CXTPReportRecordItem.
 
To get/create separate EditOptions for RecordItem just call
RecordItem->GetEditOptions(NULL).
 
For more details see implementation CXTPReportRecordItem::GetEditOptions.
 


-------------
Regards,
Andrei Melnik


Posted By: csunita
Date Posted: 02 September 2008 at 11:06am
Thanks. That did it.
I was trying with RecordItem->GetEditOptions(pColumn), and that was a mess.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net