Sample customize sync plugin

Hi,
Can any one send sample code for sync plugin. please  i need badly
that is i wants to sync user defined fields for that i wants to create customized
sync plugin
its very urgent.
Regards
Kannan.D

Sample code is included in the SDK folder
SDK folder is included in the download for webtools and netpoint
There is also a sample synch plugin and a tester

Similar Messages

  • Custom Sync Plugin Sample for Web Tools 2007

    Hello,
    Does anyone have a sample Custom Sync Plugin that works for Web Tools 2007?  I have been unable to get the sample provided working, actually cannot even compile it, and was just curious if there was a simple sample that worked that I could use as my base.  Please let me know.
    Thank you,
    Kristen

    Hi Shawn,
    Yes, I am using Visual Studio 2005 Professional with the .Net 2.0 framework and 2007.  However, most of the methods are not there, and things seem to have changed drastically, however the sample is still referencing the old.  Is there something that I am missing?
    Please let me know.
    Thanks,
    Kristen

  • Tester sync plugin?

    Hi,
    pls guide me to test sample tester sync plugin.
    iam using .net2005  and webtool2007 and my webtool server is in the another machine.
    how can i test tester sync plugin.
    what are the steps to run the tester sample in sdk.
    its very urgent.
    Regards
    Kannan.D
    Edited by: kannan desikan on Dec 31, 2007 7:36 AM

    First you must understand how the plugins work.
    The synch determines which records to synchronize based on on two tables.
    In Business One the table is PRX_Transaction_Queue.  This table has a record added for each SQL transaction that occurs in Business One.  These records are used to determine which data need to synch to Webtools.
    In Webtools, there is a sister table, TransactionQueue, which records all SQL transactions that occur within Webtools and determine which data to synch to Business One. 
    When each synch cycle begins, the synch loads all of the data from the above two tables into memory.
    Next, the synch examines the local plugins directory to see if there are any synch plugins marked to run PRIOR to the synch.  If so, the queue in memory is passed to the plugin to process.
    The synch runs.
    Next, the synch examines the local plugins directory to see if there are any synch plugins marked to run AFTER to the synch.  If so, the queue in memory is passed to the plugin to process.
    When the synch cycle completes, all successfully synchronized data are removed from the transaction tables.

  • What is sync plugin?

    Hi,
    i have SDK in that i have sample folder my questions
    what is sync plugin
    how to use this please explain detail about sync manager concepts
    how to open the sample progrmme in asp..net page.
    Regards
    Kannan.D

    Hi Kannan,
    The synch manager is a tool to setup, configure and run the synch of data between the Business One and Webtools database.
    The Server Config screen sets the connections to the B1 and Webtools databases.  The install plugin button creates the UDFs in Business One that are used to store the key values of associated data in the Webtools database.
    The Settings screen defines various defaults necessary for synchronization and allows some synch methods to be ignored.
    The Tables screen associates existing B1 data to Webtools data for required data which does not synchronize.
    The Syncronization screen performs the initial synch of data from B1 to Webtools and allows the synch to be manually executed.
    In Webtools 2007, Business One uses the PRX_Transaction_Queue to determine which data to synchronized to Webtools.  This table is populated when inserts, updates or deletes are performed by B1 clients. 
    Webtools uses the TransactionQueue table to determine which data to synch.  This is populated when data is inserted, updated or deleted on the website.
    Both tables can be managed from the synch manager.
    In new installations, the data must first be synchronized from B1 to Webtools. The "Initialize Synch" button deletes all data from the Webtools database and queues all B1 data into the PRX_Transaction_Queue.
    The Windows Service screen sets the interval at which the synch takes place (in minutes) and stops/starts the service.  The synch service is a windows service that runs the synchronization at the specified interval.

  • Sync plugin doubts

    Hi Shane
    Hi shane my client need custom sync plug that is
    if i create a user defined fields that fields should sync in business one database
    pls guide me how to start with custom plugin
    herewith iam sending sync plugin tester sample coding my questions below
    1)  what is security ticket in sync plugin?
    2) what is SBOQUEUE?
    private void button1_Click(object sender, System.EventArgs e) {
                WriteNote("Starting Plugin synch.");
                try {
                    // Get the NPSynchConfig data for this profile
                    SecurityTicket st = profiles[cboProfiles.SelectedValue.ToString()];
                    // Connect to the Business One company
                    Company c = GetCompany(st);
                    // Load the Business Partner Queue from PRX_Transaction_Queue
                    SBOQueue q = new SBOQueue(c, st, SBOObjectTypes.BusinessPartners);
                    q.GetQueue();
                    if (q.QueueObjects.Count == 0) {
                        WriteNote("The queue is empty. Exiting synch.");
                    } else {
                        WriteNote("There are " + q.QueueObjects.Count.ToString() + " items in the business partner queue.");
                    // Run the plugin
                    SynchPlugin.MyPlugIn pi = new SynchPlugin.MyPlugIn(c, st);
                    pi.B1Queue = q;
                    pi.NetPointQueue = new NPQueue(st, SBOObjectTypes.BusinessPartners);
                    pi.Synch();
                    //  clear the queue of synched objects
                    //  this should not be done in the plugin (the synch will do so)
                    pi.B1Queue.Clear();
                    WriteNote("Plugin Synch complete.");
                } catch (System.Exception ex) {
                    WriteNote(ex.Message + System.Environment.NewLine + ex.StackTrace);
                    WriteNote("Plugin Synch failed.");
    Regards
    Kannan.D

    First you must understand how the plugins work.
    The synch determines which records to synchronize based on on two tables.
    In Business One the table is PRX_Transaction_Queue.  This table has a record added for each SQL transaction that occurs in Business One.  These records are used to determine which data need to synch to Webtools.
    In Webtools, there is a sister table, TransactionQueue, which records all SQL transactions that occur within Webtools and determine which data to synch to Business One. 
    When each synch cycle begins, the synch loads all of the data from the above two tables into memory.
    Next, the synch examines the local plugins directory to see if there are any synch plugins marked to run PRIOR to the synch.  If so, the queue in memory is passed to the plugin to process.
    The synch runs.
    Next, the synch examines the local plugins directory to see if there are any synch plugins marked to run AFTER to the synch.  If so, the queue in memory is passed to the plugin to process.
    When the synch cycle completes, all successfully synchronized data are removed from the transaction tables.

  • Error while Running sample Smart Sync Application

    Hi all,
    I followed step that has been given on mdk 2.5 tool kit <b>to create a Sample  Smart Sync application which donwloads the short text and country code</b> with SyncBo,metadata xml and MCD,
    while running a smart sync on mi client i am getting an error..................
    <b>Error: 500
    Location: /me/jsp/home/home.jsp
    Internal Servlet Error:
    javax.servlet.ServletException
         at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:461)
         at jsp.home.home._jspService(Unknown Source)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java)
         at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
         at org.apache.tomcat.core.Handler.service(Handler.java:287)
         at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
         at org.apache.tomcat.facade.RequestDispatcherImpl.doForward(RequestDispatcherImpl.java:222)
         at org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:162)
         at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.dispatchRequest(AbstractMEHttpServlet.java:573)
         at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.doGet(AbstractMEHttpServlet.java:343)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java)
         at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.service(AbstractMEHttpServlet.java:164)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java)
         at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
         at org.apache.tomcat.core.Handler.service(Handler.java:287)
         at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:806)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:752)
         at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
         at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
         at java.lang.Thread.run(Unknown Source)
    Root cause:
    java.lang.NullPointerException
         at jsp.home.home._jspService(Unknown Source)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java)
         at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
         at org.apache.tomcat.core.Handler.service(Handler.java:287)
         at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
         at org.apache.tomcat.facade.RequestDispatcherImpl.doForward(RequestDispatcherImpl.java:222)
         at org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:162)
         at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.dispatchRequest(AbstractMEHttpServlet.java:573)
         at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.doGet(AbstractMEHttpServlet.java:343)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java)
         at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.service(AbstractMEHttpServlet.java:164)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java)
         at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
         at org.apache.tomcat.core.Handler.service(Handler.java:287)
         at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:806)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:752)
         at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
         at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
         at java.lang.Thread.run(Unknown Source)</b>
    please help me on this issue................
    regards,
    Venugopal

    HI Karthick,
    Thanks for your reply.
    while exporting the application it is running properly on NWDS platform as well in Eclipse platform but not in mi client.
    i am sure that,
    <b>MCD Name = Application Name = War file which is MDK_TUTORIAL_SYNC</b>
    Below is my Meta XML file:
    <b><?xml version="1.0" encoding="utf-8" ?>
    - <MeRepApplication schemaVersion="1.1" id="MDK_TUTORIAL_SYNC" version="250901">
      <Property name="CLIENT.BUILDNUMBER" />
      <Property name="C_APPLRESOLVE" />
      <Property name="DATA_VISIBLE_SHARED" />
      <Property name="EN">LANGUAGE</Property>
      <Property name="E_APPLRESOLVE" />
      <Property name="FACADE_C_CLIENT">X</Property>
      <Property name="FACADE_E_CLIENT">X</Property>
      <Property name="HOMEPAGE.INVISIBLE" />
      <Property name="INITVALUE" />
      <Property name="RUNTIME">JSP</Property>
      <Property name="TYPE">APPLICATION</Property>
    - <SyncBO id="ZNWW_EXM01" version="2" type="download" allowCreate="false" allowModify="false" allowDelete="false" reqDirectSync="false">
    - <TopStructure name="TOP">
    - <Field name="SYNC_KEY" type="N" length="10" decimalLength="0" signed="false" isKey="true" isIndex="true">
      <Input type="create">false</Input>
      <Input type="modify">false</Input>
      </Field>
    - <Field name="LAND_TEXT" type="C" length="50" decimalLength="0" signed="false" isKey="false" isIndex="false">
      <Input type="create">false</Input>
      <Input type="modify">false</Input>
      </Field>
      </TopStructure>
      </SyncBO>
      </MeRepApplication></b>
    reffer the above xml file and please find if  i miss any fields.
    regards,
    Venugopal.

  • Sync plugin causes firefox to crash on startup.

    After I install the sync plugin, firefox crashes on startup. Firefox will work in safe-mode. Furthermore firefox will run once in normal mode after being in safe-mode, but then revert back to crashing until the next safe-mode execution.
    I have 4 computers running firefox w/ sync and only one of them displays this problem.

    I have uninstalled and then installed the sync plugin.
    I have uninstalled and the installed firefox.
    I have run firefox -profile-manager and created a new profile.
    Thank you for the info regarding the .so and and log file.
    When firefox crashes nothing is appended to the log file. So I started looking at the access times on WeaveCrypto.so. When firefox successfully starts in normal mode, the access time on the .so in the x86_64 directory is set. However, when firefox crashes the access time does not get set (ie. WeaveCrypto.so is never accessed.)
    I am still confident that this has something to do the extension Firefox Sync 1.5.1 since if it is uninstalled or disabled everything works perfectly. On a side note, this problem is not new to this computer it has occurred with all versions of the extension starting at (I think) 1.3.
    It does not appear to be an extension conflict. The crashes still occur if I disable every extension except Firefox Sync.

  • I use firefox 3.6.20 and the firefox sync plugin dissapered, where did it go?

    Not sure if it needs more information besdies I went to the "what is firefox sync" and got to the install wher ethere was no plugin
    was: http://support.mozilla.org/en-US/kb/how-do-i-set-up-firefox-sync
    then: https://addons.mozilla.org/en-US/firefox/addon/firefox-sync/
    says: "This add-on has been removed by its author. "

    Firefox is not offering the Sync add-on to Firefox 3.6 users any longer. If you update to a Firefox 4+ version, you'll be able to use Sync - it is built into the Firefox 4+ versions and doesn't need an add-on.
    The Sync service has been expanded to include add-ons ''(in the Nightly 12.0 versions for now)'' within the last week or so, and I suspect Mozilla didn't want to update the Sync add-on for a version which won't be supported for much longer - 3.6 support is slated to end in April.

  • How do I customize syncing?

    Hi...
    I would like to be able to customize what syncs between my iPhone and MacBook Pro.  I DO want the same content in Mail and Contacts, so I'm good there.  I never use Calendar, so that's not an issue.  My problem is iTunes, iPhoto, Reminders, Notes, and Bookmarks in Safari.  I do NOT want Reminders and Notes on my Mac, and as far as the other three, I want to sync some of it, but not all of it.  I'd like to know how to clean up what's already there so it's more in line with my own preferences, and also how to add new data to one device or the other.
    Thanks!

    Hi ahbba,
    The best way to do this is to add an iCloud account. 
    Setup an iCloud account on your computer and devices and all of your information will be synchronized between them.
    The articles below will explain more:
    Apple - iCloud - Your info up to date on all your devices.
    iCloud Help: What is iCloud?
    Apple - iCloud - Learn how to set up iCloud on all your devices.
    I hope this information helps ....
    Have a great day!
    - Judy 

  • Aggregate devices and sample clock sync

    Hi All,
    Finally got the 2.8 8 core Mac Pro and am wondering how easy it is to sync multiple interfaces with sample accuracy. Would word clock be the route to take ?
    Has anyone done this with 2 devices from different manufacturers ?
    Btw, no cpu spikes here. Everything runs smoothly.... however , everything is all Apple.
    Cheers !!

    Hi,
    I just had a terrible time with a TC Konnekt 24D on brand new MacPro. Let down by really awful drivers but a lovely piece of kit otherwise. How do the m-audio drivers fare? I'll be using it with a Yamaha 01v96 v2 mixer, world clock delivered through the lightpipe itself but there is also a separate connection.
    Do you have firewire conflicts say with a FW iSight or FW Printer/Scanner?
    30/03/2008 09:08:20 kernel ential FireWire workloop deadlock!
    30/03/2008 09:08:20 kernel Naughty cmd is a IOFWCompareAndSwapCommand

  • Two computers: how to sync plugin export presets?

    Apologies if this question has already been dealt with, but I did not find it from the forum.
    How should I deal with the following situation. I have two computers (desktop and laptop), and the desktop works as my "master". I want to copy export presets to my laptop for on-the-road work, including the presets that include settings for the export plugins (namely LR2/Mogrify and MetadataWrangler)?
    I can easily deal with having identical versions of the plugins in both computers, but how to sync the export presents? Is it as simple as just copying the contents of ...\Application Data\Adobe\Lightroom\Export Presets\User Presets? Before just testing it I would prefer to hear if the solution is that simple, or if manually copying presets would mess up the LR setting on laptop?
    Running Windows XP and Lightroom 2.3.
    Thanks is advance.

    Thanks. There should not be problems with the drive-letters due to "managed" setup on both computers. Have to test if I could set SyncToy for easy copying of setting while on home network.

  • Custom Sync Problem (Unable to customize SYNC)

    I am trying to transfer ONLY few iPhoto events from my computer to Apple TV. iTunes, though, ignores any changes in SYNC settings and no matter what I check or uncheck to synchronize; the results is the same. It starts syncing everything, TV shows, music, podcasts...I haven't waited long enough to see if it syncs the photos (the only thing I wanted to sync at the first place).
    Thanks.

    If you have enabled a custom sync (See This) then the tv will only sync what it is told. Using the movies category as an example, you would check 'selected movies' and then simply have all the movies unchecked in the list below.
    If you are doing this, then are you sure the tv is actually syncing what you think it is, both synced and streamed content is listed on the tv. If you don't want streamed content listed on the tv then go to the summary tap in your sync options and check the box 'Show only synced items on my Apple TV'.

  • Bridge and PS sync plugins problems

    Hi All,
    I am having a terrible time. I have Windows vista home premium 64 bit operating system. I was using CS3 and CS3 bridge and recieved the upgrade on both to CS4 for christmas. I had problems installing it and support walked me through it by having me unistall both programs and then re-installing CS4 again. It came up OK but I lost all my plugins. When I try to re-install them they either don't show up or the couple that do will only open in PS directly, they will not show up at all in the the CS4-64 part.  I used to be able to open a picture in the bridge, usually raw files and then go from there to PS and edit with my plugins. Now the plugins won't show up going through the bridge to PS, but they do show up if I go directly into PS, at least the ones I finally was able to get it to take. Also I am having an aweful time getting them into PS to begin with. Is there a wizard or something to make this process easier or more sure. Or a sure fire recipe? Thanks for your help.
    Kathy

    in Bridge goto
    edit , preferences
    then goto
    file type associtions
    then highlight say 'jpeg' and you will see that photoshop CS4 is listed as the default program to open jpeg's
    in a 64bit pc this will open the 64bit version of PS
    so you need to click on the highlighted PS and select browse.
    you will need to then locate where your 32bit version of PS is stored.
    normally this would be in.
    local disk / program files (x86) / adobe / adobe photoshop CS4 /
    then click on the 'photoshop.exe' icon........
    your need to do this process for all the file types you intend to open in 32bit PS.
    so if your a RAW user then do this to the RAW file assoction that you use.
    so as not to get confused open both versions of PS 32 & 64 bit and change the background colour
    at least your know which run is actually running. (you do that in the PS prefs)

  • Sample code - cytoscape plugin - specifying database connection parameters?

    Hey all-
    I'm trying to get the Spatial plugin for cytoscape working (http://www.oracle.com/technology/industries/life_sciences/code/ndm_cyto11.zip). Anyone know where you specify the database connection info?
    Thanks
    Rob

    Hey all-
    I'm trying to get the Spatial plugin for cytoscape working (http://www.oracle.com/technology/industries/life_sciences/code/ndm_cyto11.zip). Anyone know where you specify the database connection info?
    Thanks
    Rob

  • I recently downloaded PS CC 2014 and want to sync my settings including plugins... How do I handle the plugins...reinstall?

    Is there an easy way to sync plugins without reinstalling?  I was hoping that PS2014 would just be an upgrade, but it downloaded a whole new program to my drive. 

    You first need to find out if your plugins will work with the new version, or if you need new plugins
    http://blogs.adobe.com/jkost/2014/06/installing-the-2014-release-of-creative-cloud.html
    You might also ask in Photoshop General Discussion for direct program help

Maybe you are looking for