Filtering the data in row based on the setting

Hello
I have a report with the following columns:
No   Name    mgr_role1  mgr_role_value               dir_role2   dir_role_value       super_role3   super_role3_value   ......
1    abc     Manager      1111                        Director     2222                Supervisor      4444   
I want to pass a parameter  with LOV or enterable field     i.e Role: 
If Role = 'Manager' I want to filter  dir_role2,dir_role_value,super_role3,super_role3_value   
If Role = 'Director' I want to filter  dir_role1,dir_role_value1,super_role3,super_role3_value   
If Role = 'Supervisor' I want to filter  dir_role1,dir_role_value1,super_role2,super_role2_value   
We can create any parameters and filters the data like this in Discoverer?

Thank you
Kiran

Hello

You should probably create a condition for each column you are filtering on. Something like:

dir_role1 = CASE WHEN: role IN ('supervisor', 'Director') THEN: dir_role ELSE dir_role1 END

so that the column is filtered only when the role is supervisor or Director.

Rod West

Tags: Business Intelligence

Similar Questions

  • To access the data in row Datagrid since in an itemRenderer

    I would like to know how can I access the data to another line starting an itemRenderer.  I need to format my cells based on other data in line. Here's what I mean... I have a datagrid and I want in row 0 col 2 itemRenderer access the data in row 1, column 1 in order to make a comparison, I can determine how to format data line 0 pass 2 and so on.  Is there a way of the converter of element by hand in another line and access the data?  I can't find a clear answer so I thought that I would go to the pro.

    Thank you!!

    You can use this code to join the dataProvider on the grid.

    var o: Object = this.parent.parent;

    var dp:Object = o.dataProvider;

  • Problem with the filtering of data

    Hello!

    I have a problem with filtering the data in my table and don't know how to solve it properly.

    I created a tabular presentation, my table, a few text fields that are used as input for the various columns of the filter and a filter button that submits the page.

    The problem appeared when I try to filter a column that has null values in the table and is editable... it's that I have found.
    When I press the button I get no line, although there should be some.

    It's the submitted query:

    Select

    "MSR_PRD_ID,"

    "SRC_STM_ID,"

    "ID."

    "ISIN"

    ...

    of ' #OWNER # '. " IZV_SLOG_DET ".

    WHERE

    Lower (MSR_PRD_ID) = low (nvl (: P7_X_MSR_PRD_ID, MSR_PRD_ID)) and

    Lower (SRC_STM_ID) = low (nvl (: P7_X_SRC_STM_ID, SRC_STM_ID)) and

    lower (ISIN) = low (nvl (: P7_X_ISIN, ISIN)) and

    ...

    The nvl function is used so that if the user leaves the field blank it filters by fields that have entry only.

    Does anyone know how I could get around this?


    Kind regards

    Ivan

    LOWER (NVL (ISIN, 'Y')) = LOW (NVL (: P7_X_ISIN, BASS (NVL (ISIN, 'Y'))))

    Denes Kubicek

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

    http://deneskubicek.blogspot.com/

    http://www.Apress.com/9781430235125

    https://Apex.Oracle.com/pls/Apex/f?p=31517:1

    http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494

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

  • In the form of table-update of rows based on the selection of the checkbox

    Hi all

    I have a tabular layout with line selector. I need to update manually checked columns, how would write a process audited records updated?

    Something like this:
    BEGIN     
         FOR i in 1..apex_application.g_f01.count LOOP
    
              IF apex_application.g_f01(i) is not null THEN
                   UPDATE TEST_USERS
                        set USER_ID = :P14_TO
                   WHERE rowid = :APEX$ROW_ID;
                   COMMIT;
              END IF;
         END LOOP;
    END;
    Thank you very much.

    You can refer to the line that you want to process through the value stored in the box.

    If you use apex_application.g_f01 (i) to make reference to the line and you want to update the row based on the ROWID in your request, your SQL query should have the box as follows:

    apex_item. CheckBox2 (1, rowid)

    Then your PLSQL process would be like this:

    BEGIN
         FOR i in 1..apex_application.g_f01.count LOOP
    
              IF apex_application.g_f01(i) is not null THEN
                   UPDATE TEST_USERS
                        set USER_ID = :P14_TO
                   WHERE rowid = APEX_APPLICATION.G_F01(i);
                   COMMIT;
              END IF;
         END LOOP;
    END;
    

    I hope this helps.

    Cheers, Pete

  • display the data in row columns

    I looked through the previous posts, but it is impossible to find a solution to my problem.

    I want to display the data in row columns.
    I have shown in the table below and test data and the sql code that gives me the result desired.
    However, you can see that the sql depends of me knowing all the values in the column "rank".
    I want a way to produce the output without knowing the values of rank.
    CREATE TABLE test1 (
      accno       NUMBER,
      holder_type VARCHAR2(10),
      rank        NUMBER)
    
    INSERT INTO test1 VALUES (1, 'acr', 0);
    INSERT INTO test1 VALUES (1, 'bws', 1);
    INSERT INTO test1 VALUES (1, 'aaa', 2);
    INSERT INTO test1 VALUES (2, 'cds', 0);
    INSERT INTO test1 VALUES (2, 'xxx', 1);
    INSERT INTO test1 VALUES (3, 'fgc', 0);
    INSERT INTO test1 VALUES (4, 'hgv', 0);
    INSERT INTO test1 VALUES (4, 'bws', 1);
    INSERT INTO test1 VALUES (4, 'qas', 2);
    INSERT INTO test1 VALUES (4, 'aws', 3);
    
    Here's the required output:=
    ACCNO     ALLCODES
    1     acr bws aaa
    2     cds xxx
    3     fgc
    4     hgv bws qas aws
    
    I.E. for each accno display the holder_types in rank sequence.
    
    SELECT * FROM
    (SELECT 
           a0.accno,
           a0.holder_type || DECODE(a1.holder_type, NULL, NULL, ' ') ||
           a1.holder_type || DECODE(a2.holder_type, NULL, NULL, ' ') ||
           a2.holder_type || DECODE(a3.holder_type, NULL, NULL, ' ') ||
           a3.holder_type || DECODE(a4.holder_type, NULL, NULL, ' ') ||
           a4.holder_type allcodes
      FROM (SELECT accno,
                   holder_type,
                   rank
              FROM test1
             WHERE rank = 0) a0,
           (SELECT accno,
                   holder_type,
                   rank
              FROM test1
             WHERE rank = 1) a1,
           (SELECT accno,
                   holder_type,
                   rank
              FROM test1
             WHERE rank = 2) a2,
           (SELECT accno,
                   holder_type,
                   rank
              FROM test1
             WHERE rank = 3) a3,
           (SELECT accno,
                   holder_type,
                   rank
              FROM test1
             WHERE rank = 4) a4
     WHERE a0.accno = a1.accno(+)
       AND a0.accno = a2.accno(+)
       AND a0.accno = a3.accno(+)
       AND a0.accno = a4.accno(+)) a
       ORDER BY accno

    So you're after what we call 'Aggregation in the chain.'

    Check this link as it highlights several techniques:

    Aggregation of string techniques

    A Re: Concat ranks of the values in a single column Michael

    At Re: multiple lines in a single line in the 'single column Table' followed by reason of Billy on the conduct of a stragg first.

    In addition, 11 GR 2 has the LISTAGG function.

  • extend the set of data

    Hi all
    Please find the below example scenario where I have to extend the set of data.
    I working on oracle 10g and all by extending the data set, we should exclude weekends. The sample is only for 2 ID, but there may be more than one.
    Thanks for your help.
     
    
    ID                    ST_DT          END_DT          VAL 
    ====               ========         =======        ======== 
    1                  2/2/2011             2/4/2011       4 
    1                  2/4/2011             2/8/2011       5 
    1                  2/8/2011                            6 
    2                  1/28/2011           2/1/2011        2 
    2                  2/1/2011                            8 
    
    ID                    DT             VAL 
    ====                ========      =======        
    1                 2/2/2011           4 
    1                 2/3/2011           4 
    1                 2/4/2011           5 
    1                 2/7/2011           5 
    1                 2/8/2011           6 
    1                 2/9/2011           6 
    2                 1/28/2011          2 
    2                 1/31/2011          2 
    2                 2/1/2011           8 
    2                 2/2/2011           8 
    2                 2/3/2011           8 
    2                 2/4/2011           8 
    2                 2/7/2011           8 
    2                 2/8/2011           8 
    2                 2/9/2011           8 
    
    select 1 as id,to_date('02/02/2011','MM/DD/YYYY') as st_dt,to_date('02/04/2011','MM/DD/YYYY') as end_dt, 4 as val from dual 
    union all 
    select 1 as id,to_date('02/04/2011','MM/DD/YYYY') as st_dt,to_date('02/08/2011','MM/DD/YYYY') as end_dt, 5 as val from dual 
    union all 
    select 1 as id,to_date('02/08/2011','MM/DD/YYYY') as st_dt, null as end_dt, 6 as val from dual 
    union all 
    select 2 as id,to_date('01/28/2011','MM/DD/YYYY') as st_dt,to_date('02/01/2011','MM/DD/YYYY') as end_dt, 2 as val from dual 
    union all 
    select 2 as id,to_date('02/01/2011','MM/DD/YYYY') as st_dt,null as end_dt, 8 as val from dual; 

    Hello

    I guess, when end_dt is NULL, you want to use the current date as end_dt, and the results you have posted are the desired results if the query is executed on February 10, 2011.

    Here's one way:

    WITH     got_n_days     AS
    (
         SELECT     id, st_dt, end_dt, val
         ,     NVL ( end_dt
                  , TRUNC (SYSDATE)
                  ) - st_dt          AS n_days
         FROM     table_x
    --     WHERE     ...     -- If you need any filtering, put it here
    )
    ,     cntr          AS
    (
         SELECT     LEVEL  - 1     AS n
         FROM     (
                   SELECT  MAX (n_days)     AS max_n_days
                   FROM     got_n_days
              )
         CONNECT BY     LEVEL <= max_n_days - 1
    )
    SELECT       d.id
    ,       d.st_dt + c.n          AS dt
    ,       d.val
    FROM       got_n_days     d
    JOIN       cntr          c  ON     c.n     < d.n_days
    WHERE       TO_CHAR ( d.st_dt + c.n
                  , 'DY'
                , 'NLS_DATE_LANGUAGE=ENGLISH'     -- If necessary
                ) NOT IN ('SAT', 'SUN')
    ORDER BY  id
    ,            dt
    ;
    

    Basically, each line of your original table must be repeated n times, where n is the number of days between (included) st_dt and end_dt (not included). The first subquery calculates this number and the main query results by combining your data with a "counter table", NTRC, which contains a line for each value of n that you may need. This 'table' is generated in the second auxiliary request.
    The join produces a line for each day. The WHERE clause eliminates the Saturday and Sunday from these results.

    Thanks for posting the sample data in a useful form. That really helps.

    Published by: Frank Kulash, February 10, 2011 14:29

  • Put the data of the set point in a waveform graph

    Hello

    In a graph of measure, which is the result of a waveform, I would add data of the set point as well. How can I add this data to set for the chart value?

    In a control loop system, the output is controlled by a labview program. I would like to see the point of this system as well as in the graph, these thresholds are changed at random times, so I don't know how to create a waveform of these data. Should I create a waveform of the setpoint, or y at - it another option to show the set value in the chart?

    See you soon,.

    Rolf

    That can make it much more difficult.

    At one point an array of 1000 points need to be assembled (obviously). How do depends greatly on your structure. Synchronize the time of the two signals can be very difficult. It would be easy if the set value only changed once a cycle of 1000 point.

    You may want to read the SP as an analog input, so you get 2 samples of the material here. In this way the two will always be synchronized. But I'm done alleady assumption, like this, the signal is an analog input (and the target value of one analogue output). What equipment do you use?

    I think always need you a loop to get data and a loop to set the SP. The two loops will be more parallel execution GLSL and synchroniseent. The trick is to synchronize, or for the deterministic timestamps in two loops. If you can make that happen, you 80% there. You could do loops timed loops (using the same clock). Then you get the timestamps in two loops. The MS loop has the queue changes, pushing the value and time. Then the loop of data can use values and hours to create examples of sp 1000.

  • Use the data from a DataSet as a source for another (the join between the sets of data)

    Hello. I come with a problem, very simple, but which I think is not implemented in the beer Pub.

    In the DataModel, I create a DataSet, providing some data (for example, a string from a web service), and after this, I create another set of data that uses this string as a parameter for a database query. Is this possible? The only link I found between the sets of data is only this concatenation of the main data set.

    Is there a way that I can do? Thank you!

    * [url http://www.java-forums.org/blogs/advanced-java/collection/] Java collection *.

    In Publisher 10 g and sooner you can use a data model to the join and the structure of data from different sources SQL.

    In Publisher, 11g, you can join data sets for which Publisher can 'know' on the data fields. For example. In addition to SQL data sets, you can reach Excel, LDAP, MDX and answers. Web Services, like XML file are data sets that editor does not know the data fields, so unfortunately, no way to join them... I know.

    Also, true that LOVs can either be SQL or data fixed (i.e. the entered values).

    Allowing the Web Service as a source of LOV or a way to define data fields, it's something for us to consider for a future version.

    Mike

  • How to set the data inside the Set of ActionScript method accessor

    I can't set the values directly in the properties of a class of Action.

    For example, suppose that ModuleLocator is my name of the class Action.

    var myclass:ModuleLocator = new ModuleLocator();

    MyClass.User = "admin";

    I want to have something like: which is avialable in Java Bean to throw an exception on the setter
    Method when the value is equal to something that we are not waiting as indicated:

    public void setName (String name)
    {

    If (Name.Equals ("admin"))
    {
    throw new Exception();
    }
    }

    If possible Action Script class, how to call the setter ActionScript method so that the value should be set automatically in the property in the ActionScript class.

    Thanks in advance.


    Here is the code snippet for defining an accessor Set as

    private var _name:String;
    
    public function set name(value:String):void{
         if(value is not as per format)
              throw some exception;
         else
              _name = value;
    }
    
  • who to check the setting in the procedure or the oracle Packagusing Defualt table

    Hello

    My question is who to check the procedure parameter or a Package using the default oracle as a table

    user_procedure, we will have any kind of the PKG, PROCEDURE etc...

    same as if I wan't to see the partial procedure that eventually all the setting that to check?

    Hello

    870003 wrote:
    Hello

    My question is who to check the procedure parameter or a Package using the default oracle as a table

    user_procedure, we will have any kind of the PKG, PROCEDURE etc...

    same as if I wan't to see the partial procedure that eventually all the setting that to check?

    The data dictionary includes teas views:
    USER_PROCEDURES that has one row per stored procedure in your schema
    $user_arguments which has one line per parameter (or argument) to each stored procedure or a function in your schema
    USER_OBJECTS who has one line per package, package body, procedure or function in your schema. (It includes tables, synonyms, etc., but you can question him saying ' WHERE object_type IN ('PACKAGE', 'BODY of PACKAGE', 'PROCÉDURE', 'FUNCTION') ")
    USER_SOURCE who has one line of code in one of your packages, package bodies, procedures or functions

    There are also views starting with ALL_ (such as ALL_PROCEDURES, ALL_ARGUMENTS,...) for objects in any schema that you are authorized to use.
    There are also views starting with DBA_ (for example, DBA_PROCEDURES,...) for objects in any schema, if you have privileges on them or not, but you are not privileges to see the DBA_ views.

  • Hi I have a problem to connect on wifi I have reset all the setting ang simultaneously press the home buttom ang poewr but not wrking buttom, I can't and on the router because I was on a public area as hotel thank you

    I have 5 16 g model A1428 phone

    FCC ID * A IC * A IMEI; ***

    I TRY TO OPEN MY PHONE TO CHANGE THE BATTREY AND REMOVE THE LCD CABLE TO CHANGE THE POWER ON SWITCH, BUT UP TO THAT ONLY TO REMOVE THE LCD SCREEN, I GAVE ALL MY BECAUSE IS DIFFICULT... WHEN I PUT I CAN NOT CONNECT TO WIFI.

    I TRY to RESET all THE SETTING or RESET or PRESS TOGETHER HOME BUTTOM AND POWER SWITCH ONLY MARKET THE ROUTER NETWORK I can't DO it BECAUSE it OF in CRUISE BOAT or in public space...

    Thank you!

    ALFREDFROMTAGBILARAN

    < personal information under the direction of the host >

    Please do the following and after each test to see if the problem is resolved - if yes, then you can omit the following steps - I tried to list them in ascending order of the effort at least on a Mac and / or an iDevice

    1. Check if the problem is related to a single device and if other devices connect normally-
    2. If the answer 1 is 'yes' - try to connect the device assigned to somewhere else if possible - coffee or the University
    3. Please see recommended settings of WiFi routers and Apple access points
    4. Perform a forced - restart cela do not delete or purge all data and allows to solve many problems - here is how - press and hold the Off / On Home button and at the same time for about 15-20 seconds, until the Apple logo appears. Allow normal startup upward.
    5. Settings - WiFi - < network name > - Click on forget network - do a restart forced 4 and then again add the network
    6. If home - reboot the router by unplugging it for 60 seconds (power) and the plug and reconnect - obviously, this step can be done in a public place like a cafe or airport or University. While you're there - make sure your router is working on the latest firmware (check manufacturer's website)
    7. Settings - general - reset - Reset network settings - remember to have very practical WiFi passwords because it erases the WiFi passwords
    8. If it is a new specific net device in your home - make sure that the router gives enough DNS for all numbers which must / wants a connection - stuff like the printer, Chromecast get overlooked - ask for more details on this so not sure option
    9. Backup the device to iTunes - restore as NEW (no backup) using iTunes - see if solves problem - if yes - restore backup
    10. An appointment of 'Genius' to an Apple Store, or select another authorized service provider.
  • Change the setting for the acquisition of IMAQ1394 speed by program

    Hello

    I use a pilot LabWindows/CVI and legacy NOR-IMAQ IEEE1394.

    I want to put the acquisition of speed setting in my program.

    MAX can do (there is a drop down menu to change the speed of 100 MB / 200 MB / 400 MB.)

    How can I apply this in my program? The problem is that I can't find the attribute to modify.

    For example, for the brightness, the attribute IMG1394_ATTR_BRIGHTNESS is?

    But for speed?

    If I take a look at niimaq1394.h I see a data type of enumeration, but nothing else on the speed.

    Any help would be appreciated! Thank you.

    Kind regards

    Robin

    Hello

    Following procedure could meet your requirement.

    (1) close to the camera.

    (2) open the file "camX.iid" and find the name of "CameraFile.

    "cam0.iid" of my IMAQdx on VISTA is

    c:\users\public\Documents\National Instruments\NI-IMAQdx\Data\

    (3) open the file of the camera and change the setting you want to modify and save them.

    (4) open the camera.

    These files are simple text files.

  • When I change the setting by LabVIEW on my device, I see change on the monitor of the device?

    When I change the setting by LabVIEW on my device, I see change on the monitor of the device?

    This question should be addressed to the manufacturer of the device. From your previous posts, I guess you use GPIB or serial. If the unit has received the order, the manufacturer should be able to tell if no indicators on the device to update when the order is received. Based on my experience, however, the device indicators will most likely update on receipt of an order successfully.

  • can someone change my WZC and the setting of security through the internet?

    can someone change my WZC and the setting of security through the internet? I was watching a video on youtube when my stop comp. and restarted on its own. start and my security program was not able to start, had to uninstall and reinstall to turn back. He told me has encountered a problem and that you must close the program and the program would not close. It comes in a loop. Security found nothing. WZC to capture multiple signals, but now I can't pick up a. right extremist to the modem.

    It seems that if you picked up some malware.  What is the full error message on "antimalware executable?

    I would like to cancel the restoration ago 2 months... it's really too long to rely on system restore.  Too many things have been added in the meantime who is affected negatively by the restoration.

    It is very difficult to say anything from the limited information you provided, but I suggest starting by download, install, update and run a full scan with MalwareBytes Anti-Malware.

    In your answer, in addition to providing the full text of the error messages, provide all of the following:

    What version of Windows, including service pack, do you have?
    What antivirus application do you use?  Is up to date? Have you ever let her subscription lapse?
    What other antimalware applications do you have?
    What is the brand and model of your computer?
    What is the brand and model of your wireless router?

  • Error "this file has no program associated with it for performing this action. An association in the SET ASSOCIATIONS of Crete Control Panel

    Original title: file Association.

    File association.  I am trying to create a delivery company in a direct line between doba.com, and ebay.  I get an error when I try to export.  The error "this file has no program associated with it for performing this action.  An association in the SET ASSOCIATIONS of Crete Control Panel.  I don't know how to do this.

    Great, I can help you right now.  Just open your C:\Users\Peggy\Downloads folder.  While you're looking at him, make a right click on the file icon and choose 'Open with', then "Choose program" you can get the Notepad in the list.

    Here is an example. This example is Windows 7, so it seems a little different, but the steps are the same:

    1. Right click on the file
    2. Go to "open with".
    3. Choose "Notepad."  If Notepad is not listed, use the option "choose by default" to find Notepad instead.

    This will open the file for you to view the data inside.

Maybe you are looking for