Products | Versions |
---|---|
TIBCO Data Virtualization | All supported versions |
Requests to TDV can come from either JDBC/ODBC or Web Service clients, and that request may make an outbound call to a REST data source/other resources. This KB article explains the process of restricting the result set returning from the external REST service based on the client username/ID.
PROCEDURE EmployeesDemo(OUT result CURSOR (PROCEDURE EmployeesDemo(OUT result CURSOR (employeeid INTEGER, firstname VARCHAR(50), title VARCHAR(255))) BEGIN DECLARE username VARCHAR(50); CALL /lib/util/CurrentUserName(username); OPEN result FOR SELECT employees.employeeid, employees.firstname,employees.title FROM /shared/examples/ds_orders/tutorial/employees employees WHERE employees.firstname = username ; END