Image field - cannot set h and w attribute of all node elements

Hi guys,
We currently need to show some photos on our .pdf forms when the form is generated.  The number of pictures are unknown at runtime and need to be determined dynamically.  This is not the problem - we figgured this out by using base64 encoding for retrieving these picture.
Now, when we try to display all of these picures on the .pds we would like to have control over the width and size of these pictures ( the h and w properties.). The problem is that only the VERY FIRST picture gets applied these properties that we set, and all the following pictures are the size as per design time.
This is obviously do to us not knowing how to "loop through" this node in JavaScript/FormCalc.  Please help!  Also, which event should we use?
This is the code we are using:
xfa.form.pdfFields.Notification.SubformPhoto.Table9.Row1.ImageField2.h
= "4in";xfa.form.pdfFields.Notification.SubformPhoto.Table9.Row1.ImageField2.w
= "4in";
We thought that the following should work to apply the values for all the elements, but this does not work.
xfa.form.pdfFields.Notification.SubformPhoto.Table9.Row1.ImageField2[*].h = "4in";xfa.form.pdfFields.Notification.SubformPhoto.Table9.Row1.ImageField2[
*].w = "4in";
Thanks!

Hi,
I don't know want you want to do with
Method[] methods = element.getClass().getMethods();
If you just want to set the values in the Context you can just go for using:
wdContext.currentUserElement().setPassword("VALUE");
wdContext.currentUserElement().setName("VALUE");
Or If you have a collection you can create elements in a loop like
you posted in the beginning of this thread:
IPrivateUserView.IUserElement element = wdContext.nodeUser().createUserElement();
wdContext.nodeUser().addElement(element);
element.setUserName("VALUE");
element.setUserPassword("VALUE");
Regards,
Dennis

Similar Messages

  • HT3180 cannot set date and time

    how do I set date and time

    Here is the solution:
    Download Apple Configurator from the App Store
    https://itunes.apple.com/us/app/apple-configurator/id434433123?mt=12
    Follow the directions on this link: http://techjournal.318.com/apple-tv/install-a-profile-on-apple-tv-using-configur ator/
    You will need a micro-USB to USB connector --
    Be sure the plug in the Apple TV *FIRST*  ~b e f o r e~ the USB cable is plugged in.
    It works like a charm!!
    Enjoy!

  • My AppleTV cannot set date and time. I've reset it, but after 3 hours, it is still trying

    My AppleTV used to work fine. Someone messed with my Time Capsule, so I had to have it worked on. Since it was messed up, the AppleTV can't function. I reset it and updated everything. It said "Activating" and "setting date and time". After 3 hours, it is still trying to set the date and time. Now what do I do? Thanks for any help.

    As I previously wrote in a former post:
    I will first assume you are still setting up your new Apple TV. Is this is the case, use a website like canyouseeme.com to check if port 123 is open. If it is not, this is your issue of your Apple TV not being able to connect to the timeserver. Try contacting your Internet Service Provider for help with opening this port.
    Otherwise, try hard resetting your Apple TV by disconnecting all power for 30 seconds. If the problem still persists, you may try hard resetting your router by also unplugging all power for 30 seconds.
    Hope this worked out well for you. If you are having further troubles you can always connect it to iTunes using a micro-usb and restore it. Lastly, the Genius Bar will be more than happy to fix the problem for you if you'd like to make a reservation for your local Apple Store.

  • How to get the name and value of an attribute on a node/element that is not a child

    Hello,
    Can someone shed some wisdom on how I can compare 2 xml nodes for differences.
    My main challenge is I need to use the attributes/values of 'ProductDescription' and 'Features' as 'key' to identify the same node in
    another doc with the same layout, but different content.
    I am having trouble getting the name of the attribute on the node, 'ProductDescription' and 'Features'.  I can only seem to get the node names, but not the attributes on the node.  I need the name, because it can be different from doc to doc, so
    I can't hardcode this.
    Can someone please help with how to retrieve an attribute name/value on a node that is not a child.  Here's an example of what
    my xml looks like:
    DECLARE
    @myDoc1 xml
    ,@mydoc2 xml
    DECLARE
    @ProdID int
    SET @myDoc1 ='<ProductDescription ProductID="1" ProductName="Road Bike">
    <Features  featureID  = "1" featureName = "body">
      <Warranty>1 year parts and labor</Warranty>
      <Maintenance>3 year parts and labor extended maintenance is available</Maintenance>
    </Features>
    <features featureID = "2" featureName = "seat">
      <Warranty>1 year parts and labor</Warranty>
      <Maintenance>2 year parts and labor extended maintenance is available</Maintenance>
    </Features>
    </ProductDescription>
    SET @myDoc2 ='<ProductDescription ProductID="1" ProductName="Road Bike">
    <Features  featureID  = "1" featureName = "body">
      <Warranty>2 year parts and labor</Warranty>
      <Maintenance>3 year parts and labor extended maintenance is available</Maintenance>
    </Features>
    <features featureID = "2" featureName = "wheel">
      <Warranty>1 year parts and labor</Warranty>
      <Maintenance>2 year parts and labor extended maintenance is available</Maintenance>
    </Features>
    </ProductDescription>
    I need to compare the attributes of 'ProductDescription' and 'Features' from @mydoc1 against @mydoc2 to see if they are the same based on those 2 nodes first.  If they are, then i want to show the difference in the child elements. 
    This will eventually be an outer join to give me the differences betw the 2 docs based on those key values (node attributes).
    I used node('//*') for the path, and value('local-name(../.)', 'varchar(50)') as element
    ,value('.[not(@xsi:nil = "true")]','VARCHAR(255)') AS new_value
    ...etc...
    but that only gives me the node names, and the child elements.  It does not give me back the attribute names and values from the node itself.
    Thanks in advance for your help.
    cee

    Are you looking for something like this:
    DECLARE @myDoc1 xml
    SET @myDoc1 ='<ProductDescription ProductID="1" ProductName="Road Bike">
    <Features  featureID  = "1" featureName = "body">
      <Warranty>1 year parts and labor</Warranty>
      <Maintenance>3 year parts and labor extended maintenance is available</Maintenance>
    </Features>
    <Features featureID = "2" featureName = "seat">
      <Warranty>1 year parts and labor</Warranty>
      <Maintenance>2 year parts and labor extended maintenance is available</Maintenance>
    </Features>
    </ProductDescription>'
    SELECT T.c.value('local-name(.)', 'nvarchar(50)') AS name,
           T.c.value('.', 'nvarchar(50)')  AS value
    FROM   @myDoc1.nodes('ProductDescription/@*') AS T(c)
    Erland Sommarskog, SQL Server MVP, [email protected]

  • I must install and setup TDPO on all nodes RAC?

    Hi, everyone
    I have oracle rac 9i four nodes and filesystem archivelogs per hosts. without NFS.
    my question is. Is necesary to backup de archivelogs install and setup TDPO on each node? and by the way. The node_name is tdpo.config it must be the same on all nodes rac.?
    Many Thanks.

    A good place to start is http://www.bombich.com/.

  • Screen Painter Image Button cannot set relative path

    Hi,
    I am using screen painter to create a UI form and i put image into each button.  The form can run properly in my PC due to the image path is under my local path.  However, the button is gone when i install the UI form in other PC.  When using button object in screen painter and it not allow me to set the relative path.  Anyone can help??
    Cheers,
    Anna

    Hi Gianluigi,
    Thanks for your reply.  However, i did try to rename the .srf file to .xml file and change the path to the following
         <b><specific image=".\test3.jpg" /></b>
    But the program didn't work.  But if i change it to <b><specific image="c:\test3.jpg" /></b>, give it the exact path then the program work again.
    Do you have any idea on it?
    Anna

  • Cannot set date and time

    I am in the UAE and brought over an Apple TV 3rd generation from the US but cannot get it to set the date or time.  This product has not been released yet in this country.

    Here is the solution:
    Download Apple Configurator from the App Store
    https://itunes.apple.com/us/app/apple-configurator/id434433123?mt=12
    Follow the directions on this link: http://techjournal.318.com/apple-tv/install-a-profile-on-apple-tv-using-configur ator/
    You will need a micro-USB to USB connector --
    Be sure the plug in the Apple TV *FIRST*  ~b e f o r e~ the USB cable is plugged in.
    It works like a charm!!
    Enjoy!

  • How to set category and category attributes through BPEL?

    Greetings.
    I have seen ContentServices SDK, and tried to build own BPEL process which should make this work.
    But there is exception when authenticate to OID. If i not place password attribute to ContentServices.login method, there is exception like "Unable to retrieve application credentials from OID".
    If I place password, then exception is following: "Cannot uthenticate user using clear text password".
    In ContentServices web services SDK is example, called "ApplyDocumentTypeCategory", where in GetUserName assign activity you copy value of "/ns3:IFSQUEUEMESSAGE/PARAMETERLIST/PARAMETERLIST_ITEM[NAME='CONNECTASUSER']/VALUE"
    to connectasuser variable. What should contain this variable?
    If anybody knows how to solve this, please help.
    Thank you.

    BPEL process finished without any errors, but there is no results in document category
    here is function which call addCategoryAttributeValue. in Java Embedding activity seems it executes, but variable result not updated after executing this function.
    public String perform(ContentServicesSession session) throws Exception
    String result=new String("BEGIN");
    try
    result=result.concat("1");
    Item[] documents = WorkflowUtils.getTargetDocuments(session,
    mWorkflowid);
    result=result.concat("2");
    int len = (documents == null) ? 0 : documents.length;
    for (int i = 0; i < len; i++)
    result=result.concat(Boolean.toString(WorkflowUtils.addCategoryAttributeValue(session,
    documents,
    mCategoryName,
    mAttributeName,
    mAttributeValue)));
    catch (Exception e)
    result=result.concat(e.getMessage());
    finally {
    session.logout();
    return result;
    and here is piece of code where i call this function(Java Embedding activity):
    CategoryTest action = null;
    String res="";
    try
    //get the workflow id.
    String workflowid =(String) getVariableData("workflowid");
    String filesEndPoint = "http://myhost.com:7778/content";
    String user = (String) getVariableData("username");//username=orcladmin#welcome1
    java.net.URL u = new java.net.URL(filesEndPoint);
    // get the workflow parameters
    String categoryname = (String) getVariableData("categoryname");
    String attribname = (String) getVariableData("attribname");
    String attribvalue = (String) getVariableData("attribvalue");
    //String documenttype = (String) getVariableData("documenttype");
    // get the PartnerLink.
    com.collaxa.cube.engine.types.bpel.CXPartnerLink
    plink = (com.collaxa.cube.engine.types.bpel.CXPartnerLink)
    getVariableData("GetDataFromCS");
    res +="|connected";
    // Create a Content Services Session.
    ContentServicesSession session =
    ContentServicesSession.login(plink,filesEndPoint,user,"");
    res +="|logged in";
    // Run the java helper class.
    action = new CategoryTest(workflowid);
    action.ApplyCategoryValue(categoryname, attribname, attribvalue);
    res+="|applied attributes";
    // Perform the workflow operatio using the given session.
    res += action.perform(session);
    res+="|action performed";
    setVariableData("exception", res);
    catch(Throwable ex)
    setVariableData("exception", ex.getMessage());
    after executing this code, variable "exception" has following value: |connected|logged in|applied attributes|action performed
    I don't know what to do, plase advice me.
    Thanks,
    Konstantin

  • Cannot set start and finish times for ringtone

    Hello trying to create my own ring tone for iphone 3g when i try to set the start time at 1.25 then finish time at 1.55 ,then create acc version wont work but if i do it from the songs start say 0.00 to 0.30 then create acc version it will any suggestions would be great thank you.Start and stop time both checked

    Hi,
    After released the production order we can not change the date and qty.
    If the order in created status , we can change the date & qty.
    Do TECO the this production order, and create a new production order with your correct date.
    Regards,
    Dharma

  • HT3180 Cannot set date and time keeps waiting

    Can anyone help

    Here is the solution:
    Download Apple Configurator from the App Store
    https://itunes.apple.com/us/app/apple-configurator/id434433123?mt=12
    Follow the directions on this link: http://techjournal.318.com/apple-tv/install-a-profile-on-apple-tv-using-configur ator/
    You will need a micro-USB to USB connector --
    Be sure the plug in the Apple TV *FIRST*  ~b e f o r e~ the USB cable is plugged in.
    It works like a charm!!
    Enjoy!

  • New Apple TV cannot set time and date. Have unplugged both router and Apple TV, have gone to settings could not restore  , but could reset again stuck on date and time . Suggestions

    Date time Apple TV

    Welcome to the Apple Community.
    If this is a new Apple TV, in addition to trying the steps already taken, it may also be that your network router is not allowing access to the timeserver, check that your router allows access over port 123.

  • Revel mobile is set up and working on three devices.  Elements 12 on PC will not allow me to log in to download mobile albums.  Error message indicates can not connect to server. No connectivity issues are occurring on browser.  Why is this happening?

    unable to log in to download mobile albums in elements 12.  Three mobile devices are synced on Revel but can not access them through PC, Elements 12.   Error indicates  cannot connect to server.  No issues with the browser as am able to connect directly to help from Elements.   Why the Error?

    Hi,
    Are you on PSE12 or PSE12.1?
    Is some external USB device plugged in to your system while trying logging in?
    Thanks
    Andaleeb

  • Can I disable the feature which gives an image in an image map a 1 pixel blue border, thus displacing all the image links on the image map by 1 pixel and revealing gaps between all the images making up the image map?

    i. e. can I remove the blue outline glow in focus in the browser?

    i. e. can I remove the blue outline glow in focus in the browser?

  • Put ID attributes on all nodes

    Hello
    I have an XML similar to this
    <root>
    <elem>
    <subElem>
    </subElem>
    </elem>
    <elem>
    <subElem>
    </subElem>
    <subElem>
    </subElem>
    </elem>
    </root>
    I'm trying to put a lot of "Id" attributes on each element for easy acces. I want a result like
    <root>
    <elem id="1">
    <subElem id="1">
    </subElem>
    </elem>
    <elem id="2">
    <subElem id="1">
    </subElem>
    <subElem id="2">
    </subElem>
    </elem>
    </root>
    So I can acces the second "sub" in the second element as /root/elem/@id="2"/sub/@id="2"
    Do you have any way to put that "Id" attributes using XQuery or another way. I prefer a non programmatic method (that is, using Oracle, not Java).
    I've tried with InsertChildXML function in this way
    update xmlTable
    set xmlField = insertChildXML (xmlField, '/root//*','@id','nothing');
    That works, but, how I can put the Id numbers for each element and subelement?
    Another way is using XQuery, but at now, I'm getting poor results.
    Any help?
    Thanks.
    José Domingo Hernández
    Edited by: jdhernandez on Sep 2, 2009 8:28 AM

    Without knowing all the details of why you are trying to add an id attribute, beyond "easy access", why not just use an XPath like
    /root/elem[2]/subElem[2]
    instead of
    /root/elem/@id="2"/sub/@id="2"
    Using either XML, my Xpath says to get the second subElem within the second elem within the root node. This agrees with what yours asks for, on the assumption that nothing reorders the XML during your processing.

  • How to check image GPS data and get image file from image field

    Hello,
    I have some trouble and want to fix this problem.
    1. I want to validate image file before its attached in image field about the image file have a GPS data or not. Have any way that can be check about image has contained a GPS data?
    2. After validate image and PDF form is upload to the server. I want to get image file that embed in image field, because I have to extract image from PDF form and store this image in project image folder. If this topic can be fix by code script please give me some example code.
    Thakyou for every comment and suggestion
    Best Regards,
    Mai

    Hi Naill,
    First I have to say thankyou for your answer.
    About my (1) question, My image fields have set to be a embedded data and I try to test many example script of image fields.I can get image content type, image size. But that not work when I used ImageField1.desc.embeddedHref.value. It's response as "Unknown Embedded URI". Therefore, image field is and embedded data. How can I access filename?
    (2) In that forum. As I see, his problem is about how to automate change image field with href image file. But I want to extract an exist embedded image in PDF form to normal image file with original metada (such as extract image filed to .JPEG with GPS data. Same as before attached in PDF form.). There has any concept or solution in this problem?
    Best Regards,
    Mai

Maybe you are looking for