Skip to Content
author's profile photo Former Member
Former Member

Mapping global variables

Hi,

I have written a UDF which returns data in the form of a string with comma ',' seperated.

I wanted to get each value seperately and directly map them to the output data type.

Is it possible to seperate the string that is comma seperated and pass them into Global variables and use global variables to directly map with reciever datatype?

Or is there any other method to handle this using other existing functions to split the returned value?

Please help. Thanks in Advance

Rohan.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jun 25, 2008 at 06:27 AM

    Hi,

    You have to use StringTokenizer Class in java it will eleminate delemiter. Else use substring to get the "," and keep in global variable as you like. You can do both ways.

    Thanks,

    RamuV

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 25, 2008 at 06:32 AM

    Hi,

    Is it possible to seperate the string that is comma seperated and pass them into Global variables and use global variables to directly map with reciever datatype?

    I think Java mapping is good for this scenario....

    Regards,

    Vivek LR

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 25, 2008 at 06:34 AM

    Hi,

    This can be done with a split function.

    refer the below link

    Mapping for split a field to several subelements

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 28, 2011 at 10:51 PM

    ..

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.