Hi
I am an experienced developer, and am looking to use Kirix to mess around with various data.
The issue I am looking at right now is that the data I want to use comes from a website where it is separated into several hundred pages, accessed using a query string:-
ie. something like
xxx.yyy.com?page=1
I assume I can write a script to traverse the pages and consolidate the data from each -- but even looking at your sample plug in I can't see how I would add/access such a script to kirix... The javascript for doing a loop to generate the urls, even using xmlhttp to fetch the pages etc is no problem for me - it is just how I then 'attach' the script to kirix that I am lost on.
Best Regards
Paul
Kirix Support Forums
Importing Paged Data
3 posts
• Page 1 of 1
Re: Importing Paged Data
Paul,
You can create a script and run it directly in the project as well as in an extension. To create a script and run it in the project:
1. Go to the File menu and select New->Script, which will open a blank text editor.
2. In this script, enter a trivial message box command to get things going: messageBox("Test");
3. Click on the save icon and save the script to the project with a name such as MyTest.
4. To run the script, either right-click on the newly saved script in the project tree and select "Run", or select Run/Script Query from the Tools menu (Alt-Enter hotkey).
Once you've created a script, you can run it manually, schedule it to run regularly in the background (Tools->Schedule Jobs), or package it up in an extension to run on application load.
In this example in this post, http://www.kirix.com/forums/viewtopic.php?f=20&t=529, the extension inserts some menu items on application load, which then do various things when you select them. If you go this route, you might create an extension to insert a menu item, that when selected, runs your import script. See http://www.kirix.com/forums/viewtopic.php?f=20&t=545 for a related discussison.
Best,
Aaron
You can create a script and run it directly in the project as well as in an extension. To create a script and run it in the project:
1. Go to the File menu and select New->Script, which will open a blank text editor.
2. In this script, enter a trivial message box command to get things going: messageBox("Test");
3. Click on the save icon and save the script to the project with a name such as MyTest.
4. To run the script, either right-click on the newly saved script in the project tree and select "Run", or select Run/Script Query from the Tools menu (Alt-Enter hotkey).
Once you've created a script, you can run it manually, schedule it to run regularly in the background (Tools->Schedule Jobs), or package it up in an extension to run on application load.
In this example in this post, http://www.kirix.com/forums/viewtopic.php?f=20&t=529, the extension inserts some menu items on application load, which then do various things when you select them. If you go this route, you might create an extension to insert a menu item, that when selected, runs your import script. See http://www.kirix.com/forums/viewtopic.php?f=20&t=545 for a related discussison.
Best,
Aaron
Aaron Williams
Kirix Support Team
Kirix Support Team
-
Aaron - Kirix Support Team
- Posts: 120
- Joined: Fri Dec 16, 2005 3:01 pm
Re: Importing Paged Data
Thanks Aaron,
The 'file|new|script' was the main thing I was missing -- I had been hunting around the tools menu - expecting a 'new/record' type of option.
Regards
Paul
The 'file|new|script' was the main thing I was missing -- I had been hunting around the tools menu - expecting a 'new/record' type of option.
Regards
Paul
- pperrin
- Registered User
- Posts: 2
- Joined: Thu Oct 11, 2007 12:03 pm
3 posts
· Page 1 of 1
Return to Strata Help & Feedback