Advertisement

09.05.2006 at 12:21PM PDT, ID: 21978822
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.4

Parsing and controlling display getrows Array data....

Asked by joejenkinsjax in Active Server Pages (ASP)

Tags:

Hello!

I'm pulling a large quantity of data from a database using .getrows but I need to be able to split that data and display it according to category:

My array data, pipe (|) delimited, looks like this:

6087|195|25|000.96|COMMODITY INVENTORY|CAN|APPLE SLICES, Commodity 6/#10 Cans|

The 3rd, 4th and 5th fields are information I need for the headers of the category lists that a grouping of items will need to be separated by.

Here's the SQL query to gather the data:
sql_show = "SELECT DISTINCT ITEM.Supplier_Item_Number, ITEM_CATEGORY.Category_ID, ITEM_CATEGORY.Account_ID, ITEM_CATEGORY.Minor_Description, ITEM_UNIT.Item_Unit_Description, ITEM.Item_Description FROM (ITEM_CATEGORY INNER JOIN (ITEM_UNIT INNER JOIN ITEM ON ITEM_UNIT.Item_Unit_Id = ITEM.Item_Inventory_Unit) ON ITEM_CATEGORY.Category_ID = ITEM.Category) ORDER BY ITEM_CATEGORY.Account_ID, ITEM_CATEGORY.Minor_Description, ITEM.Item_Description"

I need to be able to parse the data by the 3rd column (in this case the 25) and get only the items from Category 25, build a header and display them something like this:

000.96 - COMMODITY INVENTORY (Category 25)
Item No. Unit    Description
========================================
6087     CAN     APPLE SLICES, Commodity 6/#10 Cans  
6088     CAN     APPLESAUCE, Commodity 6/#10 Cans  
6655     LBS      BEAN GREEN FROZEN, Commodity 30#  

204.50 - COLD BEV CAN&BOTTLE  (Category 26)
========================================
Item No.  Unit         Description
PEP100     CASE     12/11.5 OZ BOTTLES JUICE -DOLE  
PEP101     CASE     12/15.2 OZ BOTTLES JUICE -DOLE  
PEP102     CASE     24/12 OZ BOTTLE AQUAFINA WATER  

This needs to continue on displaying all items under that category, etc.  

Any thoughts on the best implementation for this?

JoeStart Free Trial
 
Keywords: Parsing and controlling display getrow…
 
Loading Advertisement...
 
[+][-]09.05.2006 at 12:32PM PDT, ID: 17458342

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.05.2006 at 12:43PM PDT, ID: 17458419

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.05.2006 at 01:16PM PDT, ID: 17458666

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.05.2006 at 02:02PM PDT, ID: 17459035

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.05.2006 at 02:09PM PDT, ID: 17459091

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.05.2006 at 03:18PM PDT, ID: 17459505

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.05.2006 at 03:30PM PDT, ID: 17459541

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.05.2006 at 03:36PM PDT, ID: 17459570

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.05.2006 at 03:44PM PDT, ID: 17459591

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.05.2006 at 03:53PM PDT, ID: 17459633

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Active Server Pages (ASP)
Tags: getrows
Sign Up Now!
Solution Provided By: fritz_the_blank
Participating Experts: 1
Solution Grade: A
 
 
[+][-]09.05.2006 at 07:17PM PDT, ID: 17460291

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.06.2006 at 07:31AM PDT, ID: 17463424

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.06.2006 at 07:54AM PDT, ID: 17463596

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.06.2006 at 08:08AM PDT, ID: 17463712

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.02.2006 at 07:13AM PDT, ID: 17643525

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.08.2006 at 12:29PM PDT, ID: 17687023

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.05.2007 at 11:23AM PST, ID: 18254035

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]01.09.2007 at 06:47PM PST, ID: 18281114

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-42