Change URL of image field

How do I address the URL attribute of an image field in JavaScript?
I have an image field with a URL. All I need to do is have a drop down that changes the URL of an image field so a different picture can be shown. I'm able to use the drop down to change the presence of an image field but when I try to change imageField.presence to imageField.URL, nothing happens when I make a new selection in the drop down. I've also tried imageField.value.image.href but that doesn't work either.
Am I not referencing the URL attribute of the image field properly or doing something else wrong?

I think this may have something to do with the fact that LiveCycle embeds all images on PDFs whether you want it to or not. I imagine if the images are embedded there really is no URL to change! This has to be some kind of bug because I can't seem to find so much as a reference to this in the documentation or discussion boards. If it isn't a bug or no way around it I'll have to find another solution for this project. Shame

Similar Messages

  • Can a display image field be changed with javascript

    I have a select list (P3_RECON_CONDITION). when it changes It triggers javascript..
    in that javascript I would like it to change a Display Image field (P3_RECON_COLOR) without having to refresh the whole page..
    P3_RECON_COLOR is a Display image filed that gets its image from a blob from SQL:
    select color from projstat.condition_color, projstat.project where condition_color.condition = nvl(:P3_RECON_CONDITION,'W') and project.job_piece = :P3_JOB_PIECE
    the display field works now, but only for what the P3_RECON_CONDITION is when the page is loaded..

    yes, I tried that, but couldn't figure out how to do the: " dynamic action refresh the item P3_RECON_COLOR"
    I have
    Event: Change
    Selection Type: Item
    Item: P3_RECON_CONDITION (the select list)
    no condition
    TRUE ACTION: Refresh
    Fire when True:
    Selection Type: Item
    Item: P3_RECON_COLOR (the display image)
    (if I change the action to submit page.. it does fire.. but the refresh item does nothing..)

  • Adobe form bulider - Image field

    Hi,
    I have a requirement where i have to pass URL for image field through interface
    and it should dispaly image.
    Now the problem is if i assign the URL directly it works but if i do a binding there it doesen't work may be i am not doing it in right way.
    Any clue.
    Thanks,
    Atul

    Dear Engineer Naguib,
    Please refer to the following post:
    [Adobe Forms and Dynamic Images]
    this.value.image.href = xfa.record.Images.URL;
    Replace "xfa.record.Images.URL" by "xfa.record." + path to URL attribute in data hierarchy.
    Regards,
    Motaz

  • Dropdown list to change image field linked image?

    Hello,
    I am quite new in Designer but I have to complete a job and I don't find the solution.
    I try to update on a form an image field using the value of a dropdown box and a "if" script.
    I use linked images (not embedded ones) and try using a script calling the image Field. value. image. href  property.
    The property is well updated as export to xml displays well the new href value but the image is not displayed as something was missing to activate it.
    form1.#subform[0].ImageField1::calculate - (FormCalc, client)
    if (UN_DropDownList == "3373") then ImageField1.value.image.href = ".\Images\UN3373.png"
    endif
    Rather simple (don't laugh at it) but it doesn't work.
    I found solutions for embedded images via visible/hidden by dropdown list (not yet tested) as these ones. I give them below for reference (if some other users are interested)
    http://forums.adobe.com/thread/683215
    http://forums.adobe.com/message/2187604
    http://acrobat.timhuff.net/?p=5
    But not for linked images (path or URL). By the way, I found same problem descriptions in other forums but without any proposed solution.
    As I should have quite a lot of images with frequent updates, it seems to me a better solutions...
    Thanks in advance for you help.
    Kind regards
    Philippe

    Hi Philippe,
    Have a look at this blog, http://blogs.adobe.com/formfeed/2009/11/linked_vs_embedded_template_im.html, it turns out that both linked and embedded images are stored in the PDF but just in different ways. So updating the href at run time will have no effect.
    If you are not in a possition to store all the images in the PDF at design time then you might have to look at setting up a webservice to access them on a server.
    Good luck
    Bruce

  • How to dynamically display in Image Field with external pic source

    Hi Guys,
    I have the following scenario:
    I need to have a form that needs to display an x amount of images on the same page area.  I have not found any documention with regards to creating an undisclosed number of Image Field elements, so I am experimenting with using a Table to display entries of type Image Field.
    I do not know at design time which pictures will be shown in this table.  This needs to be calculated dynamically when an Incident Number is supplied to the Java WebDynpro application that uses Adobe LiveCycle Designer (Dont worry about this).
    Now, first of all: Is it possible to use the URL of images that are OUTSIDE the form structure?  In other words, usually one would imbed the image in the forms structure, but because I do not know this image's URL at design time I need to pass it dynamically?  Please comment!
    Also, what is the FormCalc syntax for accessing a field in the "Data View" view at the left side of the designer?  For example, If i want to access the following part in the "Data View"view, what syntax should I be entering in the script editor:
    I would like to access this value as I would like to append it to the end of this statement so that I can get the value dynamically:
    this.value.#image.href=  ???????

    You cannot change the url of the image on the fly for security reasons.
    In your case you have to use the dynamic image fields in the xdp form, encode the external  images with base64 encoding to be a string, populate with those strings the xml and render  your template with this xml.
    Here: http://eslifeline.wordpress.com/2008/09/05/inserting-image-in-a-xdp/#comments you have a good example by Girish Bedekar for such a process.
    Yan.

  • How to remove the border of an Adobe Form Image Field

    Hello everyone
    I am using Desinger 8.0.
    Form properties: Preview type = Print Form (One-side):
    I am using an "image field" to include a image from the transaction SE78.
    There is always a box arround the image. How can I remove that box?
    I am using the "Image field" because the image will change depending on conditions.
    Here is my setting:
    Object: Field
                       type    = Image Field
                       Sizing  = Scal Image Proportionally
                Binding
                        Default Binding (Open Save Submit) = $record.GRAPHIC
                        (Graphic is defined in the global area in the interface)
    Layout :
                  AnchorX: 171.477mm  AnchoY: 15.111mm
                  width:       78.175mm  Height :   21.777mm
                   Margins: all at 0mm
                   Caption Position: None
    Border:
               Edges: Edit Together
                           None
                Background fill: None
    Based on my understanding, with border edges to none I should not have any border arround the image But I still have it.
    Any suggestions?
    Regards
    stjacqd

    Hello Raju
    Thank you for your reply.
    Unfortunattely the Field tab doesn't have the Appearance in it.
    The field tab contain only the following Items:
    Type : Image Field
    Caption:
    URL
    Embed Image Data
    Sizing: Scale Image Proportionally
    Presence: Visible
    Locale: Default locale
    There is no item named "Appearance".
    I am using AdobeLiveCycle Designer 8.0
    Version 8.01.3250.1.491864
    Regards
    dstj

  • Binding an image to the Image Field

    Greetings,
         We are in the process of converting Adobe Central documents over to Adobe LiveCycle. Our forms contain the company logo which is currently stored in Adobe Central and our legacy system sends over the name of the logo to use. For LiveCycle, we don't want to "hard-code" the image to the form as our company logo changes and we don't want to change each form when this happens. Can we store the logo in the application and send XML data over telling it which logo to use in the Image Field?
    Thanks,
    Wendy

    Geet,
    Just bind the URL field you have in the WSDl to the Image Field and I belive it should display the image.
    Alternatively these links should give you some hints:-
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/user-interface-technology/wd%20java/wdjava%20archive/dynamic%20non-interactive%20pdf%20form.pdf
    How to insert a dynamic link in an image
    Chintan

  • Search & Replace objects (image to image field) within LCD?

    Hi everybody,
    I was wondering if there is a possibility to create a script which supports an automated sequence.
    I planned to run through an imported PDF file while searching for "images"-type objects with a certain "tag". When such an object is found, it should be replaced by an "image field" type object.
    Is it possible to implement this type of function?
    Thanks!
    Best regards,
    andrejtmtld

    I believe you can't do exactly what you mean.
    These days, I am working a lot with Acrobat which has many script features in common with LiveCycle. Now, in Acrobat, you meet a lot of security issues when trying to add/remove fields at runtime. I believe Adobe people must have adopted the same approach for LiveCycle because most of the work done with it, will be converted to a pdf, i.e. mainly Acrobat or Reader objects.
    This is where I got to:
    var nodeList = xfa.form.form1.mainSub.nodes;
    for (var i = 0; i < nodeList.length; i++){
         if (nodeList.item(i).className == "draw"){
             var fType = nodeList.item(i).ui.oneOfChild.className;
             if (fType == "imageEdit"){
                 xfa.host.messageBox("First Check: "+ nodeList.item(i).name);
                 var myField = nodeList.item(i);
                 var url = myField.resolveNode("value.#image").href;
                 xfa.host.messageBox("Second Check: "+url);
    See these:
    http://andrewalbrecht.com/content.php?pageID=76
    http://help.adobe.com/en_US/livecycle/9.0/designerHelp/
    (Scripting --> Scripting Reference --> Scripting Objects --> Image)
    As you can see, I can capture a static image. I'll find all of them. I think you can go further and select the ones you identified by a tag. Actually, what do you mean with "tag"? A tooltip?
    Anyway, I believe you can get to the URLs the images you are interested in are pointing to. Now, if you were able to delete a static image and add a corresponding image field, you could assign the retrieved URLs to these freshly created fields.
    At this point I found these:
    http://help.adobe.com/en_US/livecycle/9.0/designerHelp/
    (Scripting --> Scripting Reference --> Scripting Methods --> createNode; watch out the note and consider that a static image is a draw; however, in this case, you need to create an image field)
    http://help.adobe.com/en_US/livecycle/9.0/designerHelp/
    (Scripting --> Scripting Reference --> Scripting Methods --> remove)
    and this:
    http://forums.adobe.com/thread/694384
    However, it seems that though dataNodes can be created and deleted, I don't come to any changes of the form itself. I tried with
    xfa.form.remerge();
    or
    xfa.form.recalculate(1);
    and similarly with xfa.form.model object with no success.
    I don't know whether I am doing something wrong here.
    Anyway, I see only two alternatives:
    1) hide and show fields: I think this is not of your interest because you are not creating the form from scratch (here you should prepare the form in advance with as many image fields as static images you intend to use and switch between those 2 kinds of object);
    2) hide one static image and add a corresponding new instance of an hidden subform which contains just an image field you provide the right URL to. I think the instanceManager can work with subforms only:
    http://help.adobe.com/en_US/livecycle/10.0/DesignerScriptingRef/WS92d06802c76abadb-3e14850 712a151d270d-7fa1.html
    Following one the many tutorials around:
    http://help.adobe.com/en_US/livecycle/9.0/designerHelp/index.htm?content=000847.html
    http://help.adobe.com/en_US/livecycle/9.0/designerHelp/index.htm?content=000177.html
    http://help.adobe.com/en_US/livecycle/10.0/DesignerScriptingRef/WS92d06802c76abadb-3e14850 712a151d270d-7ffa.html
    you can reach the same effect as the static images were removed and image fields were created.

  • How to create a report in Form line Style and can display Image field?

    Hi,
    In Report builder 10g, I would like to create a Report with Form Line Style and this report included a Image field.
    I can choose this Style only when Select Report type is Paper Layout. Because, If I choose Create both Web & Paper Layout or Create Web Layout only then in the next Style tab 03 option Form, Form letter and Mailing Label be Disabled.
    But in Paper Layout, my report can not display Image field.
    I tried with Web layout and all the other Styles (Except 03 mentioned be Disabled) then all Styles are displayed Imager field OK.
    How to create a report in Form line Style and can display Image field?
    I was change File Format property of my Image field from text to Image already in Property Inspector. But report only showed MM for my Image field.
    Thanks & regards,
    BACH
    Message was edited by:
    bachnp

    Here you go..Just follow these steps blindly and you are done.
    1) Create a year prompt with presentation variable as pv_year
    2) Create a report say Mid report with year column selected 3 times
    - Put a filter of pv_year presentation variable on first year column with a default value say @{pv_year}{2008}
    - Rename the second time column say YEAR+1 and change the fx to CAST(TIME_DIM."YEAR" AS INT)+1
    - Rename the second time column say YEAR-1 and change the fx to CAST(TIME_DIM."YEAR" AS INT)-1
    Now when you will run Mid Report, this will give you a records with value as 2008 2009 2007
    3) Create your main report with criteria as Year and Measure col
    - Change the fx for year column as CAST(TIME_DIM."YEAR" AS INT)
    - Now put a filter on year column with Filter based on results of another request and select these:
    Relationship = greater than or equal to any
    Saved Request = Browse Mid Report
    Use values in Column = YEAR-1
    - Again,put a filter on year column with Filter based on results of another request and select these:
    Relationship = less than or equal to any
    Saved Request = Browse Mid Report (incase it doesn't allow you to select then select any other request first and then select Mid Report)
    Use values in Column = YEAR+1
    This will select Year > = 2007 AND Year < = 2009. Hence the results will be for year 2007,2008,2009
    This will 100% work...
    http://i56.tinypic.com/wqosgw.jpg
    Cheers

  • Can't add new image field in SRM MDM catalog

    Dear Experts
    I have added a new lookup[image] field in Catalog Item table.
    The problem is I cant find it in my
    MDM_SRM_UI_App>Customize Display tab>SRM-MDM Repository fields list
    Can't we add custom fields to repository?
    I also read this SAP Note 1028343 (Changes in repository not reflected in Catalog UI)
    where it is said to restart the mdm connector for the changes to take place.
    However the note is quite old. Is it still applicable?
    Please share your ideas.
    Thank you.
    Regards
    SwarnaDeepika

    Hi SwarnaDeepika
    There is already Images and PDF lookup available for each record in Catalog items table. I am not sure how we can create a new images lookup
    The below links explain the transport configuration process, this may help you identify custom fields in SRM-MDM Repository Fields list
    https://wiki.sdn.sap.com/wiki/display/SAPMDM/OpenCatalogInterfaceinSRMMDMCatalog+2.0
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/7246
    Regards
    Goutham Kanithi

  • Manipulation of the size of an image inserted into an Image Field

    Hi,
    I'm learning LiveCycle Designer ES 8.2 as I go. My apologies for the lengthy post but I'm trying to give you as much background as possible.
    I'm are trying to design a form that will allow us to automate data entry (by importing fields into our Access dbase instead doing the data entry by hand).  However, at the end of the day, I also need an electronic pdf file of the same form and a printed paper copy.  Things have been going well until working with the Image Field.
    The form is fairly complicated - 4 pages long.  We're collecting extensive data on specific locales (location, what was seen there, who did the work, etc). On one page, three different images (maps) are needed, each one showing different details on the site's location.  [Please note these images will not be imported into the database but must appear in the electronic pdf and on the paper copy.] The people who fill out the forms are expected to do so using Adobe Reader (the form will have extended rights so that they can save the data they enter on the form).  They would then email us the form as an xml file.  Once we receive the form, we have to add some additional information and then the finalized paper copy and electronic pdf would be made.  We have already done this successfully with much simpler forms, none of which have needed Image fields.
    Here's my problem - one of the three maps required is a standard 1:50000 scale topographic map which shows things like contour lines and latitude/longitude lines.   For accuracy and comparison reasons, having the standard 1:50000 scale is very important to us, so we can make absolutely certain the submitter has the right location.  If the dot plotted on the map is out just a few millimeters, we're looking at an error that represents 100s of meters on the ground.
    The current form exists in Word - we have never had any rules about the image formats used (jpg, gif, etc) or the resolution, as long as the image was clear.  The only rule was that the scale of the topographical map image HAD to be at 1:50000 scale.  This gets very tricky because Word will automatically mess with the physical appearance of the image, based on its resolution.  In most cases, the submitter simply readjusted the image within Word, stretching/resizing it manually until the scale was correct.  Another option was to use an image in the emf file format so that Word didn't readjust the image's appearance based on its resolution. Whatever method they used was fine by us, as long as the scale was correct.
    So far, after playing with all the "sizing" options of the Image field, along with embedding or not embedding the file, I do not see any way to control the physical size of the image. On our form, the three image fields are different sizes, with 2 of them being small (~2x3 inches) and the 3rd being large (~7x7 inches). Regardless of the settings I chose for each image field, the program simply resizes the topographic map whatever Image field it was inserted into,  making the same image appear physically smaller or larger at will.  I cannot correct the scale by resizing it, like I can in Word.   Instead, when I try to select the image, all I am asked is if I wish to insert another image.  Inserting an .emf file format into the field doesn't work - it only shows a blank screen instead of the image.
    Is there a way for the user to adjust the image's physical size in the form, after inserting it (like they can do in Word)?  Demanding that everyone use a standardized resolution or image format also seems highly unlikely to work - there are too many submitters and too many programs that can be used to make the image (some are making them using GIS programs, others are scanning the bought topographic print).  I'd appreciate any help you can give me on this.  I have had very little luck tracking down discussions on Image fields and how they work best within LiveCycle.  Any comments would be helpful!

    Hi,
    I have an example here that is intended to demonstrate the difference between Positioned and Flowed subforms: http://assure.ly/i8pSdy.
    This shows how you can use a slider to change the dimensions of the image object.
    I have extended this to an example with buttons to scale the image: http://assure.ly/i8ZI5Y
    This may not be fine enough for your purposes, but it may give you some ideas.
    Good luck,
    Niall
    Assure Dynamics

  • Radio group with URL for image in a table

    I'm trying to display some text and an image for a radio group so the form looks like
    (*) text for item 1 {image for item 1}
    ( ) text for item 2 {image for item 2}
    ( ) text for item 3 {image for item 3}
    I've found these:
    Re: Is it possible to display an image instead of button in a radio group?
    How to show image in radio group ?
    It looks like all I have to do is create a LOV that looks like:
    SELECT {complex stuff that generates the text string, img tag, and URL for image}
      ,DB_PK
    FROM dynamic_view_for_lov -- public synonym
    But, my images are stored in a table.
    I have been able to create an IR using the "Column Format=BLOB" method.
    The SQL for the report looks like:
    select
      db_pk, display_text, image_len, image_clob
    from dynamic_view_for_lov -- public synonym
    And the Number/Date Format for the IMAGE_LEN column is:
    IMAGE:DYNAMIC_VIEW_FOR_LOV:IMAGE_BLOB:DB_PK::::::Inline:Download
    My question:  How do I create the URL for the img tag for the LOV?
    many thanks
    MK

    MikeKutz wrote:
    I think Homer Simpson said it best:  Doh!
    For the person in the future, you have to 'fake create' the Automated Row Fetch process.
    The get_blob_file_src gets all the information from that Process and the column name of the Item Type that is on the same page.
    I forgot where I read about that trick.
    Basically, you create the Automated Row Fetch process, then 'disable' it.
    Same thing with the required Item Type.  Create it as a "File Type", just to tell APEX that it comes from a Database Column,.... then change it to a 'hidden' type.
    You don't have to "fake' it if the application already contains the file upload item and ARF. The assumption is that the application will contain these components in order to maintain the BLOBs and you'll just reference the functional ones.

  • Problems with Image Field Table in Adobe Forms

    Hello,
    I have a desgined a Adobe Form(Print Only) in the Adobe Desinger in NWDS.
    The form layout contains a table of images in 2 columns and 3 rows. Every Column has a Image Field and a TextField displaying the Image URL.
    The URL of this image is passed at runtime.
    The problem is that when the form is rendered, All the Columns have the same image which is the URL in the first row first column. However the text field displays the correct URL.
    Is this some known bug in the Adobe Forms, or I am missing some property.
    Regards,
    Shubham

    Hi,
    The solution was to put the following code in the initialize event of the image field.
    this.value.image.href = <Photoimagepath>.rawValue;
    Where <Photoimagepath> is the image path.
    Regards,
    Shubham

  • Problems with image field and java

    Hi, i´m a beginner user of Adobe LiveCycle Designer, i create a form and i fill the text fields with a Java code, but when i try to dinamically assign a image on the image field of my form it doesn´t work, someone have any idea of whats happening or how can i manipulate the image field from Java code? thanks

    Session data will only last as long as the servlet container allows. In most cases (eg Tomcat) this defaults to about 30 minutes, but can be changed. Check that the session timeout configuration in your servlet container hasn't been set to "never timeout".
    Even if it had, I would have expected OutOfMemory errors rather than degrading performance. Although if the max heap size of the JVM has been set to a level higher than the RAM on the machine you could be getting excess page file usage.
    This probably wouldn't put CPU utilization at 99% though.. I suspect this is a code related problem.
    My best guess is one of two reasons:
    1. Somewhere in your code, or someone elses, there is a loop that never ends.
    2. There is a bug in the servlet container.
    I don't know which servlet container you are using, but I have used Tomcat extensively and never seen this behaviour.
    In terms of solving this problem, that's a tough one. I would try running the entire application within a profiling tool to see which threads are clogging up the processor. The Eclipse java IDE has a plugin called Eclipse Profiler which will allow you to track the utilization of code right down to the method level.
    If it were me, I'd be running the entire web application with a profiler like Eclipse Profiler and waiting for it to start clogging, then see who the guilty code is.

  • Setting Image field in adobe form

    Hello Gurus,
    I have a question setting the image field dynamically.
    I have created a following context structure for
    DataSource(ValueNode Cardinality (1..1))->imagenode(Valuenode Cardinalty(0..n))->image(Value attribute))
    I have binded the Datasource node to the Datasource of the interactive form.
    I have dynmaically created the imagenode and set the value for the image.
      for(int i=1;i<5;i++)
             image= wdContext.createIImagenodeElement();
                              if(i==1)
                             image.setImage("http://Image1.png");
              if(i==2)
              image.setImage("http://Image2.png");
              if(i==3)
              image.setImage("http://Image3.png");
              if(i==4)
              image.setImage("http://Image4.png");
              wdContext.nodeImagenode().addElement(image);
    Now I want to set this node to the image field in adobe.
    In URL of the image field I have enterted $record.imagenode[*].image and its not working where as the same thing works for text field.
    Please let me know if any one has any idea on this.
    Thanks,

    Hi Naresh,
    Copy the images to src -> mimes - > Components of your development component / project.
    To the value node set the url like the following way ...
    http://<hostname>:<port number>/webdynpro/resources/image.gif
    Thanks
    Madhu

Maybe you are looking for

  • How do I save a pdf file to my hard drive ?

    How do I save a pdf file to my hard drive ?  My CC statements are sent as a pdf file and I would like to save them.

  • RFC Destination

    I am doing a file--> XI --> IDOC R/3 4.6 scenario. R/3 is there in SLD as business system with role as app system and the correspong logical system is maintained in SALE. Do we still need to create an RFC destination for R/3 client in XI system. In t

  • Questions about digital signatures

    We have about 100 people in our organization all using Acrobat X Pro. We currently sign PDFs (only used internally--we don't sign things to be sent out to customers, vendors, etc.) using the self-signed, self-generated PKS#12 option. This has worked

  • Hierarchy Node Value

    Hi All, I need to create a CAPEX Query with "Program Position" Hierarchy as the row and "Current Budget" as the column. In my query, the value of the nodes are always the sum of related leaves, while actually the nodes have it's own value. Is there a

  • ORA-06502 PLSQL Numeric or value error character string buffer too small

    Hi Gurus help!! I received error message "ORA-06502: PL/SQL:Numeric or value error: character strong buffer too small." I use example code of "AJAX Get Multiple Values Tabular I" from Denes Kubicek http://apex.oracle.com/pls/otn/f?p=31517:239. I did