Parse String in OBIEE Answers.

Please can someone help me to know how to parse a string in obiee answers:
Eg: 'Administrators;XMLP_ADMIN;319'.
I can do this very easy in Java but not sure how to do it in OBIEE. Appreciate your help
Regards.

Hi,
what are you expecting to do with that string? can you be more specific?
you want to have all values before the semi colon?
you can use regexp in obiee to parse these kind of strings..
i think this must be helpful to you..
http://oraclebizint.wordpress.com/2009/06/04/oracle-bi-ee-10-1-3-4-1-handling-complex-string-manipulations-using-regular-expressions-regex-and-evaluate/
if its helpful award points
thanks,
karthick
Edited by: kart on May 28, 2010 3:56 PM

Similar Messages

  • Sort Alphanumeric string in OBIEE answers

    Hi...
    I have a time slot column in my table. I holds data as follows,
    10AM-12PM
    9AM-11AM
    11AM-1PM
    How to sort the report with these column. If i sort it, it was showing data as follows.
    10AM-12PM
    11AM-1PM
    9AM-11AM
    Can u please help to reslove the issue

    If you are specifically trying to use a string function to resolve your issue, then you can try below.
    Pull another slot column in your Answers request and use evaluate function, to derive a timestamp (using oracle to_date funtion) column. Then you can sort this column and hide it in your report.
    Something like below can be used derive timestamp from say '10AM-11AM':
    select to_date(substr('10AM-11AM',1,instr('10AM-11AM','-')-1),'HHAM') from dual --Output 2011-09-01 10:00:00
    Similarly,
    select to_date(substr('10PM-11PM',1,instr('10PM-11PM','-')-1),'HHAM') from dual --Output 2011-09-01 22:00:00
    See if it suits your requirement.
    Thanks

  • OBIEE Answers

    how can i compare string in obiee answers
    Awaiting the reply
    Bala

    set LTS level for f1 and f2 (and for each metric) for the non-joining dims at Total or highest level in the Logical layer.

  • Parsing String

    i have problem to parse string to document
    i have string like this str = "<root><data>1</data><data>2</data><root>";
    how to parse this string in docoment xml

    import java.io.*;
    import org.jdom.*;
    import org.jdom.input.*;
    import org.jdom.output.*;
    public class PrettyPrinter {
       public static void main(String[] args) {
            // Assume filename argument
            String filename = args[0];
            try {
                // Build the document with SAX and Xerces, no validation
                SAXBuilder builder = new SAXBuilder();
                // Create the document
                Document doc = builder.build(new File(filename));
                // Output the document, use standard formatter
                XMLOutputter fmt = new XMLOutputter();
                fmt.output(doc, System.out);
            } catch (Exception e) {
                e.printStackTrace();
    }The above code is taken directly from
    http://www.javaworld.com/javaworld/jw-05-2000/jw-0518-jdom-p2.html
    u don't have to use Factories, this is what is said in that excerpt, it is very easy to use, and it is said that 80 % of the xml work can be done with 20 % or less work using JDOM.
    n joy ....
    </ksenji>

  • How to parse string to date in j2me?

    How to parse string to date in j2me?
    Please help me.

    Hi..
    String dyStr = "20";
    String mtStr = "1";
    String yrStr = "1999";
    Calendar cal = Calendar.getIntstance();
    int dy = Integer.parseInt(dyStr);
    int mt = Integer.parseInt(mtStr);
    int yr = Integer.parseInt(yrStr);
    cal.set(Calendar.DATE, dy);
    cal.set(Calendar.MONTH, mt);
    cal.set(Calendar.YEAR, yr);
    OK?

  • How could i parse string and link its model with my files in eclipse project?

    How could i parse string and link its model with my files in eclipse project?, as i read that we dont have to use standalone mode while working with eclipse projects.
    Example of what i want to do:
    I have file1.dsl in my project which contains some statements but the declaration of these statements are not in another file, i need to put them only in my code

    Hi Stefan,
    I have eclipse project contains 2 files, file1.dsl and file2.dsl, you can see the contents of the files below.
    file1.dsl contains some statements as shown below and file2.dsl contains the declarations of the variables. (like in C++ or Java we have declarations and usage)
    At this step file1.dsl and file2.dsl will be parsed successfully without any errors.
    Lets imagine that we will delete this project and will create another one and the new project will contain only file1.dsl (which contains the usage)
    At this step this file (file1.dsl) will contains some errors after parsing it, because we are using variables without declarations.
    So what i need is to parse the content of file2.dsl directly without adding this file to the project.
    I need to add the content of file2.dsl directly as a string in the code and parse it. just like that ( "int a;int b;" )
    And link file1.dsl with the model generated after parsing my string
    file1.dsl
    a++;
    b++;
    file2.dsl
    int a;
    int b;
    Thanks

  • Trouble parsing string

    I need to parse strings in the format "City State
    Abbreviation Zipcode" (ie "Glenview, IL 60062") to seperate them as
    their own variables. Problem is that sometimes there is a comma
    after city, sometimes not, so I've resorted to REfind to seperate
    the string. Here's the snippet, "city" is the entire string I
    mentioned above. The problem is that the refind I use seems to be
    returning 0. I'm trying to find the two capital letters that
    designate the state abbeviation.
    <cfif city neq ''>
    <cfset crpos = refind("[:upper:][:upper:]",city) >
    <cfset zip = trim(right(city,len(city)-crpos))>
    <cfset citystate = trim(left(city,crpos)) >
    <cfset newpos = find("#chr(32)#",citystate) >
    <cfset state =
    trim(right(citystate,len(citystate)-newpos)) >
    <cfset actualcity =
    trim(left(citystate,len(citystate)-newPos)) >
    </cfif>

    I probably should mention some explaination about what the
    regular expression is doing:
    Note: Groups are RegExp statements surrounded by ()
    Group 1: Combination of Letters and Spaces (e.g. City Name)
    optional comma and (required) space
    Group 2: 2 Character upper case state code (State Code) (note
    - depending on your source, state codes may not always be upper
    case)
    (required) space
    Group 3: 5 digit string (e.g. Zip Code) (note - again,
    depending on your source, you may be getting 5 digit zip + 4 or
    even non-us zip codes that may involve alpha characters.)
    The replace function is using back references to refer to the
    text matched by group 1,2 and 3.

  • Split Function unable to parse string correctly

    Hi,
    I'm using split function to split string into multiple rows using comma "," as delimiter. In a string I have following values which are not parsed correctly as they have comma inside the values. 
    American Dawn, Inc.
    Battalian USA, Inc.
    Fria USA, Inc.
    Lazer, Inc.
    Mexilink Inc.
    Is there any other approach to fix this issue?
    Here is the split function Im using:
    CREATE Function [dbo].[fnSplit] (
    @List varchar(MAX), 
    @Delimiter char(1)
    Returns @Temp1 Table (
    ItemId int Identity(1, 1) NOT NULL PRIMARY KEY , 
    Item varchar(MAX) NULL 
    As 
    Begin 
    Declare @item varchar(MAX), 
    @iPos int 
    Set @Delimiter = ISNULL(@Delimiter, ';' ) 
    Set @List = RTrim(LTrim(@List)) 
    -- check for final delimiter 
    If Right( @List, 1 ) <> @Delimiter -- append final
    delimiter 
    Select @List = @List + @Delimiter -- get position of
    first element 
    Select @iPos = Charindex( @Delimiter, @List, 1 ) 
    While @iPos > 0 
    Begin 
    -- get item 
    Select @item = LTrim( RTrim( Substring( @List, 1, @iPos
    -1 ) ) ) 
    If @@ERROR <> 0 Break -- remove item form list 
    Select @List = Substring( @List, @iPos + 1, Len(@List)
    - @iPos + 1 ) 
    If @@ERROR <> 0 Break -- insert item 
    Insert @Temp1 Values( @item ) If @@ERROR <> 0 Break 
    -- get position pf next item 
    Select @iPos = Charindex( @Delimiter, @List, 1 ) 
    If @@ERROR <> 0 Break 
    End 
    Return 
    End
    Another user in this forum posted a split function that
    he wrote:
    CREATE FUNCTION dbo.splitter(@string VARCHAR(MAX), @delim CHAR(1))
    RETURNS @result TABLE (id INT IDENTITY, value VARCHAR(MAX))
    AS
    BEGIN
    WHILE CHARINDEX(@delim,@string) > 0
    BEGIN
    INSERT INTO @result (value) VALUES (LEFT(@string,CHARINDEX(@delim,@string)-1))
    SET @string = RIGHT(@string,LEN(@string)-CHARINDEX(@delim,@string))
    END
    INSERT INTO @result (value) VALUES (@string)
    RETURN
    END
    GO
    Both of them are unable to parse above values incorrectly.
    FYI:  String is made of values that are selected
    by user in SSRS report. I think SSRS when combine values , put comma "," between multiple values.
    Any help or guidance would be appreciated.
    ZK

    duplicate of
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/820ac53c-ce25-4cc7-b828-5875a21d459d/split-function-unable-to-parse-string-correctly-in-ssrs-report?forum=sqlreportingservices
    please dont cross post
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Hi to parse String "x;y:z" in Core Java

    hi to parse String "x;y:z" in Core Java

    Deepak_A_L wrote:
    how do i parse a String "X;Y:Z" in java i.e the results of parsing the string
    String s = "X;Y:Z"
    in terms of ENGLISH LANGUAGE -->(X Semicolon Y Colon Z)
    should be the below o/p individual Strings.
    X
    Y
    Z
    how do i get the above output.????Split on a semi- or regular colon using String's split(String regex) method.

  • How to change the default up arrow in OBIEE Answers

    Hi All,
    I want to change the default blue up arrow with a green up arrow in OBIEE answers. How to do it?
    Regards,
    Soumitra

    Do you mean the condition formatting options ? If so I had a similar requirement to create a Green up arrow and an orange 'sideways' arrow. I did the following, all based on a default Windows install using OC4J :
    Navigate to :
    C:\OracleBI\oc4j_bi\j2ee\home\applications\analytics\analytics\res\s_oracle10\meters\arrow\tri\
    I copied up.gif to upgreen.gif and change the colour in a image editor.
    I coped up.gif, rotated 90 degrees, changed colour to orange and saved this as sideways.gif
    I copied the two new files into the Web services stye folders also :
    C:\OracleBI\web\app\res\s_oracle10\meters\arrow\tri
    restarted OC4J and presentation services and they are now available in the conditional formatting options, alongside the defaut Blue (up) and red(down) arrows.
    ** I believe the new pictures need to exist in any other style folders that you are using, e.g "s_hyperion", "s_oracle10", s_custom if you've done your own.

  • How To Give a Validation In Prompt(OBIEE Answers)

    Hi,
    I ahve the promt like
    Name----------------<text box> Go
    if i enter the name then the prompt will effect on the data.
    if i didn't enter tha data in name textbox it should dispaly a meassge like:please enter a valid name:
    here name comling from backend database to obiee answers
    can u please tell me how to sort out this-----------------

    Check this MOS note:
    OA Framework Personalization and Extensibility Guide: Version 5.7+ (Doc ID 236618.1)
    thanks

  • Field is in DB table/alias but I get ORA904 error using it in OBIEE Answers

    Hello, I'm very new at developing with RPD and OBIEE tools, so I'm struggling with something that I thought I did correctly. I added a new field to a database table, and can query it in the database. I added it to the table in RPD Physical layer and I verified that it also now exists in an alias of that table. The physical alias table field is used as a source for a logical column in the presentation layer. Everything looks good in the RPD. But when I try to pull it up in a query in OBIEE Answers I get a 904 error telling me that the column does not exist. I've bounced the servers, dropped cookies and cache, but nothing helps - I still get the error.
    What step could I have missed?
    Thanks in advance!
    Rich

    THank you all for the advice, but it still appears to be a problem. Here's what I tried and the results:
    1. Right-clicked on the new column to do a row count update. As predicted by Gaurav, this also failed with a 904 error.
    2. Verified exact spelling is correct.
    3. Checked the connection pool. THis looks correct, but I will double-check today with one of my co-workers who has more experience with RPD.
    4. Tried querying the column in RPD - this also failed with 904 error.
    5. Checked the LTS within BMM layer and my new field does map back to the alias column
    6. Ran a consistency check and the only errors (warnnings actually) are for a different, unrelated table.
    7. Checked security and it also looks okay, but this is another one I'll double-check later with one of our experts here.
    8. Joins in physical layer and BMM look good
    9. Checked physical column and table in the presentation layer. These also point to the right columns/tables
    10. Selecting the column by itself in analysis fails with 904.
    If anyone can think of something else to consider based on this please advise. One thing I did notice is that in performing the steps above I noticed somewhere (the BMM I think) that the new column I added is at the bottom of the table (last field) and not in the middle as it is in the database. In past experience with other tools this hasn't mattered, but I'm going to see if I can change that and if that has an effect. I'm guessing it won't but I'm running out of ideas!
    Thanks again,
    Rich

  • OBIEE Answers functionality questions

    Hi,
    I pretty new to OBIEE Answers orginally working with Business Objects XI Webi, I have read through the user guides for Answers but some functionality I would like thats in BO XI but doesnt seem to be avaliable in Answers, Im not sure if its not documented because its more advanced functionality or whether Answers just can't do it ? Is the following functionality avaliable in Answers,
    1. I want to build a report based on 2 queries and then link the data in these queries by a common dimension and display this data in 1 report, for example I have query 1 with fields A,B,C and query 2 with fields A, D, E, I want to link on field A as its common and in the 1 report display the fields A,B,C,D,E
    is this possible ? This is not the same as union / intersect, and is not the same as dashboard showing two query results, I want 1 table showing the results of two queries.
    2. Once you have you data set returned is there anyway to filter on the data displayed in the report without the SQL actually having the filter in ? For example I have 1 query returning 100 rows of data and in that 50 rows are of type = A and 50 are of type = B. I dont want to have two seperate queries one to get all type A and one to get all type B, but I would prefer to return all rows in the query then filter the results in the report itself so I can have 1 report table showing type = A and 1 report table showing type = B, pretty much like how you can add a filter in Excel or again how you would add a report level filter in BO XI ?
    Edited by: RichRich on 01-Feb-2010 02:41
    Edited by: RichRich on 01-Feb-2010 02:41
    Edited by: RichRich on 01-Feb-2010 02:42

    HI,
    May I know obiee version?
    Can you refer below thread, it sees similar error.
    https://forums.oracle.com/message/9866218
    https://forums.oracle.com/message/10091143
    Thanks,
    Satya

  • How to Identify duplicates in OBIEE Answers.

    Hi Friends,
    Please help me here.
    I am having a secnario in OBIEE Answers.
    How to identify duplicates using combination either first names with Last Name or with DOB in OBIEE.I dont have access to RPD currently.
    Also please let me know using RPD also how i achive this .
    Example :
    Cusomers table:
    First_Name Last_Name DOB
    ABC XYZ 29-Mar-2011
    ABC XYZ 28-Mar-2011
    ABC PQR 29-Mar-2011
    ABC XYZ 29-Mar-2011
    Case 1: Check row 1 & row 2 having First_Name & Last_Name duplicate but DOB is differ.
    Case 2: check row 1 & row 3 having First_Name & DOB duplicate but last name is differ.
    case 3: check row 1 & row 4 having First_Name,Last_name & DOB duplicate.
    Advance Many Thanks.,
    Dak

    Hi Dak,
    option 1:
    go to advanced tab of that particular report...
    You find check box Check this box to issue an explicit Select Distinct
    option 2:
    Uncheck the following item in Physical layer database features.
    DISTINCT_SUPPORTED
    For displaying duplicate rows refer : http://carpediemconsulting.wordpress.com/2008/08/13/displaying-duplicate-values-in-obiee-reports/
    Thanks
    Aravind

  • Request chaning/flow in OBIEE Answers?

    In OBIEE Answers, is it possible to save the value of a request and reuse this value for further
    calculations?
    In other words, I want to use the results of request(s) as the data source for another request.
    The use case is like this:
    1. Use OBIEE Answers to get the value of a metric. There are multiple such metrics. Create one request per metric and save all such requests.
    2. Use the requests saved in step 1 to derive a higher layer of metrics. Save these requests.
    3. Use the requests saved in step 2 to derive a higher layer of metrics. Save these requests.
    And so on.
    Then I want to show these metrics on the dashboard with drill down navigation.
    Appreciate your help.
    Thank you.

    Hi all,
    Thanks for the reply.
    But this doesn't seem to solve the problem.
    Let me put it in other words:
    Result-1:
    Metric_A X <-- single row resulting from a request in OBIEE Answers
    Result-2:
    Metric_B Y <-- again single row resulting from a request in OBIEE Answers
    Result-3 (to be derived from above two results)
    Metric_C a*X + b*Y
    where a, b are constants.
    and so on...
    Edited by: user2363628 on Jun 10, 2010 2:18 AM

Maybe you are looking for

  • Win 7 Backup and Restore schedule problem

    Dear Technet, I have a strange problem with the above mentioned utility. The problem is with the next scheduled backup. It is not tested if it going to work, but i seriously doubt it. Please help. http://img198.imageshack.us/img198/1920/vaskess.jpg R

  • Where is the attachment panel and page option in Designer?

    In the document properties (in Acrobat), initial view tab and Navigation tab option you can select Attachments Panels and Page. Can this be done is Designer can not seem to find a similar option. Regards, John.

  • UOM Ea...

    We are adding a material to project with Unit of Measure (UOM) as EA. System allows addition of fractional quantity e.g 2.5 EA with a warning message for the decimal places. We then create the Purchase Order (transaction ME21N) with fractional quanti

  • Lumia 920 suddenly switching apps

    2 weeks ago I had my 3 month old lumia 920 replaced because it locked on the widows boot manager screen.  As soon as I got the new phone it was already having problems.  It will suddenly vibrate and jump from screen to screen.  Almost as if the back

  • What's with the unreadable font?

    The new forum look is difficult on the eyes (at least in IE). The font is small and cramped and on first loading, the page layout is all over the place. Nokia, please change the font or make it more legible.