Filter results in query depending on value radio button

Hi all,
I have a "y/n" radio button group along with other fields and when submitted, you should be able to see a certain column depending on what the user chooses.
For "y" all records should be displayed, where the column value is not null and for "n" only the records where the column value is null should be displayed.
I've tried with conditional display for the column, but still get the records where the value is null in my report for "y".
Can anyone help me fix this?
kind regards,
Cleo
Edited by: Cleopatra on Jan 27, 2011 11:56 AM

What you want is
AND {CONDTION}
AND {CONDTION}
AND {COLUMN FILTER CONDITION}so it should be
WHERE
AND {CONDITION 1}
AND {CONDITION 2}
AND  (
          ( :ITEM_NAME = 'Y' AND <COLUMN NAME> IS NOT NULL )
          OR ( :ITEM_NAME = 'N' AND <COLUMN NAME> IS NULL )
       )Hope you have understood the reason why the column filter have been made together into an additional clause , rather than adding them them directly.
If you are confused about the logical structure of the query, try forming them into a sentence which you would be explaining the requirement.

Similar Messages

  • Is it possible to make a fillable form have variable fields - so if you select a radio button it triggers a different form field to be seen depending on which radio button is selected??

    Is it possible to make a fillable form have variable fields - so if you select a radio button it triggers a different form field to be seen depending on which radio button is selected??

    Yes, one needs to use some custom JavaScript code to control the other fields' properties.
    Disabling (graying-out) Form Fields by Thom Parker

  • Change a STATE depending in a radio button

    HI everyone.
    I need to do this little thing, but is have been a real pain
    in the neck.
    I have a radio buttons and depending in wich selection is
    pressed, the state the user will go.
    Example..
    Select your favourite Tv Show:
    ( ) 4400
    (o) Lost
    ( ) Prison Break
    Submit
    When the user presses submit, he will be sent to LOST state.
    I mean, currentState='lost'
    Or send him to state "prison" if he choose Prison Break.
    Like currentState='userselection' or something....
    Please someone help doing this!! Please!!
    Thanks!

    well it would be the same thing i posted just triggered by a
    button or something like that. You can call
    radiogroup1.selectedValue.toString(); at any time from any function
    and if there is a selection you will get the string from the radio
    button.
    <mx:Script>
    <![CDATA[
    private function changeStateRadio():void {
    currentState= radiogroup1.selectedValue.toString();
    ]]>
    </mx:Script>
    <mx:RadioButtonGroup id="radiogroup1"/>
    <mx:RadioButton x="211.0" y="479.0" label="LOST"
    groupName="radiogroup1" click="{changeStateRadio()}"/>
    <mx:RadioButton x="211.0" y="503.0" label="Prison Rape"
    groupName="radiogroup1"/>
    <mx:Button click="{changeStateRadio()}"
    label="Vote"/>

  • Query :Chek box and radio buttons in smartforms

    Hi ,
    When we go to web properties in text . Thierwe find the entries the field name and dropp down down list with text , radiobutton , chek box Etc . .  I have tried to use it but it is not displaying any such radio button or chek box in smartform output .
    If somebody has used it before please tell me  how to use those things .
    Regards

    Hi,
    Ya so please go web properties of text field here u can find check box,
    radio button , hidden fields all the stuff u can use that one.
    Rewards points if it is useful.

  • Query SQ02 : restriction lines result of query

    Hi everybody,
        I have prb with a query. I have created a query and infoset. I have join tables .. and I would like to add condition of clause 'where' to restrict the result of query depending on the dates. Those dates are not given in the selection screen but depends on the results of a one table included in infoset.
    somebody has idea ?
    Thanks.
    Maya

    Hi,
    In the infoset you can write code to restrict the lines..
    GO to the infoset in change mode..
    click the extras button..
    click the code tab..
    choose the code section.."Records processing"
    In that you will have the table structures available...use the check statement to filter the data..
    Ex..
    CHECK VBAK-ERDAT = SY-DATUM.
    Thanks
    Naren

  • File name should change by selecting the radio buttons

    Hi all,
    PARAMETERs: p_file LIKE rlgrap-filename.
    PARAMETERS: p_app RADIOBUTTON GROUP rg DEFAULT 'X',
                             p_pre RADIOBUTTON GROUP rg.
    this is to download the ITAB data to presentation and application servers depending upon the radio button selected.
    if i select p_pre , then default download path is : 'C:/ download.txt'.
    if i select P_app , default download path is : '\usr\sap\EBG\SYS\profile\DOWN.TXT'.
    how the file name should change by selecting the radio buttons ?
    Thanks
    KR

    Hi,
    DATA: c_x VALUE 'X'.
    selection-screen begin of block input with frame title text-000.
    parameters :desktop     radiobutton group rg_f user-command rg_f,
                       in_file type ibipparms-path modif id ps DEFAULT 'C:/ download.txt',
                menu     radiobutton group rg_f ,
                       sys_file type ibipparms-path modif id as default  '\usr\sap\EBG\SYS\profile\DOWN.TXT' .
    selection-screen end of block input.
    at selection-screen output.
      if desktop is initial and menu is initial.
        desktop = c_x.
      endif.
      perform f_toggle_finputs.
    form f_toggle_finputs.
    loop at screen.
        if screen-group1 = 'PS'.
          if desktop = c_x.
            screen-input    = 1.
    *         sys_file = c_server_path.
          else.
            screen-input    = 0.
          endif.
        endif.
        if screen-group1 = 'AS'.
          if menu = c_x.
            screen-input    = 1.
    *        clear: in_file.
          else.
            screen-input    = 0.
          endif.
        endif.
        modify screen.
      endloop.
    endform. "f_toggle_finputs
    Hope this helps u.
    Thanks.

  • Hide/Show Radio Buttons

    Hi friends,
    I have a radio button page item which is showing two values like
    <li>4 Stars
    <li>5 Stars
    I need to show these two radio buttons according to the employee number that is firing on the field Employee Number.
    Suppose, for an example i need to show 4 Stars if he is an ordinary employee. If he is an CEO means then it has to show both 4 Stars and 5 Stars button.
    How i can achieve it friends..
    For that i tried by using DA, but it failed. I have the query to restrict the radio buttons according to the employee number which is working fine in sql developer at the back end. But im going wrong in implementing it in APEX via DA, as it is not working over there.. This is the query
    SELECT '5/Stars' d, '5/Stars' r
    FROM DUAL
    WHERE (:P85_EMP_NUMBER) = (SELECT employee_number
    FROM apps.xxhy_ams_details_v
    WHERE UPPER (job_name) = 'CEO')
    UNION
    SELECT '4/Stars' d, '4/Stars' r
    FROM DUAL
    WHERE (:P85_EMP_NUMBER) IN
    (SELECT employee_number
    FROM apps.xxhy_ams_details_v
    WHERE grade_name BETWEEN 1 AND 4
    OR (:P85_EMP_NUMBER) =
    (SELECT employee_number
    FROM apps.xxhy_ams_details_v
    WHERE UPPER (job_name) = 'CEO'))
    UNION
    SELECT '4/Stars' d, '4/Stars' r FROM DUALBrgds,
    Mini

    Hello
    Are you using a Select List or other LOV item for employee selection?
    If you are you can use cascading lov under the radio button
    - you add <emplyee select list item> to Cascading LOV Parent Item(s) and to Page Items to Submit
    - and then on the List Value Definition you use something like:
    SELECT '5/Stars' d, '5/Stars' r
    FROM DUAL
    WHERE :P2_EMPLOYEE = (SELECT EMPNO FROM EMP WHERE JOB LIKE 'PRESIDENT') --:P2_EMPLOYEE is select list
    UNION
    SELECT '4/Stars' d, '4/Stars' r FROM DUAL
    If you are receiving employee number on your page you can just use List Value Definition of radio button like:
    SELECT '5/Stars' d, '5/Stars' r
    FROM DUAL
    WHERE :P2_EMPLOYEE2 = (SELECT EMPNO FROM EMP WHERE JOB LIKE 'PRESIDENT') --:P2_EMPLOYEE is text field or hidden
    UNION
    SELECT '4/Stars' d, '4/Stars' r FROM DUAL

  • Radio Buttons, Coldfusion and HTML

    Hello.
    I want to use 4 radio buttons. Each one has a different $
    amount. The user chooses a radio button ($ amount) and then clicks
    on the PayPal donation button which sends the user to the PayPal
    payment page with the correct $ amount chosen.
    The HTML code for the PayPal link allows me to use the
    following code:
    <input type="hidden" name="amount"
    value="<cfoutput>#MoneyAmount#</cfoutput>">
    I just have to figure out how to get the MoneyAmount chosen
    by the user depending on which radio button is chosen.
    I do not want to put the radio button into another form
    because as I understand it the user would have to click another
    submit button first via cfform. That defeats the purpose. Any way
    to find out which button is chosen with out using the submit
    button?
    If you are confused at what I am talking about, check out
    this website that has what I want:
    http://www.licadho.org/donation.php
    They do it with Javascript but I am sure I can do it in
    ColdFusion.
    Any ideas.
    I appreciate the help.
    Pedro

    They appear to do it with a simple form, not javascript.
    Plus, they have radio buttons on the form. What exactly are you
    having difficutly with?

  • Moving a field to the left side in a region closer to a radio button...

    I'm frustrated not being able to place a field on a form closer to a radio group. I have a radio group of 3 options in which I would like to place a field to the right side of the radio button so that the user can type in an ID and then search a table by way of a search button on the screen. I can't place the field any closer to the radio button on the left side of the page...as it appears to the right side.
    A drag and drop format would be nice.....
    Is there a way to place the field in the exact location of where I want it?
    2nd problem is that depending on which radio button the user selects, can I change cursor focus to a particular field on the screen?

    It's been said (although originally by whom is unclear) that +talking about music is like dancing about architecture+. Speaking for myself at least, I think your post proves there's something similar to be said regarding writing about UI and layout problems&mdash;+I have absolutely no idea what you mean+. Please do us all a favour and create an example showing this problem on apex.oracle.com, and/or post some screenshots showing the current and required layouts somewhere like tinypic.com
    On Drag and Drop, see:
    http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/bldapp.htm#sthref906

  • Using radio buttons to populate a text field

    Hi
    This is my first time creating Adobe Forms and my first time using JavaScript as well. One of the questions on my form asks about Ethnicity and I have about 15 choices for which I created radio buttons. I want the user's choice to populate a textfield, but am not sure how to write the code that will do this. Any help would be greatly appreciated. Thanks

    If you set the export value (aka Button Value, Radio Button Choice) of each radio button to the text you want to show up in the text box, the custom calculate script for the text box, which you should set to read-only, can be simply:
    (function () {
        // Get the value of the radio button group, as a string
        var s = getField("Ethnicity").valueAsString;
        // Set this field's value to the text associated with the selected radio button
        event.value = s === "Off" ? "" : s;
    If none of the radio buttons is selected, the text field will be blank. Change "Ethnicity" above to the actial name of the radio button group.

  • Processing report in background with a radio button option

    Hi all,
    We have a requirement where we need to run report output as background job,
    where we need to give radio button option in selection screen for background run and manual run .
    Thanks
    Karthik

    Hi,
    so depending upon the radio button selected you can run the job in background or manually.
    if rb_bkgd = 'X'.
        <write a perform to make it run in background please refer this link for background job>
        <a class="jive_macro jive_macro_message" href="" __jive_macro_name="message" modifiedtitle="true" __default_attr="3050646"></a>
    elseif rb_frgd = 'X'.
         <write a perfrom which will make the report run in normal way>
    endif.
    Regards,
    Neha

  • Radio buttons in dynpro with mandatory field

    I have two radio buttons in a group and a field that should be mandatory when one (the first one) is checked.
    So when the other is checked it should not be mandatory.
    The problem is that when I check the second the field is mandatory until I have put something in the field. In that moment, the field is not mandatory. What I want is to make the field not mandatory when the second is checked so the status of the field was changed to not required in that moment not when I put something in it.
    Thank you

    Hi Maria,
    I think you have two possibility.
    One is to check the "mandatory field" by programming and not with the attribute in the dynpro.
    The second way is making a loop at screen in the PBO and depend on with radio button is checked modify the required field of screen table for the field of your interest .
    I hope this can help you.
    bye
    enzo

  • Dynamic Radio Buttons that offer dynamic output

    I am wondering if coldfusion has the abilty to perform the task
    I am looking for. I want to list radio buttons
    as options, and depending on which radio button the user selects,
    they are then offered a series of other radio buttons.
    Is this something coldfusion can handle, or would a different language
    be better suited for this?

    You are looking for a javascript solution.  CF or any backend can handle
    dealing with the data, sending back and forth data about what radio button
    list to show, etc easily.  But if you want no browser refreshes, then you
    need to look into javascript to display the list, use ajax to poll for
    refined radio button options, then display.  I recommend looking into jquery
    and CF.  CF can get the options from the database for you and serve to
    jquery which is run int he browser which will dictate how to display it
    nicely.
    http://api.jquery.com/radio-selector/
    <http://api.jquery.com/radio-selector/

  • Transaction with 3 Radio Buttons

    Hi All,
    In a transaction i have a three radio buttons in which
    When the user selects first radio button, the field under first radio button should be input-enabled. Else, they should be input disabled. User should enter only one of the two fields.
    When the user selects second radio button, the field should be input-enabled. Else, it should be input disabled.
    When the user selects Third radio button, the field should be input-enabled. Else, it should be input disabled.
    There should be a pushbutton on the screen,  The text on the pushbutton should vary depending on the radio button checked.
    could any one please help me
    Regards,
    sathish

    Hi,
    Use the below code.
    selection-screen: begin of block blk1 with frame.
    selection-screen: begin of line.
    parameters: p_r1 radiobutton group rad1 default 'X' user-command rusr.
    selection-screen position 10.
    parameters: p_text1(20).
    selection-screen: end of line.
    selection-screen: begin of line.
    parameters: p_r2 radiobutton group rad1.
    selection-screen position 10.
    parameters: p_text2(20).
    selection-screen: end of line.
    selection-screen: begin of line.
    parameters: p_r3 radiobutton group rad1.
    selection-screen position 10.
    parameters: p_text3(20).
    selection-screen: end of line.
    selection-screen: end of block blk1.
    DATA flag(1) TYPE c.
    SELECTION-SCREEN:BEGIN OF LINE.
    SELECTION-SCREEN:PUSHBUTTON 2(10) v_text USER-COMMAND cli1.
    SELECTION-SCREEN:END OF LINE.
    at selection-screen output.
      v_TEXT = 'Rad1'.
    if p_r1 = 'X'.
    v_TEXT = 'Rad1'.
    clear: p_text2, p_text3.
    loop at screen.
      if screen-name = 'P_R1' or
         screen-name = 'P_R2' or
         screen-name = 'P_R3'.
      continue.
      endif.
      if screen-name = 'P_TEXT2' or
         screen-name = 'P_TEXT3'.
         screen-input = 0.
      endif.
      modify screen.
    endloop.
    endif.
    if p_r2 = 'X'.
    v_TEXT = 'Rad2'.
    clear: p_text1, p_text3.
    loop at screen.
      if screen-name = 'P_R1' or
         screen-name = 'P_R2' or
         screen-name = 'P_R3'.
      continue.
      endif.
      if screen-name = 'P_TEXT1' or
         screen-name = 'P_TEXT3'.
         screen-input = 0.
      endif.
      modify screen.
    endloop.
    endif.
    if p_r3 = 'X'.
    v_TEXT = 'Rad3'.
    clear: p_text1, p_text2.
    loop at screen.
      if screen-name = 'P_R1' or
         screen-name = 'P_R2' or
         screen-name = 'P_R3'.
      continue.
      endif.
      if screen-name = 'P_TEXT1' or
         screen-name = 'P_TEXT2'.
         screen-input = 0.
      endif.
      modify screen.
    endloop.
    endif.
    if p_r1 = 'X'.
      clear: p_r2, p_r3.
      loop at screen.
      if screen-name = 'P_TEXT2' or
         screen-name = 'P_TEXT3'.
         screen-input = 0.
      elseif screen-name = 'P_TEXT1'.
         screen-input = 1.
      endif.
      modify screen.
      endloop.
    elseif p_r2 = 'X'.
    clear: p_r1, p_r3.
      loop at screen.
      if screen-name = 'P_TEXT1' or
         screen-name = 'P_TEXT3'.
         screen-input = 0.
      elseif screen-name = 'P_TEXT2'.
         screen-input = 1.
      endif.
      modify screen.
      endloop.
    elseif p_r3 = 'X'.
      clear: p_r1, p_r2.
      loop at screen.
      if screen-name = 'P_TEXT1' or
         screen-name = 'p_TEXT2'.
         screen-input = 0.
      elseif screen-name = 'P_TEXT3'.
      screen-input = 1.
      endif.
      modify screen.
      endloop.
    endif.

  • Result Source Query Builder Filter for Content Sources

    I have several content sources that I want to add to a result source as a property filter. It works fine if I just have one but when I add multiple content sources it does not give me all the results. Is there a way to add more than one content source
    filter to one result source.

    Hi SpGurlz,
    How did you set the filter with content source in the query builder for the result source?
    I tested with more than one content source as filter in the query builder for the result source in my environment, and all the corresponding results were displayed fine.
    The query text for the result source was set like this: {searchTerms} contentsource:file1 contentsource:file2.
    Remember to add a space between the “{searchTerms}”, “contentsource:file1” and “contentsource:file2”.
    You can provide the query text of your result source here and I will help to check the logic.
    Best regards,
    Victoria
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

Maybe you are looking for

  • Add a fade-to-black transition in the slide show

    This quickly fades an image to black before quickly fading-in the next image. This avoids double-image effects during image transitions, and still gives a nice smooth fading effect. Double images are particularly distracting when two contiguous image

  • Is it possible to compare vendor quotations with leadtime & payment terms?

    Good day, I am wondering if the system can be configured to compare vendor quotations on by criteria other than pricing?  My client would want to compare vendor quotations received using lead time, terms of payment as well as pricing.  Any ideas?  If

  • Want help in sockets

    welll my problem is very simple one .... i want to send request to server from my client side gui ..... .... its like that i have one class server which uses socket server.......to connect by port........ server.class ..... i have one class client wh

  • Profile_get

    Hi experts, In 4.6c im using 'PROFILE_GET' function module, in ECC 6.0 this function module to be not use, wich function module have to use instead of this, thanks in advance, radhakrishna

  • Adobe not allowing me to see pay roll on portal

    i have a windows 8 and adobe flashplayer is enabled yet i can not see my pay roll in portal- webster told me there is something blocking the adobe flashplayer- what do i do??? vicki rossler