Print Page | Close Window

Tag Property for a Record Item

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=4408
Printed Date: 30 April 2025 at 6:23am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Tag Property for a Record Item
Posted By: jcollier
Subject: Tag Property for a Record Item
Date Posted: 14 June 2006 at 2:23pm
Is there any way to store info about a particular Item?  For example, I want to replace a vbAccelerator grid with the Report Control.  In the grid I am using now, I can store the primary key for a customer name, employee name, etc in a property called .CellItemData.  If I have a grid that has both customer name and employee name columns, I can store CellItemData for both in each cell.  If I can recreate that functionality, I can use the Report Control.

Thanks!



Replies:
Posted By: sserge
Date Posted: 15 June 2006 at 3:39pm
Hi,

ReportRecord has a property Tag where you can store your custom information for a record. There are no similar property for ReportRecordItem, but we can add it for next versions if you think it would be useful.

However, you can use some workarounds for that purpose:

1) you can have an array of keys, and assign it to Record.Tag property, then read a key by a correcponding Item index.

Dim ar(10) As Integer
ar(0) = 10
ar(1) = 9
Record.Tag = ar


2) You can add any number of Items to the Record, which will be never visible, and store your custom information as their .Value property. Then you can access it like Record(ItemIndex + BaseItemsNumber).Value

--
WBR,
Serge


Posted By: jcollier
Date Posted: 15 June 2006 at 4:05pm
sserge,

Thanks for the info.  I definitely think it would be useful to be able to just say Item.Tag and then retrieve that info just as we would Item.Value.  It may also be helpful if we could do something like:

RC.Item(RowID, ColumnID).Tag

In place of RowID it would also be helpful to be able to code:

RC.Item(RC.SelectedRow, ColumnID).Tag

Thanks!



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