Hello, I'm using
SmartClient Version: v10.0p_2014-10-22/Enterprise Deployment (built 2014-10-22)
I have 2 datsources (Users, Vault)
I have to get Vault_name from Vault table. Is there some simple critera that combines datasoureces or something like that?
I fetch current data: "USER_ID" and his "VAULT_ID" from Users.ds.xml. How can i get "VAULT_NAME" from Vault table (Vault.ds.xml) for that user? Thx
SmartClient Version: v10.0p_2014-10-22/Enterprise Deployment (built 2014-10-22)
I have 2 datsources (Users, Vault)
I have to get Vault_name from Vault table. Is there some simple critera that combines datasoureces or something like that?
I fetch current data: "USER_ID" and his "VAULT_ID" from Users.ds.xml. How can i get "VAULT_NAME" from Vault table (Vault.ds.xml) for that user? Thx
Code:
Criteria c = new Criteria(); //find user with id c.addCriteria("DU_ID", "16297811"); //set datasource DataSource customDS =DataSource.get("PB_Users"); customDS.fetchData(c, new DSCallback() { @Override public void execute(DSResponse dsResponse, Object data, DSRequest dsRequest) { @SuppressWarnings("unused") Record[] records = dsResponse.getData(); System.out.println("User ID:"+ records[0].getAttribute("USER_ID")); System.out.println("Vault ID:"+ records[0].getAttribute("VAULT_ID")); } });
Comment