简体   繁体   中英

how to pass parameter name as a databasename in pentaho BA Server?

I have scenario where i have one table in one database which consist all the database names,so in drop-down container i am displaying all this database name, now in another query i want to pass this database name as a parameter and want to retrieve data from the respected table.

Note : database structure is same for every client, but security reasons we have created different databases

Query one : using this i will get all the database names.

SELECT tenant from kscommon.organization;

Query two : tenant will be parameter for next query

select location from ${tenant}.organization;

but i am getting error(Error processing component)

SO can somebody guide me on this?

I have tried this scenario but unable to achieve this but according to my experience you can use parameter in query conditions only. you will not able to use parameter name while creating database connection because if you are doing so that means you are trying to create multiple database connections during query level which i believe pentaho doesn't support at present. In CDE you can explicitly create multiple connections and then try to use it when ever it required.

Still you can wait for other to answer this question.

您可以通过Kettle(又名Pentaho数据集成)转换来实现

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM