Hi torquers,
Once you have inited Torque, how does one access the AppData or
Database object to perform runtime peer calls?

My requirement is to obtain the Peer object by passing the name of the table
- String tableName@Runtime - into the application.

I tried to do this by:
new
AppData("datatype","properties_path").getDatabase().getTable(tableName@Runti
me).getBasePeer(); //to obtain the peer class name
//and then used :
 (BasePeer)Class.forName(peerClassName).newInstance(); //to start querying
whatever i want from. But my "new AppData("datatype",
"path").getDatabase()" returns an IndexOutOfBoundsException.(?) 

Please suggest the proper way to do this or other suitable workarounds
Thank you,

regards,

shine kannikkatt
software engineer
onerev, india

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to