Hi,
I want to use a temporary table with a TableBox. The only option that I can see on the form is to use a tablename which would not link me to the temporary table that I created on the form.
What I want to do is to load data from a txt file and show it in the TableBox.
Thanks
0
Comments
1) create your form like for a normal table.
Create another object where you fill up a temptable and then This will make your form work on the temptable.
2) through code in your form
Code for "Form - OnFindRecord": code for "Form - OnNextRecord":
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
The whole senario is as follows.
I have a form on which I open up a text file( csv file with 2 columns). After the file opens I want to show the contents in the TableBox.
Steps that I am taking:
1. Use Common Dialog and get the file name.
2.Open the file and read each line.
3. Parse the line and load it in the tmp Table
4. Show the temp table in the TableBox ( stuck at this)
RIS Plus, LLC
I had already started coding kriki's approach and it works. I queried the database using enterprise manager and the data seems to stay in the temp table only ( query analyser showed no rows in the database), which hopefully means that every user will get it's own instance of the table. It will be nice if kriki can explain how it's working.
Also can a user be logged into the system from more than one client at the same time ie can USERID be the same for two logged on users
By default, the system connects the class to the table for you, so you don't have to worry about connection strings and such. You have the choice to not connect to the table by making it a temporary variable. That way you have a variable in memory that acts exactly like a table that you know, but it is not connected to your database.
RIS Plus, LLC
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!