IMPORTANT ANNOUNCEMENT

These forums were permanently set to read-only mode on July 20, 2022. From that day onwards, no new posting or comment is allowed on the site, but the historical content remains intact and searchable.

A new location for posting questions about PlanetPress Suite is now available:

OL Learn - PlanetPress Classic (opens in new tab)

Topic Options
#30704 - 01/29/10 03:20 PM How can I pass a variable at sample data like database?
Anonymous
Unregistered


I need colect the data from a database.
I have 3 tables with 80000, 8713 and 2046 rows each. I did a sql string to join them and show the result, but when I run in planet press return a low memory message, but my pc has 4Gb ram...
So I need now if I can pass a varible in the sql string inside planet press, this away I can cut it in parts.
something like it: 'select * from table where var=&planet_variable'.

Thanks

Top
#30705 - 02/01/10 04:57 PM Re: How can I pass a variable at sample data like database?
-nth- Offline
OL Expert

Registered: 04/01/03
Posts: 236
Loc: Lincoln, NE
I've never returned that large of a data set, but have used the select statement frequently.

Make sure variables in the WHERE clause are notated correctly... i.e. var=%{planet_variable}

(it must have the %{variablename} notation)

nth

Top
#30706 - 02/02/10 08:23 AM Re: How can I pass a variable at sample data like database?
Anonymous
Unregistered


I created a new tabe to join all data and call this table in planet press.

Top
#30707 - 02/02/10 08:27 AM Re: How can I pass a variable at sample data like database?
Anonymous
Unregistered


Now I have a new doubt.
I have a job with 4 pages. I need print the 2 first, but the other only if a database value change.

like it.

value = 1234

do

page 1 and 2 any time

until value =4321

do page 3 and 4 of 1234 value

after it do page 1 and 2 of 4321 value.

I need do it until end of data rows.

Top