Home > Archive > SQL Anywhere ultralite > October 2005 > Ultralite_Mobilink_Palm









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Ultralite_Mobilink_Palm
NewB

2005-10-27, 7:41 am

Hello.

ASA 9-- 9.0.2.3137
Mobilink Sync9--9.0.2.3137
Codewarrior8.0--- 4.2.5.788
static C++ Api App.
Similar structure to that of CustDB.

download_cursor :
version:mobi0510
Event:Download_curso
r
Script:SELECT "ID", "Name", "Marks" FROM "Student"

I just need this data to be dowloaded into POSE.

The Problem is:

In "RunSynch()" on "ok = DemoDB-> Synchronize(Observer
Func);
" it goes to this func

********************
*
bool CDemoDB::Synchronize
( ul_synch_observer_fn
observer )

{
ul_synch_info info;

resetError( TEXT("Synchronize") );

m_TempLong=7;
my_ltoa( m_TempLong,m_MobUsrn
m);
// Perform synchronization.
// If this method is called on a separate thread, the
main thread
// _cannot_ access the sqlca during the synchronization.
// To permit this (database operations on the main
thread during
// synchronization), initialize another ULData for the
synchronize
// thread here and open a second connection.

if( m_Stream == NULL ) {
return( false );
}

m_Connection.InitSynchInfo( &info );
info.user_name = m_MobUsrnm;
info.version = SCRIPT_VERSION;
info.stream = m_Stream;
info.stream_parms = m_SynchParms;
info.observer = observer;
info.user_data = &sqlca;
info.send_download_ack = ul_true;
////info.send_column_names = ul_true;

disableErrorAlert();
// Application UI will display
alert in this case
m_Connection.Synchronize( &info );
if( !m_Connection.LastCodeOK() ) {
return( false );
}
//// notifyOrderListChang
e();
//// notifyCustListChange
();
//// notifyProdListChange
();
////skipToValidOrder();
doOrderrelativefetch
(1);
return( true );
}

bool CDemoDB::doOrderRela
tiveFetch( int skip )
/ ********************
********************
****/
{
m_GetOrder.GetName( m_Name, DEMO_NAME_SIZE );
if( m_GetOrder.Relative( skip ) )
{
return( true );
}

return( false );
}
********************
****

Everything seems to run fine without any error. but the
syncronised data is not getting
displyed.

Pls Advice.

Regards,
Hari
David Fishburn

2005-10-27, 7:41 am

NewB wrote in news:434e226b.821.1681692777@sybase.com
of sybase.public.sqlanywhere.ultralite:

N> ASA 9-- 9.0.2.3137
N> Mobilink Sync9--9.0.2.3137
N> Codewarrior8.0--- 4.2.5.788
N> static C++ Api App.

Are you just now beginning development or was this an existing
application?


N> Similar structure to that of CustDB.
N>
N> download_cursor :
N> version:mobi0510
N> Event:Download_curso
r
N> Script:SELECT "ID", "Name", "Marks" FROM "Student"

Are you sure data was downloaded?

Start ML using:
-vcrsn -ot ml.txt

That will verify data is coming down.

Does the student table have any foreign keys on it?

--
David Fishburn
Certified ASA Developer Version 8
iAnywhere Solutions - Sybase
Professional Services
Please only post to the newsgroup
Please ALWAYS include version and MORE importantly BUILD number with
EACH post (dbeng9 -v).

EBFs and Maintenance Releases
http://downloads.sybase.com/swx/sdmain.stm

Developer Community / Whitepapers
http://www.ianywhere.com/developer

CaseXpress - to report bugs
http://casexpress.sybase.com

CodeXchange - Free samples
[url]http://ianywhere.codexchange.sybase.com/servlets/ ProjectDocumentList[
/url]

Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com