When I use SmartSync Notifier/ Observer design pattern

Hi all,
I have development a simple SmartSync Application with S01 syncBO type.
I not use SmartSync Notifier/ Observer design pattern  for read the local syncbo and local delta.
When I have to use and I have to implement the SmartSync Notifier/ Observer design pattern ?

Hi Rocco,
<b>SmartSync uses Notifier/Observer design pattern for applications to access inbox/outbox. Application has a read-access to the passed SyncBoOutDelta instance during the notification</b>
The usage of this API depending upon your custom requirement. If u want to monitor the number of new records(for example sales or like thAT) u have created in the client device , then that delta records will be there in the Smart Sync Outbox. If u want to monitor this new records then u have to use the API related with (Outbox - SyncBoOutDelta)..
Then comes the Inbox.The new records came from the Server will be there in the inbox of the MI client. This new records may be the response of number of new records u ahve created in the client device . If u want to monitor the number of new records that has downloaded to the MI client , then u have to make use of the SmartSyncInboxDelta..
Using this APIs , u can also find out the errors happened during the particular synchronization. For this APIs are also available...
refer these helps also..
SyncBoChange
This interface is the base interface to describe SyncBo delta change. Application should not use the interface directly, instead, use its sub interfaces - SyncBoInDelta, SyncBoOutDelta.
http://media.sdn.sap.com/public/html/submitted_docs/MI/MDK_2.5/content/javadoc/com/sap/ip/me/api/smartsync/SyncBoChange.html
SyncBoInDelta
http://media.sdn.sap.com/public/html/submitted_docs/MI/MDK_2.5/content/javadoc/com/sap/ip/me/api/smartsync/SyncBoInDelta.html
SyncBoInDelta is used to apply SyncBo delta data from backend to client. The SyncBoInDelta could may be a delta data from either the backend or other devices, or a response to the previously uploaded SyncBoOutDelta from the client, which can be distinguisehd by the SyncReply information included within the SyncBoInDelta
SyncBoOutDelta
SmartSync uses Notifier/Observer design pattern for applications to access inbox/outbox. Application has a read-access to the passed SyncBoOutDelta instance during the notification
http://media.sdn.sap.com/public/html/submitted_docs/MI/MDK_2.5/content/javadoc/com/sap/ip/me/api/smartsync/SyncBoOutDelta.html
Regards
Kishor Gopinathan

Similar Messages

  • Observer Design Pattern: Looking for redesign ABAP OO code example

    Hello folks,
    I am looking for an example for ABAP OO code that has been redesigned by applying the Observer Design Pattern. I would be very interested in both the code before as well as the code after the pattern is being applied.
    Thanks in advance and kind regards, Alex

    Observer can be implemented using the EVENTS.
    I had recently implemented the observer at one of my client's place. I had screen with so many ALVs. One ALV was kind of editable and other were just showing the information of the current row as well as some total information. So, initially I started with the Main ALV and SUB(1 and 2) for other ALVs. Now, when I need to refresh my ALVs based on the main ALV data, I had to explicitly update the data of the each Sub ALV. The code was kind of static and requirement was not yet fixed.
    Later on we need to add one more ALV on the same screen. It was easy to change the existing method where I was doing the explicit refresh of each ALV. But I thought of using the Events.
    I created an event REFRESH_DETAILS for main ALV. so, when data gets changed (which I was catching by DATA_CHANGED event of ALV), I raise the event.
      RAISE EVENT REFRESH_DETAILS
        exporting new_data = it_Data.
    In Sub ALVs, I created the event handler method to handle the event REFRESH_DETAILS of the main ALV.
      methods: handle_refresh_details
          for event REFRESH_DETAILS of ZCL_MAIN_ALV.
    I also had to register the Handler.
      SET HANDLER me->handle_refresh_details FOR ALL INSTANCES.
    I'll soon write a post on my [ABAP Help blog|http://help-abap.zevolving.com/] with all the details.
    Regards,
    Naimesh Patel

  • Confusion about observer design pattern

    Hi all,
    I have a case related to observer design pattern and I feel a bit confusion.
    Suppose there is a gui class which consists of 2 buttons connect and disconnect to the network and a socket class handling these two operations. Then socket class will inform the gui class if the operation is success or not. By applying the observer design pattern. gui class is observer and socket class is obserable. however I feel confusion as observer will send a command e.g. connect to observable.

    dophine wrote:
    my confusion is that the observer is the event source not the listernerIt is an observer but it also takes another role: the controller of the observable.
    kind regards,
    Jos

  • Observer/Observable design pattern

    Is there a way to implement the Observer/Observable pattern in a pure java FX 1.2 desktop Application?
    And if yes how ? :)

    You can use the real stuff, as shown in some threads (eg. in [Cannot bind a string array|http://forums.sun.com/thread.jspa?threadID=5425718] I show an example).
    This is necessary only to bind Java variables to JavaFX code.
    Now, as said above, in pure JavaFX code, you use binding. And the 'on replace' facility is useful too, as changes trigger actions.

  • "Inner bevel" filter bug? When I use "hard chisel" a striped pattern appears. Why?

    Hello,
    Can you please help me out with this following issue.
    In order to make some geometric shapes in my artwork look like "3D", i use the "Inner Bevel" filter and for this case, with a "hard chisel" parameter. The result shows also a stripped pattern, which I don't want. What's the cause and how do I fix this?
    For an example, here is a screenshot:
    Thanks in advance!
    - Jens.

    J, try right clicking the layer styles and chose Create Layers to seperate the highlight and shadow component of the bevel Emboss.   Unclip the new layers from the shape by Alt (Opt) clicking the interface between the shape layer and highlight layer.  Place a layer underneath the shape layer and fill it with black - you'll see how the highlight is constructed and extends way beyond the shape.  Invert the black layer, and you'll see the same thing for the Shadow area.
    Now try Ctrl (Cmd) clicking the Highlight layer, and you'll see that the lines apear as individual selections.
    I don't know why it is the way it is, but perhaps Brett or Chris can explain?  It has always been a source of annoyance to me, and that's for sure.  Noel might have some ideas, as I can remember him speaking about something similar a while back.
    BTW  The only way I could get a screen grab that included the marching ants, was with the Windows 7/8 Snipping tool.  You can leave it minimised on the  task bar between snips.  Really useful.

  • When to use FileTable, and DB design questions

    I have a kind of interesting scenario- lets say I have a list of people I wish to store in the database, so I create a table 'Person'.  Now lets say each person has a 2000 large image files (say high res photos or something).  Each image is >
    5M.  What I need to do at the end of the day is retrieve a person, and upon selection display a selected photo (or photos) in my C# WPF app.
    I was looking at FileTable to store the data on the disk, as this would be preferable to storing all these images as blobs.  But I wasn't sure how to associate the Person with their images through the FileTable.
    Can I add additional columns to a file table (like an fk to Person)?  Not sure if that is the right approach.  Maybe FileStream is better?  Is it better in a case like this to just store a path in the database?  Which leads to the next
    question...
    I also need to store other kinds of data, like DeepZoom data- this is interesting stuff, as its about 600M of data, and exists in a single directory structure with multiple levels of data (and images).  Apps able to read this need extremely fast access
    to the data to render it quickly.  I think in this case I would need to just store the location of the DZ data on disk.  But that seems fragile.  Is there a standard accepted way to store file locations in the DB?
    Thoughts and advice appreciated!

    Okay, filestream it is.
    What about storing file locations?   Also, if I write a 10M file to a filestream- do I write this to the DB as if it were a blob?  Is it slower to write to the DB than directly to the filesystem using filestream?
    I read the whitepaper on filestream and hunted around but couldn't seem to find this info...
    Since a FileTable appears as a folder in the Windows file system, you can easily load files into a new FileTable by using any of the available methods for moving or copying files. These methods include Windows Explorer, command line options including xcopy
    and robocopy, and custom scripts or applications.
    Please read the below URL. It clearly explains answer for your question.In the below url  script example also given
    http://technet.microsoft.com/en-us/library/gg492083.aspx#HowToMigrateFiles
    Loading or Migrating Files into a FileTable
    The method that you choose for loading or migrating files into a FileTable depends on where the files are currently stored.
    Current location of files
    Options for migration
    Files are currently stored in the file system.
    SQL Server has no knowledge of the files.
    Since a FileTable appears as a folder in the Windows file system, you can easily load files into a new FileTable by using any of the available methods for moving or copying files. These methods include Windows Explorer, command line options including xcopy
    and robocopy, and custom scripts or applications.
    You cannot convert an existing folder to a FileTable.
    Files are currently stored in the file system.
    SQL Server contains a table of metadata that contains pointers to the files.
    The first step is to move or copy the files by using one of the methods mentioned above.
    The second step is to update the existing table of metadata to point to the new location of the files.
    For more information, see Example: Migrating Files from the File System into a FileTable in this topic.
    Please use Marked as Answer if my post solved your problem and use Vote As Helpful if a post was useful. By ganeshk

  • Using IOC with Factory Design pattern

    Say I have two different data sources, one XML and another Database.I have 2 DAO's corresponding to the 2 data source and a DAOFactory to get the DAO.
    Now, I want to use IOC from the service layer to get appropriate DAO. Using DAOFactory will break IOC.
    Will it be a good idea to inject DAOFactory into the service layer?
    I somehow don't feel comfortable in doing so, Factories seem to be more or less like utility and injecting utility into the service does not seem a good idea to me.
    Please let me know how to get around this situation.
    Regards,
    Joshua

    JoshuaAntony wrote:
    Say I have two different data sources, one XML and another Database.I have 2 DAO's corresponding to the 2 data source and a DAOFactory to get the DAO.
    Now, I want to use IOC from the service layer to get appropriate DAO. Using DAOFactory will break IOC.
    Will it be a good idea to inject DAOFactory into the service layer?
    I somehow don't feel comfortable in doing so, Factories seem to be more or less like utility and injecting utility into the service does not seem a good idea to me.To me, this sounds like you're getting bogged down in abstract terminology and worrying about vague "rules" rather than considering the problem. Do you even need a DAOFactory? As the other guy said, a DAO interface, implemented however you like, injected where it's needed, is nice and simple, and avoids all those bothersome factories you probably don't need

  • Design Pattern help needed for MDI application

    Hi,
    I am writing an mdi application which contains a JSplitPane. The left pane contains a JTree and the right contains a JDesktopPane which houses n number of JInternalFrames. The JInternal Frames need access to the JTree. Also both panes (objects w/in) need access to elements of the JFrame. I am currently implemeting access by making most of the JFrame objects static and creating getter/setter methods for access. Does anyone know any desing patterns I might use to solve this dilemma?
    Thanks,
    John

    The observer design pattern causes the child objects to chage state when the parent changes state. The type of pattern I need would allow the child objects of the parent JFrame to be available globally without having to make them static. I am wrong in this? Would the observer pattern solve this issue.

  • Producer/Consumer Design Pattern + DAQmx + Event Structure

    Dear community users,
    at the moment I try to implement the Producer/Consumer Design Pattern into my current project. For this purpose I am trying to make a "minimal-example" in which I use the Producer/Consumer Design Pattern for the data acquisition and analysis (display in GraphXY, calculation etc..) process. In the Producer Loop I perform the data readings via DAQmxRead.VI and in the Consumer Loop, in this example only, I display the data in a GraphXY. At the same time I want to control the data acquisition via an Event Structure, for example Start Measurement/Stop Measurement Buttons. To configure the measurement time, for example if the user only wants to measure 150 sec, I use the Time Out Event of the Event Structure. This is a technique which is often used, when data acquisition and Event Structures are used at the same time (Excuse me if this is wrong!). Due to understand the Producer/Consumer Design Pattern I looked up in the Template\Framework of LabVIEW.
    In the attachment you will find my "minimal-example", which -sadly-, not working. What should I do ? 
    Thank you.
    Best regards,
    tugrul öztürk
    Attachments:
    daqEngine_PCP.vi ‏35 KB

    Your VI will never stop due to the Ok Button that stops the producer loop is read OUTSIDE of the loop.  Add an event case for it.
    Move the Start and the Ok Button inside of their respective event cases.  This will allow the latch to reset when they are read.
    Change the Ok Button to a stop button.
    Use a Greater Or Equal instead of Equal for the measurement time comparison.  What if somebody randomly changes it to 0 on you?  Again, you will never stop.
    Is the DAQ only supposed to read for "Measurement Time".  Right now, it constantly reads.  So if you don't use the DAQmx Read, you will get a buffer overflow error.  You need to put the DAQmx Start Task inside of the Start event case and then the Stop DAQmx Task inside of the Timeout event case when the measurement time is exceeded.  You should also perform the read regardless inside of the Timeout event case.
    I HATE telling the consumer loop to stop by destroying the queue.  You can look data that way.  Instead, send something an empty array.  In the consumer, check for an empty array.  If it is empty, stop.  Destroy the queue only AFTER BOTH LOOPS HAVE COMPLETED.
    You should also report your errors in some way.  Simple Error Handler at the minimum.
    Since you are using Continous Samples, don't limit the buffer.  Leave the Samples per Channel unwired on the DAQmx Timing VI.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Examples of the Abstract Factory Design Pattern

    Could someone please give an example about situations in which you would definitly use the Abstract Factory Design Pattern?

    Ok, but they are coupled because Abstract Factory uses Factory methods. Without getting too detailed here, Abstract Factory is useful when you want to swap out entire sets of things (ie. pluggable look and feels). So one subclass of AbstractGUIFactory is MotifGUIFactory while another is WindowsGUIFactory. Your application can gets a specific factory but puts it in an AbstractFUIFactory variable.
    AbstractGUIFactory factory = new WindowsGUIFactory();
    AbstractButton = factory.makeButton();So you can program generically and swap out entire sets of widgets by changing one line of code.
    You should really read Design Patterns by Gamma et al. because it is the definitive book on this topic.

  • Design Pattern for Tabbed Event Structure

    Hi All,
    Been working on a user interface using an event structure design pattern to respond to button presses.
    The interface got quite large and I decided to organize the buttons into groups and put them on different tabs (to group the functionality). 
    However when I put a case statement around the event structure to seperate the code on the diagram too I was not able to switch tabs and the interface gets stuck.
    Example attached.
    I could put all the button events from different tabs into one event structure but thought this might get very large and unreadable. Is there a standard design pattern that addresses this problem?
    Many thanks.
    Mark.
    Solved!
    Go to Solution.
    Attachments:
    TabbedEventStructure.vi ‏13 KB

    Medwar19 wrote:
    Hi All,
    Been working on a user interface using an event structure design pattern to respond to button presses.
    The interface got quite large and I decided to organize the buttons into groups and put them on different tabs (to group the functionality). 
    However when I put a case statement around the event structure to seperate the code on the diagram too I was not able to switch tabs and the interface gets stuck.
    Example attached.
    I could put all the button events from different tabs into one event structure but thought this might get very large and unreadable. Is there a standard design pattern that addresses this problem?
    Many thanks.
    Mark.
    Standard?
    If you tabs equate to states then the top level get set up to call a sub-VI that is responcible for that state.
    Then inside the sub-VI handling that state I use Dynamic Event registration to set up the events that I  have to service while in that state.
    This is what one of those sub-VI can look like.
    Which makes it very clearn what we are handling in thois mode of operation.
    Ton wrote a Nugget on Dynamic Event Registration that can be found here.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Software design patterns

    Dear members,
    As part of a research degree, I am conducting an online survey on the use
    of software design patterns within software design projects, especially
    when used within the scope of integrating applications (e.g. web services,
    EAI etc). The aim is to investigate how use of software design patterns can facilitate software reuse and save time and cost with software development
    The study doesn�t assume the use / knowledge of software design patterns as
    a pre-requisite for filling the online survey as we are collecting views of
    software developers with different background and experience.
    Your response would be treated as confidential and the online survey and
    results are anonymous (no name, address � etc is required).
    All those who completed the survey with valid E-mail address will receive
    copy of the aggregated results and any related publications, though giving
    E-mail is optional.
    The survey is expected to take 5 minutes to complete.
    The link to the online survey is at
    http://integrationsolutions.co.uk/Patterns_may.htm
    Many thanks for helping with this study.
    Contact details: [email protected]
    University of Bolton UK( http://www.bolton.ac.uk)
    Project web site (Under construction http://www.integrationsolutions.co.uk
    ).

    the only problems i could find is...
    1. sensors and display unit may vary...
    2. each measurement should displayn their hi and low values which can b considered as a common function...
    3. the display should vary according to user's request
    this is the scenario...
    could you help me to find the real problems and to apply patterns
    Weather Monitoring Station
    This system must provide automatic monitoring of various weather conditions. The system will have sensors to measure:
    Wind speed
    Wind direction
    Temperature
    Barometric pressure
    Humidity
    The system must also provide the following derived measurements.
    Wind chill(derived from temperature, wind speed and humidity).
    Dew point temperature(derived from temperature and humidity)
    Temperature trend(derived from recent temperature readings)
    Barometric pressure trend(derived from recent pressure readings)
    The user can request the system to report the highest and lowest values of any of the four primary measurements during the previous 24 hour period.
    The user has a screen display that continuously indicates all nine primary and derived measurements, as well as the current time and date.
    The user may direct the system to display the 24 hour maximum or minimum values of one primary measurement, together with the time of that report value.
    The user will be able to calibrate the sensors against known values and to set the current time and date.

  • Producer/Consumer Design Pattern with Classes

    I'm starting a new project which involves acquiring data from various pieces of equipment using a GPIB port.  I thought this would be a good time to start using Classes.  I created a GPIB class which contains member data of:  Address, Open State, Error; with member vis such as Set Address, Get Address, Open, Close...general actions that all GPIB devices need to do.  I then created a child class for a specific instrument (Agilent N1912 Power Meter for this example) which inherits from the GPIB class but also adds member data such as Channel A power and Channel B power and the associated Member Functions to obtain the data from the hardware.  This went fine and I created a Test vi for verfication utilizing a typical Event Structure architecture. 
    However, in other applications (without classes) I  typically use the Producer/Consumer Design Pattern with Event Structure so that the main loop is not delayed by any hardware interaction.  My queue data is a cluster of an "action" enum and a variant to pass data.  Is it OK to use this pattern with classes?  I created a vi and it works fine and attached is a png (of 1 case) of it.
    Are there any problems doing it this way?
    Jason

    JTerosky wrote:
    I'm starting a new project which involves acquiring data from various pieces of equipment using a GPIB port.  I thought this would be a good time to start using Classes.  I created a GPIB class which contains member data of:  Address, Open State, Error; with member vis such as Set Address, Get Address, Open, Close...general actions that all GPIB devices need to do.  I then created a child class for a specific instrument (Agilent N1912 Power Meter for this example) which inherits from the GPIB class but also adds member data such as Channel A power and Channel B power and the associated Member Functions to obtain the data from the hardware.  This went fine and I created a Test vi for verfication utilizing a typical Event Structure architecture. 
    However, in other applications (without classes) I  typically use the Producer/Consumer Design Pattern with Event Structure so that the main loop is not delayed by any hardware interaction.  My queue data is a cluster of an "action" enum and a variant to pass data.  Is it OK to use this pattern with classes?  I created a vi and it works fine and attached is a png (of 1 case) of it.
    Are there any problems doing it this way?
    Including the error cluster as part of the  private data is something I have never seen done and ... well I'll have to think about that one.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Connecting - JavaFX + Servlets(??) + design patterns

    Hello
    I'm a total noob in JEE world so I'm sorry if I'm asking for sth really basic.
    I would like to connect my JavaFX application with a simplest there is JEE-server. My guess is - Servlets (a good guess?). But before I start, here are some obstructions I need to face. The general goal of this whole project is to test few (around 5) JEE design patterns. It's because of my science project: "The use/usage of JEE design patterns in creating web applications". So what's the JavaFX for? My promotor asked for an application that would be handy for my College. So again what is going to be done :
    - connect the JFX app with JEE server
    - test the whole project with Cobertura, Checkstyle, Apache JMeter, Findbug, Cobertura, PMD/CMd and so on
    - refactor the project with 5 design patterns. I think I'll try to use: DAO, Intercepting Filter, any suggestions what more?
    - test again
    - compair test results. Make conclusion on the thesis.
    As for now I've found JFX class that could be used to communicate:
    http://java.sun.com/javafx/1.2/docs/api/javafx.io.http/javafx.io.http.HttpRequest.html and other from javafx.io.http
    I'm looking for the simplest way because I don't have a lot of time! :(((( So, is there a book, tool or a tutorial explaining how to quickly and simply do the stuff above?
    What I have installed:
    - winXP SP3 (linux and Eclipse still are crappy with JFX)
    - Netbeans 6.7.1 with JavaFX and now I've installed additionally:
         - Java Web Applications
         - Sun Java System Web Server 7.0
         - EJB and EAR
    Anything else I need?

    Why don't using ejb for remote client?
    It can be simpliest, you avoid web tier dev in the server and http on the fx side.
    Any version requieried for the JEE? With the sixth one, few annotations and just concentrate on your job, very nice.

  • WebService Design pattern

    Hello everyone,
    I'm working with a WEbService using Axis1 generated client code.
    Can anybody give me a good linkg to a Design pattern to use such generated code.
    Regards,
    Sebastien Degardin

    I don,'t fully agree with that.fine. why bother asking questions if you're just
    going to disagree with the answers that don'tmatch
    up with your own?Because, i aksed a question, nobody give me an
    answer.
    They, you, just contested the question, not trying to
    respond.
    That's why I don't FULLY agree.there is no answer to your question. a design pattern won't tell you how to use generated code. a design pattern might help in using specific generated code, but that's not what you asked. we can't second-guess what your code looks like, and what you need to achieve with it
    >>
    Patterns and Pattern Languages are ways todescribe
    best practices, good designs, and captureexperience
    in a way that it is possible for others to reusethis
    experience.you specifically asked about design
    patterns.
    more specifically, webservice design patternsI said, i USE WebService with Axis, and asked for
    Design pattern for such case. not asked for desicion
    about design pattern.see above reply. design patterns are not magic beans that can be applied to any problem. especially, not to vague problems like this one
    A design pattern for Axis generated code is
    possible.you're telling me there is a "use axis code" pattern? there isn't, any more than there is a general-purpose recipe for chefs. if you think there is, lots of luck tracking it down.
    Of course, i found a way to use a generic mechanism
    to centralize the request creation, request call and
    response validation.
    This avoid boilerplate code in each method call.
    But, that said, i don't have so much experience with
    that, that's why i asked for another example ...
    So, in my case, i think there should be best orgood
    practices which have been captured by experiencewith
    WebService and Axisv or other auto-generated
    code
    which would provide reusabilityn, scalabilityand
    For me Design pattern are applicable for a lot a
    things in a lot of domains.good for you. but remember that "for me" is not
    necessarily the same as "in reality"If you take EJB 2.1 and DTO, they are not always seen
    as good practices.
    But, however, they are books which related Design
    Pattern for such technologies, and they don't talk
    about the desicion of choosing EJB or NOT.what are you talking about? the DTO pattern solves - sort-of - a specific problem that often arises while using EJB, for example. it's not a "how to use EJB" pattern

Maybe you are looking for

  • Listing in SAP Retail

    Hello, We have 5 different distribution chains in our Retail system. The materials that I need to extend and list have already been extended to 3 out of 5 distribution chains in the past. We do not want to extend them to remaining 2 out of 5 existing

  • PO no Search in SXMB_MONI

    Hi All, I have designed one Interface from ECC 6.0 to SRM SUS Server. it process the purchase orders. I need to search based on PO No's  in SXMB_MONI. So, how to search based on  PO No's in SXMB_MONI? Thanks in advance Mahesh

  • HT3939 how to know my mobile model 3gs or 4s etc.??

    i have bought an iphone mobile and i can't know to which model belong it 3gs or 4s or what?!! vesion is : 6.0.1(9A405) . PLEAZE HELP! <Personal Information Edited by Host>

  • Safari and self generated ssl certificates https connections

    Hello, Anyone know if there is a setting I can accept or install a non-3rd party security certificate in Safari? I can get to sites using https when they are 3rd party verified, but otherwise can not. Usually you just accept or install the certificat

  • Firefox button not stayed on top of slide show.

    I have a trigger which acts as a pseudo-full screen sitting on top of another composition. When the trigger is pressed the composition opens in a light box. In Firefox only, this button will only show up on the first slide (target) of the home screen