Doubt in ReportControl Sample? |
Post Reply |
Author | |
Ashok
Senior Member Joined: 02 May 2007 Status: Offline Points: 164 |
Post Options
Thanks(0)
Posted: 31 October 2007 at 9:20am |
Hi,
I have created 2 columns like
S.no Name
and I have added record into the column like
1. Ashok
2. kumar
3. Arun
4. Oleg
5. Norby
in ReportDialog sample. I want to get the name from row. Ie., I want to get the Ashok name from the row like GetText in ListBox Control. Please help with code.
|
|
Ashok
Senior Member Joined: 02 May 2007 Status: Offline Points: 164 |
Post Options
Thanks(0)
|
hI,
Please look into this issue. It's urgent.
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
??? pItem = wndReport.GetRecords()->GetAt(i)->GetItem(0)
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Ashok
Senior Member Joined: 02 May 2007 Status: Offline Points: 164 |
Post Options
Thanks(0)
|
Hi,
Is it any equivalent methods for GetItemData() & SetItemData() in the ReporrtControl Records. Please help
|
|
Ashok
Senior Member Joined: 02 May 2007 Status: Offline Points: 164 |
Post Options
Thanks(0)
|
Hi, How to extract the CXTPReportRecordItemText GetValue() to get the exact text from the exact record? Please help with code. I mean to say I want the CXTPReportRecordItemText m_strText value to display from the record. |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
((CXTPReportRecordItemText*)pItem)->GetValue()
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Ashok
Senior Member Joined: 02 May 2007 Status: Offline Points: 164 |
Post Options
Thanks(0)
|
Hi Oleg,
It works fine. Thanks.
My next query is in ReportDialog Sample, if you press the CHECK_ICON it sorting the Rows in the report control. I want to do like if I press CHECK_ICON the rows in that column containing the CheckBox should be selected automatically (like Select All / DeSelect All). How I can do that? Please help with code. I mean to say that setcheck(true/false) all the checkboxes.
|
|
Ashok
Senior Member Joined: 02 May 2007 Status: Offline Points: 164 |
Post Options
Thanks(0)
|
Hi, Can you please help on this issue. |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi, try catch XTP_NM_REPORT_SORTORDERCHANGED message and select all rows.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Ashok
Senior Member Joined: 02 May 2007 Status: Offline Points: 164 |
Post Options
Thanks(0)
|
Hi, Is it possible to send the code for that. Please. |
|
Ashok
Senior Member Joined: 02 May 2007 Status: Offline Points: 164 |
Post Options
Thanks(0)
|
Hi,
I am unable to do.please send some code related to that.
|
|
Ashok
Senior Member Joined: 02 May 2007 Status: Offline Points: 164 |
Post Options
Thanks(0)
|
Hi,
I got the solution. My Next query is
1. Is there is anything equivalent to FindStringExact in the Report Control?
2. How can I know I clicked the first column or second column etc.,
Please report.
|
|
Ashok
Senior Member Joined: 02 May 2007 Status: Offline Points: 164 |
Post Options
Thanks(0)
|
Hi, 3. I doing like this
m_QT_ctrl.AddRecord( new CMessageRecord(1,cstrQT));I want to set the focused row should be the row which I added(the above code).
I trying like this
CXTPReportRow* pNextRow = m_QT_ctrl.GetRows()->GetAt(m_QT_ctrl.GetRows()->GetCount()); m_QT_ctrl.SetFocusedRow(pNextRow,TRUE); But I am not getting the result. Please help. |
|
Ashok
Senior Member Joined: 02 May 2007 Status: Offline Points: 164 |
Post Options
Thanks(0)
|
Hi, I found the solution for the query 1. and 3. but I urgently need the solution for the 2 one. ie., I want to find which column I clicked because I have to do some implementation for first column and some implementation for second column. Please help. XTP_NM_REPORTRECORDITEM* pItemNotify = (XTP_NM_REPORTRECORDITEM*) pNotifyStruct; ASSERT(pItemNotify != NULL); CXTPReportRecordItem* pItem; pItemNotify->pColumn->SetSortable(FALSE); if(m_QT_ctrl.GetColumns()->Find(COLUMN_CHECK)) - here only I have to know which column I clicked in the report. |
|
Ashok
Senior Member Joined: 02 May 2007 Status: Offline Points: 164 |
Post Options
Thanks(0)
|
Hi, Thanks for not replying so far, because I found the solution for the queries which I asked earlier. |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |