Home End User
New Blog Posts: Merging Reports - Part 1 and Part 2

FListView - TppItemList and returned ItemId property is wrong

edited October 2003 in End User
Greetings,

Delphi 5.1
RBuilder 6.03

I am using a custom explorer form and noticed that FListView has a property
called ItemId. It should be returning the ITEM_ID field value, but is
returning the FOLDER_ID value instead. I'm sure this was reported before,
see post "Accessing item_id from Report Explorer" on 06/16/2000, but there
was no answer.

Is there a resolution to this matter, as I need to know which record to
select in the RB_ITEM table as I have added custom fields to this table I
need access to and using a locate on the NAME field will not work.

Please provide a workable solution.

Thanks,

--
Michael Tuttle
Software Technologies, Inc.
Topeka, KS

Comments

  • edited October 2003

    1. Check your TppReportExplorer.ItemFieldNames settings. You may be mapping
    ItemId to an incorrect datafield value by mistake.

    2. This works properly in ReportBuilder 7.

    RB 7 includes.....

    - support for Delphi 5, Delphi 6 and Delphi 7.
    - years worth of fixes and enhancements (i.e. since RB 6.x)
    - new features
    - on going maintenance releases, patches, enhancements

    http://www.digital-metaphors.com/rbuilder/order.html

    Please contact sales@digital-metaphors.com if you have questions about
    updating.


    --
    Nard Moseley
    Digital Metaphors
    http://www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited October 2003
    The TppReportExplorer.ItemFieldNames is properly mapped ItemId = ITEM_ID

    I do intend to update eventually, but, I really cannot afford to update just
    now. Can you check version 6.03 to see if it works for you? This was
    report after all for version 6.0.

    I really need this to work for version 6.03.

    Thanks

    Mike


  • edited October 2003
    I just updated to version 7 today (Really could not afford to just yet, but
    have to get three issues resolved, this being 1 of 3) and I'm still getting
    the wrong value returned here.

    Both FListView.FolderId and FListView.ItemId return the same exact value at
    all times, no matter what I have tried. Seems as thought this new version
    is doing the same exact problem I reported for 6.03 in that FListView.ItemId
    is returning the FolderID value.

    You mentioned that this works correctly in version 7, so please tell me what
    I could be overlooking.

    I am using a custom report explorer form that was based on the 6.03 version
    of the ppExpFrm.pas file. When I went to compile I had to add a new unit to
    the uses clause (ppRptExpCommon) to get this to compile. Has the
    ppExpFrm.pas file changed in version 7.03? Any ideas what else I might
    check for to get htis to work?

    Thanks for any pointers.

    Mike


  • edited October 2003

    I found the issue and will send you a patch.


    --
    Nard Moseley
    Digital Metaphors
    http://www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited October 2003
    Thanks Nard,

    This patch has fixed the problem.

    Mike
This discussion has been closed.