Add view table to another table field list

A place for users and developers of the Xataface to discuss and receive support.

Add view table to another table field list

Postby charliecousnis » Wed Apr 11, 2012 1:57 pm

Code: Select all
_SQL_="select v.*, m.* from tblvehicles v left join milesdaystomaint as m on m.VehNumber=v.VehNumber"


I added the SQL code above to the field.ini for the table, tblvehicles. My goal was to add the fields from a view I have defined as a table in conf.ini named milesdaystomaint.

The view works fine as a tab on list view, but I've about given up trying to figure out how to add its fields to tblvehicle's list.

The goal is to remove the milesdaystomaint tab from list view and have the fields show up under Vehicles.

I suspect there is a field naming issue here involving a common field name (the primary key). Any help would be appreciated.
charliecousnis
 
Posts: 2
Joined: Wed Apr 11, 2012 1:43 pm

Re: Add view table to another table field list

Postby shannah » Wed Apr 11, 2012 2:41 pm

it should be __sql__ not __SQL__

-Steve
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: Add view table to another table field list

Postby charliecousnis » Thu Apr 12, 2012 4:29 pm

Thank you, Steve.
charliecousnis
 
Posts: 2
Joined: Wed Apr 11, 2012 1:43 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 1 guest

Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved