Dear Experts,
In documentation it mentioned that if you use ‘render_tabel(‘mytable’);’ it will show all the columns dynamically.
But it is nit working.
actually it works if you mention all the columns that you want to show.
I have 21 tables and each one has so many columns that I want to get the table name from users and show all the columns dynamically without mentioning the columns one by one.
This is a limitation.
Is there anyway to see all the columns of a table???
Maybe in php we need to add some functions to do this.
It depends on DB driver. When list of fields is not defined, connector will call field_list method of db driver and will use its result.
This works for sure for MySQL driver, but it may not work for other DB drivers ( as there is no common SQL code that can be used for all SQL dialects )
Dear Stanislav,
Thank you so much,the issue has been solved, But one more clarification if you do not mind:
the issue is “name of the identity field (optional)” in render_table.
render_table(“Table_name”, “ID”,…)
As I understood it should be “integer” I meant “int” or “PRIMARY KEY”.
But in documentation it mentioned that this is optional.The issue is in reality I donot have a unique primary keys or integer keys as ID in my tables.Because all of my tables are very old and they are being updated by other program.
How can I solve this issue? to remove this limitation of mentioning the “Id” ?!
In advance thanks for your kind support.
on some tables It is not working but on some tables it is working and showing following error?!!
Is this because of Size of tables? Because in small tables It’s working!!
( ! ) Notice: Undefined variable: i in C:\wamp\www\Auto Complete\dhtmlxConnector_php_v15_120612\codebase\db_sqlsrv.php on line 30
Dears,
Thanks a lot, although I found the answer by myself
1.There was an error in db_sqlsrv.php in line30 that I deleted that function and issue has been solved.
2.And another issue was related to date format which I converted to string and the issue is solved.
Br,
Beniy
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan