How unserializing a string in the report

Hello

I have a 'id_item' using a checkbox to save data in the table in the form id1:id2:id3:id4

When I try to show in an interactive report, I still get id1:id2:id3:id4 even if I use a text field gross (based on LOV) instead of the list of description (for example, descr1, descr2, descr3, descr4).

I know I could use a master detail for this field, but I would like to know if there a function Délinéarise the string.

Thanks in advance and greetings

c.

Hi cidscla,

cdiscla wrote:

well, I have several data stored in my db column selections (I've never used).

In my area, I have 1:2:3:4

each corresponds to a table with descriptions:

description of the ID

---     --------------

1 Paris

2 Rome

3 Berlin

4 New York

In my report, I would like a list like Paris, Rome, Berlin, New York but I get 1:2:3:4

What you can do is to write a simple function from PL/SQL like this which converts your data '1:2:3:4' in data from cities separated by commas as follows:

function get_cities ( p_cities in varchar2 )
return varchar2
is

  l_cities varchar2(4000);

begin

  for rec in ( select city_name
                 from cities
                where (
                        p_cities is not null and
                        (instr(':'||p_cities||':',':'||city_id||':',1) > 0 )
                      )
             )
  loop
    if l_cities is null then
      l_cities := rec.city_name;
    else
      l_cities := l_cities||', '||rec.city_name;
    end if;
  end loop;

  return l_cities;

end;

And use this function from PL/SQL in your interactive report like this query:

select column1,
       column2,
       ...
       get_cities ( city_multiselect_column_name ) as cities,
       ...
       columnN
  from table_x

Kind regards

Kiran

Tags: Database

Similar Questions

  • How to remove "Edit" for the report.

    Hi all...
    I've developed a master - detailed report with navigation concept.

    When the detail report opens in my dashboard, it has option change under him... that should be disabled for my users.
    How to disable this option.


    Please help me

    Thank you!

    Hello

    You should be able to change this through the report properties in your dashboard. Change your dashboard. Access report properties. Uncheck the edit in report links.

    Good luck

    Daan Bakboord
    http://obibb.WordPress.com

  • How to put links to the reports by e-mail?

    We use ibots to schedule reports, then distribute them by e-mail.
    Is there some way, we can send the links instead of reports.
    The link that we see in the browser for a specific report should be sent by electronic mail instead of report.
    Users should be able to click on the link and then provide the credentials to connect. Then only, they should be able to see the reports.
    Can anyone suggest a way to do this.

    Thank you
    Swetha

    OK, how about a total different approach?

    You said that you needed your reports to run at a time specific (you gave the example of 09:00) with the data at that time. Links must be to the 'already-run' reports, not having only not reports to run when you click the links. Yes?

    If so, then think about this. Use your iBots to run at the scheduled time and file reports on a file server. How? Read this:

    http://oraclebizint.WordPress.com/2007/12/17/Oracle-BI-EE-101332-calling-Java-scripts-and-Java-classes-from-ibots/

    Now you can use your email application to send regular emails (when reports are run) to have users access to reports on the server at a given time. You can create a javascript script for each different place depending on who needs to see that report. In this way, the when users connect to the site, they see only the reports that they are supposed to see.

  • How to landscape Orientaion of the report?

    Hi all
    I want to set the property orientaion of main section in landscape mode, but when I put it, it gives me this error:
    REP-0801: layout canvas must be large enough to fit all layout objects

    There is another way to put this property by the layout, but it does not work!
    How to solve this problem?

    Thank U all

    Model layout-> header-> Orientation Section
    Model layout-main Section-> Orientation >
    -> Section layout model trailer-> Orientation

    Don forget to set the height and width of the page in each of these institutions.

    Also, if you run the report from Oracle Apps, you need to make sure that you have the correct style on your simultaneous program (i.e. landscape).

    Kurz

  • How to display strings in the array of strings 1-d double

    I have some strings in the string table 1 d and I need to display channels duplciate present in the array of strings 1 d... pls let me know... I'm using labview 2010 worm

    Matt wrote:

    I have attached the VI

    Well, there are several possible solution. Do you think all the elelemts that are not in the course of exit or do you only each. For example, if the table contains 3 of the same element, do you want twice in the double output?

    I suppose you want only there once, so just the existing code to scale accordingly. See attached example. If you want all, remove the internal node of case and research and blindly add all items in doubles.

    Note that there is full of the most effective ways to do this, but the current code is sufficient for small tables.

  • How to disable", or delete the"reporter"on the request of encryption screen?

    Original title:

    BitLocker

    Does anyone know if it is possible to 'disable' or delete the "reporter" on the request screen encryption?

    Hi Natheem,

    When users log on a computer that must be encrypted, they receive a notification that their computer will be encrypted. They can select request Exemption and postpone the encryption by selecting future releases or start accepting the BitLocker encryption.

    For more information, refer to:

    To get help after the question on Bitlocker TechNet forums:

    http://social.technet.Microsoft.com/forums/en-us/home?Forum=mdopmbam

    Hope the helps of information. Please let us know if you need help on this issue or any problem related to Windows.

  • How to concatenate strings with the lines of a text file

    Hello
    I tried concatenate strings with the lines of a text file, but something is wrong with my code and I belive is the agruments I use in the cycle for. If anyone can help me I will appreciate it very much.
    My code is:
    [code]@echo off
    the value "input=C:\Users\123\Desktop\List.txt".
    for /f "usebackq tokens = *" % in (' input % ') do)
    the value 'str1 = C:\some directory\ ".
    the value ' str2 = %% ~ F '.
    the value "str3 = .pdf".
    the value "str4 = str1% str2% str3%.
    echo.%STR4%
    ) [/ code]
    and the text file is something like:
    121122 [code]
    122233
    123344
    124455 [/ code]
    But I get only one wrong answer and I have to run it like 3 times to get a real result and it is a mistake, the first two are empty spaces and gives the third one as the last line of the text file but repeated n times, where n is the number of lines in the text file.
    Result:
    [code] C:\Users\123\Desktop>concatenate.bat
    C:\Users\123\Desktop>concatenate.bat
    C:\Users\123\Desktop>concatenate.bat
    C:\some directory\124455.pdf
    C:\some directory\124455.pdf
    C:\some directory\124455.pdf
    C:\some directory\124455.pdf
    C:\some directory\124455.pdf
    C:\Users\123\Desktop>[/code]
    So if anyone has an idea about what is wrong please let me know.
    Concerning
    -Victor-

    Hi Victor,

    This forum is dedicated to the support of the Office of consumer Windows (fonts, colors, personal settings).  Since your question is about programming and usually outside the context of most of the customers, I suggest you post your question in the forums as http://msdn.microsoft.com - the Microsoft network to users will be more adapted to help you in your quest.
  • How to use variables in the report?

    Hello all,.
    I'm new to PlSql. Please bare with me.

    I have a report that runs on SSRS.
    Here is what I need it to do:

    When the report is run:
    1st of the month: it pulls the data from the previous months.
    16th of the month: from the 1st of the current month to 15.

    I am trying to use a case statement to find the right date and then use this value to ReportDate.
    ReportDate is a column in the database.

    -Find the 1st of the month
    SELECT
    CASE
    WHEN SYSDATE > last_day (add_months (SYSDATE-1))
    AND SYSDATE < last_day (add_months (SYSDATE,-1)) + 2
    THEN
    ReportDate = last_day (add_months (SYSDATE-2))

    ON THE OTHER
    SYSDATE
    END ReportStartDate,

    With the help of 10G.
    Again, I'm pretty new to this, so go easy. Let me know if I can provide any other details.

    Hello

    Welcome to the forum!

    1009545 wrote:
    Hello all,.
    I'm new to PlSql. Please bare with me.

    Certainly not! Isn't this kind of a site!
    Did you mean "Please * bear * with me?"

    I have a report that runs on SSRS.
    Here is what I need it to do:

    When the report is run:
    1st of the month: it pulls the data from the previous months.
    16th of the month: from the 1st of the current month to 15.

    What happens if it is running on another day of the month?
    The query below uses leans on the previous month when it circulates at any time from 1, in the 15th day of the month, inclusively and leans on the 1st to the 15th of the current month when run 16 or later.

    I am trying to use a case statement to find the right date & then use this value to ReportDate.
    ReportDate is a column in the database.

    -Find the 1st of the month
    SELECT
    CASE
    WHEN SYSDATE > last_day (add_months (SYSDATE-1))

    ADD_MONTHS (SYSDATE-1) will always be some time this month, then
    LAST_DAY (ADD_MONTHS (SYSDATE-1) will also be the previous month, but)
    SYSDATE is always in the current month,
    SYSDATE > ADD_MONTHS (SYSDATE-1) will always have the value TRUE.

    AND SYSDATE< last_day(add_months(sysdate,="">
    THEN
    ReportDate = last_day (add_months (SYSDATE-2))

    It's 2 months in the past. Are you ever interested in this old stuff? Areen can't you always interested in 1 months ago, or the current month?

    ON THE OTHER
    SYSDATE
    END ReportStartDate,

    With the help of 10G.
    Again, I'm pretty new to this, so go easy. Let me know if I can provide any other details.

    Whenever you have a problem, post CREATE TABLE and INSERT statements for some examples of data and outcomes from these data.
    See the FAQ forum {message identifier: = 9360002} it only takes a few minutes to read and can really help you get the most out of this forum.

    I think you want something like this:

    WITH     period_of_interest     AS
    (
         SELECT     CASE
                  WHEN  TO_CHAR (SYSDATE, 'DD') < '16'
                                           -- should be '16' above.  See note
                  THEN  TRUNC ( ADD_MONTHS (SYSATE, -1), 'MONTH')
                  ELSE  TRUNC (             SYSDATE    , 'MONTH')
              END     AS period_start
         ,     CASE
                  WHEN  TO_CHAR (SYSDATE, 'DD') < '16'
                  THEN  TRUNC (SYSDATE, 'MONTH')
                  ELSE  TRUNC (SYSDATE, 'MONTH') + 16
              END     AS period_end
         FROM    dual
    )
    SELECT     ...
    FROM     table_x              x
    JOIN     period_of_interest  p  ON  x.transaction_date >= p.period_start
                          AND x.transaction_date <  p.period_end
    ;
    

    Period_end is a somewhat misleading name for the column; It's actually the first DATE after the end of the period; That's why I used < (and not < =) when compared to the x.transaction_date.

    I'm not sure what ReportDate is in your description. This is an example of timid, you must validate CREATE TABLE and INSERT statements for some examples of data. It could be that ReportDate is just what I called transaction_date above.

    Published by: Frank Kulash on June 3, 2013 16:55
    This site is falling out my code. It seens to think the in the first

    WHEN TO_CHAR (SYSDATE, 'DD') < '16'
    

    indicates a kind of markup and will not display the '16', even if I put it on a separate on its own line.

    Published by: Frank Kulash on June 3, 2013 17:09
    Used & lt; to correct the estrangement, after sentries below.

  • How to change styles in the reports?

    Hello

    I want to change the colors used in the tables of the report with table headers, but I can't find where the html/css for this. any ideas?

    Thank you

    Hi user,

    The CSS settings for all of the application: write a style sheet and include it in your page template.
    In the definition of the header, for example:

    
    

    The CSS settings a certain page: go to the page attributes and include CSS in the HTML Header page. For example:

    
    

    The Firebug plugin helps you find the right HTML tags.

    Hope this helps,

    Roger

    Published by: Roger Fatton on June 17, 2009 08:59
    (Sorry, I meant "plugin Firebug")

  • How to search string in the window layout and paste it inside the element?

    I'm new to indesign to animals. Learn extendscript for automation.

    I need to paste a string copied instead of '< media >' element in the window layout like the image below.

    inde.JPG

    But I do not know how findgrep in window(ctrl+y) layout rather than the editor.

    I have a script to copy - paste into the active document at the specific position of specfic chain. But, I need to glue between the element of "< media > < / media > '."

    For example:

    If search string = "FIG. 1.1", so I want the copied string to be pasted into the document as below

    WINDOW LAYOUT:

    < media.block id = "001" Fig. > < media > < / media >

    < caption aid: pstyle = "Caption" > < num > FIG. 1.1 & #x2002; < / num >

    < para > < txt > the range of disciplines engaged in research and development

    in the field of nanoscience and technology. < / txt > < / para > < / legend > < media.block >

    OUTPUT:

    < media.block id = "Fig001" > < media > * PASTE STRING * < / media >

    < caption aid: pstyle = "Caption" > < num > FIG. 1.1 & #x2002; < / num >

    < para > < txt > the range of disciplines engaged in research and development

    in the field of nanoscience and technology. < / txt > < / para > < / legend > < media.block >

    I have a script to paste into the current document rather than the window layout.

    App.Open (file (myFigDoc));

    app.activeDocument.pageItems.everyItem () .select ();

    App.Copy ();

    app.activeDocument.close ();

    app.findGrepPreferences = app.changeGrepPreferences = null;

    var figString = "FIG." + chapno + "'." + j; "

    app.findGrepPreferences.findWhat = figString; Figure legend text

    app.findGrepPreferences.appliedParagraphStyle = "FigureCaption"; Figure caption Style

    myFinds = app.activeDocument.findGrep ();

    for (var i = 0; i < myFinds.length; i ++) {}

    myFinds[i].insertionPoints[0].contents="\r ';

    myFinds [i] .insertionPoints [0] .select ();

    App.Paste ();

    }

    How do in the window layout?

    Try this,

    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT;
    
    var myDoc = File("/D/template-sample.indd");//Figure File
    var myFigDoc = File("/D/fig1.indd");//Destination File
    
    app.open(File(myFigDoc));
    app.activeDocument.pageItems.everyItem().select();
    myObj = app.selection;
    app.copy();
    
    app.open(File(myDoc));
    app.findGrepPreferences = app.changeGrepPreferences = null;
    app.findGrepPreferences.findWhat = "FIG. 1.1";//Figure caption text
    app.findGrepPreferences.appliedParagraphStyle = "Caption";//Figure Caption Style
    myFinds = app.activeDocument.findGrep();
    alert(myFinds.length)
    for(var i=0;i		   
  • How serach Decode value in the report of the IR

    I have IR report with
    Select doc_id ,Doc_name,Decode(doc_status,1,'Internal',2,'External') doc_ststus from Document
    When I search in the normal as internal search box or extaernal which is decoded value,
    His is not the data collection.

    Hello

    I tried to reproduce your problem but could not. I've created an interactive report with the following query:

    select object_name,
             object_type,
             decode(object_type, 'PACKAGE BODY', 'This is a package body.', 'This is something else.') "remarks"
      from user_objects
     order by 1
    

    See the example here: http://apex.bhawke.com/apex/f?p=104:7
    user = demo
    past = demo

    When you search for text in the column "decode" (notes), it works fine.

    Let me know if I'm missing something.

    Keith

  • How do you turn off the coast of photographic reports (live).

    How do you turn off the coast of photographic reports (live)

    Hello always56,

    Thanks for this info and choosing the communities Support from Apple. I know how important setting in the camera options soft photo is for you!

    Looks like you want to disable Live Photo when shooting. Live Photo is enabled by default. To turn on or turn off, tap on the Live Photos, and when this icon is yellow, pictures Live is on. Here is additional information that will help to understand further.

    Take pictures and videos - iPhone

    See you soon!

  • How to see the report on health v29 firefox?

    My firefox works slowly and I wanted to see the report on the health, but I got lost in the new interface of firefox, of course I really like it but right now I'm lost and cannot find how to open firefox report health function.

    So can someone point me in the right direction?

    Thanks in advance

    You can type about: healthreport in the address bar and press ENTER.

    Also try to read Firefox is slow - how to make it faster

  • After updating Firefox 9.0.1 Mac OS x 10.6.8 Trusteer report for banking activity disappeared. I reinstalled the report but is still missing. How do I do?

    Hello. When I was on the internet with previous Firefox, there was Trusteer report (j.4 Banking UK software: http://www.trusteer.com/) icon was still there. However after Firefox gave me an alart update for version 9.0.1 Mac OS x 10.6.8 today and after that I followed the update in the early evening, Trusteer report disappeared. I have re-installed the latest report of Trusteer and restarted Firefox for several times, however, he is still missing. The report of Trusteer is a security software required to connect to secure Web sites Bank like RBS, NatWest and HSBC UK etc. and it also validates web security for Paypal and eBay by report of Trusteer on Firefox icon, that's why I need. How do I do? I have none of the other add-on/plug-ins installed, because previous Firefox crashed before conflict of Trusteer report and Nectar Yahoo Toolbar. If it was a bug, please fix as soon as possible please. Thank you.

    Make sure you have the latest version of installed Trusteer.

    I do not have my favorites on hand, but I do not remember the program Trusteer causing sometimes serious problems with Firefox, (some versions may even have been on the blacklist and blockedby Firefox).

    You can find more information if you are looking for in the forum.

    Sorry only once for a quick response.

  • How can I connect a Labview XY (cluster of 2 tables) TestStand 2010 SP1 chart and do appear correctly in the report?

    Patterns of data record TestStand 2010 SP1 default shared this cluster in two tables stored as binary data, resulting in two graphs displayed in the report: one for data and one for X data Y. We need the elements X and Y, couples on the same graph. This cluster is marked for logging as a step output variable. It seems possible to add a table "PROP_XYGRAPH" (similar to the PROP_ANALOGWAVEFORM) to the schema to simplify the other treatment after the database record, but how can we get the Builder, to accept this type of data is displayed correctly? XY graphics come from LabVIEW 2013 SP1 exclusively as a cluster of two matrices, usually between 500 and 1,000 items long.

    ... Geoff.

    Hello Geoff,

    Had a few resources for you to check. Let us know if none of them work for you.

    Inserting an image of LabVIEW Control:

    <>http://www.NI.com/example/30736/en/ >

    Display of graphics in TestStand:

    <>https://decibel.NI.com/content/docs/doc-38945 >

    Display of measurement data in the shape of graph:

    <>http://zone.NI.com/reference/en-XX/help/370052J-01/tsref/infotopics/measurement_data/ >

    See you soon!

Maybe you are looking for

  • Query plugin PPAPI...

    I noticed that this plugin PPAPI is not installed. Around in the autumn of last year, I heard one that adobe Flash Player is a question of threat/malware on Google Chrome, so I uninstalled. I use both Safari and Google Chrome for browsing. Should I p

  • Satellite P50T-A-125-backlit keyboard does not work

    I recently bought this P50t a-125 and the enlightened retro keyboard does not work. I looked in the Bios and the "LED illumination" feature is missing (I have bios 1.70). The feature is also out of office help. Thanks in advance for the help

  • Seagate Hard Drive Firmware Update for the drive model: ST1000LM024

    I have (HP Pavilion dv6-7180se Entertainment Notebook PC). All the drivers for this model installed correctly except the drivers Frimware (Seagate hard drive Firmware Update) and (PLDS Optical Drive Firmware Update). the first one says "this hard dri

  • Adobe CS5.5 Web Premium installs on MacOS Sierra

    So I recently bought a new MacBook Pro. On my old Mac I bought Adobe CS5.5 Web Premium. I wish that this suite on my new Mac but it doesn't have an optical drive, so I thought I would download it from here https://helpx.adobe.com/creative-suite/kb/cs

  • Adobe Stock - two Adobe ID but require only 1 subscription.

    We are a small company of just 2 people and wanted to watch with an offer for Adobe Photo Stock (because they took the Photo Club of Dollar). For all other stock photo sites we have signed with, we can also identify you with the same user name and pa