How do you retrieve the value?

Hi There,
XML request is:
<?xml version="1.0" encoding="utf-8"?>
<payload>
  <region>
    <__type>Category:#Test.XYZ.Framework.Categorization</__type>
    <Extension></Extension>
    <Id></Id>
    <Name>
      <en></en>   
    </Name>   
  </region>
</payload>
I did an XML to JSON conversion on the above and stored the value of "en" node under "Name" in an attribute named "payload.region.Name.en" by extracting using JSON path filter - using "$.payload.region.Name.en".
But, when I print the value of the attribute, it is printing as "null". Any idea why? I was expecting "" as I do not want the string null to be send as the value for "en".
Regards,
ET

Hi,
The XML to JSON filter does actually converty empty value into the string "null" in the JSON and when you read it out with the path it actually reads the string "null". It does look a bit flawed in my opinion and I recommend creating a support case for it..
But a solution for you!
Create a script filter (JavaScript) after you have read the parameter and do this:
function invoke(msg)
    var att = msg.get("payload.region.Name.en");
   if (att == "null") {
      msg.put("payload.region.Name.en", "");
    return true;
It will just replace null with an empty string!
Cheers,
Stefan

Similar Messages

  • How do you retrieve the USR_LOCK value?

    How do you retrieve the USR_LOCK value, it cant be mapped directly on the process task right?
    You writed custom JAVA code?
    Thanks in advance.

    If by any change you want this with 11g APIs then you can use http://docs.oracle.com/cd/E14571_01/apirefs.1111/e17334/oracle/iam/identity/usermgmt/vo/User.html#getManuallyLocked__ and http://docs.oracle.com/cd/E14571_01/apirefs.1111/e17334/oracle/iam/identity/usermgmt/vo/User.html#getAccountLockedDate__
    HTH,
    Bikash

  • From two given tables, how do you fetch the values from two columns using values from one column(get values from col.A if col.A is not null and get values from col.B if col.A is null)?

    From two given tables, how do you fetch the values from two columns using values from one column(get values from col.A if col.A is not null and get values from col.B if col.A is null)?

    Hi,
    Use NVL or COALESCE:
    NVL (col_a, col_b)
    Returns col_a if col_a is not NULL; otherwise, it returns col_b.
    Col_a and col_b must have similar (if not identical) datatypes; for example, if col_a is a DATE, then col_b can be another DATE or it can be a TIMESTAMP, but it can't be a VARCHAR2.
    For more about NVL and COALESCE, see the SQL Language manual: http://docs.oracle.com/cd/E11882_01/server.112/e26088/functions119.htm#sthref1310
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002

  • How do you get the value of a selected list item?

    I have a drop-down list that the user can choose from. How do I get the value of what they selected? I thought I could do this by using the NAME_IN function, but I'm getting FRM-40105 Unable to resolve reference to item X. I don't know what I'm doing wrong.
    Thanks!

    Hi,
    You can use an WHEN-LIST-CHANGED trigger, attached to the list-item itself. And, in this trigger, you can use the name of the item to refer its value.
    For example:
    :block_name.list_item_name
    John

  • How do you set the value of an enumeratio​n programati​cally

    I would like to be able to select (programatically) the value of an enumeration.  I don't seem to be able to find any reference to how to do that.
    Thanks.
    Solved!
    Go to Solution.

    True, True.  The original post wanted to know how to programmatically "select" the enum value.  To me, that means to either force the enum to display another value, or retrieve the current value.   I thought Ben was referring to the fact that you can't programmatically set or initiate new values into an enum.  Which as he said, can only be done with a Ring.
    "In your example you're not "getting" the value of the enum. You're converting it to a string. That's a different operation."
    I showed two ways to get the value,  one gets the current string value associated with the numeric value, and the other gets the current numeric value.  i went further in the attached vi, by demonstrating how to change the current (displayed) value of the enum by using a string.  (IFF you already know the string values in the enum.)   
    In my program, i use a typedef cluster with an enum in it.  At runtime, i need to "select" the active enum value based on which operation i'm performing.  I know from elsewhere in the program what operation i need, but it's string, and there's no easy way to change the value of an enum with a string, except with the backdoor methods i showed.  
    I wish my cohort woulda used a ring.  ;-)

  • How do you retrieve the list of intellisense completions created by Visual Studio

    Hello All,
    I have a Visual Studio extension that provides statement completion (Intellisense). I build a series of Completions that are then provided to the customer. However, in my list of completions I would like to provide all variables of a certain type. In the
    default (All) intellisense list provided by Visual Studio, a user has access to all the completions representing these variables that are available in the editor.
    Is there any sort of interface or method to retrieve this information so I can provide a merged list of Completions in my StatementCompletion list? I would like to avoid needing to scrape the text of the file currently being edited as Visual Studio has already
    done the work for me and has a better sense of what is available based on the language currently being edited.
    Thank you for all your help.
    Sincerely,
    Dirk Dubois

    Hello shawnzkz,
    Thank you for the response. Based on what I read in the StackOverflow posts, it looks like there is no formal interface to retrieve information about variables and other Completions built by Visual Studio. Is there a place I can log a feature request for
    the Visual Studio SDK? I think this sort of interface would add a lot of value for customers attempting to append the existing intellisense features of Visual Studio.
    Thanks for all your help,
    Dirk

  • How do you change the value of the primary key in the CMP?

    Hi,
    The cmp that I built has the phone as the Prikey field.
    The bean has the get/set methods. The servlet invokes the cmp
    to change the phone number. How could I do that?
    The setXXX for the priKey can not be called outside of the ejbCreate() so
    how would I change the prikey value of a particular row of the table. Do I have
    to remove the bean then create the new bean with the new priKey value?
    Please help,
    Thanks

    Thanks Mona
    Tom.
    Mona Ramlawi <[email protected]> wrote:
    Hi TOM,
    The primary key is the unique identifier of an Entity Bean.
    To change it, you have to remove the bean instance = database delete
    then you have to create a new one with the new primary-key value =
    database insert.
    Hard luck tom, maybe you should consider changing your primary key. You
    can easily change it to an AutoNum
    Tom wrote:
    Hi,
    The cmp that I built has the phone as the Prikey field.
    The bean has the get/set methods. The servlet invokes the cmp
    to change the phone number. How could I do that?
    The setXXX for the priKey can not be called outside of the ejbCreate()so
    how would I change the prikey value of a particular row of the table.Do I have
    to remove the bean then create the new bean with the new priKey value?
    Please help,
    Thanks

  • HT4910 what happens if your icloud contacts are accidently deleted?  How do you retrieve the data?

    What happens if your icloud contacts are accidently deleted?  How can I retrieve that data?

    Everything that was on your classic should also have been in your library, and that backed up to another drive. If you manually managed the device, and it was the only location holding your playlists, and it has become corrupted, there really isn't much hope. See Corrupt iPod classic. There may be a chance to recover media stored on it if is isn't stored elsewhere.
    tt2

  • How do you find the value of an iMac

    Just curious how and where to find the value of my iMac 20 inch

    Welcome!
    Find your exact model from this list:
    http://www.everymac.com/systems/apple/imac/index-imac.html
    Then click its link. The full specifications have an estimated used price value near the bottom:
    There are a lot of 20-inch iMac variants, so you need to at minimum do "About this Mac" to see what it shows for processor speed and type to find your model on the index.
    The last update of estimated prices was done last August. Prices on that site tend to be at the top of the range.

  • How can you retrieve the GRPNO and SRVID in a server?

    Hi,
    Is there a way within a server (e.g. in tpsvrinit) of retrieving the -g and -i
    parameters passed to the server at startup? (these are visible if you use the
    "tmboot -d1" option). We have multiple instances (over 100) of servers that use
    the same executable, but we are unable to determine which messages in the ULOG
    come from which server (as there is no means of tying the pid to the group/server
    id). What we would like to do is display a message at startup that gives the
    group id and server id, and also include this info in subsequent ULOG messages.
    Any and all suggestions will be gratefully received!
    Thanks & regards,
    Malcolm.

    Hello Malcolm,
    you might want to try using the MIB_SELF flag while calling the MIB for the T_SERVER
    class.
    Hope this helps,
    /Per
    "Malcolm Freeman" <[email protected]> wrote:
    >
    Hi,
    Is there a way within a server (e.g. in tpsvrinit) of retrieving the
    -g and -i
    parameters passed to the server at startup? (these are visible if you
    use the
    "tmboot -d1" option). We have multiple instances (over 100) of servers
    that use
    the same executable, but we are unable to determine which messages in
    the ULOG
    come from which server (as there is no means of tying the pid to the
    group/server
    id). What we would like to do is display a message at startup that gives
    the
    group id and server id, and also include this info in subsequent ULOG
    messages.
    Any and all suggestions will be gratefully received!
    Thanks & regards,
    Malcolm.

  • How do you get the value of an ELEMENT node?

    Which API call do you use to get the value of a simple element node, e.g. <element>value</element>
    The comments for getNodeValue in the header file oraxml.h says
    This function returns the "value" (e.g. associated data) for the given node. Only COMMENT, CDATA and TEXT nodes have data, all others return NULL.
    I've used an xpath expression to select the node that I want but now I can't get the value of the node because it is of type ELEMENT.
    When use getNodeValue I get NULL just like the comment says. Not sure what to try next.

    For parsing with XPath
    http://www.oracle.com/technology/pub/notes/technote_domparser.html

  • How do you save the value entered in a controller?

    I want to be able to save values entered into a controller (say set points) for the next time the program is opened...I was wondering if there was any easy way to do this (i.e. a setting on the controller rather than having to read the values from file and write them to the controllers each time)

    I don't know about easy, but you can use the VI server functions to "set current values to default" and then "save" the VI, essentially self modifying code. We use VI server functions like this all the time. look to the methods available in a VI reference.
    Stu McFarlane
    Viewpoint Systems, Inc.

  • HSGetValues - how do you keep the values?

    We wrote one of our first reports using HSGETVALUE, which our consultants showed us, however, now the user of the report does not like it. They claim the data disappears each time they open the report and they do not want to refresh upon each opening. Any suggestions other than re-writing the report using standard Smartview method.
    Thanks!

    The breaking of links to HSTbar does do a value copy for HSGetValue, but I think what they may be looking for are values that can be refreshed or not refreshed when the file is opened. I think the only option you would have outside of VBA to refresh the sheet would be to convert these reports to Ad-Hoc style reports as opposed to formula driven reports. This would provide the ability to have basically a value copied report when openned but a user can select refresh if they want to.
    The downfall of the value copied reports is that once it is completed, you can no longer go back to the formula's without rebuilding them. VBA could be used to achieve this, but it could be a painful process.
    The downfall to the Ad-hoc style reports are the formatting requirements, which could be very difficult for the users to get used to.
    Regards
    JTF

  • How can I retrieve the value of the POD in expression builder

    I need to be able to determine whether I am on my Production or Staging instance and present the correct weblink URL. This problem arises when Staging is systematically refreshed each month.

    If this issue is for the Action Links you have used in a Report. You could used the below option that does not include the POD name in the URL.
    On Demand will accept the POD of the Application you are navigating from:
    "http://"@[html]"<a target=_top href=/OnDemand/user/OpportunityDetail?OMTHD=OpportunityDetailNav&OMTGT=OpptyDetailForm&OpptyDetailForm.Id="@">View</a>"
    If the issue is for a Report you are trying to access through a Web Link or an Embedded Report
    Accessing a Report through a Web Link: You could consider passing the POD name through a Field that will be stored on the user Object or a another Record Type?
    Accessing a Report through a Embedded Web Applet: I'm not sure about this one but, what do you think about using Variables?
    Hope this information is useful
    Let me know!
    Royston

  • In FormsCentral responses, how do you retrieve the images loaded on the responses?

    I can only seem to get the image names in the .xls or .csv exports.

    This tutorial explains how to download them:
    http://forums.adobe.com/docs/DOC-2656

Maybe you are looking for