CS3/CS4 - Persistent data and different versions of plugin

Hi there,
In my plugin I have persistent data on e.g., the document and page items.
Say that I'm in version 1.0 of my plugin has a single persistent data field on the document, and that is wish to add a second field for version 1.1.
Does the SDK contain some form of functionallity for merging an old document into a new one that conform with the new fields?
Basically, my problem is that I do not know if I'm allowed to read the new persistent field in my ReadWrite function, since the current document could be created using version 1.0.
I guess that one solution is to tag the document with a version, and use that to determine the functionality of the ReadWrite function? However that do not seem as the most elegant solution...
I hope somebody understands my problem, and has a more sophisticated solution
Thanks
Kind regards Toke

There are basically two ways to deal with this situation.
The first is to let InDesign treat your data as a blob, include your own version number in the blob and parse the blob yourself based on the version number.  In this scenario you generally keep your plug-in's version resources the same, so InDesign doesn't know you've changed data formats.
The second is the InDesign way, in that you define a schema resource for each format version of your plug-in.  Doing this places constraints on your data, in that changes have to be moderately simple so that InDesign can apply changes to the older versions of your data to bring them up to the current schema.
See Schema.fh in the SDK.
The sample /Adobe_InDesign_CS4_Products_SDK/source/sdksamples/framelabel/FrmLbl.fr also uses schema resources.
The key is to be careful about syncing changes in your data with changes to your plug-in's format version numbers, as well as keeping your data simple enough for the schema system to update it.  If you don't, then you need to get into schema updating code and a bunch more work.
Jon

Similar Messages

  • CS3/CS4 - Persistent data results in missing plugin warning

    Hi,
    In my plugin I add persistent data to kDocBoss and kSplineItemBoss.
    If the users of my plugin sends a document to one that do not have the plugin, a missing plugin dialog is shown. This is not a big problem, however, users without the plugin are unable to package the document due to the missing plugin!
    Is it possible to make InDesign discard persistent data if the plugin is not available, so that the document no more depends on the plugin?
    I will be thankful if somebody can give me a hint on this problem.
    Kind regards Toke

    Hi again,
    IgnoreTags solved my problem
    Kind regards Toke

  • XML Export, persistent data and exporting to RPT

    We're using CR4E SP1 with CR 2008 Designer to create reports that are delivered via a web application on Windows.
    The lack of XML export (particulalrly disapointing that the new 2008 XSLT stuff is not there) means we're resorting to some extraordinary steps to get XML out of a report by using jiwam to call the CRPE COM engine.
    We create a report using XI or 2008 that uses a JDBC driver.  The report is copied to our server where users run it in CR4E to view output in Word,  Excel and PDF (we do the connection replacement on the fly).
    To get the XML output, we are attempting to save the report as a temporary RPT (Crystal) file, then invoke CRPE via COM to export the persistent data within the file as XML.
    The COM stuff works fine on a normal RPT file that contains data, but the creation of this temporary file is proving very problematic.
    We have tried SaveAs (just saves what is already in the report) and Export to RPT without success.
    Has anbody got any ideas ?
    A simple question - when is the data within a report actually refreshed?  Is it when the connection is replaced or when the export is initiated?  Is there a method to call that will refresh the data?
    Thanks,
    Steve

    Use CR4E version 2.

  • CS4 Save As and ActionScript Versions

    I'm curious as to which versions CS4 can save an FLA as. As
    government contractors we are obligated to submit our FLAs as part
    of our final deliveries, and some customers require the version to
    be 8. For this and other reasons we need to be mindful when
    considering upgrading.
    Also, will CS4 allow us to create files as either AS2 (gotta
    have that Tree component!) or AS3 in the same way that CS3 does?
    Thanks in advance.

    Ex Malterra,
    > I'm curious as to which versions CS4 can save an FLA as.
    Flash CS4 can save FLAs as CS4- and CS3-compatible files.
    (By
    comparison, Flash CS3 is able to save CS3- and 8-compatible
    files. Flash 8
    can save 8- and MX 2004-compatible files, and so on, back.
    Always the
    current version and the version before.)
    > some customers require the version to be 8. For this and
    > other reasons we need to be mindful when considering
    > upgrading.
    It can get tedious, but if you're using CS4 and want to save
    for Flash
    8, you'll have to Save As CS3, then open that file in CS3 and
    Save As 8.
    Keep in mind -- and this isn't new to CS4 -- you always risk
    losing features
    when you save to a previous version of Flash. For example,
    Flash 8
    introduced blend modes. If you use those and try to save your
    file as an MX
    2004 file, you'll lose that particular feature.
    > Also, will CS4 allow us to create files as either AS2
    (gotta
    > have that Tree component!) or AS3 in the same way that
    > CS3 does?
    Yes. Flash CS4 supports all the versions of ActionScript as
    Flash CS3.
    That said, you can always use 3rd party components to meed
    your needs, if it
    comes to that. The Yahoo! Developer Network features free
    (BSD license) AS3
    UI components for Flash here, including a Tree:
    http://developer.yahoo.com/flash/astra-flash/
    David Stiller
    Co-author, Foundation Flash CS4 for Designers
    http://tinyurl.com/5j55cv
    "Luck is the residue of good design."

  • CS4: client wants 800 "different" versions

    Hi,
    I have designed a ticket for a client, which is almost done.
    Now, that client wants me to make 800 different versions of it: each will have number on it, going from 1 to 800.
    However, doing this by hand will take enormously much time...
    So is there an easy way to do this?
    The numbers will be displayed in a font with layerstyle, so it is editable.

    Variables might do the trick.
    Make a template then use Image<Variables<Define to replace the ticket numbers, etc.
    Here's a link to a Layer's magazine video tutorial on the subject:
    http://layersmagazine.com/photoshop-variables.html
    Here's a link to the CS4 help page:
    http://help.adobe.com/en_US/Photoshop/11.0/WSfd1234e1c4b69f30ea53e41001031ab64-7414a.html

  • Partition Restore Cold Backup Different System and Different Version DB

    Is it possible, can we restore the cold backup at different database version and different operating system(but same ENDIAN_FORMAT) ????????
    My original system HP-UX (64-bit) and database version 10.2.0.3.0 i have cold backup and i want to partion restore on Linux Redhot 5.5 (64-bit), database version 10.1.0.4.0 .
    If it is possible. How can i do this.

    My original system HP-UX (64-bit) and database version 10.2.0.3.0 i have cold backup and i want to partion restore on Linux Redhot 5.5 (64-bit), database version 10.1.0.4.0 .1. AFAIK you can not do it i mean wiht cold backup move from HP to linux
    2. You can try to use exp-imp if you want to change db version.
    See below notes:
    Master Note For Oracle Database Upgrades and Migrations [ID 1152016.1]
    Different Upgrade Methods For Upgrading Your Database [ID 419550.1]
    Regard
    Helios

  • Publish date and Current Version

    Hi - I've got auditing configured for my page group.
    I'd like to create a new version of my item which is to be published at a date in the future, replacing the existing version which will remain valid until then.
    Is this achievable using 'out of the box' features? It seems that if I set the new item to the current version, then nothing is displayed until the publish date. If I leave the existing item as current, then the new item is never displayed without manually switching the version to be current independent of publish date.
    Any ideas?
    thanks

    hi,
    the problem is that the publish date is only active for the current version of the item. so it is not possible to publish a version of an item at a given time because you need to make it the current version before the attribute publish date is active as well.
    the only workaround i can think of is using CM APIs:
    http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/plsql/doc/pldoc_9026/wwsbr_api.html
    there is a function called modify_item. you could run a job that modifies the items you want to modify at a given date and add them as a new version or update the existing version of the item.
    unfortunately, your usecase is currently not covered from within the Browser UI.
    regards,
    christian

  • Xcode using wrong and different version of GCC for linking

    I have had this problem with Xcode for several versions now. I am working on plain old C code, but I am using OpenMP. The code compiles just fine with gcc-4.2. If I set up a target to compile the code with OpenMP support and using version 4.2 of gcc, it again compiles just fine...until it gets to the link phase. It then suddenly decides to try linking with gcc-4.0 instead of 4.2. And therefore, it fails because it can't find any of the OpenMP libraries. Anybody else have this issue? Is there a setting somewhere I'm missing? I've got a nasty hack where I made gcc-4.0 a softlink to gcc-4.2. It works, but this is of course distasteful. A real solution would be nice.
    Note, I have not tried creating a brand new project file..that's a lot of work as there are many files and targets involved. But I will try it if I have to.
    Current version of Xcode is 3.1.3. Thanks again.
    David

    Not really, unless the answer is to build a whole new project file. I found this discussion earlier, but it didn't really provide any new information except the idea of creating a new project file. But like I said, if I have to do this, I will. But I don't want to go through the effort if there is a simpler solution...and without knowing for sure that it will even work.
    Thank you very much for your reply.
    Is there some defaults file I can check for what linker is used for a target? Some file I can edit directly?

  • TRUNC() giving wrong data in different versions of Oracle DB

    Hi All,
           I have two oracle data base versions. I need to insert into one temp table with select statement. When i use the same query in both environment am getting different results. Can you please help me on that.
    Version:1
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Prod
    PL/SQL Release 10.2.0.4.0 - Production
    CORE 10.2.0.4.0 Production
    TNS for 32-bit Windows: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    Version: 2
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
    PL/SQL Release 10.2.0.5.0 - Production
    CORE 10.2.0.5.0 Production
    TNS for IBM/AIX RISC System/6000: Version 10.2.0.5.0 - Productio
    NLSRTL Version 10.2.0.5.0 - Production
    Query we used:
    insert into my_temp_table
    select v_name,trunc(d_charge_date)
    from table1;
    my_temp_table structure:
    v_name               varchar2(30),   
    d_charge_date     date;
    Note: Date columns represented with mm/dd/yyyy format....
    in table1 i have data like this....
    v_name
    d_charge_date
    xxx
    12/2/2012
    yyy
    10/23/2010
    abc
    9/29/2013
    after the insertion into temp table am getting the result like below...
    select * from my_temp_table;
    If i run this query in version 1 am getting the correct data..
    v_name
    d_charge_date
    xxx
    12/2/2012
    yyy
    10/23/2010
    abc
    9/29/2013
    but if i run the same insert query in version 2 getting the wrong data
    v_name
    d_charge_date
    xxx
    12/2/2011
    yyy
    12/2/2011
    abc
    12/2/2011
    If i remove the trunc from the insertion statement i didn't get the wrong data like above...
      I don't know the exactly reason. So can you please help me to identify this cause...

    Hi i think the global temporary table having this issue in version b what i have mentioned above.
    insert into /*+append*/global_temporary_temp
    (v_policy_no,n_seq_no,d_next_chgdue_date,v_charge_freq,v_cntr_stat_code,v_iu_au_base,d_cntr_start_date)
    select distinct a.v_policy_no,a.n_seq_no,trunc(a.d_next_chgdue_date),a.v_charge_freq,b.v_cntr_stat_code,c.v_iu_au_base,b.d_cntr_start_date
    from table_a a,table_2 b,table_3 c
    where a.v_status = 'A'
    and a.v_charge_freq is not null
    and trunc(a.d_next_chgdue_date) <= trunc(sysdate)
    and b.v_cntr_stat_code in ('NB010')
    and a.v_policy_no = b.v_policy_no
    and a.n_seq_no = b.n_seq_no
    and a.v_plri_code = c.v_plan_code
    and a.v_parent_event_code = c.v_parent_event_code
    and a.v_charge_pcode = c.v_charge_pcode
    and a.v_charge_code = c.v_charge_code

  • Persisting Data across different WebApps/Sessions

    Hello all,
    I am developing in an environment where multiple (web & enterprise) applications
    are developed and deployed separately to the same clustered WebLogic infrastructure.
    The applications are all owned by the same company, and usually co-exist quite
    happily. I have a request from the business, for a new application I am developing,
    to persist some user info for a logged in user on one application to another application,
    acessible to the user via a link on page. The user should be able to click on
    a link and access a different application but still have their data available
    on the new app, if logged in.
    As these applications are separate, afaik they cannot simply share session information
    together. I need some mechanism, whereby one application can access the information
    in the other application's session. Thus far I have considered these options:
    1) Writing a cookie containing the info, this could be retrieved from the other
    application, back from the client.
    2) Send user data through to the second application via a query string. At the
    moment this would be possible as a limited amount of information is required to
    be shared.
    3) Send unique field, such as userid, through to the second application, then
    use this field to retrieve user's details from database shared with first application.
    This seems OK in principle but my DBA's and security people may have other ideas.
    4) Serialise a user object which could be picked up again by the second application.
    As I don't know much about serialisation, where do objects get serialised to,
    presumably the server they are running on, is there a particular location, would
    there be security manager issues and would this be possible in a cluster?
    5) Is there another way for web applications to share information with each other?
    Thanks,
    James

    James,
    All of these approaches seem legitimate. It seems like if the data is small,
    the URL Query String approach would scale and perform well. However, the database
    userid approach would entail a performance hit just like when you use JDBC persistence
    for session information.
    Additional, stateful session beans store serialized information based upon the
    persistent-store-dir in the weblogic-ejb-jar.xml file
    See
    http://edocs.bea.com/wls/docs61/ejb/reference.html#1071686
    "James Lawless" <[email protected]> wrote:
    >
    Hello all,
    I am developing in an environment where multiple (web & enterprise) applications
    are developed and deployed separately to the same clustered WebLogic
    infrastructure.
    The applications are all owned by the same company, and usually co-exist
    quite
    happily. I have a request from the business, for a new application I
    am developing,
    to persist some user info for a logged in user on one application to
    another application,
    acessible to the user via a link on page. The user should be able to
    click on
    a link and access a different application but still have their data available
    on the new app, if logged in.
    As these applications are separate, afaik they cannot simply share session
    information
    together. I need some mechanism, whereby one application can access the
    information
    in the other application's session. Thus far I have considered these
    options:
    1) Writing a cookie containing the info, this could be retrieved from
    the other
    application, back from the client.
    2) Send user data through to the second application via a query string.
    At the
    moment this would be possible as a limited amount of information is required
    to
    be shared.
    3) Send unique field, such as userid, through to the second application,
    then
    use this field to retrieve user's details from database shared with first
    application.
    This seems OK in principle but my DBA's and security people may have
    other ideas.
    4) Serialise a user object which could be picked up again by the second
    application.
    As I don't know much about serialisation, where do objects get serialised
    to,
    presumably the server they are running on, is there a particular location,
    would
    there be security manager issues and would this be possible in a cluster?
    5) Is there another way for web applications to share information with
    each other?
    Thanks,
    James

  • Adobe Illustrator CS3, CS4, CS5, CS6 and CC failed to install. Error 7.

    Hi,
    About a year ago I've updated my OS to Mountain Lion (if I remember well) and Illustrator stopped working. So I've uninstalled it and tried to install it again but it didn't worked. The installation failed every time. I've tried every Illustrator from CS3 to CC but nothing worked. And I just gave up, but now I really really need the program and I'm not good at fixing things on my Macbook, so is there someone who can give me a hand?
    PS. I'm getting an "error 7" when I try to install it.
    Thank you so much!

    In case it says Exit Code rather than Error...
    Exit Code: 6, Exit Code: 7 Installation Errors -
    http://helpx.adobe.com/creative-suite/kb/errors-exit-code-6-exit.html
    Troubleshoot with install logs | CS5, CS5.5, CS6 -
    http://helpx.adobe.com/creative-suite/kb/troubleshoot-install-logs-cs5-cs5.html
    for information on how to review your installation logs

  • IPad UIWebView and different versions of XCode

    I have an iPad app with a UIWebView which loads some local .rtfd.zip files. The problem is that if I compile the app with XCode 3.2.2, everything works fine, but if I compile it with newer versions of XCode, I just get a blank UIWebView. Here's how I load the files into the UIWebVIew:
    - (void)loadFile:(NSString*)file
    NSString* resourcePath = [[NSBundle mainBundle] bundlePath];
    NSString* sourceFilePath = [resourcePath stringByAppendingPathComponent:file];
    NSURL* url = [NSURL fileURLWithPath:sourceFilePath isDirectory:NO];
    NSURLRequest* request = [NSURLRequest requestWithURL:url];
    [webview loadRequest:request];
    [resourcePath release];
    All the testing is done in the simulator.
    Can you help me?
    Thanks in advance!

    I have the same problem and still investigating the cause. From a bit a searching, it seems that it may be caused by the way I set up my UIWebView to receive taps (I subclassed a UIView that wraps a UIWebView).
    Here is a promising post about the solution:
    http://mithin.in/2009/08/26/detecting-taps-and-events-on-uiwebview-the-right-way /

  • Zmg and different version of ZCM?

    Hi all,
    We are in the (perhaps) odd place where we have 2 sites, one is at ZCM11.3, the other is at 11.2.4. I build all images for both sites (ZCM11.3) and them move the images to where they need to be.
    My question is, will an image created with ZCM11.3/with tuxera, be able to be properly restored using a ZCM11.2.4 PXE server/environment?
    We are seeing restores that seem to fail with 'Failure to write a Linux hard link error, wanted to verify it's not version related?
    Thanks.

    Originally Posted by mickers
    Hi all,
    We are in the (perhaps) odd place where we have 2 sites, one is at ZCM11.3, the other is at 11.2.4. I build all images for both sites (ZCM11.3) and them move the images to where they need to be.
    My question is, will an image created with ZCM11.3/with tuxera, be able to be properly restored using a ZCM11.2.4 PXE server/environment?
    We are seeing restores that seem to fail with 'Failure to write a Linux hard link error, wanted to verify it's not version related?
    Thanks.
    I just upgraded the imaging part to 11.3. We are still on 11.2. Works just as before with tuxera.

  • Webutil and different versions of Java Plug-in

    Hi Guys!
    Our 10g Forms work fine on Java Update 7, but applet doesn't start up if we use Java Updates 10 and up.
    Oracle Support says that starting Update 10 it is a complete rewrite from SUN and they advise us to stay with Update 7.
    But we have other web apps that are working with Update 11... so there is a problem.
    I noticed that java applet when on Update 10 and up gets stuck when trying to load JACOB.JAR which is part of webutil. It just freeze and nothing happens. When I remove webutil entries from formsweb.cfg, the applet starts up fine and I get a database login screen but forms of course don't work because they need webutil.
    Who had the same problem please advise.
    Thanks,
    Dmitri

    It only need one try uninstalling both then reinstalling 1.3.0_02 jre's always get screwed up during uninstall or if you are running multiple versions

  • Spatial data and 8i versions?

    Is the Spatial Data option only available with the 8i Enterprise edition or is it also available with the 8i Standard edition?

    Spatial is only available
    with Enterprise edition.
    null

Maybe you are looking for

  • Error in sales order creation using FM IDOC_INPUT_ORDERS

    Hi experts, I am using  FM IDOC_INPUT_ORDERS for IDoc processing for creating sales order. I have added customized fields over VA03 screen and to VBAP table. I am using user exit EXIT_SAPLVEDA_001 for populating these additional fields. Here I am wri

  • Editing a converted pdf

    I converted a PDF to a word document and downloaded the word doc.  How do I edit it or type in the fields?  It is a form that I want to be able to fill out.  Also it has sahding in some of the boxes and I would like to eliminate the shading.  How do

  • Accordion widget -  Toggling the Panel?

    I know this is probably simple but... 1) How do I make the Accordion widget Panels "Open & Close" by clicking on the same Panel twice? What I mean is that my Accordion Panel works fine & "Opens" when clicked once, but will not "Close" when clicked ag

  • OBPM SUITE DOWNLOAD

    Hi, As i know that OBPM SUITE has 5 intergrated tools 1)ORACLE BUSINESS PROCESS MANAGEMENT 2)ORACLE BPEL PROCESS MANAGER 3)ORACLE BUSINESS ACTIVITY MONITORING 4)ORACLE BUSINESS RULES 5)ORACLE WEBCENTER SUITE Is there any option to downlaod 5 tools wh

  • Migration Assistant from Time Machine not working, Migration Assistant from Time Machine not working

    Hello, A friend of mine recently bought a new Macbook Pro.  I believe it is a 2.8 Ghz i7 model. Anyway, they wanted to transfer all of their stuff from a 5 year old Macbook (running Snow Leopard) to their new Macbook Pro (running Lion) and they asked