[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[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: getrows

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?

Joe
[+][-]09/05/06 03:53 PM, ID: 17459633Accepted Solution

View this solution now by starting your 30-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/06 12:32 PM, ID: 17458342Expert Comment

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/05/06 12:43 PM, ID: 17458419Author Comment

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 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/05/06 01:16 PM, ID: 17458666Expert Comment

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/05/06 02:02 PM, ID: 17459035Author Comment

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 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/05/06 02:09 PM, ID: 17459091Author Comment

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 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/05/06 03:18 PM, ID: 17459505Expert Comment

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/05/06 03:30 PM, ID: 17459541Author Comment

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 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/05/06 03:36 PM, ID: 17459570Expert Comment

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/05/06 03:44 PM, ID: 17459591Author Comment

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 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/05/06 07:17 PM, ID: 17460291Author Comment

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 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/06/06 07:31 AM, ID: 17463424Expert Comment

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/06/06 07:54 AM, ID: 17463596Author Comment

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 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/06/06 08:08 AM, ID: 17463712Expert Comment

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/02/06 07:13 AM, ID: 17643525Author Comment

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 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/08/06 12:29 PM, ID: 17687023Expert Comment

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01/05/07 11:23 AM, ID: 18254035Administrative Comment

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 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]01/09/07 06:47 PM, ID: 18281114Administrative Comment

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 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-92