|
|
|
Re: DataSource connection in runtime [message #528528 is a reply to message #528400] |
Tue, 20 April 2010 19:23 |
|
Sen,
You can do this like:
importPackage(Packages.java.io);
reader = new FileReader("c:\\mycred.txt");
data = reader.read();
Just normal file io using Java called through Rhino JavaScript. Just
put code in your beforeOpen.
You may want to look at connection profiles which does this for you BTW.
Jason
sen K wrote:
> Jason,
>
> Thanks for your reply.I have gone through with this examle, it was
> useful one.
>
> I feel that my question was not clear in my previous post.
> Actually I am looking some help in, how to read the content from <some
> filename>.txt or <some filename>.properties from java file.Is it
> possible to load the DataSoruce and DataSet values ( like SQL query )
> from file like .TXT or .properties file using java during runtime.
>
> Please give some example for my better understand.
>
> Regards
> Sen
|
|
|
Powered by
FUDForum. Page generated in 0.04128 seconds