Multiple document use of field.buttonSetIcon(...) is failing

We're trying to store a set of icons in a pdf document that can be shared by all the attached pdf documents.  The result of this would be then when we are in one of the attached documents (call it the child), we can read the icon from the parent document, and set it to a field created on the child document.  Here is the sample of the JS we're using ("this" pointer is for the child document)
    function CreateWidgetWithIcon(box, iconname)
        var name = \"NewWidget\" + this.numFields;
        var master = GetRootDocument(); <-- this function returns to us the document that contains the icons
        var field = this.addField(name, \"button\", 0, box);
        field.buttonPosition = position.iconOnly;
        var sourcefield = master.getField(iconname);");
        var icon = sourcefield.buttonGetIcon();"
        field.buttonSetIcon(icon);
All the functions are returning exactly what we expect them to.  If the this.addField were changed to master.addField, the exact result we want happens, just in the wrong document.  But when this is run in the child document, and we try to create the field in the child document, when the icon is set to the field, we get:
    GeneralError: Operation failed.
    Field.buttonSetIcon:8:Bookmark undefined:Mouse Up
Both document are open and disclosed when we run this.
Is this an expected failure?  Is it possible at all to have a resource that is stored as part of one document but accessed by another?  ImportIcon and buttonImportIcon don't seem to fit our needs either as I need this to be an entirely self contained document, deliverable as one pdf.

Getting and setting button icons within the child document works as expected, as long as the button originally existed as a resource of child document.  I've not had any luck copying the icons from the child to the master either.
When we try to doc.addIcon on the other document, the call silently fails, returning null.
We tried the global variable options.  I wasn't aware you could use variables other than bool, number, and string.  We'll have to see if we can put this to good use now, but even so, this doesn't gain us anything in this instance.  We've always had access to the icon object in the child document.  When our JS is executing, we have both a "master" and "child" doc as variables.  In both of these, we're able to add and get fields, get and set icons, etc.  So when we're in the child document, we still have an Icon object that we got from one of the master's fields.  In this case of adding it to a global and then retrieving it from the global, the variable hasn't changed any, and is thus the same variable we would have access to if we didn't put it into the global first.  When passed through the global object, the same error as before is still returned.
The WindJack (awesome tool, we love it) and FormRouter tools only deal with IconStreams.  All these techniques and tricks do seem to be helpful in those scenarios, but IconStreams can be created from Icons, but not the other way around, thus these other tools aren't particularly useful to us.  If we could find a way to use an IconStream to make something appear within our document, then we could work with that, but I've tried and haven't been able to get any of that to work.  Our best results for the appearance we desire for our annotations is to user button fields and to use Icon objects to set the appearance of them.  We're open to other methods, but really, we would just want Icon to work.

Similar Messages

  • Removing pw-protection from multiple documents using v. 11.0.4

    I'm hoping someone can help me out here. I'm at my wit's end after wasting an hour and a half with an Adobe chat person who couldn't figure this out.
    In previous versions of Acrobat, one was able to add pw-protection to multiple documents at once using the batch process, and conversely, one was able to REMOVE that pw-protection using a similar batch process. I now have about 150 documents that all have the same password, which I must remove because of the need for edits. In v. 11.0.4, however, this capability seems to have disappeared. The chat support person said the only way to do it was to create an Action, but then be willing to re-enter the pw for each and every file! 150 times! Surely we haven't gone backwards in this version?! Say it ain't so!
    If anyone knows how to do this, I would be very grateful. It seems a shame that I would have to revert to an older version to get this job done (with the hassle of uninstalling/installing to boot).
    Thanks,
    Gail

    Hi Dave,
    OK I’ve downloaded your  file and installed. The option Remove Security appears under the Encrypt action only if I have a file open and it will indeed remove the pw from that file and allow me to save back to the same file name. However I don’t see an option to add multiple files to the action, and if no file is open, the action is dimmed out. This is my last hurdle to getting this job done; can you point me in the right direction?
    Gail

  • Multiple Document using RFBIBLOO

    Hi,
    Any one please confirm is it possible to post multiple documents or records using RFBIBLOO standard program under one file.
    Thanks and Regards,
    Paul.

    hi,
    don't get it.
    you can post all kinds of documents, as you've
    internal number ranges or external ranges with non duplcate document no.
    nice weekend to ALL
    God bless
    A.

  • How to send multiple documents using SENDMAIL step

    Hi Experts,
                         I have  a requirement to send a notification to multiple users using SENDMAIL step. How can I do this? I thought to create a method in the BO and to export ACTOR_TAB to wrkflow but the problem is I am unable to create an export parameter in the method with the type SWHACTOR.
    Can anybody please suggest me hw to trigger sendmail to multiple persons.
    Regards.
    Ranganadh

    Hi Smit,
                      I am facing another problem actually I tried above solution by givin initial values in the workflow container. But now in my implementation program when I am populating the event container with SWC_SET_TABLE its giving me dump by saying type conflict.
    Is it possible to use SWC_SET_TABLE command in SE38 programs?
    Please suggest me how to populate the event container in report programs. I have included <CNTN01> in my report.
    Thank you.
    Ranganadh

  • Uploading multiple documents using file upload option

    Hi,
      I am new to BSP in file upload.Here i am trying to upload documents and Archiving the documents.At one time i am able to uplaod one document.Is there anyway of uploading of multiple documents from the same File upload control in the same session.and keeping the documents that uploaded in the page.
      Hope you will answer.Need urgent reply.
        Regards
       Usman

    before answering your question, a request
    can you reply/award points/close previous thread opened by you.
    coming to your question, check out the below given link.
    http://www.15seconds.com/issue/990723.htm
    Regards
    Raja

  • Automatically Name Document using form fields in the PDF?

    Is it possible to populate the Save Name field with a concatenation of fields that the user selects on a form? I'm using Reader Extensions to let a user fill out a form and save it, and I have 3 fields - Station, Month and Year, in the document. (It's a monthly report) I'd like it when the user goes to save the document to have it automatically named "WGST October 2007" - the concatenation of those 3 fields.
    Thanks in advance!!

    The only Flash Player that is remotely connected to Adobe Reader is the plugin.
    Can you temporarily uninstall the plugin (or both ActiveX and plugin using http://helpx.adobe.com/flash-player/kb/uninstall-flash-player-windows.html and see if the problem disappears?
    Reinstall both using these installers http://helpx.adobe.com/flash-player/kb/installation-problems-flash-player-windows.html#mai n-pars_text_4

  • Is it possible to sort document using Description field?

    In a specific folder you can sort documents by "Name", "Size" and "Last modified" fields. does anyone know how to enable the sort by "Description"?
    Thanks,
    Nadia

    I will give you 2 answers since I am not sure exactly how your report runs.
    Lets say your users choose a couple parameters to limit certain columns by in your where clause. In this case, you would want to just create a user parameter, and use that parameter in the where clause.
    select col
    from table
    where job_id = :P_JOB_ID and
    start_date between :P_START_DATE and :P_END_DATEPretty simple. Now here is how I would do it if those are optional parameters, and the user could enter a value, or could leave all blank.
    select col
    from table
    where job_id = nvl(:P_JOB_ID, job_id) and
    start_date between nvl(:P_START_DATE, start_date) and
    nvl(:P_END_DATE, end_date)If its null, it will set the column equal to each other, and will return all the rows (good little trick).
    The other case is if you need a different select/where clause entirely based on what the user sends in. For example, lets say you have 2 entirely different queries based on a certain parameter. Then you'd want to use lexical parameters and an after parameter trigger.
    I think you are looking for the first scenario, so try that and post back if you are looking for something different

  • How do I split a large PDF into multiple documents using Acrobat?

    Will acrobat split a large document into mulitple documents.  Not extract but split.  Also can you delte pages with it?

    Hi servidone,
    You can defintely do this with Adobe Acrobat.  Please see this page for details on how to accomplish the tasks you were asking about: https://helpx.adobe.com/acrobat/using/manipulating-deleting-renumbering-pdf-pages.html
    -David

  • Posting Multiple Documents using Contribute 4

    My organization is attempting to put our ~400 job
    descriptions online in PDF format. How can I make a list of 400 job
    titles more user-friendly using Contribute 4? Can I add
    searchability? Is there a way to allow users to sort the documents
    (by department, job title, union, etc) using Contribute 4? I am
    able to edit our website using Contribute 4, but all other types of
    development must go through our IT department (which I'd prefer to
    aviod). Any suggestions are much appreciated.
    JT

    Disregard - I've asked our IT people to set up something
    "fancy" - thanks anyway!

  • Best workflow: multiple documents or multiple sheets?

    I'm new to spreadsheets, but growing to like them a lot. One question I have is what the best practice is for maintaining things like a finance/income spreadsheet for multiple years — is is better to have a new sheet for every year, or to create a new document? Currently I am just using multiple documents, using the previous year's as a template. But I've been wondering if you long-time users can shed some light on how you think this is best handled.

    @Jerrold - thanks, this was another thing I was wondering about (bloat/speed issues over time). Currently I am doing exactly as you mentioned, pulling in sheets from the previous years, then calculating stuff based on totals -- since I don't really need most of the detailed info for year-to-year comparison.
    Thanks for the counterpoint, these are the kinds of things I am trying to weigh before I make any changes in my workflow.

  • Can you add People Picker with multiple values to Word Document using Quick Parts?

    Hi all, I've been trying to develop a form in Word that takes a bunch of metadata from the SharePoint library. Most of it works okay, but when I try to add any fields that have been set up to take multiple entries in a people picker, they don't show up
    in the add quick parts list. Any ideas, or is this a limitation?

    Hi NREL,
    According to your description, my understanding is that the people picker column with multiple values was missing in Word Quick Parts.
    This is by design that we are unable to use the fields which is allowed multiple selections.
    As a workaround, you can use a text field(Single line of text) to store the multiple values of the people column. When you create a document, start a workflow to update the text field using the values of the people column, then use the
     text field in Word Quick Parts.
    You can do as the followings:
    Open your library, and create a new column using Single line of text.
    Open your site with SharePoint 2010 Designer, create a workflow based on your library.
    Add the action “Set Field in CurrenItem”, and set it like the screenshot.
    Set the Start Options is “Start workflow automatically when an item is created”.
    Best Regards,
    Wendy
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Wendy Li
    TechNet Community Support

  • How do I scan multiple pages into one document using the CanoScan LiDE 200?

    How do I scan multiple pages into one document using the CanoScan LiDE 200?
    I can't seem to find a way to get them to scan continuously, or a way to stitch them together afterwards.

    Hi dagda24,
    You can scan multiple pages into a single document with the scan to PDF option.  Use the following steps to do so:
    1.  Open MP Navigator.
    2.  Click One Clcik.
    3.  Click Save to PC.
    4.  Change the File Type from PDF to PDF (multiple pages).
    5.  Make any other changes as needed, then click scan.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • Uploading multiple documents into sharepoint list item with REST in sharepoint 2013 using content editor web part :

    hi ,
    i am trying to upload multiple document files into sharepoint list item. I followed below link for implementaion.
    http://techfindings-prem.blogspot.in/search/label/jquery.multifilejs
    It was working for sharepoint hosted app.
     This complete code is written within content edito web part.
    It was working when i was in root site collection with below change (hard coded the root level url) in code in "UploadFile" function.
    var scriptbase = "http://servername" + "/_layouts/15/";
                console.log(' File size:' + bytes.length);
                $.getScript(scriptbase + "SP.RequestExecutor.js", function () {
                    var createitem = new SP.RequestExecutor("http://servername");
                    createitem.executeAsync({
                        url: "http://servername/sites/cpg/" + "/_api/web/lists/GetByTitle('SalesRecord')/items(" + attachmentitemid + ")/AttachmentFiles/add(FileName='"
    + fileName + "')",
                        method: "POST",
                        binaryStringRequestBody: true,
                        body: binary,
                        success: fsucc,
                        error: ferr,
                        state: "Update"
                    function fsucc(data) {
                        //alert( data.statusText + "\n\n" + data.responseText);
                        console.log(data + ' uploaded successfully');
                        deferred.resolve(data);
                    function ferr(data) {
                        //alert( data.statusText + "\n\n" + data.responseText);
                        console.log(fileName + "not uploaded error");
                        deferred.reject(data);
    But the issue came in picture when i was working with the other site collection instead of root one. The url was like below.
    "http://servername/sites/cpg/". This time i need to be there within "cpg" site collection. 
    Now if i hard code the url as i did above my code gets break here while come to below line
     $.getScript(scriptbase + "SP.RequestExecutor.js", function () {
    I am getting error when i used below code:
    var scriptbase = "http://servername" + "/_layouts/15/";
     $.getScript(scriptbase + "SP.RequestExecutor.js", function () {
                    var createitem = new SP.RequestExecutor("http://servername");
                    createitem.executeAsync({
                        url: "http://servername/sites/cpg/" + "/_api/web/lists/GetByTitle('SalesRecord')/items(" + attachmentitemid + ")/AttachmentFiles/add(FileName='"
    + fileName + "')",
                        method: "POST",
                        binaryStringRequestBody: true,
                        body: binary,
                        success: fsucc,
                        error: ferr,
                        state: "Update"
                    function fsucc(data) {
                        //alert( data.statusText + "\n\n" + data.responseText);
                        console.log(data + ' uploaded successfully');
                        deferred.resolve(data);
                    function ferr(data) {
                        //alert( data.statusText + "\n\n" + data.responseText);
                        console.log(fileName + "not uploaded error");
                        deferred.reject(data);
    Please hekp in this case. This complete code is written within content edito web part. 
    Regards:
    Sanjay Joshi

    Hi,
    According to your post, my understanding is that you have an issue about upload multiple documents files into library vai REST API.
    As you have said, you have used the hard code url in your code.
    How about use the _spPageContextInfo.webAbsoluteUrl method to get the url?
    I have used this method to get the url, then use the code in the article you have pasted within a content editor web part to upload the files.
    You can replace the hard code url with the _spPageContextInfo.webAbsoluteUrl method, then check whether it works.
    Thanks,
    Jason
    Jason Guo
    TechNet Community Support

  • Unable to update XBLNR field on BKPF when posting a document using BAPI_ACC_GL_POSTING_POST

    Hi,
    I'm trying to post a clearing document using BAPI_ACC_GL_POSTING_POST, but after posting i'm unable to see the data in the reference field on header (BKPF-XBLNR). I'm passing the data in the header structure of the BAPI  (DOCUMENTHEADER-REF_DOC_NO).
    Thanks in advance.
    Regards,
    Sandeep

    We restricted our entry to five decimals and solved the issue.

  • Process multiple documents in zip file without using ccBPM in PI

    Hi,
    Is it possible for PI to handle multiple documents within a zipped source file without the use of ccBPM?
    For example, I have an incoming source zip file containing 0.pdf, a,xml, z.pdf respectively,  After having the sender communication channel uncompress the zip file, each pdf file should be pushed to a directory on a file server, and the xml file should go through a message mapping.
    Is this possible to process all of the files without the use of ccBPM?
    Regards,
    Jim

    Hi Michal,
    Thank you for your response.  The example I provided is just one potential case.  In general, the zip file will always contain 1 xml file and 0-n PDFs, Word docs, or other types of documents.  Also, the first file in the zip may not always be the xml file, which is what I was trying to portray by my example.  Since I am not sure how many non-xml files will be included, I did not know if I could handle all of them directly, without ccBPM.
    At this point, I am leaning towards using a script preprocessor to uncompress the zip, then for each file found, push the xml file to an NFS channel which will process/map the xml, and push every other file type to another NFS channel to copy these documents to a predetermined directory on a predetermined server.
    What are your thoughts on this approach?
    Thanks and Regards,
    Jim

Maybe you are looking for

  • Sort by file size and/or pixel dimensions

    I am constantly frustrated by the lack of ability to sort by file size or pixel dimension. I have many versions of the same images, and often want to find the biggest one, or one of a certain size, and it's very time consuming to have to scan all the

  • PHP odbc_connect on a running SQL Anywhere 16 server

    Hello, please help with the following php odbc_connect problem: On my local machine (win 7, 64 bits) is a running SQL Anywhere 16 database. Started with dbeng16.exe -c 8m -n xx_test "G:\DEMOS\xx\DB16\test.db" In the ODBC manager then created a ODBC c

  • A huge number of vendor account group

    Hi Experts, Due to our reporting requirement, we need to have huge no of account groups. Currently the count is coming close to 44 account groups. Please let us know whether that will create any issue in the system etc. Regards, Bhavesh

  • Images look dark and faded

    Soon I am selling my 7 month old iBook so I can get the new MacBook pro... I erased everything in the disk.. and I reset everything. Next step are the updates. After almost a whole day making updates (atleast waiting fo them to download), now my comp

  • PE 9 Fails to Install Shared Technologies - Adobe Support Stumped!

    I'm having the same problem as reported in the now closed thread http://forums.adobe.com/thread/725863?tstart=0. During installation, Photoshop Elements 9 installs Elements, then installs Organizer.  When it gets to the point to install Shared Techno