Reply
 
LinkBack Thread Tools Display Modes
Old 06-16-2011, 07:56 PM   #1 (permalink)
Member
 
Join Date: Mar 2010
Posts: 62
John@OnyxTheaters is on a distinguished road
Default Customizing pick lists

I'm trying to customize our pick lists to show our cost, price, where to buy the product, and quantity of each product. I've adjusted the "Datafield" accordingly for cost and price (i.e. Datafield = dtr:Cost). Problem is the quantity and cost/quantity and price aren't accumulating. For example, on the first product in the attachment I've got an Apple Airport Express where price is $99 each and there are three. I need the price to say $297 ($99 x 3). Any suggestions on how to go about doing this? Also, is there a list of datafield names anywhere so that I can see what to name certain datafields?
Attached Images:
File Type: jpg PLexample.jpg (27.2 KB, 9 views)
John@OnyxTheaters is offline   Reply With Quote
Old 06-17-2011, 12:31 PM   #2 (permalink)
Junior Member
 
Join Date: Aug 2010
Location: Chennai, India
Posts: 11
bala is on a distinguished road
Default

John -

The problem is accumulating the price values. To resolve this you have to do some changes in both Designer and Script side.

Steps to follow to make this to work:

Designer Side changes:
1) Drag one textbox as named TotalPrice and set Summary group to “GroupHeader1”
2) Go to the properties of txtPrice and make the visible value to False

Script Side Changes:
Write this code:


Sub GroupHeader1_BeforePrint
Dim strTotPrice As String = ReportUtilities.ReturnTextBoxValue(rpt,"GroupHeade r1","txtPrice")
Dim strQty As String = ReportUtilities.ReturnTextBoxValue(rpt,"GroupHeade r1","txtQuantity")
Dim strPrice As String=strQty*strTotPrice
ReportUtilities.SetTextBoxValue(rpt, "GroupHeader1","TotalPrice",strPrice)
End Sub

Publish and Run. Hope this will help.

- Bala
bala is offline   Reply With Quote
Old 06-23-2011, 12:26 PM   #3 (permalink)
Junior Member
 
Join Date: Aug 2010
Location: Chennai, India
Posts: 11
bala is on a distinguished road
Default Easiest Way!

Hi -

We have the easiest way to make this. You have to set the summary type information for the Price text box as follows:

a) SummaryFun = sum
b) SummaryGroup = Corresponding Group Header
c) SummaryType = SubTotal

Save and Run the report.

Hope this will help you.

Thanks,

- Bala
bala is offline   Reply With Quote
Old 06-23-2011, 02:33 PM   #4 (permalink)
Member
 
Join Date: Mar 2010
Posts: 62
John@OnyxTheaters is on a distinguished road
Default

Awesome, thank you!
John@OnyxTheaters is offline   Reply With Quote
Old 06-23-2011, 03:41 PM   #5 (permalink)
Member
 
Join Date: Mar 2010
Posts: 62
John@OnyxTheaters is on a distinguished road
Default

Worked perfectly, thanks again bala!
John@OnyxTheaters 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 09:43 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.