Hi Team,
I am currently working on auto-assignment of the DBConnection to the table all at once in the front end via the python code. But i am not getting any functions which can help me with that.
I am able to connect to the datamodel, fetch the table ,table data and change the table names too.
The only thing i am lacking is to change the DBConnection of everytable from python.
I could analyze from the data of the table fetched via python that each DBConnection has their own DBConnectionID , but i am unable to change that ID from python.
Please let me know if that change is possible, if so, how to do it.
Thanks in advance.
Page 1 / 1
If someone is looking for the solution,its actually to use the
i.data[store][dbConnectionId]=target.data[id]
Where we find the
i.data[store][dbConnectionId]=target.data[id]
Where we find the
target
by looking through the results of target.database_connections
(an instance of DatamodelTable
) to find a connection with the same name as the DBConnection
used in the source table.
Thank you for the reply
I have used your explanation in the above answer(for the people who are looking for this hint exactly) because thats what gave me the idea when i was going through your DEV to PROD topic,to change that is required and change the DBconnection and with one step further, the source table names corresponding to that DBConnection and syncronize the columns in a single shot for all the tables removing a lot of manual work .
And Ofcourse thank you for the code this will help a lot
Thank you.
I have used your explanation in the above answer(for the people who are looking for this hint exactly) because thats what gave me the idea when i was going through your DEV to PROD topic,to change that is required and change the DBconnection and with one step further, the source table names corresponding to that DBConnection and syncronize the columns in a single shot for all the tables removing a lot of manual work .
And Ofcourse thank you for the code this will help a lot
Thank you.
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.