Offline Data Chaching Problem in SMP 3.0 Android Native

  Hi All,                    I am working on Offline features of SMP 3.0 Android, Saving data in Cache and syncing with backend when network available. Once I close all activities and login in online mode the Cache getting cleared and no data available in the cache.I am using SP03.             Is there any issue with Libraries or is it the nature of libraries?? Please suggest me any alternative to work on this. Need suggestions on next versions for complete offline features.  

The SMP Odata SDK provides the capability for client applications to cache the data on device when the mobile device is out of network and process it later when it is within the range of network. You need to use Cache APIs to do it. Make sure you added cache related libraries are included in the project (ex.cache,persistence,libdatabase_sqlcipher.so, libsqlcipher_android.so,guava,libstlport_shared.so).
In order to parse and build Odata entries Service document and metadata document are required. So on first registration of user with SMP server retrieve these documents and store it locally by leveraging Odata SDK Cache library.
Sample code to retrieve the service document from cache:
IODataServiceDocument serviceDocument = null;
try {
//Getting Service Document from the cache
serviceDocument =
(IODataServiceDocument)mApplication.getCache().readDocument(
DocumentType.ServiceDocument,
FlightModelConstants.FLIGHT_MODEL_SERVICE_DOCUMENT);
} catch (CacheException e) {
Log.v(TAG, e.getLocalizedMessage());
//Checking if Service Document was not found in cache,
if (serviceDocument == null) {
mProgress =
ProgressDialog.show(this,
(CharSequence) "",
(CharSequence)
getString(R.string.serviceDocumentProgress),
true);
mRequestTag = REQUEST_SERVICE_DOCUMENT;
//Preparing request to retrieve Service Document from the server
IRequest request =
RequestBuilder.getInstance().buildServiceDocumentRequest(this,
REQUEST_SERVICE_DOCUMENT);
//Sending the request
mApplication.getRequestManager().makeRequest(request);
} else {
Toast.makeText(this, R.string.msgServiceDocumentCache,
Toast.LENGTH_LONG).show();
//Service Document was in the cache, now we are going to retrieve the
Schema
this.getServiceSchema();
Code to be added in onSuccess callback method to store the document:
IODataServiceDocument serviceDocument = parser
.parseODataServiceDocument(responseString);
mApplication.getCache().storeDocument(serviceDocument,
DocumentType.ServiceDocument,
FlightModelConstants.FLIGHT_MODEL_SERVICE_DOCUMENT);
Code above is for storing service document; to store Metadata document above code is repeated once.
The above code shows how to store and retrieve service document and metadata document. Odata SDK also allows storing of Odata entries in cache and offline operation.
Midhun VP

Similar Messages

  • SMP 3.0 Android native create operation issue

    Hellow,
    I am creating a new entry in to my OData service in Android Native and SMP 3.0,
    I am successfully reading data and displaying but can not create new entry in to my service where
    the code as follows
    private void postData() {
    IODataEntry entry = new ODataEntry();
    entry.putPropertyValue("BankCountry", "IND");
    entry.putPropertyValue("BankKey", "00996");
    entry.putPropertyValue("BankName", "UCUCUC");
    entry.putPropertyValue("City", "acdc");
    IRequest request = RequestBuilder.getInstance().buildPOSTRequest(this, "BankSet", entry, "$format=json");
    mApplication.getRequestManager().makeRequest(request);
    It throws Null at "mApplication.getRequestManager().makeRequest(request);"
    Here mSchema is not null , Am I wrong while requesting the Server?? Please suggest me with a code snippet to solve it.
    Regards,
    Varahalu Babu Jampana

    Hi Varahalu Babu,
    Make sure that the giving RequestTag is correct or not,It shout be requestServiceDocument.
    try this
    IRequest request = RequestBuilder.getInstance().buildPOSTRequest(this, collection, entry, "requestServiceDocument");
    Thanks & regards
    Sindhu

  • Problem with migrating data (SQL Server 2k offline data capture)

    Hi there,
    I try to migrate a SQL Server 2000 database to Oracle 10g (R2) using offline data capture. I following the online Tutorial “Migrate from Microsoft SQL Server to Oracle Database 10g Using Oracle Migration Workbench” and everything seems OK until “Migrating the tablespaces, users and user tables to the destination database” http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/omwb.htm#t5. I have two errors on 2 (out of 85 ) tables saying “ Failed to create default for Table :
    ORA-00907: missing right parenthesis”. I checked the column/table names and they seems OK. I don’t understand why I got these errors. However, when I checked the ‘SA’ Schema in Oracle Enterprise Manager Console, I can see all the tables (including the two problem ones).
    I then carry on to the next step and tried to migrate data to the destination database (http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/omwb.htm#t6) I am now stuck on step 5. “…copy the files from c:\omwb\data_files to the c:\omwb\Omwb\sqlloader_scripts\SQLServer2K\<timestamp>\Oracle directory…” I cannot find the ‘c:\omwb\data_files’ directory, in fact, I don’t have a directory called ‘data_files’ on my machine. I noticed the ‘c:\omwb\Omwb\sqlloader_scripts\SQLServer2K\<timestamp>\Oracle’ directory contains the all the 85 [tableName].ctl files (plus two other files: ‘sql_load_script’ and ‘sql_load_script.sh’). From the screenshots online, ‘c:\omwb\data_files’ seems contains files with the same name as the [tableName]. Therefore, I did a search with [tableName] but cannot find any apart from the [tableName].ctl file in the ‘c:\omwb\Omwb\sqlloader_scripts\SQLServer2K\<timestamp>\Oracle’ directory. What should I do next?
    OS: windows 2003 with SP1
    Oracle: 10g Release 2
    SQL Server 2000
    Any help would be extremely appreciated.
    Helen

    Helen,
    Sorry, I am new here. Could you please tell me (or point me to the related documents about) how to output the Oracle model as a script?Action-> Generate Migration Scripts
    And what do you mean by ‘The default conversion may have failed’? Do you mean data type mapping? I went through all the columns and tables and checked the data types in the Oracle model already. The processing for the default for a table column could have something the basic workbench default parser cannot handle.
    I hope you are finding the workbench to be a productive aid to migration.
    Regards,
    Turloch
    Oracle Migration Workbench Team

  • What do you recommend to use as an offline data store, since SQL CE support is not in VS 2013?

    A few years back I was architecting an occasionally connected .Net desktop application. 
    VS 2010 was offering full support for Microsoft Sync Framework and SQL CE with Entity Framework. 
    This seemed like the perfect marriage, so I ran with it, and the resulting software solution is still successfully running in production, years later. 
    Jump forward to today, and I am architecting a new occasionally connected .Net desktop application. 
    I was really looking forward to taking advantage of the advances made by Microsoft in using the tools built into VS 2013. 
    However, what I discovered has dumbfounded me.  VS 2013 has no designer support for Sync Framework, and worse, built in support for SQL CE has been completely removed, including the ability to generate Entity Framework models from a
    CE database using the designer. 
    My question to the community is, what tools should I be using to solve the problem of offline storage in my brand new .Net application? 
    I am aware of ErikEJ’s SQL Server Compact Toolbox, which brings back some support for these features in VS 2013, but it is not as fully featured as the VS 2010 native support was, plus it does not have the institutional “Microsoft” stamp on it. 
    I am building a multimillion dollar corporate solution that I will have to support for many years.
     I would like to have some comfort that the technologies I select, today, will still be supported 5 years from now, unlike the way Microsoft has discontinued supporting Sync Framework and CE in the most recent VS. 
    I can accept open source technologies, because there is a community behind them, or off the shelf corporate solutions, since they will be driven by financial gain, but I have trouble committing to a solution that is solely supported by an individual,
    even if that person is a very talented Microsoft MVP.
    Some of the features of SQL CE that I would like to keep are
    Built in encryption of the file on disk
    Easy querying with an ORM, like Entity Framework
    Tools to easily sync up the offline data store with values from SQL Server (even better if this can be done remotely, such as over WCF)
    Does not require installation of additional software on the client machine, as SQL Express would
    Please, provide your feedback to let me know how you have achieved this, without resorting to simply using an older version of VS or Management Studio. 
    Thank you.

    Hello,
    Based on your description, you can try to use SQL Server 2012 Express LocalDB.
    LocalDB is created specifically for developers. It is very easy to install and requires no management, but it offers the same T-SQL language, programming surface and client-side providers as the regular SQL Server Express.
    SQL Server LocalDB can work with Entity Framework and ADO.NET Syc Framework. However, there is no built-in encryption feature in LocalDB which
    can let you encrypt database. You should decrypt/encrypt data on your own, for example, using
    Cryptographic Functions
    Reference:SQL Express v LocalDB v SQL Compact Edition
    Regards,
    Fanny Liu
    If you have any feedback on our support, please click here.
    Fanny Liu
    TechNet Community Support

  • Offline data capture for SQLServer2k shows 0 tables

    Hi,
    I'm evaluating OMWB Offline Data Capture for SQL Server 2000 migration.
    I ran OMWB_OFFLINE_CAPTURE.BAT script for SQL Server 2000. It seams like the DAT files are generated and no error messages appear. The problems occure when I start the OMW and try to "Capture Source Database".
    I specify the directory, where the generated DAT files reside, the DAT files appear in the file list and the status is AVAILABLE. But when I run the Capture with the Oracle Model Creation, I see among the LOG messages that "...Tables Mapped: 0...".
    I created TEST database with the table [tab] in it. In generated SS2K_SYSOBJECTS.dat file there is a row for this table:
    tab     \t     2041058307     \t     U      \t     1     \t     1     \t     1610612736     \t     0     \t     0     \t     0     \t     2006/09/26      \t     0     \t     0     \t     0     \t     U      \t     1     \t     67     \t     0     \t     2006/09/26      \t     0     \t     0     \t     0     \t     0     \t     0     \t     0     \t     0     \t     \r\n
    The rest objects are not in the Oracle Model too (I believe the user sa must have been created too).
    Please, anybody help with this problem.
    Pavel Leonov, Consultant
    Ispirer Systems Ltd.
    SQLWays - Data, schema, procedures, triggers conversion to Oracle, DB2, SQL Server, PostgreSQL, MySQL
    http://www.ispirer.com

    I changed the separators back to the default. But the Oracle Model still is not created. Still the same problem, there are no tables at all in the source database.
    Here is how the row for the table is specified in the SS2K_SYSOBJECTS.dat file:
    tab     ?     2041058307     ?     U      ?     1     ?     1     ?     1610612736     ?     0     ?     0     ?     0     ?     2006/09/26      ?     0     ?     0     ?     0     ?     U      ?     1     ?     67     ?     0     ?     2006/09/26      ?     0     ?     0     ?     0     ?     0     ?     0     ?     0     ?     0     ?     ?
    Here is some information from the log:
    Type: Information
    Time: 26-09-2006 15:13:56
    Phase: Capturing
    Message: Row delimiter being used for offline capture is ¤
    Type: Information
    Time: 26-09-2006 15:13:56
    Phase: Capturing
    Message: Column delimiter being used for offline capture is §
    Type: Information
    Time: 26-09-2006 15:13:57
    Phase: Capturing
    Message: Generating Offline Source Model Load Formatted File For SS2K_SYSOBJECTS.dat ,File Size: 5235
    Type: Information
    Time: 26-09-2006 15:13:57
    Phase: Capturing
    Message: Generated Offline Source Model Load File d:\DBClients\oracle\ora92\Omwb\offline_capture\SQLServer2K\itest\SS2K_SYSOBJECTS.XML
    Type: Information
    Time: 26-09-2006 15:14:27
    Phase: Creating
    Message: Mapping Tables
    Type: Information
    Time: 26-09-2006 15:14:27
    Phase: Creating
    Message: Mapped Tables
    Type: Summary
    Time: 26-09-2006 15:14:27
    Phase: Creating
    Message: Tables Mapped: 0, Tables NOT Mapped: 0
    By the way. After I try to create the Oracle Model, for each of the DAT files the XML file is created with the following content:
    <?xml version="1.0" encoding="Cp1251" ?><START><er></er></START>
    May be this will help to shed a light on the problem.
    Pavel

  • Offline data synchronization in azure mobile services on windows server 2008

    Hi,
    I have a class library which insert data into tables in azure mobile services on windows server 2008 OS for windows universal C# platform. I am trying to insert data using offline data synchronization.
    I had installed SQLite runtime for windows 8.1 and windows phone 8.1, but unable to add reference 'SQLite for Windows Runtime(Windows8.1)'.
    Please guide me whether windows server 2008 OS supports offline data synchronization in azure mobile services.
    Thank you.

    I also have a Windows Server 2012 R2 system using Azure Backup, and I don't have the problem. However, you probably noticed that you use a different Azure Backup installation download for Windows Server 2008 R2 vs. Windows Server 2012 R2. Although both
    show the same Microsoft Azure Recovery Services Agent version 2.0.8692.0 installed, my Windows Server 2012 R2 also lists Microsoft Azure Backup for Windows Server Essentials version 6.2.9805.9 installed as well. It could be the case the my problem with the
    CATALOG FAILURE 0x80131500 errors is something specific to the version of Azure Backup installed on my Windows 2008 R2 servers.
    Trilon, Inc.

  • Offline Data Caching Native iOS

    Hi, guy
    I am working on Offline Data SMP 3.0, i am saved Service Document and MetaData in cache already but, when turn off internet connection, I will read service document and metadata in cache but i can not get service document schema and metadata schema because entityType in service document and metadata are null, Please suggest me how to read service document and metadata in Cache on Offline Mode or give me some example.
    Thank you

    You have to leverage cache library to store the service document and metadata document. My expert area is not IOS, I have a sample code for Android. Given below is an example :
    IODataServiceDocument serviceDocument = null;
    try {
    //Getting Service Document from the cache
    serviceDocument =
    (IODataServiceDocument)mApplication.getCache().readDocument(
    DocumentType.ServiceDocument,
    FlightModelConstants.FLIGHT_MODEL_SERVICE_DOCUMENT);
    } catch (CacheException e) {
    Log.v(TAG, e.getLocalizedMessage());
    //Checking if Service Document was not found in cache,
    if (serviceDocument == null) {
    mProgress =
    ProgressDialog.show(this,
    (CharSequence) "",
    (CharSequence)
    getString(R.string.serviceDocumentProgress),
    true);
    mRequestTag = REQUEST_SERVICE_DOCUMENT;
    //Preparing request to retrieve Service Document from the server
    IRequest request =
    RequestBuilder.getInstance().buildServiceDocumentRequest(this,
    REQUEST_SERVICE_DOCUMENT);
    //Sending the request
    mApplication.getRequestManager().makeRequest(request);
    } else {
    Toast.makeText(this, R.string.msgServiceDocumentCache,
    Toast.LENGTH_LONG).show();
    //Service Document was in the cache, now we are going to retrieve the
    Schema
    this.getServiceSchema();
    The APIs are given in bold letters. Hope that helps.
    Code to be added in onSuccess callback method to store the document:
    IODataServiceDocument serviceDocument = parser
    .parseODataServiceDocument(responseString);
    mApplication.getCache().storeDocument(serviceDocument,
    DocumentType.ServiceDocument,
    FlightModelConstants.FLIGHT_MODEL_SERVICE_DOCUMENT);

  • What is the event by which i can get that user deny the offline data store when the message comes in the browser

    I have an application which stores manifest for offline use. Now firefox asking for a confirm message that if i want to allow or not. If i say 'allow' the application works fine. but if i say 'not now' or 'never for this site' the application stops. What is the event to check that user deny to allowing store data. i used different option like - cached,noupdate,error,uncached,idle,obsolete. as an example- applicationCache.addEventListener('idle', function () {});
    but none of this says that user deny to allow. Please tell me the option that i can check that user does not want to allow and do my rest work.

    It should be possible to allow offline data storage for only certain websites, and that setting is in Options > Advanced > Network. If the answer is "don't do it", then it should not be done. Is that not what is happening?

  • Date popup problem in APEX 3.1

    Hi
    I have a date picker (DD-MM-YYYY HH24:MI) and after upgrading to APEX 3.1 from APEX 3.0.1 the popup window height is too small.
    The end user is having to resize the window to click on the OK button.
    Is there a file I can edit to increase the height, couldnt find it in templates/themes.
    Regards
    Adam

    Hi Adam,
    This is a bug in APEX 3.1. It was discussed here:
    Apex 3.1 Upgrade Issue - dba_lock and date picker display
    and here:
    Date Picker problem in Apex 3.1
    I'll let Carl investigate and provide an official response and recommendation. Although I know where this problem is occurring.
    The size of the popup calendar window is hard-wired in the file apex/images/javascript/apex_3_1.js. In APEX 3.0, the size of the popup window was determined programatically at runtime and was a function of the date format, if it included a time component or not.
    The uncompressed, readable version of this same file is in apex/images/javascript/uncompressed/apex_3_1.js. Look for p_DatePicker and you'll see what I'm talking about. You'll see the height is hard-wired to 210 and width to 258. In APEX 3.0, the height was set to 255 if the date format contained a time component.
    So my suggestion, until Carl provides an official response, is to look for '210' in apex/images/javascript/apex_3_1.js and change this to 255. Granted, all calendar popup windows will be this big, but it won't put as great a burden on the end-user.
    I hope this helps.
    Joel

  • ORA-01403: no data found Problem when using AUTOMATIC ROW FETCH to populate

    ORA-01403: no data found Problem when using AUTOMATIC ROW FETCH to populate a form.
    1) Created a FORM on EMP using the wizards. This creates an AUTOMATIC ROW FETCH
    TABLE NAME - EMP
    Item Containing PRIMARY KEY - P2099_EMPNO
    Primary key column - EMPNO
    By default the automatic fetch has a ‘Process Error Message’ of ‘Unable to fetch row.’
    2) Created a HTML region. Within this region add
    text item P2099_FIND_EMPNO
    Button GET_EMP to submit
    Branch Modified the conditional branch created during button creation to set P2099_EMPNO with &P2099_FIND_EMPNO.
    If I then run the page, enter an existing employee number into P2099_EMPNO and press the GET_EMP button the form is populated correctly. But if I enter an employee that does not exist then I get the oracle error ORA-01403: no data found and no form displayed but a message at the top of the page ‘Action Processed’.I was expecting a blank form to be displayed with the message ‘Unable to fetch row.’
    I can work around this by making the automated fetch conditional so that it checks the row exists first. Modify the Fetch row from EMP automated fetch so that it is conditional
    EXIST (SQL query returns at least one row)
    select 'x'
    from EMP
    where EMPNO = :P2099_EMPNO
    But this means that when the employee exists I must be fetching from the DB twice, once for the condition and then again for the actual row fetch.
    Rather than the above work around is there something I can change so I don’t get the Oracle error? I’m now wondering if the automatic row fetch is only supposed to be used when linking a report to a form and that I should be writing the fetch process manually. The reason I haven’t at the moment is I’m trying to stick with the automatic wizard generation as much as I can.
    Any ideas?
    Thanks Pete

    Hi Mike,
    I've tried doing that but it doesn't seem to make any difference. If I turn debug on it shows below.
    0.05: Computation point: AFTER_HEADER
    0.05: Processing point: AFTER_HEADER
    0.05: ...Process "Fetch Row from EMP": DML_FETCH_ROW (AFTER_HEADER) F|#OWNER#:EMP:P2099_EMPNO:EMPNO
    0.05: Show ERROR page...
    0.05: Performing rollback...
    0.05: Processing point: AFTER_ERROR_HEADER
    I don't really wan't the error page, either nothing with the form not being populated or a message at the top of the page.
    Thanks Pete

  • Report 6i Arabic Date alignment problem in Windows 7

    Hi
    We have 6i Forms and Report and wanna run in windows 7. But we found arabic Date disaplay problem in reports. As you know arabic writting from right. But date display like 21/10/1431 and I wanna like 1431/10//21.
    I tried from regional setting and change date format from report. but this is problem from system it self,
    not accept right alignment. Even I install left to right patch (KB979643-x86).
    Please Help
    Thanks

    Like others have said you need to run the bootcamp installer to install the drivers.
    The time issue was a constant annoyance rebooting with OSX and my old XP bootcamp setup but it's gone with Windows 7 once you set your time to UTC format in the date and time properties instead of local time which OSX uses and XP couldn't support.

  • Flash Builder 4 Beta 2 ---- Data Management Problem

    Flash Builder 4 Beta 2 ---- Data Management Problem
    I have a simple datagrid, a PHP service and a MySQL database. When I run the code I get multiple(7) records returned to the datagrid.  Once I enable Data Management and run the exact same code, I only get 1  record returned.
    Is there a setting in Data Management that affects the number of records returned?
    Here is the MXML code I am testing. 
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                         xmlns:s="library://ns.adobe.com/flex/spark"
                         xmlns:mx="library://ns.adobe.com/flex/halo" minWidth="1024" minHeight="768" xmlns:carasgndataphp="services.carasgndataphp.*">
          <fx:Script>
                <![CDATA[
                      import mx.controls.Alert;
                      import mx.events.FlexEvent;
                      var inptdata:String = "1";
                      protected function dataGrid_creationCompleteHandler(event:FlexEvent):void
                            getAsgnDataResult.token = carAsgnDataPHP.getAsgnData(inptdata);
                ]]>
          </fx:Script>
          <fx:Declarations>
                <s:CallResponder id="getAsgnDataResult"/>
                <carasgndataphp:CarAsgnDataPHP id="carAsgnDataPHP" fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true"/>
                <!-- Place non-visual elements (e.g., services, value objects) here -->
          </fx:Declarations>
          <mx:DataGrid x="115" y="91" id="dataGrid" creationComplete="dataGrid_creationCompleteHandler(event)" dataProvider="{getAsgnDataResult.lastResult}" width="558" height="298">
                <mx:columns>
                      <mx:DataGridColumn headerText="A" dataField="numAsgn"/>
                      <mx:DataGridColumn headerText="T" dataField="numTopic"/>
                      <mx:DataGridColumn headerText="U" dataField="numUnit"/>
                      <mx:DataGridColumn headerText="P" dataField="numProblem"/>
                      <mx:DataGridColumn headerText="TP" dataField="PType"/>
                      <mx:DataGridColumn headerText="P" dataField="numSeqPresent"/>
                      <mx:DataGridColumn headerText="F" dataField="numSeqFeedback"/>
                      <mx:DataGridColumn headerText="D" dataField="numDelay"/>
                      <mx:DataGridColumn headerText="ID" dataField="idAsgnData"/>
                      <mx:DataGridColumn headerText="IDP" dataField="idProblem"/>
                </mx:columns>
          </mx:DataGrid>
    </s:Application>

    Hello,
    Data Mangement expects unique values for id property.This issue may occur when you select 'Identity' property in Data Mangement wizard which is not unique in the Table.For eg:, you have selected 'name' field as identity property. And your MySQL database table has multiple rows with identical values for 'name' column.
    Can you verify if you have similar setup?
    Thanks,
    Radhakrishna

  • AS3 Data Coercion Problem

    AS3 Data Coercion Problem
    From PHP server RemoteObject AMF3 serialization, I receive a
    photo object per below into my Flex client:
    package WPhoto {
    [Bindable]
    [RemoteClass(alias="WPhoto.PhotoObj")]
    public class PhotoObj {
    public var photo:*;
    public var photoWidth:int;
    public var photoHeight:int;
    The above 'photo' property String of a one-byte (UTF-8)
    '.jpg' photo data. Due to PHP's rather limited set of primitive
    data types this is the best I can do per returning photo data to
    the Flex client. (Extreme tries at PHP data structure chicanery
    hasn't worked for me.)
    I need photo property in a DisplayObject format such that I
    can render photo as a child of my App's DisplayObject. The AS3
    Loader class performs this task, when sourced from an AS3
    ByteArray.
    o Loader.loadBytes(bytes:ByteArray, context:LoaderContext =
    null):void
    Loads from binary data stored in a ByteArray object.
    My dilemma is "how to" convert a UTF-8 string of photo data
    into a ByteArray. I've been through the ByteArray.writeXXX() class
    methods without finding anything close to meeting my requirements.
    AS3 String readers expect UTF-16 data, so reading AS3 string
    reading is not a solution. AS3 has no Byte data type, accordingly
    reading my photo data UTF-8 string with a "for loop" into a AS3
    UTF-16 string, or whatever, is not viable. Is there a single-byte
    reader to 'whatever' writer I'm not aware of?
    If I was sourcing photos from a Java based server, my photo
    rendering dilemma would be over. The server to client packets would
    be "java.lang.Byte[]" => flash.utils.ByteArray and voilà we
    could easily and directly render photos via the Loader.loadBytes()
    method.
    I can tentatively extend one of the AS3 ByteArray class write
    methods if I thought there was a way to read UTF-8 streams. Before
    digging down into the ByteArray class on a feasibility basis, I
    thought it first best to ask around the experts per 1) can
    ByteArray be extended for my requirement, or 2) is there a better
    way to approach this, which I have not thought of?
    Pete Mackie
    Seaquest Software
    Adobe Community Expert - Flex

    Hi,
    Thanks for the quick reply.
    I simply don't get it.
    I have a root class which adds two different children of
    different classes. One child dispatched an event, and the other is
    supposed to get it. Both of the are now supposed to be in the
    instance hirrarchy, or am I wrong?
    Logically, I'd figure this should work smooth and simple
    without any need for any looping or such.
    Right now, the root class can recieve the event dispatched by
    child1, but I can't make child2 recieve any event dispatched by
    either the root or child1.
    I'd appreciate if you could show me the way...
    thanks again,
    EZ42

  • Using offline data sync in Mobile Services

    Hi All,
    I am working on offline data sync in Mobile Services . Followed the below URL
    http://azure.microsoft.com/en-gb/documentation/articles/mobile-services-windows-store-dotnet-get-started-offline-data/#enable-offline-app
    Have an issue at store.DefineTable<TodoItem>();
    when i run the method i am getting any exception as 
    System.ArgumentException was unhandled by user code
      HResult=-2147024809
      Message=An item with the same key has already been added.
      Source=mscorlib
      StackTrace:
           at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
           at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
           at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
           at System.Linq.Enumerable.ToDictionary[TSource,TKey](IEnumerable`1 source, Func`2 keySelector, IEqualityComparer`1 comparer)
           at Microsoft.WindowsAzure.MobileServices.SQLiteStore.MobileServiceSQLiteStore.DefineTable(String tableName, JObject item)
           at Microsoft.WindowsAzure.MobileServices.SQLiteStore.MobileServiceSQLiteStoreExtensions.DefineTable[T](MobileServiceSQLiteStore store, MobileServiceJsonSerializerSettings settings)
           at Microsoft.WindowsAzure.MobileServices.SQLiteStore.MobileServiceSQLiteStoreExtensions.DefineTable[T](MobileServiceSQLiteStore store)
      private async Task InitLocalStoreAsync()
        if (!App.MobileService.SyncContext.IsInitialized)
            var store = new MobileServiceSQLiteStore("localstore.db");
            store.DefineTable<TodoItem>();
            await App.MobileService.SyncContext.InitializeAsync(store);
        await SyncAsync();
    Need help.
    Thanks,
    Sai.

    Hi,
    The Azure Mobile Services forum is here:
    https://social.msdn.microsoft.com/Forums/en-US/home?forum=azuremobile&filter=alltypes&sort=lastpostdesc
    Don't retire TechNet! -
    (Don't give up yet - 13,225+ strong and growing)

  • Date Format problem...

    Hi users,
    Forte version : 2.e.2 and ForteWebSDK
    Datacase : Oracle
    We have a problem with a simple HTML text field which acccepts
    a date. When we try to update the record with some date, the following
    exception occurs:
    24-Jun-1998 04:32:28 : XV01086 : Execute failed for SQL statement in
    project Rap
    tServices, class RaptSqlMethods, method updateActivity, methodId 104,
    line 51, e
    rror from database is:
    ORA-01830: date format picture ends before converting entire input
    string
    The Oracle manual says that the above exception occurs when there are
    some extra characters on that field, which is not the case. In fact,
    we raise our own exception for the cases like : o1-Apr-1997,
    01-apr-97 etc. The correct format is 01-apr-1998.
    Same date soemtimes is added to the database successfully. Waht I mean
    to say that the exception deos not occur consistently.
    We just conevert the String taken from the HTML field into a Forte
    DateTimeData Object and send it to database. May be, the conversion
    part is causing the problem. But, once again the problem is not
    consistent.
    Any ideas in this will be appreciated.
    Thanx in advance
    -Rajeev Talwar
    Get Your Private, Free Email at http://www.hotmail.com
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    We had the same problem when our application first went live. The
    default date format for our Oracle database is 'dd-mmm-yy' without the
    time component. The default format for datatype DateTimeData is
    'dd-mmm-yyyy hh:mm:ss'. Since we did not want to change the default date
    format for the Database, we included in our service partitions an Alter
    Session statement to change the NLS_Date_format attribute in Oracle to
    conform to the Forte DateTimeData format. It worked.
    Kam Chow
    Mazda Australia
    -----Original Message-----
    From: Gary F Giger [mailto:[email protected]]
    Sent: Thursday, June 25, 1998 4:11 AM
    To: Rajeev Talwar
    Cc: [email protected]
    Subject: Re: Date Format problem...
    I was having the same problem a few weeks back when I would
    read/write
    dates to Oracle. I was using objects of type DateTimeData and I would
    occasionally get errors like you said you were. I found discovered my
    problem. Sometimes I would process a null date and would get an error.
    So to
    resolve this issue, I simply changes my objects of type DateTimeData to
    type
    DateTimeNullable. This enabled my Forte Application to handle regular
    dates
    as well as null dates. I have not gotten any oracle errors since then
    with
    regards to dates. Hope this helps.
    Rajeev Talwar wrote:
    Hi users,
    Forte version : 2.e.2 and ForteWebSDK
    Datacase : Oracle
    We have a problem with a simple HTML text field which acccepts
    a date. When we try to update the record with some date, the following
    exception occurs:
    24-Jun-1998 04:32:28 : XV01086 : Execute failed for SQL statement in
    project Rap
    tServices, class RaptSqlMethods, method updateActivity, methodId 104,
    line 51, e
    rror from database is:
    ORA-01830: date format picture ends before converting entire input
    string
    The Oracle manual says that the above exception occurs when there are
    some extra characters on that field, which is not the case. In fact,
    we raise our own exception for the cases like : o1-Apr-1997,
    01-apr-97 etc. The correct format is 01-apr-1998.
    Same date soemtimes is added to the database successfully. Waht I mean
    to say that the exception deos not occur consistently.
    We just conevert the String taken from the HTML field into a Forte
    DateTimeData Object and send it to database. May be, the conversion
    part is causing the problem. But, once again the problem is not
    consistent.
    Any ideas in this will be appreciated.
    Thanx in advance
    -Rajeev Talwar
    Get Your Private, Free Email at http://www.hotmail.com
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive<URL:http://pinehurst.sageit.com/listarchive/>
    Gary Giger
    Raytheon Systems Company
    300 Science Park Road
    State College, PA. 16804
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
    This message has successfully passed virus checking.
    Mazda Australia takes every precaution to ensure email messages are virus free. For complete protection, you should virus test this message.
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

Maybe you are looking for

  • Web Gallery Images Don't Show Up On Web

    I am very new to Lightroom, but have been using Dreamweaver and Photoshop for quite a while now. I took about 10 pictures that I wanted to be on a test web gallery, brought them into Lightroom as their own collection, selected them all and went to th

  • Can you hook up your iPod Touch 4th generation with an HDMI cable to your HDTV and play videos from your iPod to the TV?

    I'm trying to find out if I can hook up my iPod touch 4th gen. iOS 5.0.1 to my HDTV with an HDMI cable and have it mirror what I do on the iPod Touch like mirroring videos for example. I need to find out and if so, how?

  • 2 Mail apps opne when i open Mail 3.0

    I got the shortcut of Mail 3.0 on my dock. however, when i click on it once, 2 of the Mail windows will open at the same time although both are displaying the same thing and they sync on whatever instructions i perform including replying and unread m

  • IPod Shuffle spontaneously disconnects from iTunes

    When I connect my iPod Shuffle to my MacBook Pro, iTunes launches, begins to sync files and charge the iPod. Moments later, an alert message will appear in iTunes erroneously saying that the iPod has been removed before being properly ejected. I have

  • Connection exception

    hi iam developing a smpp application.. In the application there is a Connection class which i can't change.. when i try to connect to database (mysql) following compilation error occurs : [b]reference to Connection is ambiguous, both class java.sql.C