Print Page | Close Window

Report Control - Constraints per row

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=3525
Printed Date: 22 November 2024 at 3:16am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Report Control - Constraints per row
Posted By: Warren
Subject: Report Control - Constraints per row
Date Posted: 17 January 2006 at 10:56am
a Report Control question...

How do I add Constraints per row

What I want to do (For example, from the sample code provided in:
Samples->Report Control Sample->Task List Sample
is to change the items in the drop-list in the "status" column
(e.g. to remove "Not Started" from the list, depending on what
has happened to a particular row)

Right now, I do:
CXTPReportColumn* pCol = report.AddColumn(...);
pCol->GetEditOptions()->m_bAllowEdit   = TRUE;
pCol->GetEditOptions()->AddComboButton();
pCol->GetEditOptions()->AddConstraint(_T("Hello 0"), 0);
pCol->GetEditOptions()->AddConstraint(_T("Hello 1"), 1);
pCol->GetEditOptions()->AddConstraint(_T("Hello 2"), 2);

but this gives me the same constraints for every
row in the report control. What I want to do is
customize the constraint list for each row.

I'm using Toolkit Pro 9.81

Thanks

Warren



Replies:
Posted By: Oleg
Date Posted: 17 January 2006 at 11:25am

Hello,

for Item you need call

pItem->CreateEditOptions() to create individual options and

pItem->GetEditOptions() to access it instead pCol->GetEditOptions()

 



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Warren
Date Posted: 17 January 2006 at 12:40pm
Yes, that's what I needed.

Thanks very much Oleg !




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