Print Page | Close Window

XTP_NM_REPORT_CONSTRAINT_SELECTING not working

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=19322
Printed Date: 07 May 2024 at 5:32pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: XTP_NM_REPORT_CONSTRAINT_SELECTING not working
Posted By: jshan
Subject: XTP_NM_REPORT_CONSTRAINT_SELECTING not working
Date Posted: 19 December 2011 at 5:24am
Hi.
 
I was trying to use XTP_NM_REPORT_CONSTRAINT_SELECTING event with COMOB box.
but it seemed didn't work at all, but found out that It works with Keyboard event but not Mouse.
 
When I choose different item in a Combo it didn't send any event, but with Keyboard, Yes it did.
 
I think it should be fixed.
 
thanks
 
XTP 15.2.1, Unicode
 
 


-------------
: xtp 16.2.0(Unicode static lib)

: windows 7 Pro Kor sp1(64bit)

: vs 2012 update 2 MFC




Replies:
Posted By: ABuenger
Date Posted: 20 December 2011 at 11:40am
Thanks, will check.

Andre



-------------
Codejock support


Posted By: venkateshr
Date Posted: 11 February 2013 at 8:07am
Hello,

I am also facing the same problem.

Any Update on this ?

Thanks


Posted By: mgampi
Date Posted: 02 August 2016 at 8:36am
Hi;

I version 17.2 it's still not working!
Any fix available soon?

Regards,

M.


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

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017


Posted By: olebed
Date Posted: 21 September 2016 at 8:32am
Hello Martin,

I found that for this we need change method CXTPReportInplaceList::Apply()
void CXTPReportInplaceList::Apply()
{
    if (!pControl)
        return;

    CXTPReportControl* pReportControl = pControl;

    int nIndex = GetCurSel();
    if (nIndex != LB_ERR)
    {
        m_bApply = TRUE;

        CXTPReportRecordItemConstraint* pConstraint = (CXTPReportRecordItemConstraint*)GetItemDataPtr(nIndex);

        XTP_REPORTRECORDITEM_ARGS itemArgs = *((XTP_REPORTRECORDITEM_ARGS*)this);
        itemArgs.AddRef();

        pItem->OnConstraintChanged(&itemArgs, pConstraint);
        pReportControl->RedrawControl();

        pReportControl->OnConstraintSelecting(itemArgs.pRow, itemArgs.pItem, itemArgs.pColumn, pConstraint);
        pReportControl->SendMessageToParent(itemArgs.pRow, itemArgs.pItem, itemArgs.pColumn, XTP_NM_REPORT_VALUECHANGED, 0);

        itemArgs.Release();
    }

    pReportControl->SetFocus();
}


Please check  Is this changes provide expected behavior.

Regards,
 Oleksandr Lebed



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