Print Page | Close Window

InplaceButton Changing Item Values

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=6227
Printed Date: 19 September 2024 at 6:36pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: InplaceButton Changing Item Values
Posted By: jcollier
Subject: InplaceButton Changing Item Values
Date Posted: 25 January 2007 at 12:22pm
Ok, I'm missing something somewhere.  I'm using an InPlace button in a report control with Collapsed Groups.

I expand the group I want, click the inplace button which brings up a dialog to choose font name and size.  Then I want to update the item in 1 row to show the new font size and the item in another row to show the new font.

I've tried the following 2 ways but get Invalid Procedure Call on both.

I'm sure I'm just overlooking something simple

rpt.Records(ROW_STAMPPOINTSIZE).Item(COLUMN_VALUE).Value = CStr(CCommDiag.FontSize)
                rpt.Records(ROW_STAMPFONTNAME).Item(COLUMN_VALUE).Value = CStr(CCommDiag.FontName)
               
'                rpt.Rows(ROW_STAMPPOINTSIZE).Record.Item(COLUMN_VALUE).Value = CStr(CCommDiag.FontSize)
'                rpt.Rows(ROW_STAMPFONTNAME).Record.Item(COLUMN_VALUE).Value = CStr(CCommDiag.FontName)




Replies:
Posted By: jcollier
Date Posted: 29 January 2007 at 12:02pm
Anyone?


Posted By: sserge
Date Posted: 31 January 2007 at 5:24am
Hi,

I'm sure your second solution should work:

rpt.Rows(ROW_STAMPPOINTSIZE).Record.Item(COLUMN_VALUE).Value = CStr(CCommDiag.FontSize)
rpt.Rows(ROW_STAMPFONTNAME).Record.Item(COLUMN_VALUE).Value = CStr(CCommDiag.FontName)


You only have to check that Rows with numbers ROW_STAMPPOINTSIZE and ROW_STAMPFONTNAME are not Group rows; and to check that column  with number COLUMN_VALUE really exist.

--
WBR,
Serge


Posted By: jcollier
Date Posted: 31 January 2007 at 1:19pm
That was actually my first thought also.   The report is being used in Treeview mode and some of the nodes above these rows can be collapsed and that seems to throw the row count off.  The only way I got it to work was to expand all of the tree nodes above these 2 rows.


Posted By: sserge
Date Posted: 31 January 2007 at 5:29pm
Yes, Rows count depends on whether some groups are collapsed or not. Looks like you should rely on Record children collection.
You know your row --> you can get your Record --> you can get children of this record --> you can access items of any child record.

--
WBR,
Serge



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