Find table name use in custom view

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
Bishu
User
Posts: 429

Find table name use in custom view

Post by Bishu »

I have a Custom View which use 3 tables.

how can I find this 3 tables name from the server Event of Custom View


mobhar
User
Posts: 11787

Post by mobhar »

There is no such built-in feature at the moment.


Bishu
User
Posts: 429

Post by Bishu »

I am not talking about the VIEW

As the Custom View are coded by the PHPMaker itself. I hope there should be something to know the tables use in that Custom View.


mobhar
User
Posts: 11787

Post by mobhar »

Either Custom View or View, we cannot get the tables name that involved in it using Server Event. The only way to know the tables in it is by opening it in design view.


digitalphotoworld
User
Posts: 416
Location: Nürnberg/Germany

Post by digitalphotoworld »

Bishu wrote:
I have a Custom View which use 3 tables.

how can I find this 3 tables name from the server Event of Custom View

You should already know the names of the tables, if you have created a Custom View. But if you want to get it by php-code, here are my thoughts to solve this:

I think the only way to access the names is to read out and parse the whole array of the database connection.

globals $conn;
print_r($conn);

This is only working if you set the debug-option for the ado-connection (ewmysql.php) to true. You get an array of all querys and could loop throu to find your desired tables.


Post Reply