MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

How to change the database or table?



******    message to minivend-users from Hans-Joachim Leidinger <Hans-Joachim.Leidinger@home.gelsen-net.de>     ******

Dear Reader,

sorry for my bad englisch!

I try to display some information from other file like "wg.asc" with the
in-page-tag [loop search....]. But the database is still "products"
only. How can i change the database to "wg"?

Here is the code in my page "wgtest.html":
---------SNIPP----------------

<HTML>
<HEAD>
[tag flag build][/tag]
<TITLE>[L]WGLIST[/L] __COMPANY__</TITLE>
</HEAD>
[perl arg=scratch]
	$Safe{'scratch'}{'seite'} = wglist;
	return '';
[/perl]
[include pages/navioben.html]
<LEFT>
<H1>
[L]The wg-list of [/L] __COMPANY__
</H1>
[data base="wg" field="SW,key,WG,WGNR,WGNAME" key="on"]
[tag each wg]
[sort wg:WG wg:WGNR:rn]
[loop search="
db=wg
fi=wg.asc
st=glimpse
os=no
se=on"]
NR : <FONT COLOR="RED">[loop-code]</FONT>   
SW + WGNR :<FONT COLOR="RED">[loop-field SW] [loop-field WG]</FONT> 
Name :<FONT COLOR="RED"> [loop-field WGNAME]</FONT>  <BR>
[/loop]
[/tag]
[include pages/bodyend.html]
</HTML>

--------SNIPP---------------

and here ist a sample of "wg.asc"-file:

---------SNIPP----------------

SW	key	WG	WGNR	WGNAME
1	on	50	TITEL	GEISTESWISSENSCHAFTEN
1	on	53	SUBTITEL	Sozialpsychologie
1	on	53	5301	Sozialpsychologie
1	on	70	TITEL	SOZIALWISSENSCHAFTEN / VERWALTUNG / MANAGEMENT
1	on	71	SUBTITEL	Sozialwissenschaften 
1	on	71	7101	Soziologie
1	on	71	7102	Politik
1	on	71	7103	Methoden/ Statistik
1	on	71	7104	Sozial&#246;konomie
1	on	71	7105	Arbeitsmarkt
1	on	71	7106	Arbeitsbeziehungen
1	on	71	7107	Industrielle Beziehungen
1	on	71	7108	Sozialgeschichte
1	on	71	7109	Fort- und Weiterbildung f&#252;r SOWI
1	on	71	7110	Theorie
1	on	71	7111	Arbeitsrecht
1	on	71	7112	Gesundheitswissenschaften
1	on	71	7113	Frauenforschung
1	on	77	SUBTITEL	Verwaltungsmodernisierung
1	on	77	7701	Neue Steuerung (Budgetierung, Modelle)
1	on	77	7702	Sozialverwaltung

-------SNIP------------------

What is wrong in my code? 

Any help is very wellcome!

Joachim


-- 
-------------<FreeBsd>--------------------------------------------------
Hans-Joachim Leidinger  email: hans-joachim.leidinger@home.gelsen-net.de
                        FAX  : +49 0209-398265

-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: