Reply
 
LinkBack Thread Tools Display Modes
Old 01-25-2010, 07:42 PM   #1 (permalink)
Senior Member
 
Join Date: Jul 2008
Location: Olympia, WA
Posts: 342
grichards is a jewel in the roughgrichards is a jewel in the roughgrichards is a jewel in the roughgrichards is a jewel in the rough
Send a message via Skype™ to grichards
Default accessories sub-report problem

I'm working on a custom report that displays accessories but the sub-report is showing ALL items that are accessories in the project.
what information needs to be passed to the sub-report, and how, to get the sub-report to only display accessories of the parent item?

Im using a reformatted version of the Proposal Level2 Items report as the sub and using scripting/design elements from the Proposal grpItemFooter section.

Additional Info:
the dtr:ItemHash data is showing up different than a report that is showing accessories properly. why would this be?
__________________
Systems Technician/Crestron Certified Programmer
www.ccisolutions.com
[SIGPIC][/SIGPIC]

Last edited by grichards; 01-25-2010 at 08:03 PM. Reason: added additional info
grichards is offline   Reply With Quote
Old 01-29-2010, 05:29 PM   #2 (permalink)
Senior Member
 
Join Date: Jul 2008
Location: Olympia, WA
Posts: 342
grichards is a jewel in the roughgrichards is a jewel in the roughgrichards is a jewel in the roughgrichards is a jewel in the rough
Send a message via Skype™ to grichards
Default bump this

anyone know why the dtr:ItemHash data would show up differently on different reports? If an item has accessories the itemHash will show one way in some reports and another way in others

e.g. Proposal vs. PickList?
__________________
Systems Technician/Crestron Certified Programmer
www.ccisolutions.com
[SIGPIC][/SIGPIC]
grichards is offline   Reply With Quote
Old 01-30-2010, 07:59 AM   #3 (permalink)
Senior Member
 
Join Date: May 2009
Location: Chennai, India
Posts: 157
nkarthick is on a distinguished road
Default

Item Hash in Reports

Item Hash is used in the reports for segregating items. It is got as the combined string values of Manufacturer, Model and Category which is hashed into an integer.
In SP2 we also be added OFE to the hash if the option “List OFE as separate Line items” has been set to true. This way OFE items will show up on different line items than one OFE items for the same manufacturer, model and category.

This is the hash for different report types --

Line Item – Hash code is get from the combined string values of the Manufacturer, Model and Category.

Proposal Item with Accessories
– If the proposal item has accessories then parent item with its hash code value will be combined with accessories hash code values and will get a new hash code value. It will be used to differentiate same items with different accessories.

Package Item – For package – Hash code is combined string values of Package name and category ( = ‘Package’ always for packages). For a Package Item - Hash code value is the combination of the package hash code, item’s hash code and its accessories (if any) hash code. This way unless two packages are exactly the same they will not be combined.


Hope it helps
__________________
Narayana Karthik
nkarthick is offline   Reply With Quote
Old 02-01-2010, 04:35 PM   #4 (permalink)
Senior Member
 
Join Date: Jul 2008
Location: Olympia, WA
Posts: 342
grichards is a jewel in the roughgrichards is a jewel in the roughgrichards is a jewel in the roughgrichards is a jewel in the rough
Send a message via Skype™ to grichards
Default

Originally Posted by nkarthick View Post
This is the hash for different report types --
how is a "report type" set?
__________________
Systems Technician/Crestron Certified Programmer
www.ccisolutions.com
[SIGPIC][/SIGPIC]
grichards is offline   Reply With Quote
Old 02-02-2010, 09:45 AM   #5 (permalink)
Senior Member
 
Join Date: May 2009
Location: Chennai, India
Posts: 157
nkarthick is on a distinguished road
Default

Line Item values are from this //dtr:Items/dtr:Item repository (of Data Explorer Tab)

Proposal or Package Items values are from this //dtr:ProposalItems/dtr:ProposalItem repository (of Data Explorer Tab)

For Line Item Reports we are using //dtr:Items/dtr:Item as report’s RecordsetPattern. For Proposal we are using //dtr:ProposalItems/dtr:ProposalItem as report’s RecordsetPattern.

Records Pattern.JPG
__________________
Narayana Karthik
nkarthick is offline   Reply With Quote
Old 02-02-2010, 05:03 PM   #6 (permalink)
Senior Member
 
Join Date: Jul 2008
Location: Olympia, WA
Posts: 342
grichards is a jewel in the roughgrichards is a jewel in the roughgrichards is a jewel in the roughgrichards is a jewel in the rough
Send a message via Skype™ to grichards
Default

thanks nkarthick
__________________
Systems Technician/Crestron Certified Programmer
www.ccisolutions.com
[SIGPIC][/SIGPIC]
grichards is offline   Reply With Quote
Old 02-04-2010, 01:32 AM   #7 (permalink)
Senior Member
 
Join Date: Jul 2008
Location: Olympia, WA
Posts: 342
grichards is a jewel in the roughgrichards is a jewel in the roughgrichards is a jewel in the roughgrichards is a jewel in the rough
Send a message via Skype™ to grichards
Default

If im using //dtr:Items/dtr:Item as a report’s RecordsetPattern, is it possible to get the ProposalItem hash for a particular product?

i want the report to show line items, but i want accessories for a particular category of product.
__________________
Systems Technician/Crestron Certified Programmer
www.ccisolutions.com
[SIGPIC][/SIGPIC]
grichards is offline   Reply With Quote
Old 02-04-2010, 07:30 AM   #8 (permalink)
Senior Member
 
Join Date: May 2009
Location: Chennai, India
Posts: 157
nkarthick is on a distinguished road
Default

I am not sure how to do this.
If I find a way I will let you know
__________________
Narayana Karthik
nkarthick is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 04:48 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.0
D-Tools, Inc.