Invoking sync programmatically from mobile client application

Hi All,
I am just developing a sample application using ADF mobile client for blackberry - I am able to do sync manually whenever there are updates - that is I go and execute mSync manually.
I want to invoke this synchronization whenever the data is saved in my app. How to achieve this programmatically?
Edited by: user12747136 on Nov 15, 2010 9:30 PM

Hi,
I think your problen could be solved with enabling automatic sync in the publication. In that you can specifu the rules of sync. even with 1 record being added to server side or to the client side db.
Paninie

Similar Messages

  • JBO-27122 error in ADF mobile client application for blackberry

    Hi,
    I am trying to develop a simple ADF mobile client application for blackberry. Currently, working only with Blackberry 9700 simulator. I am using the following for development:
    - Jdev 11.1.1.3
    - Oracle database lite 10.3.3
    I have done all the steps as given in the oracle demo. But when I try to run the application in blackberry simulator, the page shows the following error:
    ERROR: failed to change page
    oracle.jbo.server.DBTransactionImpl.createPreparedStatement: JBO-27122: SQL error during statement preparation. Statement: select po_header_id from po_headers_all where po_header_id=1
    [oracle.jbo.server.DBTransactionImpl.createPreparedStatement] Encountered exception executing query on ViewObject: header1
    [oracle.jbo.server.DBTransactionImpl.createPreparedStatement] Error retrieving BindingContainer : 'mobile_twoPageDef'
    oracle.adfnmc.java.sql.SQLException:
    oracle.adfnmc.java.sql.SQLException:net.rim.device.api.database.DatabaseException: select po_header_id from po_headers_all where po_header_id=1 : SQL logic error or missing database
    Unable to create/prepare native statement with SQL select po_header_id from po_headers_all from po_header_id=1
    Unable to create PreparedStatement with SQL select po_header_id from po_headers_all from po_header_id=1
    Please suggest what could have been wrong while developing or deploying the application.
    P.S. : The view object (header) shows data successfully when run in the application module. Also, a .db file gets created in the SD card folder. The synchronisation is a success when mSync.exe file is run in the <Oracle_Home>/Mobile/Server/Sdk/bin.

    Sorry my content got repeated.
    you can go through this thread FOD mobile db sync with base adf server db not working
    there is link that you can follow for synchronization (check second last message)
    Edited by: Nikhil Gokhale on Apr 17, 2011 3:55 AM

  • Error in BP Creation in CRM from Mobile Client

    Hi,
    I have created the mobile client application MSA. When i do the sync through conntrans, the BP is transfering from MSA to CRM and it is available in Inbound queue. But after executing the Bdoc it gives me a error message saying that the Partner GUID is no exist.
    "Validation error occurred: Module CRM_BUPA_MAIN_VAL, BDoc type BUPA_MAIN."
    This error is in "CAPGEN_OBJ_WRITE" Bdoc.
    When i check in SMW01, this Bdoc has only table CAPGEN_OBJECT with values (1 row).
    and
    "CUST_HIERARCHY" Bdoc has give the below error message.
    "Sending of an empty message is not possible"
    Kindly suggest me where is the issue.
    Regards,
    Bala.c

    Hi Bala,
    Which version of CRM are you using? There are some notes for CUST_HIERARCHY BDoc errors. Please have a look at them in the Support Portal.
    CRM_BUPA_MAIN_VAL is used for validation of rules set in CRM Server and maybe you dont have the same mandatory rules in MSA.
    Best Regards,
    Ankan

  • Using database views in ADF mobile client application

    Hi,
    I am using Jdeveloper 11.1.1.4 and WLS 10.3.4.
    I have developed a POC in ADF mobile client application both with and without synchronization. However, both work with entity objects based on tables.
    I need to use database views instead of tables. When I try to include entity object (based on views) in the view object, it shows an error saying "Only the entity objects based on tables can be selected"
    Please guide me if there is a work around for this.
    Also, please let me know if there is way to develop an ADF mobile client application skipping the use of entity objects at all and using view objects directly to specify the database query and fetch data from the database.
    Thanks in advance.
    Ansh
    Edited by: ansh on Mar 28, 2011 5:40 AM

    Hi, Ansh:
    Currently, out of box, ADF Mobile Client does not support synchronization against Database Views. This is because Mobile Server imposes some schema restrictions to ensure synchronization with multi-table views would work correctly. This schema restriction requires, for example, the view must have a primary parent table with key defined, and also all base table must be included in the data publication. These dependencies requires manual resolution and advanced planning, and is managed outside of the ADF Mobile Client/JDeveloper project.
    To continue development, you would need to create server Entity Objects directly against the base tables. You can then create the mobile ADF Business Component (EOs, VOs, etc). You can then create View Objects in your ADF Mobile Client application based on the database views, in order to retrieve the data you need exactly. In other words, instead of basing EO on the database view, create View Objects in the mobile applicaiton to mimic what you had in the View Object.
    Is there any other reason why you would need to access data via database views, instead of directly against base tables?
    Thanks,
    Joe Huang

  • I want to access JMS Queue in websphere from a client application

    Hello all
    I tried to access a jms queue in the websphere from a client application
    my connection factory jndi name is : MyConn
    my queue name jndi name is : MyQueue
    and here is my code :
    Hashtable environment = new Hashtable();
    environment.put(Context.INITIAL_CONTEXT_FACTORY,
    "com.ibm.websphere.naming.WsnInitialContextFactory");
    environment.put(Context.URL_PKG_PREFIXES, "com.ibm.ws.naming");
    environment.put(Context.PROVIDER_URL, "corbaloc:iiop:localhost:2809");
    return new InitialContext(environment);
    then:
    q = (Queue) ctx.lookup(QJNDIName);
    QueueConnectionFactory connFactory = (QueueConnectionFactory)
    ctx.lookup(ConnFactName);
    I had the following exception :
    javax.naming.NameNotFoundException: Context: networking/nodes/networking/servers/server1, name: MyQueue: First component in name MyQueue not found. Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0
    Can i have any help please ....

    Hi
    You are missing some critical jar files in your class path. It should be namingclient.jar, also please or something similar that is missing in classpath.
    HTH
    VJ

  • How to debug a Mobile client application

    Hi,
    How to debug a mobile client application on the laptop, where we dont have any .NET 2003 application installed. (not an MDW)
    If we get any error on the application, which could be a UI error on laptop, and if everything is working fine on the MDW, is there any way to debug the application on Mobile client?
    Also, please provide me links or tips on how to debug the mobile application, on MDW as well.
    Regards,
    Praveen.

    Hi,
    to be able to debug on a local machine you would need at least to install the UI/BOL class files and the project files and make some local settings.
    But anyway on all clients there should be the same MSA installation like it is on the MDW so in case of an issue it is normally caused by local (inconsistent) data.
    I would suggest to access the laptop IDES database by changing your MDW odbc settings and perform the debug session on the MDW.
    Debugging in VB .net is similar to VB6 but you have to notice that changing of the code is NOT possible when being in debug mode.
    Regards,
    Wolfhard

  • Access Oracle 9i from a Client Application without Oracle Client Install.

    Is it possible to access an Oracle Database from a Client Application without having an oracle Client Installation ?
    I want to write a program that connect to an Oracle Server. I use Borland C++. But my Programs only works with having the Client Oracle Software installed on the Client. Is there any way to realise this ?

    The way that 99% of the people that want to do this manage is to write Java code that connects to the database via JDBC, using Oracle's thin JDBC driver.
    If you absolutely have to use C++, you can purchase thin ODBC drivers from third parties (DataDirect for example) that will connect to the database without the Oracle client. I'm not aware of any thin, free ODBC drivers.
    Justin

  • EXCEL VBA: Inserting rows code returns error "2147417848 The object invoked has disconnected from its clients"

    I was executing the following code in Excel 2013 that is linked to a button I use to add multiple rows in a chosen section of a worksheet
    Sub Add_Rows_dc()
    Sheet53.Unprotect ("xxx")
    X = Range("C1").Value + 1 'Section Counter
    Y = ListSheet.Range("I" & X).Value 'Existing rows counter
    Z = ListSheet.Range("H" & X).Value 'Position counter
    Righe = InputBox("How many rows would you like to add?", , "1")
    If Righe < 1 Then GoTo err ' test for invalid row number
    RigheSheet.Rows(X).Copy
    Rows(Z - 1 & ":" & Righe + Z - 2).Insert Shift:=xlDown
    GoTo Fine
    err:
    Mess = MsgBox("PLEASE INSERT A VALID NUMBER OF ROWS", vbCritical)
    Fine:
    'Formulas update
    Z = ListSheet.Range("H" & X).Value 'Position counter update
    Range("U" & Z - Righe - 2 & ":AF" & Z - 2).FillDown
    Sheet53.Protect "xxx", , , , , True
    End Sub
    From time to time it returns me the error "2147417848 The object invoked has disconnected from its clients" and the debug point out the line
    Rows(Z - 1 & ":" & Righe + Z - 2).Insert Shift:=xlDown
    I cannot find any specific reason due to the fact that the error seems randomic, sometimes the code is perfectly executed, sometimes not.
    I wrote this piece of code in Excel 2010 and never encountered such problem before reusing it in Excel 2013
    Has someone an insight or a suggestion?
    Thank you very much

    Re:  strange error
    Try it this way...
    (might work, might not)
    Sub Add_Rows_dc_R1()
     Dim X As Double
     Dim Y As Double
     Dim Z As Double
     Dim Righe As Variant
     Dim Mess As Long
        Sheet53.Unprotect ("xxx")
        X = Range("C1").Value + 1 'Section Counter
        Y = ListSheet.Range("I" & X).Value 'Existing rows counter
        Z = ListSheet.Range("H" & X).Value 'Position counter
        Righe = InputBox("How many rows would you like to add?", , "1")
        If Righe < 1 Then GoTo errX  ' test for invalid row number
         RigheSheet.Rows(X).Copy
         Rows(Z - 1 & ":" & Righe + Z - 2).Insert Shift:=xlDown
        GoTo Fine  
    Fine:
    'Formulas update
     Z = ListSheet.Range("H" & X).Value 'Position counter update
     Range("U" & Z - Righe - 2 & ":AF" & Z - 2).FillDown
     Sheet53.Protect "xxx", , , , , True
    Exit Sub
    errX:
    Mess = MsgBox("PLEASE INSERT A VALID NUMBER OF ROWS", vbCritical)
    End Sub
    Jim Cone
    Portland, Oregon USA
    free & commercial excel programs (n/a xl2013)
    https://jumpshare.com/b/O5FC6LaBQ6U3UPXjOmX2

  • Sync Bookmarks from Mobile to Desktop

    I'm using Firefox 19 on Windows and Firefox Mobile on my Samsung Galaxy S2 (Android).
    The Sync from my Desktop to the Phone works perfectly. But now I am searching for a way to get Bookmarks from Firefox Mobile to my Desktop Firefox. Is this possible?
    I can add Bookmarks on the Phone, but unfortunaly i can't find them on my Desktop Firefox, even after pressing "Sync" on both devices.
    Is there a way to do this?

    Is it possible to sync bookmarks from Mobile to Desktop Firefox?

  • The object invoked has disconnected from its clients

    Hi
    I decided to take the plunge and update our server and take it up to SP1
    I updated it at weekend and it all seemed fine.
    I could log in and it all seemed wonderful, and I breathed a sigh of relief. Yes.
    Err NO...
    Come in this morning and I cannot remotely log in.
    I go locally to the machine and try to login but get this message "The object invoked has disconnected from its clients"
    I wondered if anyone has encountered this error and managed to fix it?
    Thanks.

    Hi,
    Thanks for your posting in Windows Server Forum.
    Can you able to login successfully after this error occurs?
    Did you try to take the console of server?
    Please try to find out the logs to see if there is any detailed error message during this issue. Also please try to login with admin account and check the result. If this can’t solve, you can try to start with safe boot mode and login into the server and try
    to find some logs related to the issue.
    Hope it helps!
    Thanks,
    Dharmesh

  • How do I invoke a Adobe Plugin from another Client application

    Hi,
    I have written a plug in for Adobe.
    I need to know how do i invoke this plug in from an external application
    For
    e.g a VB.NET Form has a button which on clicked would invoke this plug in
    Thanks for your suggestions in advance

    Leonard
    I would like to know how to do it
    I know that you can use IAC to call a plug-in
    I need to know the function call that i need to make in order make it happen
    MenuItemExecute doesnt seem to work for me.. or maybe i am doing something wrong there
    I can call menuitemexecute("SaveAs") but menuItemExecute("MyMenuItem")
    doesnt work
    Please advise

  • WdDoExit and Sync functionality for Mobile Offline Application

    Hey everyone,
    Hoping for some insight here.
    First of all, this is my requirement.  Reservation Items are downloaded to the client.  Any unposted items need to be uploaded as well as the posted items.  So really, one sync would download them all and another sync should upload them all back.  The modify bapi wrapper will unlock these unposted items for other people to pick.
    What I understand is that the nodes on the client have to have an attribute changed in order to be uploaded to the backend for validation.  Is there a setting that can be set to upload all items?  My guess is this wasn't how the offline stuff was designed.
    If not my solution is to update all Reservation items that have not been posted.  I'm doing this on the exit of the application in the wdDoExit function.  However, I was hoping to pop the user a message and have them decide if they actually wanted to exit.  In case they exited by mistake.  Is there a way to cancel an exit?
    I appreciate all ideas.
    Thanks,
    Alex

    Hi,
    I am sitll not clear about the issue you are facing but here are some facts about the mobile client 7.1
    a) As and when a CRUD happens on a node element for a data object node and a commit is called, sync messages are automatically created. These messages for create,update,delete operations are sent to DOE In the next sync cycle and any changes from DOE are also recieved and consumed in the same sync cycle.
    b) wdDoEXit methods on application controller & view controller are relevant for performing any final steps on exit which can be also used to commit also.
    c) Use OCARoot.getInstance().commit() for committing any unsaved changes done in the application. All unsaved changes across any data object will be saved.
    Regards,
    Nipun

  • Can we deploy taskflows separetly from the client application?

    Hello,
    We have projects that contains taskflows that we want to integrate into a client application. Is it possible to deploy the taskflows outside the ear of the client application? basically what we want is to be able to deploy new versions of taskflows without having to rebuild and deploy the client application.

    I followed the instructions in Andrejus Baranovskis's Blog. However when I run my client app I get the following exception:
    <2012-01-25 8 h 28 EST> <Notice> <Diagnostics> <BEA-320068> <Watch 'UncheckedException' with severity 'Notice' on server 'DefaultServer' has triggered at 2012-01-25 8 h 28 EST. Notification details:
    WatchRuleType: Log
    WatchRule: (SEVERITY = 'Error') AND ((MSGID = 'WL-101020') OR (MSGID = 'WL-101017') OR (MSGID = 'WL-000802') OR (MSGID = 'BEA-101020') OR (MSGID = 'BEA-101017') OR (MSGID = 'BEA-000802'))
    WatchData: DATE = 2012-01-25 8 h 28 EST SERVER = DefaultServer MESSAGE = [ServletContext@962080392[app:TaskFlowIntegration_application1 module:TaskFlowIntegration-ViewController-context-root path:/TaskFlowIntegration-ViewController-context-root spec-version:2.5]] Servlet failed with Exception
    java.lang.IllegalStateException: Attempt to validate an already invalid RegionSite:
    However when I run my client app as standalone (i.e. with the taskflow lib included in the ear) I don't get this exception. Any idea?

  • How to invoke a JAR from Java Swing application?

    Hi,
    I am trying to start a jar file from the swings application.
    I am trying the following code,
    String cmd[] = new String[]{"cmd", "java -jar TestJFreeChart.jar"};
    try
           Process run = Runtime.getRuntime().exec(cmd);
    catch(Exception e)
    {}Is anything wrong in the usage?

    First try:
    "cmd /c java -jar app.jar" or cmd start, because it can't jsut run java.exe, it needs to be
    passed to the cmd interpretor witch further calls java.exe, etc
    Also read what stevejluke suggested. Its important to know if .waitFor or not.
    You wont understand these until you read the tutorial.

  • Setting a HttpSession on a web app from a client application

    Hi all,
    Using jnlp or applet, i will run a JFrame app which scans an image using the client's scanner and will send this image back to the web app, and continue to use the web app. They do not want to manually upload the image.
    I've completed running the jnlp on the client side and have gotten the image through scanning, my question is..
    How do i set this object as a HttpSession so that back at the web app, my servlet can get this session object?
    Well, I can open a HttpURLConnection to my web server, but how do i set the session object from the client app.
    Thanks.

    I've personally done this before. The solution I used was to send the image from an Applet to a Servlet via ObjectOutputStream and ObjectInputStream. Search for "applet servlet communication"

Maybe you are looking for