How to use "setVariableData" with a "Element" typed variable ?

Can anyone give me a simple exemple to :
- read a field in a XML element variable (not a "message type" variable)
- update the value of a field in a XML element variable (not a "message type" variable)
in Java activities.
("getVariableData" and "setVariableData")
The only documentation I found is for "message type" variables...
Thank you in advance !

Get :
Element elem = (Element)getVariableData("varElementType","/ns1:Donnee/ns1:champ1");
String value = elem.getFirstChild().getNodeValue());
Set :
setVariableData("varElemType", "/ns1:Donnee/ns1:champ1", "this is a new value", false);
If anyone has a better solution, he is welcome :)

Similar Messages

  • How to use LightRoom with Premier Elements?

    I have recently learned LightRoom 5 and feel fairly comfortable with it. I'm now in the process of working on movie editing starting with Premier Elements 11. I'm just starting to go through it and I see that it integrates with an organizer that seems germaine to the Elements group. Issue is that I'm already using LR for organization. Am consequently a bit confused.
    Can anyone suggest how to work with LR and Premier Elements together?
    A secondary question has to do with audio file management. I see that the Elements Organizer also includes audio files. But LR doesn't. To date I've managed audio with Windows Media Player. Can anyone offer any suggestions for moving forward with audio management?

    I use Lightroom 5.2 and Premier Elements 11 on a fast video optimized i7 PC laptop with lots of memory.  It even has a Blu-Ray burner!
    My photo and video files are first copied and stored by camera and date.  Then I use LR to organize and preview, review and select both photos and clips.  IMO, the clip preview ability of LR is very good.  LR will let you make some simple edits to clips but I don't use that for video, only photos.  My photos will be a mix of JPG and RAW and I will tune them with LR.  Some of the photos may get some extra masking or HDR work elsewhere and then brought back into LR.  
    As I've preview the clips, as well as photos, that I want to use I put them in a LR collection.  Next I prepare a project specific folder on my SSD named something like "Vacation Trip".   If it is a big project, I may make some sub folders such as city names.  
    The big step is to "Export" copies of all the assets I've selected for the collection.  I open the collection and select everything in it.  Right click, pick Export, set the destination, rename them if desired, select "include video", select "Original" video format, select PSD for images and push the Export button.
    The reason for "Original" video is because I don't want any extra compression or processing of the video clips.  I want Premier Elements to do that.  The reason for "PSD" is that I want my LR adjustments of the still photos to be included before I put them in the project. 
    Next I open a new PrE project.  Before adding any assets, I make sure the the scratch disks are assigned to the project folder. 
    With the scratch disks set, I then load the assets.  I make sure one of the primary video clips is the first to be placed on the timeline as that adjusts the "Project Settings" if necessary.  Then I start building the video with the security of knowing I'm only working on a set of image and clip copies.
    My audio file management is done entirely the old fashioned way in Windows Explorer.  I have an audio assets folder and a system of descriptive folder and file names.  I can preview them from Windows Explorer before I import a copy to a project folder.  Adjustments to volume and clip length are done to he copy in PrE.  I frequently buy a $2 audio clip from Vimeo specific for the project because I like having a license to use the music!
    When I'm done, I move the entire project folder somewhere for long term storage. 
    Hope some of this works for you.  If you have suggestions, I would appreciate hearing them.
    Bill

  • How to use $x_Toggle with a static region variable?

    I have a region with a static_id = FAVORITES. It has a footer with code to pass the static region id to a page variable:
    <script type="text/javascript">
            $s('P110_FAVORITES_ID','#REGION_STATIC_ID#');
    </script>When the page is opened, a region with the following code is run.
    <script language="JavaScript" type="text/javascript">
        *// $x_Toggle('R5953131863873231Body');*
        $x_Toggle($v('P110_FAVORITES_ID'));
        $x("P110_SEARCH").focus();
    </script>Essentially, if this is a new report being created, I would like the FAVORITES region to open automatically. If this is an updated report, then it should be CLOSED. When the region id was hardcode 'R595313....Body', it opened. I am trying to replace these hardcode values with a variable...but again, think I have the wrong syntax. Any thoughts?
    THanks. Karen

    Ah! I see the "issue" right away and the source of the frustration. :)
    The template on the top has id="#REGION_STATIC_ID#", but the body of the region uses #REGION_ID# instead of #REGION_STATIC_ID#.
    So change your template to this:
    <table class="t13FormRegion" cellpadding="0" cellspacing="0" border="0" summary="" id="#REGION_STATIC_ID#" #REGION_ATTRIBUTES#>
    <thead class="t13RegionHeader">
    <tr>
    <th class="t13RegionTitle">#TITLE#<img src="#IMAGE_PREFIX#themes/theme_13/plus.gif" onclick="htmldb_ToggleWithImage(this,'#REGION_STATIC_ID#Body')" style="margin:0 5px;" class="pseudoButtonInactive" id="FISHHEADER" /></th>
    <th class="t13RegionButtons">#CLOSE#  #PREVIOUS##NEXT# #DELETE##EDIT##CHANGE##CREATE##CREATE2##EXPAND##COPY##HELP#</th>
    </tr>
    </thead>
    <tbody id="#REGION_STATIC_ID#Body" style="display:none;">
    <tr>
    <td colspan="2" class="t13RegionBody">#BODY#</td>
    </tr>
    </tbody>
    </table>Notice I changed it in two places. I changed the Javascript with the ToggleWithImages call.
    Then test it out to make sure it all still works as before. Meaning the toggle works.
    Then, the code I mentioned before using simply $x_Toggle('FAVORITESBody'); will work assuming the Static ID field does contain FAVORITES on it.
    The way the REGION_STATIC_ID works is that if you specify a value in the Static ID APEX will use that. If you leave it empty APEX will use the region's unique ID. So it will always work.
    Because you will be specifying the Static ID name to use there is absolutely no need to find out what the value is or save it to a variable.
    Test is out...
    -Jorge
    Edited by: jrimblas on Feb 21, 2013 1:12 PM

  • FAQ: How do I use Revel with the Elements 12 Organizer (Mobile Albums)?

    FAQ: How do I use Revel with Photoshop Elements 12 Mobile Albums?
    Photoshop Elements lets you upload your media to Adobe® Revel and then access it from any device. Media already present in your Revel libraries is downloaded into Elements Organizer, so that you can work with it. Adobe Revel is an app that lets you store your media in the cloud and share it privately or publicly. See the links below for additional informtion about using Elements 11 and Premiere Elements 12 with Revel.
    If you check the option to make all your Elements photos and videos available in Mobile Albums, then Elements will move everything over to Mobile Albums, and upload it all to your Revel Library. Note that with mobile albums if you delete an image it will be deleted inElements and Revel.
    If you have some mobile albums that you only want in elements and you have already made them mobile albums, there is a way to move them back. You can drag and drop a mobile album onto a local category. Media in the mobile album is downloaded as it exists in Revel and stored locally. Subsequentally, the downloaded media is deleted from Revel. You can select one or more of the photos in the Elements Organizer and right click on one of them and select Remove From Revel at the bottom of the list. That will move them out of Revel, and keep them in the Elements Organizer.
    WHATS NEW:
    http://helpx.adobe.com/premiere-elements/using/whats-new.html
    http://helpx.adobe.com/photoshop-elements/using/whats-new.html
    PHOTOSHOP ELEMENTS 12:
    http://helpx.adobe.com/photoshop-elements/topics.html
    http://helpx.adobe.com/pdf/elements-organizer_reference.pdf
    http://tv.adobe.com/show/learn-photoshop-elements-12/
    http://tv.adobe.com/watch/learn-photoshop-elements-12/setting-up-your-mobile-albums/
    http://helpx.adobe.com/photoshop-elements/topics/getting-started-tutorials.html
    http://tv.adobe.com/show/learn-photoshop-elements-12/
    http://helpx.adobe.com/pdf/photoshop-elements_reference.pdf
    http://helpx.adobe.com/photoshop-elements/topics/getting-started-tutorials.html
    PREMIERE ELEMENTS 12:
    http://helpx.adobe.com/premiere-elements/topics.html
    http://helpx.adobe.com/premiere-elements/using/sharing-publish-share-panel.html
    http://tv.adobe.com/watch/learn-premiere-elements-12/sharing-albums-on-the-web/
    http://tv.adobe.com/watch/learn-premiere-elements-12/setting-up-your-mobile-albums/

    Also, bear in mind that few users of the full version of Photoshop are familiar with Photoshop Elements or Organizer, so many of us won't even know exactly what you mean.
    I have to get back on this, Just recently bought Elements and Premiere for Mac (actually more for fun and possible use for a minor workshop, not for my professional workflow) and only had a short glance at it.
    Just glanced at it again (still briefly) but there is a difference that you can't use in Bridge.  Organizer has some shortcuts to fix images and creates a new version of the original.
    This is not possible in Bridge. Also the Output Module in Bridge has a different approach to the create section in Organizer.
    For me Bridge is the right tool and I'm sure "tweetybird" will benefit also after having learned a bit.
    Especially the menu tools/Photoshop and the options in there will give better results (and far more control) to 'fix' ( I rather speak of optimize ) files to your satisfaction
    But If you still need options from the create section that you will not have in the Output Module there is no objection to use Organizer for this by pointing it to the folder with finished files.
    Its just a matter of the right tool for the right job

  • How to use the FormDownload UI element?

    Hi, 
       I am a newbie in ABAP Webdynpro and I want to know how to use the FormDownload UI Element. Any hints plz? Thanks in advance.

    Hi,
              I used CONVERT_OTF FM to convert the otf data to pdf data.  In my form user has the option to view the smartform (a button) or to directly download the pdf from smartform output without displaying the output. While the former has been taken care of by using InteractiveForm UI element and is displaying the smartform output fine, I am not being able to implement the second option. I have given a supply function to the pdfsource context node but am clueless about what to write to pass pdf data. In the sam WD component WDR_TEST_EVENTS, the FileDownload is used to save a text file with just one line. But how can I save a pdf file? I have assigned mime to application/pdf. How will I proceed now? Please suggest. Thanks in advance.

  • How to use annotation with GUI in swing

    hi,
    i am new to annotation. I know how to use this with classes, methods and java elements. I am developing a tool in applet to post comment on my notepad, but unable to find that how to use this with GUI of swing. I have gone through most of forums and tutorials but got no idea. Anyone could give me little idea.
    Thanks

    >
    i need to use the applet mousedown function in swing..>There is no such class as 'applet' in the JRE, Swing has an upper case 1st letter, functions in Java are generally referred to as methods, and there is no 'mousedown' method in the JRE.
    OTOH a Swing JApplet inherits the mouseDown method from Component, and it was deprecated in Java 1.1. The documentation (JavaDocs) provides instructions on what to use instead.
    >
    is there any way to use it or any other alternative is available for this?
    if can provide me a sample code.>If can provide me cash. Short of that, you might actually need to do some research/coding of your own.
    As an aside. What does any of this have to do with Java 2D?

  • How to use Terminal with KeySpan USB serial adaptor cable?

    I own a KeySpan model USA-19HS to use with our MacBookPro when working on clients networking equipment that require serial communication. I have used ZTerm with excellent luck, but it costs, and is yet another application that I dont really want. I would like to know if any one out there has exacing instructions on how to use Terminal with this adaptor. If I could write a file that had, say, the couple most common settings (9600-8-n-1, 57600-8-n-1, et cetera) that I could simply click on, to open a new Terminal window with those settings, then simply close that, and open a new window (apple+n) in order to get back to a default settings terminal window. All feedback is most appreciated.
    Thanks so much, Jason Sjobeck

    Hi, Jason. Welcome to the Discussions.
    You wrote: "All feedback is most appreciated."OK.
    1. Have you considered discussing this with Keyspan Support?
    2. Have you read the section "OSX has Terminal.app - why do I need ZTerm?" on the ZTerm Home Page? That seems to explain why one needs an app like ZTerm.
    3. A quick search of Keyspan's FAQ for your product and terminal doesn't yield much more than how to find the serial ports using Terminal.
    Likewise, this Google search also yields little, and variants of that search of such weren't particularly help either.
    It appears your inquiry seems to be a somewhat esoteric topic.
    4. Apparently, ZTerm X is a bit long in the tooth and there's no Universal Binary for it. It sounds, however, like you've tried it running on your MBP under Rosetta, yes?
    5. In researching alternatives to ZTerm for you, I note the followng:• The comment from "Reverb" on this page suggests C-Kermit or Kermit as a free alternative.
    • This tip on Mac OS X Hints cites Minicom as another option.6. You may want to try your question on the Unix Discussion.
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X

  • How to Use Gmail With Apple's Mail?

    Answer:
    Now Itis not a Problem, Please go to this link and know how to solve this problem, Ihave configuir this in my mac pro. Have enjoy.
    http://picturemuseum.blogspot.com/2011/08/how-to-use-gmail-with-apple-mail.html
    http://mobilesuggestion.blogspot.com/2011/08/how-to-use-gmail-with-apples-mail.h tml

    I notice that it's possible to have sticky posts in these forums. See
    http://forum.java.sun.com/forum.jspa?forumID=534
    the Concurrency forum for an example. Posting a link to the FAQ in a sticky post might reduce the number of FAQs asked here by maybe 1%? Or posts like this one might do well as a sticky?

  • How to use Count with Date Parameters

    Hello,
    I am having issues using the Count() function in conjunction with date parameters.
    This is a Siebel report and in my report I have 2 date parameters(From Date, To Date). In a nutshell I am basically trying to count Opportunities that has a start date within the given date period. However I don't see a reasonable way to put my date parameters within the Count() function. The reason being is that I need to have a huge chunk of code to convert the dates into a common format that can be compared, and it won't even fit within the code block in my rtf template. I am not even sure how to put multiple conditional statements inside a Count() function since all the examples I have seen are very simple.
    Anyone have a suggestion on how to use Count() with date parameters?
    Thanks.

    Any chance you can get the date formats in the correct format from siebel?
    I don't know Siebel - so I can't help you with that. If you get the correct format it is just
    <?count(row[(FromDate>=date) and  (date<=ToDate))?>
    Otherwise the approach would probably need to use string function to get year/monthd/day from the date
    and store it into a varialbe and compare later the same way
    <?variable@incontext:from; ....?>
    <?variable@incontext:to; ...?>
    <?count(row[($from>=date) and  (date<=$to))?>
    Potentially you can use the date functions such as xdofx:to_date to do the conversion
    [http://download.oracle.com/docs/cd/E12844_01/doc/bip.1013/e12187/T421739T481158.htm]
    But I am not sure if they are available in your siebel implementation.
    Hope that helps

  • How to use javap with jar files ?

    how to use javap with jar files ?
    thanks

    As long as the jar is on the class path, your gold. So,
    javap -classpath myjar.jar mypackage.MyClass
    Chuck

  • Help me!! How to use JavaScript with JSP ??

    I am using JDeveloper and I created a screen in JSP which uses a bean for database connectivity and retriving info onto the page.
    The page has a ListBox where list items are populated from the database.My requirement is
    whenever the list is changed the page shuold be refreshed with the selected item info.
    I tried to use 'JavaScript' for triggering the event with 'onChange' event of the ListBox.But the event is not getting invoked. I think JavaScript is not working with JSP.
    Please help me with how to Use javaScript with JSP or any other alternative where I can meet my requirement.
    I have one more question...I have gone through the JSP samples in OTN and I am trying do download the sample 'Travel servlet' which show list of countries...etc
    I have also gone through the 'readme' but I don't know how to extract .jar file.
    I would be great if you could help me in this.
    Thanks!!
    Geeta
    null

    We have a similar need. We have used Cold Fusion to display data from Our Oracle Database. We have a simple SElect Box in HTML populated with the oracle data. When someone selects say the State of Pennsylvania. then we have an On change event that runs a Javascript to go get all the cities in Pennsylvania.
    Proble we are having is that inorder for the Javascript to work , we currently have to send all the valid data.
    Do you know of any way to dynamically query the the Oracle database in Javascript

  • How to use log4net with C# clients

    Hi,
    Can anybody please give an example of how to use log4net with C# clients? Foe java clients you can use the
    <logging-config>
    <destination>log4j</destination>
    How do we use it with C# clients? Any example will be appreciated.
    Thanks.
    -ali

    Ali,
    The following is an example on how to define a custom logger (including log4net) in tangosol-coherence-override.xml for coherence .NET client; you need Coherence .NET client 3.7.1 patch 1.
    <coherence xmlns="http://schemas.tangosol.com/coherence">
    <logging-config>
    <destination>common-logger</destination>
    <logger-name>log4net</logger-name>
    <severity-level>9</severity-level>
    <message-format>(thread={thread}): {text}</message-format>
    <character-limit>8192</character-limit>
    </logging-config>
    </coherence>
    You also need to configure log4net in app.config. Please see the following web page for more information:
    http://netcommon.sourceforge.net/docs/2.0.0/reference/html/ch01.html
    -Luk

  • How to use assert with wireless toolkit?

    Hi,
    I am trying to find out how to use assert with wireless toolkit. I have found that I need to pass "-source 1.4" to the java compiler. But I can't find any documentation on how to do it.
    I'm using J2ME Wireless Toolkit 2.2.
    thanks
    Ludde

    Here's a quote from an article on Java World at http://www.javaworld.com/javaworld/jw-11-2001/jw-1109-assert.html
    "To support the new assertion facility in J2SE 1.4, the Java platform adds the keyword assert to the language, an AssertionError class, and a few additional methods to java.lang.ClassLoader."
    So I really think it's part of 1.4.

  • How to use setSoTimeOut() with socket ??

    HI All!
    I eagerly need to know how to use setSoTimeOut() with socket (on server side).
    Actually the scenario is that My Server accepts connection and waits for connected client to send data to it. I WANT TO KEEP, IF CLIENT DOENS'T SENDS ANY DATA TO SERVER WITHIN 5 min. THEN SERVER MUST CLOSE THE CONNECTION, BUT IF SERVER RECEIVES STILL A BYTE FROM THE CLIENT WITHIN 5 mins., THE SERVER MUST RESET CHECKING TIME OUT FOR NEXT 5 MINUTES.
    How can i do that??
    Any help with example will be appreciated!!
    Thanx in advance

    you'd have to do something like this:
    (this is all assuming you want to read Strings from the socket. setSoTimeout works for any read() call to the InputStream associated with the Socket)
    ServerSocket ss = new ServerSocket(myPort);
    Socket s = ss.accept();
    s.setSoTimeout(5*60*1000); // 5 mins * 60 secs * 1000ms
    BufferedReader in = new BufferedReader(new InputStreamReader(s.getInputStream()));
    boolean running = true;
    while(running)
    try
    String readIn = in.readLine();
    // do whatever you want with the data read
    catch(SocketTimeoutException)
    running = false;
    Now. That's what I think needs to be done. I don't have Java on the machine I'm currently on, so I can't test/verify it, but it goes something like that.
    Good luck,
    Radish21

  • How to use I18N with a custom validator?

    This is my custom validator:
        public void validate(FacesContext context, UIComponent component, Object value) throws ValidatorException
            Pattern pat=Pattern.compile(".+@.+\\.[a-z]+");
            Matcher m= pat.matcher(value.toString());
            if(!m.find())
                FacesMessage message = new FacesMessage("Not a valid e-mail address");
                throw new ValidatorException(message);
        }Instead of providing the text "Not a valid e-mai address", I'd like to get the text out of my ApplicationResources property file.
    How can I do this?
    I know how to use it with the provided validators, but not with own custom ones
    Please help me out, thanks

    I found a solution for this problem, I don't know it's best practice but here it is :
        public void validate(FacesContext context, UIComponent component, Object value) throws ValidatorException
            String errortext;
            Pattern pat=Pattern.compile(".+@.+\\.[a-z]+");
            Matcher m= pat.matcher(value.toString());
            if(!m.find())
                ResourceBundle bundle =
                ResourceBundle.getBundle("be.vdab.resources.ApplicationResources", context.getViewRoot().getLocale());
                errortext = bundle.getString("erroremail");
                FacesMessage message = new FacesMessage(errortext);
                throw new ValidatorException(message);
        }

Maybe you are looking for