How to use a dynamic filter

Hi all

We have a difficult problem, I hope that you can help us solve.

We need to build a simple enough interface that loads data from DB2/AS400 (source) into a DB Oracle (target) with the staging area on the target server.
The difficulty is that the tables are about 100 million documents, but we only need a small subset of these. So to use a filter. Unfortunately, the filter condition may vary according to the time of execution of the interface, so our goal is to use a variable as a condition for the filter. The corresponding SQL code should look like this:
SELECT * FROM source_table col WHERE = #VARIABLE

The variable value is retrieved from a configuration table (which resides on the target server) using a simple SQL statement (SELECT value config_table status WHERE = 'A').
Now, here's our setbacks: the config table can return multiple lines of result of the SQL statement in the filling of the variable value. In our understanding, a variable can contain a single value such as a date, text or number, but not a list that can then be used in a filter condition ("... ("WHERE the col IN #VARIABLE"). #VARIABLE should return something like "(1, 2, 3)". "

Please note: in no case we cannot / should not manipulate the source server (we have only read access / rights).

Any ideas? Any help is very appreciated!

Thanks in advance,
Jan

Solution a little complex. But I guess it works

Step 1: Declare a variable of type text/varchar data.
Step2:refresh this variable. I want to use the select query in the variable refresh clause.
The problem here is that we must build a SQL query that converts the lines into a single string.
for e.g., in your case, let your retruning 3 question line1, line2 and rank 3 values.
Now, use the oracle SYS_connect by clause to cover all lines out there in a single row.ie., row1, row2, row3

Now, in your interface just add a filter condition and use this value there.
Hope this might be of some use to you.

Tags: Business Intelligence

Similar Questions

  • Use the dynamic filter Condition in the mapping

    Hello

    I tried to use a dynamic filter condition in my correspondence.

    I wrote this condition as:

    INOUTGRP1. Numer1 = ' | Number 1 | '
    and INOUTGRP1. Number2 = ' | Number2 '

    Number1 and number2 are setting for mapping entry, now I want to use the input parameter for the Filter Condition.

    Can someone tell me how I can handle this?

    Thanks in advance.

    Greetings

    You used wrong input parameters.
    Rather a link an input parameter to the operator to filter, then you can insert it from list of attributes as long as the same way as other attributes of filter operator group

    Kind regards
    Oleg

  • How to use the median filter?

    I need a median filter that ignores the pixels with color difference above a certain threshold. So, if the pixels are relatively narrow in the value of the color, apply median as usual. If not, ignore.

    Hi bluefalcon,.

    Please check the following link and let me know if you be useful: How to use the median filter in Photoshop CS6 - for Dummies

    Concerning

    Tanuj

  • How to use the old filter 8bf in photoshop cc2015

    How to use the old filter 8bf in photoshop cc2015

    Your 8bf filter should show in the menu filter. I'm guessing that's not show. Do you know who built it? I would try to communicate with the creator. If it was you, show us your resource PiPL and what you're trying to run it on and/or errors in the platform you get try to use it.

  • How to use a dynamic variable in guest of dashboard

    Hello

    I'll have a filter in my dashboard that display values only 15 (from max max-15). I created two dynamic in RPD as variables below

    Exec_Time1: SELECT max (CAST (START_TS AS TIMESTAMP)) FROM tablename
    Exec_Time2: SELECT MAX (CAST (START_TS AS TIMESTAMP))-15 FROM tablename.

    In the dashboard, I want to use the filter as timestamp between @Exec_Time1 and @Exec_Time2.


    Could someone explain how to apply this filter.


    Thank you
    Pushpa

    great (always nice marking ;-)))

    KR,
    A

  • How to use the size filter in a liquid?

    How the filter 'size' works in cash if the size of an array is zero. I want to check if a table size == 0 or if it is empty. The size filter displays nothing if the array is empty? If not, is there a better way to check if a table is empty? Thank you.

    {% If {{lastMinuteOpeningsApp | size}} == 0 %}}

    <!-HTML code some here run if the array is empty->

    {% endif %}

    I wish really it had examples more/better on documentation of BC from liquid.

    You must use the json output I have mentioned Dean, look at your output and understand how the collection etc.

  • How to use the dynamic Action?

    Dear all,

    I use Apex 4.1 worm.

    I need returns the value in the text box item when I select a value in the select list.

    I have a select list item: p1_template_id and a text box to point P1_template_description.
    Code of the selection list
    SELECT TEMPLATE_NAME D, TEMPLATE_ID R FROM TEMPLATE_MAS  ORDER BY TEMPLATE_NAME
    
    Table Name
    
    
    CREATE TABLE  "CRM_CAM_TEMPLATE_MAS" 
       (     "TEMPLATE_ID" VARCHAR2(50) NOT NULL ENABLE, 
         "TEMPLATE_NAME" VARCHAR2(500) NOT NULL ENABLE, 
         "DESCRIPTION" CLOB
          CONSTRAINT "CRM_CAM_TEMPLATE_MAS_PK" PRIMARY KEY ("TEMPLATE_ID") ENABLE
       )
    /
    I want to the DESCRIPTION of the column value for the text box item when I select the select list template ID.

    How can I do this with dynamic Action or in any other way?

    How can I do this?



    Thank you
    CORINE

    Hi Maxence,

    create a dynamic action of the advance,
    Follow the instructions below

    event = change
    selection type = item (s)
    product (s) = p1_template_id
    condition = no requirement

    Action: Execute the PL/SQL Code

    declare

    CLOB v_description;

    Start
    Select v_description from CRM_CAM_TEMPLATE_MAS where category = DESCRIPTION: p1_template_id;
    : P1_template_description: = v_description;
    end;

    Page to Submit elements - p1_template_id
    Page items to return - P1_template_description

    hope you help

    Kind regards
    Jitendra

  • I downloaded Adobe filter but I don't know how to use it

    I asked for information on the web a blocker and was brought to Adobe filter. I downloaded it but there were no indications on how to use it for my children. Where can I learn to use it? I use the Windows XP operating system. I downloaded adobefilter.com

    BlueCoat K9 is a free access: http://www1.k9webprotection.com/

  • How to use PL/SQL to create dynamic action to set the value of a selection by another list?

    Hello

    I would like to know how to use PL/SQL to create dynamic action to set the value of a list of selection by another selection list.

    1.PNG

    I wish can create dynamic action to manage the two above the Room select list (: P9_ROOM) and building (: P8_BUILDING).

    When you select "1074" in the bathroom, building highlights like "BRM BLD 5"

    When you select 'Area of the black box' in the room, building must assign the value "7 BLD BRM"

    When the room is Null, building should also be Null.

    I thank you,

    Alice

    I forgot to mention, for the PL/SQL Code, because you are working with items in the selection list, the return values are different from the display on your LOV values, you must instead use the return values.

    Thank you

    Erick

  • How to assign URLs dynamically using button/link on the page of peoplesoft? Please provide detailed instructions.

    How to assign URLs dynamically using button/link on the page of peoplesoft? Please provide detailed instructions.

    1. define the URL, the Z_URL1 or the Z_URL2 definitions

    2. in the change of field button:

    If true Condition then

    ViewURL (URL. Z_URL1);

    On the other

    ViewURL (URL. Z_URL2);

    End - if

  • How can I disable the "red mask" while using the gradient filter...

    When I use the gradient filter, the red mask appears indicating where the setting will be affected... but I can not disable it to view the live settings, while I make adjustments to settings...

    How or where can I find the switch to turn off the "red mask"?

    Press the 'o' for overlay power

  • How can I get the 'handles' using the Radial filter in Lightroom 6

    How can I get the 'handles' using the Radial filter in Lightroom 6

    Please press 'H' as advised by dj_paige.

  • How to set a dynamic title using a variable presentation

    Hello every1

    In my dash I want to use a dynamic title: "list of services by", which is based on the prompt of the user 'countries '.
    How can I do this?
    For example when the user selects Morocco, then the title goes: 'lists of services by the Morocco '.

    Thank you

    Hello

    also try this...
    http://bischool.WordPress.com/2009/05/05/presentation-variable-values-in-report-titles-or-using-presentation-variable-in-dashboard-text-object-and-narrative-view-directly/

  • How to use Bulk collect in dynamic SQL with the example below:

    My Question is

    Using of dynamic SQL with collection in bulkif we pass the name of the table as "to the parameter' function, I want to display those

    An array of column names without vowels (replace the vowels by spaces or remove vowels and display).

    Please explain for example.

    Thank you!!

    It's just a predefined type

    SQL> desc sys.OdciVarchar2List
     sys.OdciVarchar2List VARRAY(32767) OF VARCHAR2(4000)
    

    You can just as easily declare your own collection type (and you are probably better served declaring your own type of readability if nothing else)

    SQL> ed
    Wrote file afiedt.buf
    
      1  CREATE OR REPLACE
      2     PROCEDURE TBL_COLS_NO_VOWELS(
      3                                  p_owner VARCHAR2,
      4                                  p_tbl   VARCHAR2
      5                                 )
      6  IS
      7     TYPE vc2_tbl IS TABLE OF varchar2(4000);
      8     v_col_list vc2_tbl ;
      9  BEGIN
     10      EXECUTE IMMEDIATE 'SELECT COLUMN_NAME FROM DBA_TAB_COLUMNS WHERE OWNER = :1 AND TABLE_NAME = :2 ORDER BY COLUMN_ID'
     11         BULK COLLECT
     12         INTO v_col_list
     13        USING p_owner,
     14              p_tbl;
     15      FOR v_i IN 1..v_col_list.COUNT LOOP
     16        DBMS_OUTPUT.PUT_LINE(TRANSLATE(v_col_list(v_i),'1AEIOU','1'));
     17      END LOOP;
     18*  END;
    SQL> /
    
    Procedure created.
    
    SQL> exec tbl_cols_no_vowels( 'SCOTT', 'EMP' );
    MPN
    NM
    JB
    MGR
    HRDT
    SL
    CMM
    DPTN
    
    PL/SQL procedure successfully completed.
    

    Justin

  • How to use an option button in the report of the IR to redirect itself to view another report

    IHH team, I have a requirement where I have an IR report option button. By clicking this radio button, another report appears under the main report with few other details of the selected item. The idea was to have a zoom of report as seen in the Group of MS Excel.  However, I am stuck because I don't want the user to press the "submit" button each time after selection of a radio button. I want the result to Report2 to change on the selection radio button in report 1.

    Please notify.

    Kind regards

    Samar

    for example

    Report1 details

    RB col_id text1 text2 Text3

    1 . abc erd 45

    2 ghj dfgrt 67

    Suppose the user selects the first option button, the page displays another report with details below the main report

    Report1 details

    col1_id text1 text2 Text3

    RB1 1 abc erd 45

    2 RB2 ghj dfgrt 67

    Report2 details

    col1_id col2_id text1 text2 Text3

    1 11 ihj pkpk 78

    1 23 ljl kpk 45

    user6255521 wrote:

    Please update your forum profile with a real handle instead of 'user6255521': Video tutorial how to change username available

    When asking a question, always include the information referred to in these guidelines: How to get the answers from the forum

    I was able to achieve using the linl. I created a link on the col_id and it redirected to itself after you set the value of col2_id. I also changed the style of the button link and so col1_id looks like a button.

    However, I was interested to know if we can achieve this with a radio button and use the update form the Report2.

    You mean like this? It is very simple to implement using dynamic measurements.

    1. Add a column of radio group to the main report:

    select
        apex_item.radiogroup(1, d.department_id) rbg
      , d.*
    from
        oehr_departments d
    

    APEX 5.0, apply a static ID "rbg" to the column of radio group.

    2. create a hidden page unprotected element to maintain the value of the selected radio button to use as a filter in the detailed report. In the example, it is P31_DEPARTMENT_ID.

    3 refer to the element of filter in the WHERE clause of the report detail:

    select
        *
    from
        oehr_employees
    where
        department_id = :p31_department_id
    

    Set the Items property of the Page to send in the definition of report P31_DEPARTMENT_IDretail area.

    4. create a dynamic action of change on the Group of radio buttons:

    Event: Change

    Selection type: jQuery Selector

    jQuery Selector:td[headers="rbg"] input[type="radio"]

    Real Actions

    Seq: 10

    Action: Set value

    Type of value: Expression of JavaScript

    JavaScript expression:$(this.triggeringElement).val()

    Selection type: Article (s)

    Point: P31_DEPARTMENT_ID

    Seq: 20

    Action: Discount

    Selection type: Region

    Region:

    The best way to get help with something like that is for you to reproduce the problem with an example on apex.oracle.com. Set up as much as you can before posting here and when you post the question, share identification information of developer comments for the workspace so that we can see the example and work the solution directly.

Maybe you are looking for

  • my ipod has being blocked; How can I open it

    I had my Ipod 3rd generation for years; After this time to load it I now can't open it because it is locked.

  • Ejecting the disc external hard Force required

    Hi- I thought before that I had a solution to this problem, but obviously not. Almost whenever I click on the icon next to my external hard drive backup disk, in the left pane of a window of Finder, place appears an alert... The eject button Force wo

  • Stolen card!

    You * thieves g, I can't delete my xbox credit card! Give back me my card! * I don't want to pay!

  • Vista theme gone, maybe more - updated victory guilty or Remote Tech?

    Hello I'm pretty much exasperated, trying to keep the Vista desktop my elderly parents shaped. I'm leaving for two weeks only to find that MOM & dad were reported by AOL Help (paid account) to one of these technicians 24/7 in the Canada. Long story s

  • Uninstall/reinstall Word

    I got the virus from the "IRS" click on an attachment in MS Word in an e-mail.  None of the AV scans can detect it. Will be a uninstall/reinstall Word to get rid of him?  What I have to UN/reinstall any office or just Word? How can I do this? I have