I'm trying to query the cargo database. In PageSchemas, the table is called simply "Place". Here is the query:
{{#cargo_query: table=Place |fields=Place._pageName, Type |where=Place.Type="Planet" |format=dynamic table }}
The code above produces "Error: Table Place not found." as does prepending the table name with "cargo__" or "cargo_". What am I doing wrong?
-david
Not interested no more am retired.
On Thu, Sep 2, 2021, 2:17 PM David Epstein davideps@umich.edu wrote:
I'm trying to query the cargo database. In PageSchemas, the table is called simply "Place". Here is the query:
{{#cargo_query: table=Place |fields=Place._pageName, Type |where=Place.Type="Planet" |format=dynamic table }}
The code above produces "Error: Table Place not found." as does prepending the table name with "cargo__" or "cargo_". What am I doing wrong?
-david _______________________________________________ MediaWiki-l mailing list -- mediawiki-l@lists.wikimedia.org List information: https://lists.wikimedia.org/postorius/lists/mediawiki-l.lists.wikimedia.org/
Hi David,
My guess is that you haven't created the Cargo table yet - that needs to be done as a separate step. Here is how to do it, if you don't know how:
https://www.mediawiki.org/wiki/Extension:Cargo/Storing_data#Creating_or_recr...
-Yaron
On Thu, Sep 2, 2021 at 2:17 PM David Epstein davideps@umich.edu wrote:
I'm trying to query the cargo database. In PageSchemas, the table is called simply "Place". Here is the query:
{{#cargo_query: table=Place |fields=Place._pageName, Type |where=Place.Type="Planet" |format=dynamic table }}
The code above produces "Error: Table Place not found." as does prepending the table name with "cargo__" or "cargo_". What am I doing wrong?
-david _______________________________________________ MediaWiki-l mailing list -- mediawiki-l@lists.wikimedia.org List information: https://lists.wikimedia.org/postorius/lists/mediawiki-l.lists.wikimedia.org/
You were right. I thought I didn't need to create/recreate the table because the pages were displaying fine. Just the query didn't work. Anyway, thank you for your patience. Everything is working fine now.
On Thu, Sep 2, 2021 at 7:28 PM Yaron Koren yaron57@gmail.com wrote:
Hi David,
My guess is that you haven't created the Cargo table yet - that needs to be done as a separate step. Here is how to do it, if you don't know how:
https://www.mediawiki.org/wiki/Extension:Cargo/Storing_data#Creating_or_recr...
-Yaron
On Thu, Sep 2, 2021 at 2:17 PM David Epstein davideps@umich.edu wrote:
I'm trying to query the cargo database. In PageSchemas, the table is called simply "Place". Here is the query:
{{#cargo_query: table=Place |fields=Place._pageName, Type |where=Place.Type="Planet" |format=dynamic table }}
The code above produces "Error: Table Place not found." as does prepending the table name with "cargo__" or "cargo_". What am I doing wrong?
-david _______________________________________________ MediaWiki-l mailing list -- mediawiki-l@lists.wikimedia.org List information: https://lists.wikimedia.org/postorius/lists/mediawiki-l.lists.wikimedia.org/
-- WikiWorks · MediaWiki Consulting · http://wikiworks.com _______________________________________________ MediaWiki-l mailing list -- mediawiki-l@lists.wikimedia.org List information: https://lists.wikimedia.org/postorius/lists/mediawiki-l.lists.wikimedia.org/
mediawiki-l@lists.wikimedia.org