Extracting data and preserving hierarchy information
I'm trying to figure out how to loop through a page structure and still maintain some information about the hierarchy. I have extracted a dataset, and within the data set is a number of entries that are categorized like this.
Category A
Sub-category 1
Entry 1 Name - Entry 1 Description - Entry 1 Attribute
Entry 2 Name - Entry 2 Description - Entry 2 Attribute
Entry 3 Name - Entry 3 Description - Entry 3 Attribute
Sub-category 2
Entry 4 Name - Entry 4 Description - Entry 4 Attribute
Entry 5 Name - Entry 5 Description - Entry 5 Attribute
Category B
Sub-category 3
Entry 6 Name - Entry 6 Description - Entry 6 Attribute
Entry 7 Name - Entry 7 Description - Entry 7 Attribute
Sub-category 4
Entry 8 Name - Entry 8 Description - Entry 8 Attribute
what I want to do is collect data like this
Entry 1 Name - Entry 1 Description - Entry 1 Attribute Category - A Sub-category - 1
Entry 2 Name - Entry 2 Description - Entry 2 Attribute Category - A Sub-category - 1
Entry 3 Name - Entry 3 Description - Entry 3 Attribute Category - A Sub-category - 1
Entry 4 Name - Entry 4 Description - Entry 4 Attribute Category - A Sub-category - 2
Entry 5 Name - Entry 5 Description - Entry 5 Attribute Category - A Sub-category - 2
Entry 6 Name - Entry 6 Description - Entry 6 Attribute Category - A Sub-category - 3
Entry 7 Name - Entry 7 Description - Entry 7 Attribute Category - B Sub-category - 3
Entry 8 Name - Entry 8 Description - Entry 8 Attribute Category - B Sub-category - 4
I have figured out how to extract the data from the dataset but not how to preserve the category and subcategory data.
any help would be great.
Thanks
You would really need to use
You would really need to use a method only in the professional & enterprise editions:
http://community.screen-scraper.com/API/extractData
I am trying to do the same
I am trying to do the same and followed the link instructions to no avail. Can you elaborate on how this is accomplished using the Professional version.
ms527, The process is the
ms527,
The process is the same for both enterprise and professional edition. Have you looked over the manual extraction example provided at the bottom of the API documentation?
This can get a bit confusing, so if you have specific problems please post examples of what it is you're trying to do and specifically where it appears to be failing.
-Scott