Need help to display columns dynamically

Hi all

I have a requirement to display columns dynamically for query below
====================================================
1. SELECT * FROM
2 (SELECT jrgm.resource_name, fu.email_address,
JRG.group_name 3,.
4 max (decode (frv.responsibility_name, 'Customer Support Specialist_PRD', 'Y', ' don't)) Cust_Suppo
5 max (decode (frv.responsibility_name, 'Internet Expenses_US', 'Y', ' don't)) Internet_Expenses_US,.
6 max (decode (frv.responsibility_name, 'Internet Procurement_US', 'Y', ' don't)) Internet_Procureme
7 max (decode (frv.responsibility_name, 'Email Center Console Agent', 'Y', ' don't)) Email_Center_Ag
8 max (decode (frv.responsibility_name, 'Email Center Agent_PRD', 'Y', ' don't)) Email_Center_Agent_
9 max (decode (frv.responsibility_name, 'Customers online CS User_PRD', 'Y', ' don't)) Customers_Onl
10 max (decode (frv.responsibility_name, 'Email component Message Center', 'Y', ' don't)) Email_Cente
Jtf_rs_group_members_vl jrgm 11,
12 jtf_rs_groups_vl jrg,
13 jtf_rs_defresources_vl jrdv,
14 fnd_user_resp_groups furg,
15 fnd_responsibility_vl LIF,
16 apps.fnd_user fu
17. WHERE the jrgm. GROUP_ID = jrg. GROUP_ID
18 AND jrdv.resource_id = jrgm.resource_id
19 AND jrdv.user_id = fu.user_id
20 AND fu.user_id = furg.user_id
21 AND furg.responsibility_id = frv.responsibility_id
22 AND furg.responsibility_application_id = frv.application_id
23 AND (fu.end_date IS NULL or TRUNC (fu.end_date) > = TRUNC (SYSDATE))
24 AND (frv.end_date IS NULL or TRUNC (frv.end_date) > = TRUNC (SYSDATE))
25 AND (furg.end_date IS NULL or TRUNC (furg.end_date) > = TRUNC (SYSDATE))
26 AND jrg. GroupName like '% C '.
27 AND jrgm.resource_name = 'Anderson, Jonathan P '.
28 GROUP BY jrgm.resource_name, fu.email_address,.
29 jrg.group_name)
30 * ORDER BY 3
====================================================================
above the line 4-10 I hard coded column names instead of that I need to display columns dynamically
I have to write something like...
Max (decode (frv.responsibility_name, (select fcl.meaning from fnd_common_lookups where fcl.meaning = frv.responsibility_name fcl), 'Y',' don't)) fcl.meaning
Could you please suggest me a solution for this...

Thank you
GRISSA

Tags: Database

Similar Questions

  • Hello all, I need help with creating a dynamic region in jdeveloper 11.1.2.3 version

    . Hello everyone, I need help with creating a dynamic region in jdeveloper 11.1.2.3 version

    What JDK you are using?

    You are probably using an old version of the JDK, that class while compiled under JDK 1.7.0

    http://java67.blogspot.com/2012/10/how-to-fix-javalangunsupportedclassversionerror-major-minor-version-49-50-51.html

    For example, work with the correct version, and it will be fine...

  • Need help on displaying data

    Hello Experts,

    I create custom pages 3.

    Page1 (requester Details) - employee details (to be completed by the user) who raise a request

    Page2 (expense lines) - employee details for shown who had entered the first page (region1) and

    Noire2 - Advanced table to add lines and enter the details of expenses where more than one line is possible.

    Page 3 (Summary page) - Details of the employee in the first page + lines of expenditure in the second page + the textual data (approvers list) which is readonly text.

    Submit page3.

    All together in the area of train MultiPage.

    Could you please help how to create page3 (summary page) which the expenditure lines to display page 2?

    Things that will help me to design the page.

    Thanks in advance,

    Suman

    Keep AOS (Application Module) even for pages that allows you to view the details of the first page and the second page on the last page (just displaying VO instance. no need to refresh). So you can easily submit it to the end.

    Kind regards

    Stephanie.

  • need help on filling data dynamically from list of choice while the page is loading

    Hi all

    I need to dynamically fill data in the picklist (drop-down list on the component) during the loading of the page itself, can you please a little help on this. I mean for the values of the component < f: selectItems > < af:selectOneChoice > must be filled dynamically, so that loading page. I will be grateful if you can provide examples of code.


    Thanks in advance



    Concerning
    Ashok E

    Hello

    the problem with your code is that it is not af:selectItem but f: selectItems


    *

    Frank

  • I need help to display items

    HII all,.
    I have an item from the list... in this element of the list, I have a value of 2 list item
    1 visa, visa of list items
    2 - species, species of list elements
    I need when the user select visa in the item list appears text element (visa_number)
    I change visible point visa_number to no.
    This is my code I'm writing
    trigger
    When the new block instance
    IF :RESERVATION.PAY_METHOD = 'visa'THEN
         SET_ITEM_PROPERTY('RESERVATION.VISA_NUMBER',VISIBLE,PROPERTY_TRUE);
    ELSE
             SET_ITEM_PROPERTY('RESERVATION.VISA_NUMBER',VISIBLE,PROPERTY_FALSE);     
    END IF;
    * My problem is when I click on cash in during the first anything happen and this right
    When I click for visa then nothing happens this not right
    * When I click on visa first everything works
    I need when I click on visa any time element appear and when I would click for cash... dot visa is disappear

    Ahmed_Arafa wrote:
    HII all,.
    I have an item from the list... in this element of the list, I have a value of 2 list item
    1 visa, visa of list items
    2 - species, species of list elements
    I need when the user select visa in the item list appears text element (visa_number)
    I change visible point visa_number to no.
    This is my code I'm writing
    trigger
    When the new block instance

    IF :RESERVATION.PAY_METHOD = 'visa'THEN
         SET_ITEM_PROPERTY('RESERVATION.VISA_NUMBER',VISIBLE,PROPERTY_TRUE);
    ELSE
    SET_ITEM_PROPERTY('RESERVATION.VISA_NUMBER',VISIBLE,PROPERTY_FALSE);
    END IF;
    

    * My problem is when I click on cash in during the first anything happen and this right
    When I click for visa then nothing happens this not right
    * When I click on visa first everything works
    I need when I click on visa any time element appear and when I would click for cash... dot visa is disappear

    Write your code in the trigger of When-list-change to list_item.

    Hope this will help you.

  • need help to find column ID to market sql tables in a diagram

    I want to build a query that will walk all tables in a schema in a loop and compare every possibility to associate it with an ID column

    I need to know what are the tables have a result where the number of lines with names of columns ID is > 0, then show that only those who were the tables & how many match. I don't know the name of the columns ID, so that does not need to be a variable

    Something along the idea of (not even close to real SQL but I hope that the idea comes through)

    for i = 1 to the last-1 table
    for j = 2 to the last table

    Select
    i table_name
    j table_name
    County (id_column)
    Of
    Table i
    Table j
    where
    i.id_column = j.id_column

    Next I
    Next j

    then to take all lines that result and get rid of those who have zero counties

    Thank you

    -----
    Edit
    ----
    I seem to have bad to convey my idea, I'll try again
    I can write this:
    --
    Select count (id_column)
    Table i table j
    where i.ID = j.ID
    --
    and I can put in each pair of tables for the entire schema, but I don't want to really put 250 + names in this pair and go through all the possibilities of each pair of tables, I'm expecting something that looks like this when finished,

    County of table table
    ----------------------------------------
    customer address 500
    phone customer 1000
    customers accounts 300
    Chargers cusomers 0
    senders address 50
    ......

    Published by: user7733176 on January 4, 2011 04:52

    user7733176 wrote:
    ---
    Select count (id_column)
    Table i table j
    where i.ID = j.ID
    ----

    select  a.table_name,
            b.table_name,
            extractvalue(
                         xmltype(
                                 dbms_xmlgen.getxml(
                                                    'select  count(*) cnt ' ||
                                                    '  from  ' || a.table_name || ' a,' ||
                                                    '        ' || b.table_name || ' b' ||
                                                    '  where b.id = a.id'
                                                   )
                                 ),
                         '/ROWSET/ROW/CNT'
                        ) cnt
      from  user_tab_columns a,
            user_tab_columns b
      where a.table_name > b.table_name
        and a.column_name = 'ID'
        and b.column_name = 'ID'
      group by a.table_name,
               b.table_name
      having extractvalue(
                          xmltype(
                                  dbms_xmlgen.getxml(
                                                     'select  count(*) cnt ' ||
                                                     '  from  ' || a.table_name || ' a,' ||
                                                     '        ' || b.table_name || ' b' ||
                                                     '  where b.id = a.id'
                                                    )
                                  ),
                          '/ROWSET/ROW/CNT'
                         ) > '0'
      order by a.table_name,
               b.table_name
    /
    

    SY.

  • Need help adding a column.

    I have a traditional look Bill made up I want to be the sum of all values in a column.  Is this possible?  Here is an example.  The column total added to the citation field city plus tax.  Thank you!

    12.JPG

    With domain names, it is quite difficult sum up the values of the field.

    Have you looked at the 'Calculate' options for the total field?

    There is an option to "Field is the _____ of the fields" and you can select the operation and fields.

    If you need to write a custom script, then you must get a copy of the reference API JS Acrobat from the Adobe Developer site.

  • Need help to display text with the onClick event

    I have a thumbnail that when you click on, it displays a larger image.  I also want to display the title under the enlarged image when the user clicks on the thumbnail.  Help, please!

    but is there a way to simulate onClick with CSS?

    In fact, there is, but it works on devices with touchscreen like the iPhone, iPad and Droid.

    If your visitors use a mouse device operated, they will see the event in the overview.

    http://www.usabilitypost.com/2010/05/12/CSS-hover-controls-on-iPhone/

    If you must use onClick, watch the tutorial to Show/Hide layer below.

    http://www.cbtcafe.com/Dreamweaver/showhidelayers/index.html

    Nancy O.
    ALT-Web Design & Publishing
    Web | Graphics | Print | Media specialists
    http://ALT-Web.com/
    http://Twitter.com/ALTWEB
    http://ALT-Web.blogspot.com

  • Some newbie need help to display the Properties window

    Hello!

    I am writing this issue on behalf of another Member of our association, which does not much English. We bought him Final Cut Pro X, so that he can learn a few video do, and he is very enthusiastic about it. We first had a try of FCP X, and then we bought and installed the version full (10.2.3). He is still learning the basics, and today he said he can not find the property field in the upper right corner that he used in the trial version. I don't know what the problem is, so I asked for a screenshot:

    https://drive.Google.com/a/hyvanmielenpelit.fi/file/d/0B26s9BQiLuATRVRob0lnNFY3Q m8/view? USP = share

    Apparently, the Properties window does not appear when he wrote a large '3D text' on a purple background. I'm not sure if it is just using the program wrong, or what is the problem, but in any case, I promised to write a post on a forum of FCP X, so that someone could help it how to get properties appears. He wants to see properties, for example, for the 3D text, when added to the timeline. No idea what is the problem?

    Best regards

    Tommi Gustafsson

    President

    Hyvan mielen pelit ry

    It should be as simple as clicking on this button:

    Command-4 is the keyboard shortcut.

    If this does not work as it should try to reset the preferences of FCP X.

    Hold down Option + command like FCP X starts.

    Al

  • Need help to display the content on multiple pages

    I am a little a dreamweaver newbie and I'm a bit over my head. I am designing a website with the same content on multiple pages. Here is the current site...

    http://home.Comcast.NET/~gascec/cecnh20/index.html

    I am trying to establish the beam and the side bars of links and logo on each page of a point, so I can't change forty pages if I update a link.

    I know there is a way to do this and I thought that he was using a CSS page but I can't understand it, and I'm running out of time.

    Help

    Use a template. When you modify the template, it will update all files that are based on it. Then you download the CAs on the server. Keep your htm in a place, and it's easy.

  • Need help with display of the container / States

    Greetings!

    I try to use States to change the content of a canvas that is the second of two within a browser tab. Buttons trigger functions to change the State and replace the selectedIndex property of the browser the second tab.

    Functions work very well if you first switch to the second tab. If you click the buttons before watching the second tab, it explodes. Here is a link to the app: http://test.arsandbox.com/player.cfm any idea would be appreciated!

    Code:
    <? XML version = "1.0" encoding = "utf-8"? >
    "" < mx:Application xmlns:mx = ' http://www.adobe.com/2006/mxml ' creationComplete = "initApp (); ">
    < mx:Script > <! [CDATA]
    private function initApp (): void {}

    }

    private function displayDirectory (): void {}
    switchTab();
    currentState = "stateDirectory";

    }

    private void displayWriter(selectedWriter:String):void {}
    currentState = "stateWriter";
    switchTab();
    }

    private void displaySong(selectedSong:String):void {}
    currentState = "stateSong";
    switchTab();
    }

    private function switchTab (): void {}
    ContentTabs.selectedIndex = 1;
    }

    []] > < / mx:Script >

    < mx: states >
    < name mx: State = "stateDirectory" >
    < mx:SetProperty target = "{directoryBox}" name = 'visible' value = 'true' / >
    < mx:SetProperty target = "{writerBox}" name = 'visible' value = "false" / >
    < mx:SetProperty target = "{songBox}" name = 'visible' value = "false" / >
    < / mx: State >
    < name mx: State = "stateWriter" >
    < mx:SetProperty target = "{directoryBox}" name = 'visible' value = "false" / >
    < mx:SetProperty target = "{writerBox}" name = 'visible' value = 'true' / >
    < mx:SetProperty target = "{songBox}" name = 'visible' value = "false" / >
    < / mx: State >
    < name mx: State = "stateSong" >
    < mx:SetProperty target = "{directoryBox}" name = 'visible' value = "false" / >
    < mx:SetProperty target = "{writerBox}" name = 'visible' value = "false" / >
    < mx:SetProperty target = "{songBox}" name = 'visible' value = 'true' / >
    < / mx: State >
    < / mx: states >

    < mx:Panel id = "Main" width = "100%" height = "100%" layout = "horizontal" title = "Example" horizontalAlign = "center" verticalAlign = "middle" backgroundColor = "0xB3C0C6" >
    < mx:DividedBox direction = "horizontal" width = "100%" height = "100%" >
    < mx:VBox width = "250" height = "100%" backgroundColor = "#ffffff" >
    < mx:Button label = "Directory" click = "displayDirectory (); "/ >
    < mx:Button label = "Writer" click = "displayWriter('1'); "/ >
    < mx:Button label = "Song" click = "displaySong('1'); "/ >
    < / mx:VBox >
    < mx:TabNavigator id = "ContentTabs" width = "100%" height = "100%" visible = "true" >
    < mx:Canvas label = "Homepage" width = "100%" height = "100 percent" horizontalScrollPolicy = "off" >

    < / mx:Canvas >
    < mx:Canvas label = "Writers" width = "100%" height = "100%" horizontalScrollPolicy = "off" >
    < mx:VBox id = "directoryBox" width = "100%" height = "100%" visible = "true" top = "0" left = "0" >
    < mx:Label text = "Directory box" / >
    < / mx:VBox >
    < mx:VBox id = "writerBox" width = "100%" height = "100%" visible = "false" top = "0" left = "0" >
    < mx:Label text = "Writer Box" / >
    < / mx:VBox >
    < mx:VBox id = "songBox" width = "100%" height = "100%" visible = "false" top = "0" left = "0" >
    < mx:Label text = 'Song box' / >
    < / mx:VBox >
    < / mx:Canvas >
    < / mx:TabNavigator >
    < / mx:DividedBox >
    < / mx:Panel >
    < / mx:Application >

    The items presented in the second tab are not really created or instantiated until they are first read. It is a performance setting built in Flex. You can however get around the setting and force all the contents of the tab to render immediately when the tab navigator is created. To do this, you set the creationPolicy on the TabNavigator and set the value to 'all '. Beware, this is going to hurt performance if the browser tab has a lot of big kids.

  • Need help with dynamic where clause.

    Hello world.  I'm kind of a novice with PL/SQL, so please be patient with me.  I am building a web application using Weblogic Oracle 11 g and Oracle database.

    To make a long story short, I need to generate the complex dynamic WHERE clause.  I don't know what will be the name of the column or the operator of comparison or the value will be until the moment of execution.

    I'm not 100% certain, but I think I need to use dynamic SQL statements.  Unless there is a better way to do it.

    I'm sure that using dynamic SQL opens me up to SQL injection attacks if I use simple string concatenation.  I would like to use bind variable if possible.

    In any case, it seems like trying to build a dynamic where clause does not seem to work as I want it would be...

    bv1 := 'colA = 5 and colB >= 9';
    
    query_str := 'SELECT * FROM view WHERE :bv1';
    
    OPEN CUR FOR query_str USING bv1;
    

    The code above pours out when I try to run it.

    Is there a way to build dynamic where the provisions without the use of concatenation of simple string that leaves me open to attacks by SQL injection?

    Thank you

    Hello.  I have read briefly upward on things, you suggested, but it seems a bit abstract for me since I was a novice.

    Can you give us an explanation or an example of how to use it to accomplish what I need to do?

    Do ypu really plan create a query with a WHERE clause that contains a predicate for all possible columns?

    Variable bind offer performance when the same query is executed several times with different values for bind variables.

    Select * from emp where empno =: v_empno

    After the first run Oracle will always be this query in the library cache. The next running can use the version of the cache even if the bind value is different.

    Select * from emp where empno =: v_empno;

    Select * from emp where ename =: v_ename;

    Select * from emp where sal =: v_sal;

    Each one is a DIFFERENT query. Yes - each of them uses a variable binding, but queries are different.

    So, if your username select EMPNO, an '=', and a value from the first query can be executed. But the next time that the user can select the ENAME column so that 'stored' first request may not be used given that the query does not match.

    The third time your user selects SAL so none of the first two queries can be used in the library cache. The use of bind variables gives performance during the SAME QUERY is used multiple times with DIFFERENT values for the variable binding. Oracle is not to analyze the hard query everything simply because the VALUE is different.

    So bind variables do not help you if most of the queries were completely DIFFERENT sets of predicates. And SYS_CONTEXT will not help either since that simply provides a way to define binds the values of the variables.

    Just for the simple example above, there are at least SIX possible combinations of columns that could choose your user name: empno, ename, sal, empno ename, empno & sal, ename & sal

  • Hi, I recently bought numbers in order to create a commercial newspaper. I'm the pen and paper. I need help to create a formula. A purchase column determines if the entry price column is subtracted from the price of output column or output subtracted

    Hi, I recently bought numbers in order to create a commercial newspaper. I'm the pen and paper. I need help to create a formula. A purchase column; Determines if the entry price column is subtracted from the price of output column (buy) or subtracted from (Sell) entry exit. Thank you for your help

    Hi B',.

    Buying and selling in column B

    Price of entry in column c.

    Exit in column D price

    Formula (and outcome) in column E

    If the column will B always contained 'Buy' or 'Sell', it works. It is default to a calculation of 'sell' if sale or has been specified.

    E2: = IF (B = "Buy", D - C, C - D)

    If you want to delay the calculation until the amounts entered in C and D, use this version:

    E2: = IF (OR (LEN (C) < 1, LEN (D) < 1,"", IF (B = "Buy", D - C, C - D) ")

    If you want to delay the calculation until all three ducks are on a line (B contains buy or sell, C and D contain both data), use this version:

    E2: = IF (OR (LEN (C) < 1, LEN (D) < 1,"", IF (B = "Buy", D - C, IF(B="Sell",C-D,) "" ")))

    Third version used in this table.

    Kind regards

    Barry

  • Display settings S920 missing page, need help

    Hello

    I have a strange problem with my phone S920 and need help.

    First I describe that I made:

    I bought two phone weeks and first install update "by air" (from the settings menu, "System Update"). The current version number is S920_ROW_S117_130815. After that, I set the settings on the phone, insert the SIM and SD card and started to install applications. When I found that photos from my SD card are not visible in the gallery. He won't get the images in the external SD card. I can see all the files on this map in the file browser and open, but the Gallery shows only a few files from SD internal tried to force to re-scan of the media files. Finally, Gallery shows all the photos, but I found some files on my SD card had size = 0 bytes. SD card was probably not properly disassembled during a new analysis. I've wiped the SD card in settings of the phone and coppied all data to the SD card in my PC. And re-scan again. Now all the files was correct and all images is vissible in the gallery. But a few days later, I found that I can't run page display settings. I tried to access to this-> all the settings, fron-> display settings but received a message "Unfortunately stopped Control Panel:

    OK, I noticed that my problem disappeared after I disabled my live wallpaper. Let me tinker some more...

  • When my computor starts, the screen displays administrator profressionelle of windows xp, I don't remember the password I had used and cannot log - need help

    When my computor starts, the screen displays administrator profressionelle of windows xp, I don't remember the password I had used and cannot log - need help

    The solution is here:

Maybe you are looking for

  • Firefox is frozen, but always answers. Help?

    Earlier today, I was on a site called Angel for the school. I stopped being able to click on anything, whether I went through my cookies and cleaned of those that I didn't need. It has not always worked, so I closed the browser and reopened. When you

  • access remote drive

    I just got a new MBP. I keep it down. I always use and keep the old MBP on the floor. The old man, we have an external drive attached to it. But I'm not able to see the external drive of the MBP down. I have a home network and I have file sharing tur

  • How to change the same on 2 different phones to MAC iMovie project

    I am in Germany and my husband is in Spain and we have 2 separate not coupled Mac Book Air laptop. (1) I need iMovie project "edit" an unfinished which is currently on his laptop. (2) how can we share and both have access to the clips unfinished , ev

  • Updated entries on day of a Subvi with while loop

    Hi there guys! It's my first serious experience with LabVIEW, so the question may seem trivial to you, but it's not obvious to me how to solve this problem. So I do an installation that integrates a number of flow regulators, a temperature regulator,

  • 1252 config several VLAN trunking on ethernet not

    Hi all I am new to these forums, but have read some posts on configurations for an AP from 1252 to switch 2950. I have several VLANS andmultiple SSID configuration on my ap.  The switch knows the VLANS on the access point I think that in the config.