Using a Text Area for a Where In () Clause

Hi Everyone!
It has been awhile since I have done any Oracle ApEx development. This is because I work on the BI team and have been doing more ETL and Teradata development to support MicroStrategy reports.
Having said that, I am attempting to upgrade an existing application with a bit of new functionality. I am trying to allow the user to enter a comma separated list of values (i.e: 12345, 67890, 112233, 44455566) into a text area on one page and have the report on the following page accept that input and use it to filter an interactive report.
I am aware that users can filter an interactive report with the functionality built into the report itself, but some users have requested additional filtering as mentioned above before they actually see the report. My text area is called P10_TXT_ITMS. The code in the SQL for the interactive report is:
AND (ITM_NUM IN :P12_HID_ITMLIST)
When I enter a single number, it works beautifully. Unfortunately, however, entering a comma separated list 'breaks' the report. It says that the value entered into the text area is not a number. To combat this, I tried using to_char() on the column in the table in the comparison. Of course, this also did not work. I would have thought that the variable would have converted into a comma separated list and the where in clause would be totally valid, but it does not seem to behave that way.
Does anyone have any thoughts or suggestions? Any help would be very much appreciated!
Edited by: tgeorge on Jan 21, 2010 9:47 AM

Hi,
It treats it as one large string. Even with to_char it would be like:
'12345' IN ('12345, 67890, 112233, 44455566'); as opposed to:
'12345' IN ('12345', '67890', '112233', '44455566');
You need to split the string up somehow.
Edit: Possibly with the use of regexp_substr?
Mike
Edited by: Dird on Jan 21, 2010 3:53 PM

Similar Messages

  • How do I find out what the charges on my credit card are for? Where is the iTunes account to log into and check?

    How do I find out what the charges are on my credit card are for. Where is the iTunes account to sign in and check?

    Launch iTunes then select iTunes Store from the source list left side of the window.
    Click Sign In on the right side of the window just above Quick Links.
    Now click your account name.
    In the next window click See All to the right of Purchase History.

  • Text Area for long text not appearing properly for BBP_POC_DISPLAY Service

    Hi,
    In our development we have added additional Icon at ITS in Process PO transaction and onclicking  that icon Web dynpro AB screen called with the Purchase Order No of selected row .(SRM 5.0)
    There is one more icon in Web dynpro screen on click of that Purchase order service open in ITS with display mode .This is achieved with service BBP_POC_DISPLAY from Web Dynpro-AB.
    This is also working ok only the issue is in Document tab of PO The Text Area for long text appear at Top  .This functionality is working fine with BBP_POC  service from ITS .
    Has anybody faced this kind of issue ?
    Thanks,
    SMS

    Hi SMS,
    I am unsure of the additional component you are talking about. In general, issues with text area misplacing, is solved by note 1067625. May be you can check it.
    thanks,
    Ashwin

  • On click of lov new jsp page which has only text area for adding comment

    hi all ,
    please help me to do this task. on click of lov new jsp page should be opend which has only text area for adding comment and upon clicking submit on the jsp page the value entered on the textarea should fall on the text field of lov.
    with regards
    prabhakaran.p

    The only reason I see for such a requirement is "Notes" require more space for entering a detailed note and would be inconvenient to write it in small single-line text input box. But, still in this case, getting the entered text back to the page and displaying it will have the same inconvenience of reading it from that field. And, I still think that removing one amongst the two (text field or image link) would be good, design wise.
    Anyway, did u try the following:
    1. Add a flow layout to the table bean
    2. Add text input and image item to the flow layout.
    3. Attach the notes page as the destination uri for the image.
    Did u start the working on it, let us know how far did u reach so that we can guide you through from that point.

  • Can you use a text field for email sender with E-mail button

    basically i would like to use input information from the user when someone sends an email instead of the default which is to look for a third party e-mail program like outlook. I want to bypass that and possibly use a text field that has the user input their email. some people don't use outlook so it would be nice to bypass that somehow. Is there a way to send email without the whole outlook thing, like not needing a "sender" and instead require them to input email address. I just want to receive the pdf. I am using LIVECYCLE by the way.

    You must enable POP forwarding for the account preferences via webmail access for the account.
    http://mail.google.com/support/bin/answer.py?answer=13273
    http://www.macosxhints.com/article.php?story=20041110192454841
    The instructions for enabling POP forwarding and creating the account as a POP account with an email client such as the Mail.app are available at Gmail's website.

  • Problem in using a text area

    Hi All,
    I am having text area in my screen.
    I am using 
    CALL METHOD editor1->get_text_as_r3table
               IMPORTING
                   table = it_text
               EXCEPTIONS
                   OTHERS = 1.
    to get the text entered in the text area.
    The problem I am facing here is, When I am executing it for the first time the text is getting populated, but when I go back to my main screen and execute it once again I could able to retrieve the text. Can some suggest me a solution for this.
    Thanks,
    Arun

    Hi,
    I got the solution.

  • How to create a text area for a blog that scrolls independent of the webpage.

    I want to create a boxed area (Middle 2/3 of page) with text in muse that scrolls up and down independently of the webpage itself. I am trying to create a blog posting on the page and the reader can scroll down on the text but the page (background image) stays static. See Shades link for example. This is a retail store using the same function for posting product.

    i'm trying to do the same thing, but with a section of images that scrolls independently of the rest of the page. i haven't found any way to achieve this yet, but i will keep looking and update you if i find anything. good luck!

  • Coursebuilder - 5 text areas for 5 possible scores. Each possible answer has its own text area

    I'm trying to build an inventory form that has different
    point values for each possible answer for a particular question.
    there will be 5 possible answers, and I want to total all of the
    "a" choices into "text area A" (all "b" choices to total in "text
    area B"...ect.)
    I've tried breaking up each question into 5 separate
    coursebuilder interactions, using the action manager to sent the
    scores into 5 text areas. The interaction always breaks when I
    limit to one choice per interaction.
    Is this even possible?

    SDN is the place to discuss technical problems..
    Please avoid such weird post.
    G@urav.

  • Issues in making label selectable when used with text area

    I have used the following code (which was given in the thread : Re: Making Labels and other controls with text selectable for copy&paste ]
    which shows how to make label selectable with text field. )
    public class TrialArea extends Application {
    >>public void start(final Stage stage) throws Exception {
    >>StackPane layout = new StackPane();
    >>layout.setStyle("-fx-background-color: cornsilk; -fx-padding:10; -fx-font-size: 20");
    >>
    >>Label label1 = (new Label("jqhrjhhhhhhdsfdsfdsfdfdsdsfsdfdsdsdsfsddsdsdfsdfsddsfsfsddsfdsdedsfssdfhhhhhhhhhhhhhhhhhhhhkjhejwqrhjwhj ewjrhewjkrjew ewjhrjewjwke \n qwjkhrjkwerehw \n jkehrkjewhrjkew\njqhrkjhejwqrhjwhj ewjrhewjkrjew ewjhrjewjwke \n qwjkhrjkwerehw \n jkehrkjewhrjkew\njqhrkjhejwqrhjwhj ewjrhewjkrjew ewjhrjewjwke \n qwjkhrjkwerehw \n jkehrkjewhrjkew\njqhrkjhejwqrhjwhj ewjrhewjkrjew ewjhrjewjwke \n qwjkhrjkwerehw \n jkehrkjewhrjkew\n jqhrkjhejwqrhjwhj ewjrhewjkrjew ewjhrjewjwke \n qwjkhrjkwerehw \n jkehrkjewhrjkew\n jqhrkjhejwqrhjwhj ewjrhewjkrjew ewjhrjewjwke \n qwjkhrjkwerehw \n jkehrkjewhrjkew\n jqhrkjhejwqrhjwhj ewjrhewjkrjew ewjhrjewjwke \n qwjkhrjkwerehw \n jkehrkjewhrjkew\n "));
    >>
    >>label1.setWrapText(true);
    >> label1.setPrefWidth(480);
    >>label1.setMaxWidth(480);
    >>layout.getChildren().add(
    makeSelectable(label1)
    );>> Scene scene = new Scene(layout);
    >>stage.setScene(scene);
    stage.show();
    /** @return the passed in label made selectable. */
    private Label makeSelectable(Label label) {
    StackPane textStack = new StackPane();
    TextArea textField = new TextArea(label.getText());>>
    >> textField.setEditable(false);
    textField.setWrapText(true);
    textField.setStyle(
    " -fx-background-color: transparent; -fx-background-insets: 0; -fx-background-radius: 0;"
    );>>
    >>
    // the invisible label is a hack to get the textField to size like a label.
    Label invisibleLabel = new Label();
    invisibleLabel.textProperty().bind(label.textProperty());
    invisibleLabel.setVisible(false);
    >> textStack.getChildren().addAll(invisibleLabel, textField);
    label.textProperty().bindBidirectional(textField.textProperty());
    label.setGraphic(textStack);
    label.setContentDisplay(ContentDisplay.GRAPHIC_ONLY);
    return label;
    public static void main(String[] args) {>> Application.launch(args);
    >> }
    }The issue I am facing is that with text area, the scroll bar is visible, which does not go with label. The label is being selected properly, but how to remove the scroll bar?
    Edited by: Amrita Dasgupta on Mar 11, 2012 11:38 PM

    DVD SP is not Flash or Director and it sounds like you using "hotpots" are thinking more along those lines. If someone puts the DVD in a DVD Player they may get rather frustrated having buttons that do not do anything and the navgation is strange
    Also take a look here for some more pitfalls and why another app may be better for you
    http://discussions.apple.com/thread.jspa?messageID=1085629

  • Forced to use Clear Text Passwords for OD binding

    Running a Tiger Server 10.4.11 as OD master with one Replica. When binding clients to server in Directory Access/LDAPv3, If I "disable Clear Text Passwords," the users can not login. Uncheck this option, everything works fine. Non "Clear Text" passwords used to work, stopped about two weeks ago. If I bind to the Replica, I can disable clear text. Not sure where to look to see what broke.

    Did your SSL cert expire ?
    Any 10.5 clients ? If so, see
    http://www.afp548.com/article.php?story=20071203011158936

  • Text Area for Powerpoints

    Hi,
    Is it possible to save texts written in powerpoints with Xcelsius Text Area?
    When a user writes text in powerpoint and save it to Enterpise, can the text be seen by other users when they open the powerpoint?
    Br,
    Sonni

    Hi Sonni
    This isn't available as standard.  The only way of doing this I know of is to use Antivia's WebIntelligence Integration Suite which adds Live Collaboration functionality to Xcelsius dashboards even when exported to Powerpoint or Word etc.
    Regards
    Charles

  • Using Standard Text Variables for FYPERIOD in Report Title ?

    Hi,
    We have a requirement where the user input the variable 0fiscper to the query (001.2010). How to get the text value of that variable in the query description in the bex query ?
    For example user input, 008.2010. We need to get "Aug 2010 Sales values " where Sales values will be the report text. I want to get Aug (month) and year (2010) before the report title. I have searched in google and sdn and could not find any link, but found a doc for the column header text using the same variable. I have tried the same procedure and its just display the zvariable name and Sales value's instead of the label. Please advise.
    Thanks
    DR

    You can create a Text variable with replacement path of Fiscper as reference char. Select Key in details tab of replacing variable.
    If you are just getting technical name, then it is understood that it is not getting replaced.

  • Display text area for printing

    Hi,
    I know here are many threads about displaying a textarea as read-only. but no solution fits my requirements.
    I have a page with many fields among other things 3 textareas. This textareas a normally display as autoheight. for printing this page I have created a new one, where all items are read-only, because of the nasty brackets, if page is displayed in printer-friendly mode.
    If my textareas hve more lines then declared for height, they are displayed with a scrollbar. That's not acceptable for me , because I must have printed all the text, not only the one in the scrollable area. In printer-friendly mode, the textarea is automatically set to a height, so that the text is completly shown.
    When I print this page, the textareas are set to a width of 17 lines (declared in height: 4 lines), equal if there is 1 line entered or 20. But I like to have shown / printed all entered lines, so if 1 line is entered I like to see / have printed a textarea with 1 line (max 3) and if 20 lines are entered I like to see / have printed a textarea with 20 lines (max 22). How can I do this???
    Thanks
    chrissy

    Chrissy,
    There might be a way to get this functionallity through the css and template for 'Printer Friendly'.
    However, what I'd do is write a PL/SQL routine to create a HTML page and get all the formatting done the way you like there. I have mine pop up in a new window with the menu bar, so the print option is available if the user wants.
    Through PL/SQL you're dealing just with the column data, not also having to deal with the various elements to display the data, such as a textarea. I simply create HTML tables to hold the data, and place the data in the various <td> elements of the table. The table then controls the layout, and multi-line fields get automatically wrapped.
    Bill Ferguson

  • Two separate text areas for typing in two languages on the same page

    Dear All,
    I am trying to find a way to have two separate typing areas on a single page so that I can write a letter in both French and English. I can easily get two columns, one which follows another, but that is not what I want.
    Any help would be greatly appreciated.
    I am running Pages '09.
    Thanks
    Tunaman

    What do you want then? Can you describe how you like to position the text?
    In word processing document you can use layout breaks and column beaks to get two text columns beside each other.
    You can also use text boxes, one for each language. You can even use Shapes as text boxes.

  • Using edit text control for storing and displaying text of 1000 characters

    Hi all,
    I have a requirement to provide a field for remark in one of dialog screens, for saving remarks of up to 1000 characters. I made container and edit control and add a field LCHR in database table with preceding INT4 field. Then I use this code to save/read data in/from database table:
    CALL METHOD editor->get_textstream
         EXPORTING
           only_when_modified = 0
         IMPORTING
           text               = mytext
         EXCEPTIONS
           OTHERS             = 1.
    in user command and:
    CALL METHOD editor->set_textstream
         EXPORTING
           text = mytext.
    in status.
    Then in read I tried to select single LCHR field from that row and put it in mytext TYPE string. In save I save mytext as LCHR field in database table. There is no error anywhere but it doesn't work. Is it even possible to save STRING text in LCHR field of database table?
    What is alternative? Text objects from SE75?

    Having a string in a database table is absolutely independent on having some trouble in the program. If you got an error saying you need only flat structure, that means you can't use a deep structure in the context.
    I suppose you are using the structure on the screen or ALV. You can only use a flat structure there (no strings, no sub-tables...) as you would not be able to render a deep-structured data on the screen. Of course, ABAP could handle that e.g. by ignoring those deep fields, but we would want too much.

Maybe you are looking for

  • Running OSX 10.7.5 and have a copy of windows 8

    I'm running 10.7.5 and have a copy of windows 8 that I need running for school. I have downloaded the new boot camp driver files, but am running into problems during boot camp assistant. Even though I have boot camp 5 files, when I run assistant I st

  • Getting Infoview Folder Location in Crystal Reports

    Hi, I was wondering if anyone knows if it is possible to create a formula or function in Crystal Reports 2008 that would allow a Crystal Report to dynamically retrieve the Infoview folder path that it is in within Infoview XIR2 SP4? Let's say in Info

  • ITunes started to crash after upgrating to 10.6.7/10.2.1 (Memory leak?)

    All the time since 10.6.2 iTunes worked fine for me, but after the latest upgrade to 10.6.7/10.2.1 yesterday it started to crashing. First of all, the "The iTunes Library file cannot be saved. An unknown error occured (-50)" error occured which I've

  • I am trying to download Adobe Reader but it won't take my password.

    I have tried repeatedly to download Adobe Reader but after getting the installation program, my password is rejected. I type in the password (accurately, as I've changed it 3x), and it just shakes in place. Has anyone else had this problem?

  • CK40N - "still open" material in "release" step

    Hello everyone, We have just released our 2008 standard cost. We use CK40N to do the whole thing, including the marking and releasing of the costs. Under the "release" step, the status is green, there are no errors, but there are materials "still ope