Print Page | Close Window

can i retrieve the data by double click the report

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=11803
Printed Date: 17 November 2024 at 7:16pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: can i retrieve the data by double click the report
Posted By: fireflame
Subject: can i retrieve the data by double click the report
Date Posted: 13 August 2008 at 12:24am
I use virtual mode,i use  the doubleclick function like following:void CEventBrowserView::OnReportItemDblClick(NMHDR *pNotifyStruct, LRESULT * result)
{
 XTP_NM_REPORTRECORDITEM* pItemNotify = (XTP_NM_REPORTRECORDITEM*) pNotifyStruct;
 if(pItemNotify->pRow && pItemNotify->pRow->IsGroupRow() == FALSE)
 {
  CXTPReportRecordItemText* pRecordTitle;
  pRecordTitle = (CXTPReportRecordItemText*)pItemNotify->pRow->GetRecord()->GetItem(0);
  CString strPartOrClient = pRecordTitle->GetValue();
  CString stra = strPartOrClient;
 }
}
 
 
the value i got is "",how can i get the value?



Replies:
Posted By: mgampi
Date Posted: 13 August 2008 at 9:30am
Hi;

Try to call GetCaption(0) instead of GetValue()


-------------
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022



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