Displaying columns based on user parameter

Hello Experts,
My oracle apps version is R12.1.3
and database is 11g
and below is my Question?
How can we display columns in a report based on user parameter.
Suppose my report has 15 columns but some user dont need all this 15 columns, so before getting the output user wants to give parameter for that report and then report will give output for only those columns which user had given in parameter window.
I think i clear my point here. Any help could be very much appreciated.
Thanks,
Atul

What if you have 15 parameters such as
Display onhand (Yes/no)
Display item description (yes /no)
etc.
And then in the report, have a trigger associated with each column (as well as heading) that returns false if the parameter is No.
Hope this helps,
Sandeep Gandhi

Similar Messages

  • Displaying columns based on User Input

    Hi,
    I have a following requirement :
    I have four columns in a report : Performance Indicator ,Target (XTD) , Actual (XTD),Indicator(Traffic Lights)
    Based on the prompt, which contains column named as "Review Frequency" having values as 1. Monthly 2. Quaterly 3. Yearly.
    When User select "Monthly" in pormpt I want to see MTD in Actual and Target column and Indicator depending on these columns.
    When User select "Quaterly" in pormpt I want to see QTD in Actual and Target column and Indicator depending on these columns.
    Can anybody tell me how can we achieve this?
    I think I can achieve this with guided navigation but for that I have to create 3 reports.
    Can anybody have any better idea to create just one report and based on user input I can show/hide columns in a single report?
    This is mainly related to Balanced ScoreCard.
    Thanks in advance
    Regards,
    Vikas

    you have seperate columns for monthly, quarterly, and yearly, right?
    In the prompt, save the "Review Frequency" as a Presentation Variable "abc";
    In the request, you add actual (MTD) column, edit the formula, use something like:
    CASE
    WHEN @{abc}='Monthly' THEN "- SalesFacts"."actual (MTD)"
    WHEN @{abc}='Quarterly' THEN "- SalesFacts"."actual (QTD)"
    ELSE "- SalesFacts"."actual (YTD)"
    END
    then do the same thing for target column.

  • Hide or show a column based on a parameter?

    I have a parameter that has two values linked to 2 fields and included in my SQL query.  I would like to hide or show columns based on the parameter value chosen for other fields.  How do I begin to write the expression? 

    Hi KittyCat101,
    Based on my understanding, you want to display columns dynamically based on a parameter, right?
    In your scenario, you can specify column visibility for all columns based on the expression which contains selected parameter values. So that if we select a value from the drop-down list of the parameter, the column will display based on the column visibility
    expression. For more information, please refer to this article:
    Conditionally Setting Column Visibility in SSRS.
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • Adjusting frame size or Border size based on user parameter

    Hi,
    I'm using Oracle 10g developerr suite and working on Oracle reports. I've a requirement to change the frames in the report dynamically based on user parameter value. The same if possible I want to try with report border also.
    If anyone have came across this kind of requirement could you please advise how can I proceed on this or Suggest first of all whether is it possible to achieve this requirement.
    Anyone please suggest your views.
    Thanks,
    Subu

    There is another way to change the frame automatically
    this can be done by horizontally elasticity and vertical elasticity properties to the frame, You can set them as variable or expand to make them elastic due to the data

  • Click on Account Entity Display Columns Based on Business Units

    i have  Account Entity.when you click on Account Entity List of Records should Displayed.Now i want to show columns based different Business unit user logged in.
    Normally Account will Display Columns like:AccountName,MainPhone,Address1:City,Primary Contact,Email.
    if user of business unit1 is logged in  i want show   accoutname email ,Address1:City only
    if user of business unit2 is logged in i want show    AccountName,Primary Contact,EMail,MainPhone.
    how this can achieved.could anybody help me onthis?
    hsk srinivas

    Hi,
    You can create different personnel views with selected columns and share the respective views only with that particular BU users, So the users who logs in will be able to see only those views.
    Regards, Rekha.J

  • Dynamic column based on user logged in

    Hi,
    I'm implementing Sales analytics and I have a requirement for a custom report.
    The custom report has two columns, Employee and Opportunity revenue.
    To start with, the employee column must display the logged in user. On drill down, it must show all the employees whose positions are child positions to the logged in user's position, and so on.
    Any pointers on how to accomplish this using the w_position_d and w_position_dh tables.?
    Thanks,
    Seetharam
    Edited by: Seetharam on Oct 7, 2009 1:30 PM

    Hi
    You can use :USER variable for showing only the user who logged in.....(by keeping a filter in the report) and for the drill ...if there is no hierarchy for postion in the rpd u need to create one so that it drills as required...
    regards

  • 2 columns dependent on user parameter, others are not - complicated

    Hi
    My select statement (for reporting purposes) contains 8-9 columns from a number of tables.
    My problem is that 2 out of these columns will depend on the following:
    a. user entered parameter
    b. more complex joins needed for just this column - on difefrent tables than used by most of the columns
    ex: of above (excluding other columns that do not depend of user parameter):
    select sum(col1), sum(col2)
    from tab1, tab2, tab3
    where tab1.col1 = tab2.col1
    and tab1.col2 = tab3.col2
    and tab1.col3 = (select col1 from tab4 where tmstmp = (select max(tmstmp) from tab4)) and tab1.col5 = (select col1 from tab6 where col1 = <userparameter>)
    How can I combine the above with my main sql statement that looks like
    select...
    from tab10, tab11,tab12,tab13,tab14........
    where ...........
    order by
    Any ways to resolve the above problem without affecting performance too much ... greatly appreciated.
    Thx!

    that looks like a dba's nightmare. I wouldn't want that running on my server.
    Perhaps you can simplify it using functions.

  • Searching PRODUCT column based upon user's input

    I have table in Oracle with one column PRODUCT. Column PRODUCT have following values -
    Account Management
    Active Directory
    NT Account
    Application Security
    Beehive Conference
    WebSite Account
    HP Laptop
    I am designing application where I need to search in column PRODUCT based upon user's input. Lets say user wants search on 'Laptop Account Broken'.
    I want to search for all rows in PRODUCT column which contains any of words in user's input. So based upon user's input I want output like below.
    Expected Output
    Account Management
    NT Account
    WebSite Account
    HP Laptop
    I need your help to write me SQL for my desired output. please help -

    You can use Regexp_like instead of Instr ;)
    PRAZY@11gR2> exec :user_input:='Laptop Account Broken';
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.00
    PRAZY@11gR2>
    With TableA As (
    select 'Account Management' Product from dual union all
    select 'Active Directory' from dual union all
    select 'NT Account' from dual union all
    select 'Application Security' from dual union all
    select 'Beehive Conference' from dual union all
    select 'WebSite Account' from dual union all
    select 'HP Laptop' from dual
    --End of sample data
    ,Temp as
    (select regexp_substr(:user_input,'[^ ]+',1,level) str from dual
    connect by level <= length(regexp_replace(:user_input,'[^ ]+'))+1)
    select product from tableA,temp where
    regexp_like(product,str)
    PRAZY@11gR2> /
    PRODUCT
    HP Laptop
    Account Management
    NT Account
    WebSite Account
    Elapsed: 00:00:00.00or...
    PRAZY@11gR2> exec :user_input:='Laptop Account Broken';
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.00
    With TableA As (
    select 'Account Management' Product from dual union all
    select 'Active Directory' from dual union all
    select 'NT Account' from dual union all
    select 'Application Security' from dual union all
    select 'Beehive Conference' from dual union all
    select 'WebSite Account' from dual union all
    select 'HP Laptop' from dual
    --End of sample data
    select distinct Product from tableA where
    regexp_like(product,regexp_substr(:user_input,'[^ ]+',1,level))
    connect by level <= length(regexp_replace(:user_input,'[^ ]+'))+1
    PRODUCT
    Account Management
    NT Account
    WebSite Account
    HP Laptop
    Elapsed: 00:00:00.06Cheers!

  • How to create  DynPage based on user parameter and than implement it?

    Hello,
    I've written a Portal Application which contains a Portal Object which is a DynPage.
    I am using NWDS for development and NW 04 Patch 11 as the portal.
    This DynPage process something according to a hardcoded URL. I would like to transform this URL to a parameter which will be received from the user.
    Can someone please explain me the whole process with a simple example that includes:
    1. How to change the code/project to receive parameter from the user?
    2. How to change the iView configuration which is based on this PAR file to send the user parameter.
    3. Where the user should enter it's parameter once all done?
    Thank you.
    Roy

    Hi Roy,
         If i understand your question properly, then you should do the following. This will let you change the value globally for all the users as an iview parameter. If you edit the iview then you will see the property that you have added to portalapp.xml.
    1. Modify your portalapp.xml to accept iview personalization.
    <?xml version="1.0" encoding="utf-8"?>
    <application>
      <application-config>
        <property name="PrivateSharingReference" value="com.sap.portal.htmlb"/>
      </application-config>
      <components>
        <component name="links_tree">
          <component-config>
            <property name="ClassName" value="com.sap.sen.gcp.km.links.links_tree"/>
            <property name="SecurityZone" value="com.sap.sen.gcp.km.links/high_safety"/>
          </component-config>
          <component-profile>
            <b><property name="url" value="/documents"/></b>
          </component-profile>
        </component>
      </components>
      <services/>
    </application>
    3. The following code will get you the value of path.
    IPortalComponentRequest request = (IPortalComponentRequest) this.getRequest();
    IPortalComponentContext myContext = request.getComponentContext();
    IPortalComponentProfile profile = myContext.getProfile();
    <b>String url = profile.getProperty("url");</b>

  • How to hide/display chart based on User input parameter

    hi,
    I have a chart in WEBI report. This report prompts the end user with values {Yes, No}.
    If user selects value 'Yes', Chart should be displayed
    If user selects value 'No', Chart should be hidden.
    Please let me know how to achieve this....
    Thanks,
    Vamsee

    You can use a combination of steps. First, create a filter for the chart block based on your input prompt value. If the user says "No" then the chart should be empty due to the filter. Next, there is a checkbox that tells Web Intelligence whether to show an empty block or not. It is on by default, you can turn it off.
    I detail a solution with similar results on my blog where only one of two charts is displayed using a similar technique. It might help you understand more of the concepts.
    http://www.dagira.com/2007/07/31/alerters-on-charts-part-ii/

  • Dropdown display changes based on user selection in previous dropdown list

    Hi,
    I am really having trouble with this and spent a lot of time researching several blogs, tutorials, youtubes, etc. I just cannot get what I've found to work for me.  I am creating a simple form in LiveCycle Designer 8.0.  I have a table of 14 rows and four columns (row one is the header).  Each cell in the first 3 columns contain a dropdown filling the thirteen rows.  The last row is a user entered numerical field.  My query is related to the second column's drop downlist (months1) containing two items (24, 38) and the third column drop downlist (hours1) containing 5 items (4,000, 6,000, 8,000, 10,000, and 12,000).  In addition, there is a default item in each drop down set at <select>.
    I would like to have the instructions and script needed that will display the correct list of choices to the users in the "hours1" drop down list based on what was selected in the months1 dropdown.
    For example;
    if the user selects "24" in the months1 dropdown, then the hours1 dropdown should display "4,000, 6,000, and 8,000" only.
    if the user selects "36" in the months1 dropdown, then the hours1 dropdown should display "6,000, 8,000, 10,000 and 12,000" only.
    This type of coding would be great to replicate in other forms I have been tasked to do.  Thanks!

    This is helping me out. The only thing I am having trouble with is running the script from a function set up as a variable. I have a variable called "Members" set up with the following function:
    function TeamMembers()
              TimeSheetSF.EmployeeInfoSF.TeamMemDrop.rawValue = "";
              TimeSheetSF.EmployeeInfoSF.TeamMemDrop.clearItems();
              var myTeam = this.boundItem(xfa.event.newText);
              switch (myTeam)
                        case "Team 0":
                                  TimeSheetSF.EmployeeInfoSF.TeamsDrop.addItem("Cheryl");
                                  TimeSheetSF.EmployeeInfoSF.TeamsDrop.addItem("Neil");
                                  break;
                        case "Team 1":
                                  TimeSheetSF.EmployeeInfoSF.TeamsDrop.addItem("Pat");
                                  TimeSheetSF.EmployeeInfoSF.TeamsDrop.addItem("Carl");
                                  TimeSheetSF.EmployeeInfoSF.TeamsDrop.addItem("Conn");
                                  TimeSheetSF.EmployeeInfoSF.TeamsDrop.addItem("Gayle");
                                  TimeSheetSF.EmployeeInfoSF.TeamsDrop.addItem("Gene");
                                  TimeSheetSF.EmployeeInfoSF.TeamsDrop.addItem("John");
                                  TimeSheetSF.EmployeeInfoSF.TeamsDrop.addItem("Mich");
                                  TimeSheetSF.EmployeeInfoSF.TeamsDrop.addItem("Malind");
                                  TimeSheetSF.EmployeeInfoSF.TeamsDrop.addItem("Alan");
                                  TimeSheetSF.EmployeeInfoSF.TeamsDrop.addItem("Maln");
                                  break;
                        case "Team 2":
                                  TimeSheetSF.EmployeeInfoSF.TeamsDrop.addItem("David");
                                  TimeSheetSF.EmployeeInfoSF.TeamsDrop.addItem("Cris");
                                  TimeSheetSF.EmployeeInfoSF.TeamsDrop.addItem("Chad");
                                  TimeSheetSF.EmployeeInfoSF.TeamsDrop.addItem("Linda");
                                  TimeSheetSF.EmployeeInfoSF.TeamsDrop.addItem("Steph");
                                  break;
    When I add the following to the change event of the first field and run it nothing happens. The drop down in the TeamsDrop drop-down field does nothing.
    Members.TeamMembers();
    If I add all of the code to the change event without it being wrapped in a function it works. I can't figure what I am doing wrong.
    I might add that I am creating the first drop down using a function in a variable and it works just fine.

  • Determine the Struture columns Based on User Entry in Bex Report

    Hello Experts,
    I have requirement as below.
    Requirement: Create a Bex report to Display Credits and Sales based on Fiscal Period in Rows and Profit centers in Columns ( PC1, PC2, PC3....PCN where N is Number of Profit centers a user entered in Selection screen).
    I want to take Fiscal Period, Sales and Credits in Rows and Each profit center in Seperate Columns. The Tricky part is, I cannot define a structure with fixed number of Columns since User can Enter any number of Profit Centers in the selection Screen.
    To put it simple terms, I have to Pass the Profit Center Variable Values to the Structure and Determine the Number of Columns in the Structure Dymanically at runtime..
    Can this be done. If so Please let me know the Solution.
    Thank and Regards,
    Prashanth

    Hi Pasha,
    Thanks for responding back.
    Actually there are 2 other Columns that I did not mention above. First Column is to Display values for all Profit Centers and the other Column is to Display the difference of Total - 'Values of all the Profit Centers that the user has selected'. Im not sure how it will work if I put the PC Char outside the Structure.
    Please let me know If you have some more thought.
    Thanks,
    Prashanth

  • Reading dynamic table column based on user selection

    Hi there,
    I am having a problem of reading and manipulating the data stored in a standard SAP table. The following example simulates the table and what i am trying to do:
    Table: Storing sales data for sales person
    SALES_PERSON    REGION   YEAR   MTH_S1  MTH_S2  MTH_S3 MTH_S4...
    Richard  S               NORTH    2007     100          200         300        400
    John K                    SOUTH    2007      50           100         100        20
    Brad P                    NORTH    2007     300          100         100        50
    User have have the following selection option:
    1. Month.
    The program will calculate the sales based on the individual month selected
    Example, if user select Month = 3, then program take only MTH_S3 column value
    So total sales = 300100100=500
    2. Month range
    The program will calculate the sales based on the month range selected
    Example, if user select Month 2 to 4, then program take MTH 2 to MTH_S4 columns value
    So total sales = 400 (for MTH_S2) + 500 (for MTH_S3) + 470 (for MTH_S4) = 1370
    How should i write the logic or code for this requirement?
    Hope someone can help.
    Thanks,
    Pang HK

    Try something like this
    TABLES:
    t247.
    SELECT-OPTIONS:
      s_month FOR t247-mnr NO-EXTENSION.
    DATA:
      BEGIN OF fs_data,
        person(30),
        area(10),
        year(4),
        mon1 TYPE kbetr,
        mon2 TYPE kbetr,
        mon3 TYPE kbetr,
        mon4 TYPE kbetr,
        mon5 TYPE kbetr,
      END OF fs_data,
      t_data LIKE STANDARD TABLE OF fs_data,
      w_no_months TYPE i,
      w_kbetr TYPE kbetr,
      w_total TYPE kbetr.
      LOOP AT t_data INTO fs_data.
        CLEAR w_kbetr.
        DO 5 TIMES VARYING w_kbetr FROM fs_data-mon1
                                                          NEXT fs_data-mon2.
        IF sy-index IN s_month.
          w_total = w_total + w_kbetr.
        ENDIF.
        ENDDO.
      ENDLOOP.
    change the value 5, according to the no.of months in ur internal table

  • To select columns based on user's input

    hi all..
    i am beginner in oracle forms 6i..
    i want to select columns in my query according to user's input?
    how can i do it in my oracle forms 6i?
    i am using a graph in my oracle form and i want to plot graph according to user input?
    in my graph i have to show sum of only those colums which are selected by user at run time?
    how is it possible?please tell me the method in detail?

    Thanks for the Reply sir,
    When you say Write the Code, you are referring to the Package is that correct,unfortunately I am not implementing this via PL/SQL Package.
    you mentioned that I can Implement the Logic in the Data definition file( which is a XML file), how and Where I have print use that IF construct (or) Can you Please Print the Code snippet in the Model XML template that i have pasted in my Post.
    May i know what is this
    ln_req_id := fnd_request.submit_request -- for XML1 For...
    Sorry about my ignorance...

  • How to display graphs based on user selection

    Hi
        I need to acquire data for 8 channels or may be more than that, i know how to acquire data but when i display data on graphs
    how can i make the code in such a way that if i select 4 channles i should get only four displays of graphs,if i select 8 then it should be able to display 8 graphs..

    Hi abhisek,
    current versions of LabVIEW show a "visible" button in the plot palette of a graph...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

Maybe you are looking for

  • Can I backup two iPhones to the same laptop and iTunes account?

    Is it possible to backup and sync an iPhone 4 and an iPhone 3Gs to the same laptop and iTunes account?  My wife and I both have iPhones.  Her laptop just crashed, so we only have one laptop to use as a back up / sync now.

  • Unable to enter serial number for Master Collection CS6 Upgrade

    I recently purchased a Master Collection CS6 upgrade (from 5.5). My CS6 serial number was correctly recognised but it said it couldn't find any software eligible for the upgrade despite Master Collection CS5.5 being installed on my PC (running Window

  • Timed out exception

    Hi all, I have been getting a timed out exception in my EJB layer when performing a query that will return 89,000 results. First, there is no issue with our Oracle database as the results are returned withing seconds when performed from the command l

  • REF Problem

    My Problem is insertion in object tables. Senario is as under: --Creating type create type dept_a as object (deptno number(2), dname varchar2(14), loc varchar2(13) ); --Creating object table create table dept1 of dept_a (deptno primary key, dname not

  • IPad Disabled bad passcode

    I have an iPad 3 with iOS7 (not sure if 7.02 or not) When I first got the notification that iOS7 was available I installed it. I was sick in bed at the time and I barely remember doing the install. I remember it talking about a passcode and I thought