Storing information within a document

Hi everyone,
Is there a proper way to store information within a InDesign document?
I would like my InDesign extension to be able to synchronizes data between a document, and an online database. So in order to do this I would like to store a copy of that database directly in the document most likely in an XML string.
The reason I'd like to embed it in the document is that I want people to be able to share documents and not loose that data.
I've looked at labels which seemed to answer this need:
app.activeDocument.insertLabel('myData', someXML);
But from what I've gathered around the internet, there is a size limitation of 4,854 bytes for a label. While it might be enough for most cases I can easily see the XML being too big.
Is there another way of storing data within a document?
Or do you see another approach to this problem?
Thanks in advance for your help.
-- Bastien

Yes, a lot of data!
It's interesting that you can write even more (I wrote about 1 Mb),
but everything over 4,854 is flushed during the save.
http://indisnip.wordpress.com/2010/07/31/saving-script-data-within-document/#comment-511
Marijan (tomaxxi)

Similar Messages

  • Using stored procedures within Crystal Reports

    Hello all,
    Background Information:
    I am trying to teach myself how to execute a stored procedure within Crystal Reports.  This is an aspect of Crystal that my work group has not utilized before and we're trying to gather information on the subject.  We use Oracle to create and execute functions and procedures all the time, but I've never tried this within Crystal.
    I use the "Add Command" functionality within Crystal on most of my reports so that I can taylor the sql to the report.  I find this easier to do versus using the ODBC connection to the tables and writing the code through the Crystal Reports wizard.  I also frequently use functions within these sql statements that are inserted in the Add Command.
    What I'm trying to achieve:
    I have a report that needs to run as a "trial", and then later as a committed "run".  This is for a monthly billing system.  Essentially, the user will run the report as the "trial", preview the data, make any necessay corrections, and then later, run the actual billing run.  Within my application, the bills are not actually marked as "billed" until they are actually "billed', if that makes sense.  As a result, the "trial" report will need to mark the bills as "billed", generate the report, and then rollback the data (so that the bills are not "billed".  Once the actual billing reports are ran, the same report will run, but with a "commit" at the end of the report so that the bills are now "billed".
    I'm trying simple tests and failing (i.e. taking baby steps to learn what capabilities Crystal has):
    I created as simple of a procedure as I can envision.  This procedure inserts the word "test" in one of my fields for a provided account number.  When I try to run this procedure via Crystal (via New Report ->History->My ODBC Database link->Stored Procedures), Crystal asks for the account number parameter, as it should.  But I then receive the error message:
    Database Connector Error: '42000:[Microsoft][ODBC driver for Oracle]Syntax error or access violation'
    The existing ODBC connection has work great for years and years to retrieve data from tables, but this is the first time I've tried to utilize procedures.  Can anybody help?  And can anybody explain what the Stored Procedures link is supposed to do?  Am I going down the right path?
    thanks,
    Noel

    Hello,
    Make sure the Oracle client install path is in the PATH statement. And also make sure you are using an IN/OUT cursor. CR only reads the last SELECT statement. Search the Documents area on how to create a Stored Procedure.
    Also, if you are using CR XI ( 11.0 ) then upgrade to CR XI R2 and apply all service packs ( SP 6 ). Go to this link: http://www.sdn.sap.com/irj/boc and download the trial version of CR XI R2 and use your XI keycode, then apply the patches which you can get to by clicking on the BusinessObjects tab above, then Downloads.
    Direct link to the Trial version: http://www.sap.com/solutions/sapbusinessobjects/sme/freetrials/index.epx
    It may fix your issue also.
    Thanks again
    Don

  • How can I get INSTID_B for the documents which are stored using Store Business Document functionality

    Dear experts,
    I had activated the functionality of Store Business document and successfully stored documents in external server.
    My client have a custom function module which is used to send emails.In that FM they used SO_DOCUMENT_READ_API1, SO_DOCUMENT_SEND_API1 function modules.They passed Instance Ident(SRGBTBREL->INSTID_B)(eg: FOL33000000000004EXT39000000000026) as export parameter to the FM 'SO_DOCUMENT_READ_API1' and get the attachment details and content.
    Here my problem is I do not have entries in the table SRGBTBREL for the documents which are stored using the Store Business Document functionality and without INSTID_B I am unable to use the FM 'SO_DOCUMENT_READ_API1' to get the document details and content. Please help me to find INSTID_B for documents which are stored using Store Business Document functionality or please let me know if there is any other way to use FM 'SO_DOCUMENT_READ_API1' for documents which are stored using Store Business Document.
    Thanks in advance.
    Regards,
    Kiran

    Hi Kiran,
    You can use the following method to get the information. For example if you want to get BO documents for a customer
    CALL METHOD cl_binary_relation=>read_links
       EXPORTING
         is_object           = ls_lpor
         it_relation_options = lt_relat
       IMPORTING
         et_links            = lt_links.
    then fill  ls_por-instid with a customer number (KUNNR), ls_por-typeid = 'KNA1' and ls_por-catid = 'BO'.
    Table  lt_relat should contain a line option  for each document type (for example 'I' 'EQ' 'NOTE', 'I' EQ 'ATTA', 'I' EQ 'URL', ...
    In table lt_links you will get your information.
    Maybe some other methods of class CL_BINARY_RELATION may also solve your issue.
    Regards,
    Klaus

  • Display Document Set Columns Within The Document Set

    Hello all! Hopefully you all can let me know if the idea I have in my head is possible:
    Background: I have a Document Library with a custom made Document Set that has about 15 columns. The way I initially designed this, I left about 10 of the fields as "Hidden" because we didn't want the user to fill out that information
    when creating a Document Set. That information would be completed in the next step through a Workflow. The Document Set Welcome Page has been left pretty much untouched with the usual web parts for Document Set Properties and the view of the items within the
    Document Set.
    Question: What I would like to know is...would it be possible to display those Document Set fields within the Document Set itself? At the moment, if I try to add another Document Library web part and view it, the information web part is
    empty, or it contains information about one of the items within the Document Set.
    Simplified Structure of Document Set:
    Name (required)
    Fiscal Year (Required)
    Total Cost (Required)
    Approval Date (Hidden)
    Requisition # (Hidden)
    Team Members (Hidden)
    Reminder Date (Hidden)
    User creates a new Document Set, fills out the information, and saves (this triggers a background workflow that approves the Document Set). After approval, a new workflow is started to provide the information for the Hidden fields (and also schedules a reminder
    for that Reminder date.)
    The goal would be to display those Hidden fields in another web part on the page. Right now, I have users going back up to the main level of the Document Library to look at a view that contains those fields.
    Hopefully I haven't confused you all too much! Please let me know if my idea is possible and any resources you might have!
    Thanks!
    Toni
    Toni Marie

    Here is the approach to read document set columns and assign to other webparts:
    for each document set you can find the id when you clicking on the document set or navigating to the welcome page,
    using this id read query string and  the associated item column values and assign to otherwebpart .
    Reference code:
    //page_load for other webpart read the query string of welcome page
    if (Page.Request.QueryString["ID"] != null)
                    ID = Convert.ToInt32(Page.Request.QueryString["ID"]);
                    if (itemID > 0)
                        GetDocumentSetItem(ID , site);
      protected void GetDocumentSetItem(int itemid, SPSite sSiteUrl)
                SPSite site = sSiteUrl;
                SPWeb web = site.OpenWeb();
                SPList list = web.Lists.TryGetList("DocumentlibraryName"); //where documentset content type attached
                SPListItemCollection items = list.GetItems();
                SPListItem item = null;
                if (itemid > 0)
                    item = list.Items.GetItemById(itemID);//getting the current item
       //read the document set item column values and assign it other webpart controls , 
                    txtDocsetidname.Text = Convert.ToString(item["FileLeafRef"]);
                    txtDocsetid.Text = Convert.ToString(item["hiddenfield"]);
    In the welcome page I have placed button to load webpart ,while loading the webpart I am reading the query string assigning the values to otherwebparts.
    G1

  • How do i distribute a form within a document?

    I have one page within a document I would like to use as a form and retrieve the information, how do I send my document and retrieve the information from the form within the doc?

    If you're using FormsCentral to collect the responses, after you import the PDF into FormsCentral, open the form in FormsCentral and you'll see the Distribute tab as shown in the screen shot below:
    It allows you to download the enabled PDF, which you can then distribute to users or post on a web site.

  • Information within the home hub

    Has anyone recently challenged the accuracy of the online monitor for Broad Band usage?
    I have been told I am going to breach the limit despite being on holiday.
    When I looked into the home hub the data usage over a connection time of nearly ten days amounted to a little over 3.3GB (figure1) whereas the data for the online monitor was nearly 17GB (figure 2).
    I phoned BT, the poor advisor I spoke with had no idea that this information was stored in the home hub and was completely out of their depth, unfortunately this meant the discussion was of no benefit whatsoever.
    The information within the help section of the home hub clearly states that the data usage corresponds to the connection time (in this instance almost identical to the online usage monitor) (figure 3).
    How can I challenge BT on this massive discrepancy and avoid being overcharged for the etherial data that I am not using?
    If a BT technician can explain the discrepancy to help me understand I would be most grateful, if not then anyone with limited data usage please start to challenge BT with the data they so helpfully store for us in the home hub
    Solved!
    Go to Solution.

    as has been posted many times before the hub refreshes the usage figure at around 5gb or every time the hub restarts
    If you want to say thanks for a helpful answer,please click on the Ratings star on the left-hand side If the reply answers your question then please mark as ’Mark as Accepted Solution’

  • Search for a String within a document (Word, txt, doc) using JSP, JAVA

    Hi
    I have created a little application that uses combination of JSP and HTML. Users of this application can upload documents which are then stored on the server. I need to develop functionality where I can allows users to search for a string within a document. More precisely, user would type in some string in a text box and application will search all uploaded documents for that string and return the downloadable links to those documents that contains that string. I have never done this before. I was wondering if someone could get me started on this or point me to some thread where this idea is already discussed. Any Jave code exists for searching through documents??
    Thanks for your help
    Riz

    http://www.ibm.com/developerworks/java/library/j-text-searching.html
    http://en.wikipedia.org/wiki/Full_text_search
    Type these parameter in yahoo:+efficient text search
    you will need something like openoffice library to read microsoft word document.

  • How to get repository informations about a document

    Hi,
    Is there a way to get informations on a document stored in XML-DB like the date it was created or updated ?
    I would like to obtain those informations without extracting the document maybe like querying a view similar to RESOURCE_VIEW.
    Thank you

    RES in the RESOURCE_VIEW contains all of that information. RES is an XMLType column. Use Extract or ExtractValue to get the information you require..

  • Technical Information About BW Documents

    I am looking for information about BW Documents.
    I know that Documents are managed in transaction RSA1, Documents tab.  But where in the file system are the documents stored?
    Also, I want to know how much storage space a document takes.  I have exported the document to my local computer and can see the size.  But there might be other space that is being use to store the document in BW.
    Pointers to White Papers or other documentation would be helpful.
    Thank you.

    Hi Audrey,
    Not sure if there are any white papers on this, but this link could give you some more info (if you haven't seen it yet):
    http://help.sap.com/saphelp_nw04/helpdata/en/42/594e3c6bf4233fe10000000a114084/content.htm

  • Is there a way to create a link within a document that will pull text from the document and open it up in a separate text box within the document?

    I am trying to link sections of an form within a PDF back to instructions within the same PDF document.  Instead of having this jump back to the page within the document I would like for it to pull up the identified text within a separate pop-up text box on the same page where the form lives.  Is this possible?

    Hi gwebster,
    Instead of linking back to the instructions page, may be you can use tool tips or comments so that the instructions can be seen besides the text.
    Regards,
    Rave

  • Report with information about release documents in VKM1

    Hello
    I need to know if exists some report that gives me more information about release documents in transaction VKM1. What user releases some document? How many documents a credit account had been release or block in a year or between dates?
    The transaction VKM2 just gives the release date of the document and not the user.
    Where I can find more information?
    Regards
    Daniel Teles

    Hi,
    There is a field to know which account is the parent account, but you can't have others informations from the parent account except the name. In the new R16, you have others field called "Parent Account external unique ID" and "Parent Integration ID". What can I do with this field? Is it possible to display the parent account phone field in the report?
    regards

  • How can I create a sub-folder within my "Documents" folder?

    How can I create a sub-folder within my "Documents" folder? I have many similar documents that I want to group together. This will also un-clutter my Documents folder.

    Also, you can add a New Folder button to the Finder's toolbar by opening Finder, going to the View menu in the menubar, selecting Customize Toolbar..., and dragging the New Folder icon to the toolbar in the Finder window. Then it's just one-click for new folders wherever you want them.

  • Calling a stored procedure within a package

    We have a number of packages containing stored procedures. In an existing production application, we used embedded SQL in C programs to call these stored procs
    e.g.
    EXEC SQL EXECUTE
    BEGIN owner.fees_calc.some_fee(:parm1,...);
    END;
    END-EXEC;
    Now, I am trying to use SQLJ to call this same stored proc in the package. However, I am getting a compilation error from sqlj saying that it cannot find a stored procedure or function of that name. It works fine if I use a stored proc that is not in a package.
    So how do I call a stored procedure within a package? Or is this not currently possible with sqlj?
    I am also getting a warning just before the error and I'm wondering if the error is being caused by this:
    Warning: You are using an Oracle JDBC driver, but connecting to a non-Oracle database. SQLJ will perform JDBC-generic SQL checking.
    I am connecting to an Oracle 7.3.3 database using an Oracle 7.3.4 JDBC driver. I also tried using the Oracle 8.0.5 JDBC driver for the same database but I get the same warning message.

    I used the following code to call a stored
    procedure via SQLJ:
    try {
    #sql [iCtx] {
    CALL ibs.cvs_validate.validate_port_id(:IN record_id ,:IN poe_pod_flag,:IN port_id,:OUT error_code,:OUT error_message) };
    where
    "ibs" is the schema
    "cvs_validate" is the package
    "validate_port_id" is the procedure
    The code runs fine, but to get it to compile
    in JDeveloper 2.0, I had to disable the "Check SQL semantics against database schema" option on the Project Properties (SQLJ) property sheet.
    null

  • Pages 5.2 - When I try to reorder different pages it just takes all the pages within the document and turns them into a stack! Why is this happening and how can I oder pages as the update is meant to let me?

    When I try to reorder different pages it just takes all the pages within the document and turns them into a stack! Why is this happening and how can I oder pages as the update is meant to let me?
    Any Help?I know the update has only been out a while but if anyone has an idea why it is doing this, please let me know!

    But you are telling me something I already know.
    Be precise.
    It is not Pages '09 that is broken.
    I am back in Mavericks and testing Pages 5.2.
    There are improvements, we shall see how useful, but in less than a minute I have already discovered bugs.
    Peter

  • How to keep an image "in place" within a document using Pages?

    Here's what I want solved. When I position an image (like a jPeg photo) within a document I take a great amount of care as to how it looks in the layout. BUT, if I add a new line of text ABOVE the image, all the text moves, but the image stays in place. When the text above moves down, any kind of "art direction" is lost.
    Yes, I know there is a way to "LOCK" the image, but that doesn't solve this issue. The formatting still moves all the text and the image is stuck, LOCKED or UN-LOCKED.
    I want to know if there is a way to KEEP THE IMAGE in place within the text. I want to be able to edit above the image and not have the headache of needing to move the image every single time I change something above it.
    Does this make sense?
    I have to assume there is a way to do this, I just haven't figured it out.
    I am using Pages 09.
    thanks,
    Mike C

    (a little bit more)
    This text below is from the Pages help menu, but (sadly) This does NOT solve my problems.
    Locking and Unlocking Floating Objects
    You can lock floating objects to avoid inadvertently moving them as you work. Inline objects cannot be grouped or locked.
    After you lock individual or grouped objects, you can’t move, delete, or modify them in any way until you unlock them. However, a locked object can be selected, copied, or duplicated; when you copy or duplicate a locked object, the new object is also locked.
    To lock a floating object:
    Select the objects you want to lock, and then choose Arrange > Lock.
    To unlock a floating object:
    Select the objects you want to unlock, and then choose Arrange > Unlock.

Maybe you are looking for