Hide or show ratios in a query depend of the entry variable

HI gurus,
I wish hide or show rates depending if the user choose a entry variable. For example for 2008 dates take three ratios and for 2009 others.
Thanks

OK. WAD problem !
Basically you need to use some HTML expertise to resolve this issue.
Creat a new template with Radio button or a dropdown button which will contain the available values what user can select.
something like as follows:
o 2008
o 2009
Now this can be done using java script.
You will have two different templates. One for 2008 query and second for 2009 query. Run them and get the URL of the reports.
Then in the HTML on the "onSelect" event, put the URL.
So if user selects the 2008, on the next page, you will see 2008 query and if they select 2009, then you will see 2009 query.
- Danny
Edited by: Danny Matt on Jul 10, 2009 3:08 PM

Similar Messages

  • Can we hide column in a query depending upon the variable selected

    Hi all,
    let us say my report have 10 column.
    now i am giving user option to select the values (let us say 'a' or 'b')
    columns must be displayed depending upon the value selected by user ..
    for example if user has selected 'a' then first five columns should be displayed..and if user has selected 'b' last five column should be displayed..(it will be OK even if we can hide the columns depending upon the selection )
    Is it possible in BEx...please let me know

    I did it sometime back. A bit complicated process.
    Create an infoobject, manually enter the values "keyfig1" and "keyfig2".
    Include this infoobject in the filters and restrict it using a "ready for input" variable.
    Now create two formula variables.
    Write a customer exit such that when you select "keyfig1", first formula variable's value should be set to 1 and other one's to 0.
    Then in the query create two calculated key figures, multiply both with the formula variable. Also supress column (all active value == 0).
    Then it will show the key figure which you have selected.
    Pravender

  • Show in Columns values (import) depend of the combination of characteristic

    Hi All
    I have a requirement about Query
    Let me try to explain the details:
    The user want to give  me in excel file (or text file )  the combination of some characteristics that the report need to filter in reports, he say, for example If I specify combination of ZSOURCE-ZCOMPCODE-ZZONA, please give me the result in one column (zresult_1), and in column zresult_2 don't show result, write $0.00.
    Is it possible specify in a query condition that contain characteristics (3, 4 characteristics, etc)?, or something that the query take for show values depend of conditions?
    I know about condition, excepcion, but as I understood this can be only for key figures, I can't say to system if characteristic is equal a, etc.
    The idea is that all the combination that the user tell me only be displayed in one column, and the rest in other, etc.
    I made an example on link, please try to show it,
    link[http://docs.google.com/Doc?docid=0Ad28qFkDq1jiZGd6NGdwdHBfMWdrbjdrNm5w&hl=en]
    I will appreciate your help
    Thanks in advanced
    Al

    Hi leanhe
    Thanks for your answer
    Unfortunately, the combination that the user will give me can change during the time, this mean that He can add more records for combination or may be modify.
    When you menction structure, this mean that I can create a Structure and specify por examplo: ZCOMPCODE = "0120", "0130", ETC? and other characteristic with specific values??
    The other option as I understand you its that I can evaluate in ABAP Rotine this characteristic and save a result in new KF or characteristic, is it correct the idea?,  the problem that I see here it's that if the user add new records in Z Table, this will not be evaluated.
    If you can give me another idea, I will appreciate your help.
    Thanks in advanced.
    Al

  • To hide a button in a column field depending on the condition in ALV

    Hai,
    I have a column in ALV with buttons.I need to make that button Visible or invisible based on a condition.
    i have fiels with value x and blank.
    if the value is x i need to make the button visible and viceversa.
    Cheers,
    Madhu.

    Hi,
    I assume when you say that you have a field with value X or blank that you have a internal table with one of the field as mentioned above and also a context node with
    the same structure of the internal table so that you bind the internal table to the node
    and display the same in ALV.
    If my assumptions are right you must proceed as follows.
    1.Create an internal table with the same structure that u had passed for ALV.Add one more column to that table with type wdui_visibility.
    2.Create one more node with the structure of the internal table created above.
    3.Move the coresssponding data from your old internal table to the new internal table.
    4.For the new column of type wdui_visibility fill values by comparing the field with value X or blank.ie. IF value = X wdui_visibility_column-value = '02' .
                        IF value = blank wdui_visibility_column-value = '01' .
    5.Save the changes in the new internal table.
    6.Bind the new internal table to the new node.
    7.Use the new node to display data in ALV.
    8.Create an attribute "alv_table" of type "CL_SALV_WD_CONFIG_TABLE" in the view.
    9.In the wd_init method add the following codes.
    * create an instance of ALV component
      DATA:
        lr_salv_wd_table_usage TYPE REF TO if_wd_component_usage.
    * get ALV component
      DATA:
        lr_salv_wd_table TYPE REF TO iwci_salv_wd_table.
    * set cell editor for input fields (~make colum Wt editable)
      DATA: lr_column_settings TYPE REF TO if_salv_wd_column_settings,
            lr_column type ref to CL_SALV_WD_COLUMN,
            lr_column_hdr type ref to CL_SALV_WD_COLUMN_HEADER,
            lr_button_1 TYPE REF TO cl_salv_wd_uie_button.
      lr_salv_wd_table_usage = wd_this->wd_cpuse_<Alv component usage name>( ).
      IF lr_salv_wd_table_usage->has_active_component( ) IS INITIAL.
        lr_salv_wd_table_usage->create_component( ).
      ENDIF.
      lr_salv_wd_table = wd_this->wd_cpifc_<Alv component usage name>( ).
      wd_this->alv_table = lr_salv_wd_table->get_model( ).
    lr_column_settings ?= wd_this->alv_table.
    lr_column = lr_column_settings->get_column( '<column name which you want to show
                      as button>' ).
    CREATE OBJECT lr_button_1.
      lr_button_1->set_text( '<some releavnt text>' ).
      lr_button_1->SET_VISIBLE_FIELDNAME('<new column name of type
                         wdui_visibility>').
      lr_column->set_cell_editor( lr_button_1). 
    Hope this helps.
    Thanks,
    G.Jayaprakash

  • How to show two amount (based on value type and entry code)  in same column

    Hi, I have to show two amount in the same column how can i do that...
    For example there is 
    1) premium amount which depends upon the entry code lets say entry code 1000 = Premium amount .
    2) Now there is another premium amount but this amount is stored on basis of value type ...let us say for value type 'prem' = premium amount .
    these amount are in different field can i shown it in same column in BEx query.
    If you can you please help .

    use the selection criteria to restrict the field types in the query designer- use other variables to check the value
    if it doesnt reconcile- you can alternatively use a multi provider for the same thing- that way you will get the same amount in 1 column and you could restrict using the infoprovider column

  • Entry Variable not available in Free char in Query?

    Hi
    I have to remove one of the entry variable in a query, its costing date and is mandatory variable; but it is not visible in Free characteristic to remove it.
    Its one of the factory reports.
    Any idea how to remove it?
    Thanks in advance
    Ishi

    Hi Anup
    The InfoObject Costing date is used in column in one of the KF. But the variable is not used anywhere.
    I tried to create the same report in Query designer, and noticed that after creating the query, system automatically picks the variable as mandatory entry variable
    Regards
    Priti

  • Using jquery to hide/show field based on query results

    I have a form that includes fields for country and state/province.  Initially, the state field is hidden.  When the user selects a country, I use a bind expression in the state field to get the states in the selected country.  I want to display the state field only if the country has states (since some countries don't).  Can someone tell me how to do this?  Here's the relevant stuff:
    <script>
        $(document).ready(function() {
            $('#stateID').hide();
            $('#stateIDLable').hide();
    </script>
    Country:
    <cfselect name="countryID" query="qryCountries" value="countryID" display="country" />
    <div id="stateIDLable">State or Province:</div>
    <cfselect id="stateID" name="stateID" bind="cfc:geography.getStates({countryID})" />
    Thanks.
       Pete

    I presume you have a JavaScript function that handles the results of the cfc binding?
    If you don't you will need to incorperate one.  Then, as well as populating the second select, this function can use logic to show the second set of controls.

  • Doubt in calculating a ratio in a query

    Good afternoon forum,
    I have a question on how to calculate a ratio in a query.
    I have 2 ratios: Actual Cost and Cost Periodificado. And from these two I have to calculate other ratios (WIP).
    So the logic would be the following:
    A) If the actual cost is greater than the cost periodificado, the difference in these two ratios correspond to the ratio WIP (WORK IN PROGRESS).
    B) If the actual cost is <periodificado the cost, the difference in these two ratios correspond to the ratio WIP (PROVISION OF SPENDING)
    To reveal a ratio or the other depending on which of two conditions is met.
    If the condition is fulfilled, will be displayed in the query ratio WORK IN PROGRESS, and if the condition B is displayed on the query ratio
    PROVISION OF SPENDING.
    I do not know if I have explained well. Any suggestions?
    Thank you.

    The logic presented by Rakesh seems to be appropriate .
    u need to follow and utilise the Boolean operators...
    go to query designer
    lets say the ratio u need to display is in columns
    now right clik and say new formulae
    from there select the Formulae operator as Boolean operators
    use follwong formulae
    WORK IN PROGRESS =  (actual cost > cost periodificado) * (actual cost - cost periodificado)
    PROVISION IN SPENDING =  (actual cost < cost periodificado) * ( cost periodificado - actual cost)
    Hit okey
    go to actual costs properties
    put the display option as HIDE
    repeat the same for Cost periodificado
    go to query properties
    use the option SUPRESS ZERO VALUES FOR rows and columns....
    this way u will only display the required result

  • 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

  • Classic Report with Hide and Show Region Template does not show report

    Hello,
    I created a "No Template" region on a page with a Classic Report. When I change it to a "Hide and Show" region template, the report does not show up when I click to Show the region...is there an additional step i'm missing to make the report show up. Its a very simple query.
    Thanks in advance,
    John

    How about posting some relevant information like Apex version, RDBMS version, Theme you are using, etc.?
    Regards,

  • Hide and Show Region Problem

    Hi,
    I have created a report with the following attributes:
    Region Definition User Interface - Hide and Show Region;
    Report template -Standard;
    Sort Columns - all checked.
    Report source - SQL Query (PL/SQL Function Body returning SQL query).
    I open a page with this report, click on (+) and show region but when I try to sort records in the column region hides. The same problem I have with some others report templates.
    Report templates Borderless and Horizontal Border do not have this problem.
    I am using Application Express 2.2.1.00.04.
    Could someone explain what it is?
    Thank you in advance.
    Val

    Report template -Standard
    Use a "Standard - PPR" template instead, that works better with a Show/Hide region template because the entire page is not re-rendered when you click on a column header to sort. Only the report region content is refreshed.

  • Hide and Show

    Hi all,
    In my application i want to hide and show a report. For this i created two buttons in a new region and setting a hidden item value depends on Hide or Show button.But i want to hide the report only not the title so that i can able to place the Hide and Show buttons in the same region.

    Hi,
    There is a "Hide and Show Region" region template that you can use that does this for you.
    However, if you wish to stay with what you have, you could enter the report title into the region that contains the buttons (assuming that this is above your report?) and use the "Region without Title" for the report region itself.
    Andy

  • "Hide and show" for series of changes

    Although my question is a more general one: I actually use a Mac & Applescript.
    When applying a (scripted) series of operations to a graphics object, the sequence of operations is nicely visible. This is somehow funny to observe for a while but I should like to merely see the final result of the sequence of operations.
    A typical sequence consists of "frame shift"," frame crop" and "object centering".
    Is there a way to hide the display of the various actions and--after the sequence of operation has finished--to show the final result?
    Thanks
    Helmut

    I'm not aware of any way to "lock" the redraw process, that would be a nice thing to have!
    I'm not sure if there could be a benefit performance wise or if it would answer a bit your needs, but you could try something like this wich would emulate a bit what you are looking for:
    Make every layer invisible
    do the processing
    Make every layer visible
    That should result in just one big blink. Knowing your object your could also just hide the specific item you are working on and show it back when the process is done.
    The only bad side is if you script crash for any reason (say, you forgot to handle a special case), that could leave the document in a undetermined state. For this, the layer hiding would be a better approach as the user can at least make the layer visible again through the interface (but could not on a page item basis). Depending on the processing that is done, often a revert is the best solution for a crashing script!
    ps: the headless mode look like a deprecated feature (in cs2/cs3?)... but strangely still is in the dictionary.

  • Hide and Show question.

    I have application with button which I would like to show only when status is "Draft".
    I have created created condition for the button where Value Exoression 1 = Expression 2
    Where expression 1 is P9_X_STATUS
    and expression 2 is Draft.
    Button is still hidden.
    Just to let you know that if I place button below status field, my hide and show condition works.
    Any idea?
    Robert

    I have set the default value to "Draft" when page is first opened.
    and I have Condition set for it : Exists (SQL query returns at least one row)
    SELECT 1
    FROM DUAL
    WHERE :P9_X_STATUS = 'Draft' or :P9_X_STATUS = '' or :P9_X_STATUS = null
    I don't understand why this button is shown when I move field below it (button).
    What is the rule for showing and hiding elements on the form?
    Regards
    Robert

  • Hide the characteristics grouping buttons depending on the sales order type

    Hi Gurus,
    I am trying to find a way to hide a characteristics grouping button (CU50) whenever a certain sales order type is issued.
    A condition was created that states that a certain characteristic will be invisible for the user depending on the sales order type chosen for that case. The characteristic is located inside a char. grouping button.
    I would like to know id there is a way to hide the button while the characteristic is hidden as well, just to avoid showing a button which is empty.
    If It is of any help, here is the condition created to turn the char invisible:
    $SELF.INVISIBLE = 'N01017_E'.
    *if not $self.N01017_E specified
    Thanks in advance.
    Kind regards.

    Hi!
    Sounds like you need a line-triggered output (with a message, which displays all lines of the order).
    Do you have problems to create a new output type?
    Regards,
    Christian

Maybe you are looking for

  • What hazards should I watch for with X.3.9?

    Just got my powerbook back with a new hard disk. Apple returned it with X.3.9 pre-installed. I'm hesitant to leave it with x.3.9. Before definitely deciding to zero-format and start over with X.3.8 I was thinking about test driving X.3.9 for a few da

  • How do I stop Dreamweaver from automatically adding P Tags on Enter?

    How can I change Dreamweaver CS5 preferences so that it doesn't automattically add <p> tags when I hit "Enter"? And please don't tell me <p> tags are important and I should just style them differently with CSS.

  • How do you add your transitions

    Ok.. I read the online help.. and I'm getting better.. but still more questions. I want to put a transition between clip 1 and 2. There both 15 seconds.. I add a 5 second tranistion and both go to 10 seconds. I get that part. Now I want to add a diff

  • Setting hostname in Mail !

    Hi, Not sure if this is a Mail or my gateway issue: The issue is that when I send an email, and then look at the header of that message, it says "Received from unknown" Here is a snippet of the header: Received: from unknown (HELO p3presmtp01-06.prod

  • CS4 install hangs

    I am trying to install CS4 on a Macbook Air using a DVD drive on another Mac on the network.  The installer hangs early on checking system resources.