Page 1 of 1
Next button
Posted: Wed Jun 29, 2011 9:01 pm
by Darrylglenn
Hello,
First of all.. great software!
I just can't figure out the following:
I have an overview page with links to companies of a city, when you click a link you wil go to the details of that company.
On that page I will select kinds and extract it .. no problem's..
But on the overview page of a city there is a "next" button and there are many city overview pages, every city overview page has different numbers of pages so I cant set a "repeat" on 2 or something.
How can I get to every page of a city and extract the company details?
I made a quick sample website to show the above:
Hope you understand..
Thanks in advance!
Re: Next button
Posted: Thu Jun 30, 2011 4:22 am
by webmaster
Hi,
This is what you need. Is a premade project you can use as you would use a "Repeat" action but it will navigate through the "Next" button until the last (or given max) page.
What you could do is have a "Navigate Each" action that will navigate inside of each city and inside this action, have the action I posted above that will navigate through all pages, and then inside this action have your "Extract" action.
Here is a full list of premade projects.
Hope that helps.
Re: Next button
Posted: Thu Jun 30, 2011 7:21 am
by Darrylglenn
Thanks for your reply, support is great!
I have it now like:

- 2.jpg (25.53 KiB) Viewed 21319 times
Where "plaatslink" is citylink and "links" are the links to companies.
I'm getting the error "This Actions Tree is not being called by any other Actions Tree."
What am I doing wrong?

Re: Next button
Posted: Thu Jun 30, 2011 8:19 am
by webmaster
Oops.
I should have probably make this clear before since you're new here and most likely didn't know about it. The
Go Through All Pages premade project (as well as most premade projects here) requires you to invoke it from an action called
Execute Actions Tree, which executes another actions tree. You don't really need to touch the "Go Through All Pages" actions tree at all. Actually I would delete your "Go Through All Pages" and import (from
File -> Import) a new one.
If you look at the "Go Through All Pages" actions tree, there is an action called "Execute Caller's Children". This action will call the child nodes of the "Execute Actions Tree" that is invoking the "Go Through All Pages" actions tree. This is how your project would look like:

- sample.jpg (10.4 KiB) Viewed 21318 times
You'll also need to create a kind that select's the "Next" button. You will be asked to provide this kind when creating a "Execute Actions Tree" that invokes "Go Through All Pages".
Hope this makes sense. Don't hesitate to ask me if you need any more help.
Re: Next button
Posted: Thu Jun 30, 2011 6:44 pm
by Darrylglenn
Ah great! now I understand
works like a charm