 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Mark Rafn Guest
|
Posted: Fri Oct 06, 2006 6:32 pm Post subject: Remote data - local Datastore problem |
|
|
Hi all,
Hopefully someone can help me, I have exhausted Help and newsgroup searhes...
JBuilderX
Following Borland's tutorial for creating persistant offline editing using DataExpress and Datastore components--I can get the binding between dataset and datastore, the offline stuff works great. But no matter what I do I cannot save the datastore changes back to the server database.
Here's the code:
private static final String connectType = "jdbc:borland:dsremote:";
private static final String driverName = "com.borland.datastore.jdbc.DataStoreDriver";
private static String hostName = "//TWOENP08/";
private static String remoteFilename = "g:\\jds\\jds_remote";
private static String storeFilename = "D:\\db\\jds_offline";
Database db = new Database();
DataStore dataStore = new DataStore();
QueryDataSet query = new QueryDataSet();
<snip>
jdbNavToolBar1.setDataSet(query);
dataStore.setFileName(storeFilename);
dataStore.setUserName(user);
dataStore.setPassword(password);
db.setConnection(new com.borland.dx.sql.dataset.ConnectionDescriptor(
connectType + hostName + remoteFilename,
user, password, false, driverName));
query.setQuery(new com.borland.dx.sql.dataset.QueryDescriptor(db, "SELECT * FROM TABLE", null, true, Load.ALL));
query.setStoreName(partnumbers);
query.setStore(dataStore);
<snip>
What am I missing here to get the navbar to Save changes back to the server database?
tia
-mark |
|
| Back to top |
|
 |
Steve Guest
|
Posted: Sun Oct 08, 2006 11:37 pm Post subject: Re: Remote data - local Datastore problem |
|
|
Two questions.
Is there an error? If so, can you paste the stack trace?
Is the table "resolvable". DataStore will only track edits to a table if
its resolvable property is set to true.
Use the following steps to quickly find out if a DataStore table is
resolvable:
Open the local database in the JdsExplorer.
Select your table in the tree.
Select the structure tab.
Is the "Resolvable" checkbox set?
-Steve
"Mark Rafn" <mrafn (AT) stanleyworks (DOT) com> wrote in message
news:45265ad2 (AT) newsgroups (DOT) borland.com...
| Quote: |
Hi all,
Hopefully someone can help me, I have exhausted Help and newsgroup
searhes...
JBuilderX
Following Borland's tutorial for creating persistant offline editing using
DataExpress and Datastore components--I can get the binding between
dataset and datastore, the offline stuff works great. But no matter what
I do I cannot save the datastore changes back to the server database.
Here's the code:
private static final String connectType = "jdbc:borland:dsremote:";
private static final String driverName =
"com.borland.datastore.jdbc.DataStoreDriver";
private static String hostName = "//TWOENP08/";
private static String remoteFilename = "g:\\jds\\jds_remote";
private static String storeFilename = "D:\\db\\jds_offline";
Database db = new Database();
DataStore dataStore = new DataStore();
QueryDataSet query = new QueryDataSet();
snip
jdbNavToolBar1.setDataSet(query);
dataStore.setFileName(storeFilename);
dataStore.setUserName(user);
dataStore.setPassword(password);
db.setConnection(new com.borland.dx.sql.dataset.ConnectionDescriptor(
connectType + hostName + remoteFilename,
user, password, false, driverName));
query.setQuery(new com.borland.dx.sql.dataset.QueryDescriptor(db,
"SELECT * FROM TABLE", null, true, Load.ALL));
query.setStoreName(partnumbers);
query.setStore(dataStore);
snip
What am I missing here to get the navbar to Save changes back to the
server database?
tia
-mark
|
|
|
| Back to top |
|
 |
Mark Rafn Guest
|
Posted: Mon Oct 09, 2006 4:30 pm Post subject: Re: Remote data - local Datastore problem |
|
|
That's it! (Resolvable...)
thanks Steve! ~finally I can move on...
-mark
"Steve" <sshaughnessy (AT) b (DOT) com> wrote:
| Quote: | Two questions.
Is there an error? If so, can you paste the stack trace?
Is the table "resolvable". DataStore will only track edits to a table if
its resolvable property is set to true.
Use the following steps to quickly find out if a DataStore table is
resolvable:
Open the local database in the JdsExplorer.
Select your table in the tree.
Select the structure tab.
Is the "Resolvable" checkbox set?
-Steve
"Mark Rafn" <mrafn (AT) stanleyworks (DOT) com> wrote in message
news:45265ad2 (AT) newsgroups (DOT) borland.com...
Hi all,
Hopefully someone can help me, I have exhausted Help and newsgroup
searhes...
JBuilderX
Following Borland's tutorial for creating persistant offline editing using
DataExpress and Datastore components--I can get the binding between
dataset and datastore, the offline stuff works great. But no matter what
I do I cannot save the datastore changes back to the server database.
Here's the code:
private static final String connectType = "jdbc:borland:dsremote:";
private static final String driverName =
"com.borland.datastore.jdbc.DataStoreDriver";
private static String hostName = "//TWOENP08/";
private static String remoteFilename = "g:\\jds\\jds_remote";
private static String storeFilename = "D:\\db\\jds_offline";
Database db = new Database();
DataStore dataStore = new DataStore();
QueryDataSet query = new QueryDataSet();
snip
jdbNavToolBar1.setDataSet(query);
dataStore.setFileName(storeFilename);
dataStore.setUserName(user);
dataStore.setPassword(password);
db.setConnection(new com.borland.dx.sql.dataset.ConnectionDescriptor(
connectType + hostName + remoteFilename,
user, password, false, driverName));
query.setQuery(new com.borland.dx.sql.dataset.QueryDescriptor(db,
"SELECT * FROM TABLE", null, true, Load.ALL));
query.setStoreName(partnumbers);
query.setStore(dataStore);
snip
What am I missing here to get the navbar to Save changes back to the
server database?
tia
-mark
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|