Clearing an image field

I have created an image field that a user can select via a checkbox.  The image field is hidden by default.  If the user clicks a checkbox the field becomes visible.  Clicking the field allows the user to embed an image. 
I am attempting to set a "clear image" action, but for some reason if I set the image field rawValue to null the image field disappears and will not come back.  The only command I am associating to the button is:
COPQImage.rawValue = null;
This makes the field disappear as if it was reset to hidden, and clicking the check box to attach an image will not bring the field back.  Is this a bug, or is there something else that needs to happen to an image field if you set it's rawValue to null?

Thanks Niall -
I have found your exmaples to always be very enlightening and helpful.  In this case, there seems to be an issue when you set two properties:
1.  You set the imagefiled to be hidden until a user requests it to be visible via a checkbox, button, etc, and hide it again it they opt to get rid of the imagefield (they change their mind)
2.  You set the imagefield to expand to fit in the X and Y axis
In my case users are attaching snapshots of graphs they need to support the text written in a textfield.  They may or may not require an image to accompany it, so I set the imagefiled to be hidden by default.  They check the "Attach image" checkbox, I setFocus to the imagefield, they select an image.  All good.  But if you set the imagefield rawValue to null to clear it, as you do in your example or with a button or a checkbox or any manner, and hide the imagefield again to clear it's layout space you cannot get the imagefield to come back.  I altered your code to hide 'myimage' with a checkbox, and set the layout to expland in X and Y.  Once the rawValue sets to null and myimage is hidden it will not come back.  If you do not set the layout proerty to expand it works fine.  But if you expand that imagefield to size accordingly rawValue = null kills the ability to have it come back once hidden.

Similar Messages

  • 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

  • Need help deleting an image field/pictures in worksheet

    I am in need of help!!! Added photos in an important .pdf document (a worksheet form that was pre-made) and I added image fields (Top box photo and small bottom box for text). I need to delete some image fields now and it won't let me. I upgraded my Adobe Reader to Acrobat XI Pro trial, still can't. If I try to edit image, it says I need to have Live Cycle designer to edit this form. Someone please help! This is my son's Eagle Scout worksheet and needs to be fixed tonight....please

    If the file was created in LiveCycle Designer then it can only be edited
    there.
    It's not clear in what way you edited it originally.

  • Reset Image Field - HELP!

    I'm trying to create a button that will selectively reset certain fields when pressed. I'm using ResetData and it seems to be working fine for all of my text, date and pulldown fields, but I can't get it to reset the image field. I've checked the spelling of the field and all other info... is there something I'm missing?

    I solved my own problem after a great deal of searching. I'm still not sure if that was a bug or if I misunderstood the resetData usage. However, for future searchers here's how I solved the problem.
    On the MouseUp event, I used resetData to clear all of the text and pulldown fields (this doesn't seem to work for my image field). So then, on the Click event, I added:
    ImageFieldName.rawValue = null; (where ImageFieldName is the name of the image field I want to reset)
    That seemed to do the trick.

  • Resetting an Image Field

    Hey everyone,
    I have created an interactive form in Adobe Designer 7.0 for my company with text fields and two image fields.  After the form had been filled in and the images added, the user has the option to submit, print or reset.
    Everything works perfect except when the reset button is clicked, only the text fields are cleared and the two images remain.
    How can i get it so that the whole form is reset?
    Thanks in advance
    Ryan

    Thanks Niall,
    I am quite new to this and am not familiar with javascript at all.  I have created the form so far only using the text and image fields available to me in the designer 7.0 library.  Are you saying i will have to add the string of code that you provided in the XML source tab myself?  If so, could you please show me how it should be entered.  Im a little out of my depth with this so any help would be great.
    This is the what i think the reset script is.... i may be wrong, if it is, how is the code you provided added to it?
    Thanks
      <field xmlns="http://www.xfa.org/schema/xfa-template/2.2/" h="6mm" name="ResetButton1" w="28.575mm" x="171.45mm" y="260.35mm">
                <?templateDesigner isResetFieldsObject true?>
                <ui>
                   <button/>
                </ui>
                <font typeface="Myriad Pro"/>
                <caption>
                   <value>
                      <text>Reset Form</text>
                   </value>
                   <para hAlign="center" vAlign="middle"/>
                   <font typeface="Myriad Pro"/>
                </caption>

  • 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

  • Uploading values for an image field in a web app. Nothing displays in layout.

    I've uploaded the values (using the import) for a field defined as an image in a web app. When I try to display the field, nothing shows up. The value correctly shows up when I look at Web App items after the upload / import. I've uploaded the same value in a text field, just to learn what was happening, and the text field displays the image just fine when added to the layout.
    I would like to use the image field type, as it's easier to correctly create the link when the web app is updated in the future.
    Here is what works in the layout: <a href="{tag_link to page}"> <img alt="" class="column66_award_thumb" id="thx" src="{tag_image thumb}" /></a>
    Note that {tag_image thumb} is a text field with the link stored in it. The value for each Web App Item which populates this field is a link to the image. (i.e. /Awards/139.jpg)
    Here is what I want to work: <a href="{tag_link to page}"> <img alt="" class="column66_award_thumb" id="thx" src="{tag_thumbnail image_value}" /></a>  , where {tag_thumbnail image_value} refers to a field defined as an image in the web app. It has the exact same value as {tag_image thumb}. I just copied the field values in the Excel spreadsheet (saved as .csv) when I uploaded it.
    It looks like the image field works fine only when I manually create it in the web app. If this is the case, using the upload capability disables any ability to use the image field type.
    Is there a workaround for this? Am I missing something?
    The page I'm working on is http://www.e-a-a.com/awards  When you view the source, you can see that the small thumbnail images are displaying just fine. (I'm using the text field). Whenever I substitute the image field name {tag_thumbnail image}, {tag_thumbnail image_nolink}, or {tag_thumbnail image_value}, the src value is always null.
    How do I fix?

    Hi there,
    To do it properly you need to resize the image. Prefably before you put it into BC. While you can for scale the image in CSS you do not want to do this. Why? Because the images are still very big and likely not optimised as they should be for the web.
    This means the page with these images will take a very long time to load for people, and people wont be to happy about that viewing your site.
    You need to use software such as photoshop if you have it or iphoto on a mac for example to edit, crop and size images before you upload them. If you do not have anything you can use free web based tools such as this one:
    http://pixlr.com/editor/
    You can also do this within BC itself in the file manager. If you click the image you can see options to resize it. The downside of that is that is done by pure math. It does not know what is in the photo and the results can make the image look squished etc.

  • Image Field Scale Proportionally does not work

    Dear all,
    we are using LiveCycle Designer ES 8.2 to program a dynamic form in which we want to use image fields. Users filling the form should choose the picture to display in the image field.
    We set the Image Field to embed data (so it can be saved) and to scale proportionally.
    Testing the form with Adobe Reader 8.1.4 or 9.1, it’s possible to insert a picture, but it does not get scaled and seems to be positioned in the Background of the form.
    Who can help us fixing this problem? If helpful, i can provide a copy of the form draft. Thanks in advance for any help und
    kindest regards
    Tobias

    Yehaaa,
    figured it out by myself. Sometimes it's good to sleep a night over it ...
    The solution is: In the Layout Tab of the image field, no exact measures were defined (extend to fit boxes checked). This way the poor program goes into a circuit.
    Cheerio
    Tobias

  • Is there a way of hiding the ? symbol if a record's image field is blank?

    If that makes sense....
    Basically I've set up a details page on a site that allows the site owner to display up to three images. However, sometimes they'll only upload one or two images.
    Which currently looks like this :
    http://www.travel7107.com/destinationDetails.php?destinationID=57
    Is there some way to get rid of the little ? icons where the image field is empty?
    I tried uploading a small white image, and setting the fields to blank.gif as the default, but the file upload script seems to overwrite those with an empty field if no image is selected to upload.
    So at the moment I've given them that small image to use if they don't have images, but it would be good to know if there was a way of avoiding that step?

    Thanks for that. Not sure I'm getting the syntax quite right though.
    The original lines look like this :
    <img border="0" src="/destinationdetailpic.php?file=images/destinationpics/<?php echo $row_WADAdestinations["image_2"]; ?>">
    So I thought it should be :
    <img src="/destinationdetailpic.php?file=images/destinationpics/<?php echo $row_WADAdestinations["image_2"] = true ? $row_WADAdestinations["image_2"] : ''; ?>" alt="">
    But that's not right :
    http://www.travel7107.com/destinationDetails2.php?destinationID=57

  • 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.

  • Read only image field

    I'm using version 8 and have enabled my form in acrobat so that users can enter text in my fields. I also have an image field on my form. My question is how do I make the image field read-only so that a user can not click on it an prompt them for a file?
    I need to use an image field and not a static image for other reasons.

    I figured it out:
    this.access="readOnly"

  • How can I clear the description field of ALL my bookmarks at once?

    Hello,
    I would like to clear the description field of all my bookmarks. To do this manually would be horrible. Is there some tool that can do it? Or is there some trick to edit the sqlite file?
    Also I'd be interested how I can stop Firefox from filling the description field when adding a new bookmark.
    Thank you in advance
    using Firefox 3.6.13 on Windows XP SP3

    Same poster asked same question and received answer on the Mozillazine forum: http://forums.mozillazine.org/viewtopic.php?f=38&t=2057513
    <br />
    '''foxfrog: Other issues that need your attention'''
    The information submitted with your question indicates that you have out of date plugins with known security and stability issues that should be updated. To see the plugins submitted with your question, click "More system details..." to the right of your original question post.
    *Adobe Shockwave for Director Netscape plug-in, version 11.5
    #'''Check your plugin versions''': http://www.mozilla.com/en-US/plugincheck/
    #*'''Note: plugin check page does not have information on all plugin versions'''
    #'''Update Shockwave for Director'''
    #*NOTE: this is not the same as Shockwave Flash; this installs the Shockwave Player.
    #*Use Firefox to download and SAVE the installer to your hard drive from the link in the article below (Desktop is a good place so you can find it).
    #*When the download is complete, exit Firefox (File > Exit)
    #*locate and double-click in the installer you just downloaded, let the install complete.
    #*Restart Firefox and check your plugins again.
    #*'''<u>Download link and more information</u>''': http://support.mozilla.com/en-US/kb/Using+the+Shockwave+plugin+with+Firefox

  • 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

  • Hiding Image field based on the page number in Adobe Form- Script

    Hi Folks,
    I have a problem with the print form that I am working on. I need to insert an image of lines (OMR) based on the page numbers. For the OMR part, the first page will always have 4 lines as a image, the middle pages will have 3 lines as a image and the last page will have two lines as a image.
    I have uploaded these 3 images a BMPs in SE78 and I am using Xstring of these images in the form. I have two master pages. First master page is for the first page and the second master page is for the remaining pages. The first master page will always have the 4 line image. I created a positioned subform in the master page2, in that subform, I have 2 hidden numeric fields, as the run time properties one for the current page number, other one for the total number of pages. I placed those two images(one for the three line image and the other one for the two line image) exactly on the same location positioned dimensions wise. 
    I have written the java script for these two image fields to show based on the page numbering. But, somehow, it is not working. Can anybody please let me know where I am doing wrong. I am posting my java script here.
    for the three line image:
    var cp = data.PageSet.MasterPage2.OMR.cpage.rawValue;
    var np = data.PageSet.MasterPage2.OMR.npages.rawValue;
    //if(data.#pageSet[0].MasterPage2.OMR.cpage.rawvalue == data.#pageSet[0].MasterPage2.OMR.npages.rawvalue){
    for (j=0; j<xfa.layout.pageCount(); j++){
      if(cp == np){
        xfa.resolveNode("data.PageSet.MasterPage2[" + j + "]").OMR.OMR2.presence = "hidden";
      else{
        xfa.resolveNode("data.pageSet.MasterPage2[" + j + "]").OMR.OMR2.presence = "visible";
    For the two line image:
    var cp = data.PageSet.MasterPage2.OMR.cpage.rawValue;
    var np = data.PageSet.MasterPage2.OMR.npages.rawValue;
    for (j=0; j<xfa.layout.pageCount(); j++){
      if(cp == np){
        xfa.resolveNode("data.PageSet.MasterPage2[" + j + "]").OMR.OMR3.presence = "hidden";
      else{
        xfa.resolveNode("data.pageSet.MasterPage2[" + j + "]").OMR.OMR3.presence = "visible";
    Please give me a direction as this is kind of hurry.
    Thanks,
    Srinivas.
    Edited by: srinivas kari on Jun 9, 2010 2:03 AM

    HI Otto,
    Thanks for the response. You are right, I am struck with this image. My problem was to keep the OMR marking on each page based on the page number. It is like a lines with 10mmX10mm dimension at the top right corner for the sorter machine to know the number of pages to put in the envelope. The logic for this is, on the first page, it has 4 lines each 3mm apart. On the middle pages it has 3 lines . On the last page it has 2 lines. When the sorter machine picks these, it looks at the first page with 4 lines, it will count as a first page, it will continue through the 3 line pages as the middle pages until it reaches the 2 line to know it as the last page. This is all happens in the master pages. I have two master pages , one for the first page and the second one for the remaining pages.
    At first I did not know how to To achieve this, I created 3 images. one with 4 lines, another ones with 3 lines and 2 lines. The 4 lines image was on the first master page. The 3 lines and 2 lines images were on the second master page at the same place as the image fields positioned. Thats where I was trying this scripting. I was trying to capture the current page and number of pages. Based on these, I was trying to place them.
    Is there any other way to achieve this instead of using the images? I thought of sy-uline. but some in the forum told that its not going to work. Even if I use the sy-uline, I have to do some script to achieve this I believe.
    Any inputs on this.. Please give the direction.
    Thanks,
    Srinivas.

  • Migration Workbench is messing up data in converted from SQL Server image fields.

    I am working on porting a SQL Server 7 database to Oracle 8i (8.1.6 release 2). In the SQL Server database I have several tables that contain image fields that hold binary data (like Word documents, and other files). When I port the database to Oracle, the data in these fields gets garbled (the resultant records contain the correct amount of data (bytes), yet the data is different). Data in image fields that contain text oriented data ports correctly (i.e. if you just saved a long string in the field). Has anyone else posted a similar problem? Is there a workaround here to get the data stored in these image fields to port correctly?

    The thing is DDL of SQL Server and Oracle are quite different, without the help of MW from SQL Developer. You can't convert SQL server version of DDL to Oracle version. Of course you can accomplish the same thing using other tools like ERwin and Visio. Since SQL Developer is free why bother?

Maybe you are looking for