filter the results in the query by the value option button

Hi all

I have a radio "y/n" as well as other areas group and once submitted, you should be able to see a certain column based on what the user selects.
For 'y' should display all records where the value of the column is not null and "n" only the records which the column value is null should be displayed.

I tried with the conditional display for the column, but still get those records where the value is zero in my report for 'y '.
Can someone help me solve this problem?



Kind regards

Cleo

Published by: Cleopatra on January 27, 2011 11:56

You said

.. .the all documents must be able to see where the value of the column is not null and for "n" only records where the value of the column...

Is not a ' where clause ' to filter records, rather than to be a column view state ?

WHERE ( :ITEM_NAME = 'Y' AND  IS NOT NULL )
     OR  ( :ITEM_NAME = 'N' AND  IS NULL )

Tags: Database

Similar Questions

  • Can I get the name of the button of the selected option button

    I have a radio with a few radio buttons group.

    I know the current value of the group, but I want to know the name of button that matches this value programmatically.

    (actually, what I want is the label, I can get easily get with GET_RADIO_BUTTON_PROPERTY, but I need the name of button)

    Is this possible?

    I don't think you can. But it would be a very good thing if we could. I would really like a way to browse all the

    radio buttons in a group of radio given to name a thing.

  • Cropped at the bottom option button

    Anyone know if it is possible to prevent the display cutting at the bottom in HTML5 out of option buttons in the quiz slides (see screen grab).

    radioBtns.jpg

    I tried the obvious things to increase the height of the individual containers and line spacing, but doesn't seem to work.

    Thank you in advance for reading.

    I had the same problem today using the Clean Blue theme quiz. Identical cropped radio buttons. I corrected rescheduling height project of 2px. Seems to have solved my radio buttons, question of culture. Not clear at this stage whether something else now out of whack, but seems good.

  • Response from the user based on the capture option button

    I'm trying to capture the user's response based on the answer Yes or no to a required option button.  If they say yes, they need provide details.  Radio button values N and Y, nothing listed under the item, the captions are turned off. I used the sample LiveCyclePopUp.pdf by George Kaiser as a go - by and changed to my name of the radio button field/text and added the invisible/visible, but no luck.

    Here's what I'm trying, but it doesn't, nothing happens when I click either Yes or no, use javascript.

    Once it is not working properly, if possible, I would like to add to my button "submit" a double check to make sure if this radio button answer is Y and the text box is null, go back and give the answer, but the most important part is to get this working of the part.  Any ideas what I'm missing?  Thank you!

    switch (this.rawValue)
    {
        case "Y":
        Response25AY.presence = "visible";
        Response25AY = xfa.host.response("Please enter "YES" details (date, injury details, corrective action) below", "Q25A YES DETAILS", "Please enter "YES" details (date, injury details, corrective action) here . . . ");
        break; 
        
        case "N":
        Response25AY.presence = "invisible"; 
        break; 
    
    }
    

    Hello

    First of all, the syntax is JavaScript, so when the Response25AY setting, you must include .rawValue:

    Use of quotes in the script will give an error of syntax (around the YES).

    A small note: I would not repeated the question as a default value. It does not really add value.

    So this should be the closer:

    Response25AY.rawValue = xfa.host.response("Please enter YES details (date, injury details, corrective action) below", "Q25A YES DETAILS");
    

    Can you check the relative reference of the radio to the Response25AY object group. It may be that the reference in the script is not full enough and that it is incomplete.

    Also I place this script in the click event of the radio button exclusion group.

    Finally, check the JavaScript Console (control + J) when previewing the form, to find errors.

    Hope that helps,

    Niall

  • Windows XP, the power option button is gray and does not work. The hiberfil.sys file occupies all the available space.

    I can't install the updates, especially antiviruse updates and everything is slow because the hiberfil.sys file is huge.  I can't Devil Hibernate because the power button is gray-no matter how or where I'm trying to open it.  Also at the same time, the sound disappeared and the sound card displays a yellow button.  Difficult to use the computer and dangerous online.   Help!
    Eve

    Hi EveMontgomery,
     
    You can disable hibernation by running the hotfix given below article tool to solve this problem:
     
    To solve the sound problem, follow the three steps solution given in the link below and see if this helps you.
  • How to set up the default value in the ADF option button?

    Hi all

    I use 11.1.6

    I want to put the default value in the radio button (in the UI).

    EX: I have a SelectOneRadio as sex

    In these two values, one is male and secondly a woman.

    I need to see the default value of the male part of the user interface.

    I mean when the loading of the page it should show male is checked in the user interface part?

    Someone help with this task?

    Ok

    So in your BinderSolutionsBean, you have an attribute called;

    String scenType;

    public String getScenType()...

    What you need to do is to initialize scenType to rtb;

    public BinderSolutionBean {}

    String scenType = "rtb";

    .

    .

    .

    }

    Hope this makes sense;

  • How to get the caption of the selected option button?

    I am building a dynamic form using javascript in Adobe livecycle designer, X.  I have a group of radio buttons, optGroup, with several individual radio buttons. Later in the form, I want to refer to selection that made the user with the caption of the button selected in the option group.  I tried to use resolveNode (optGroup.selectedMember () .name + ".") caption.value. #text') .value, but this only works if the first button in the group is selected.  Otherwise, selectedMember seems to be null and the code does not work.  Any ideas?

    Thanks for your help!

    BigO

    Hello

    You can do this. I just thought it would be easier to clear values "says.

    On the basis that you have a unique name for the exclusion of radio button group, so this should work:

    this.rawValue = RadioButtonList.selectedMember().caption.value.text.value;
    

    Hope that helps,

    Niall

  • Why the region option buttons cannot perform action database?

    Looking at my book Easy Oracle HTML DB , page 211, the author submits a database action attribute is only available for a button in a position in the region.

    Is it possible to "force" a button created among the elements of the region to update the database (INSERT, UPDATE)?

    Thank you
    Maggie

    You could do a procedure customized to fire when a button is clicked. Within your procedure, you can update/delete/insert as desired.

  • Filter a column with the value of another

    Hello. Hope someone can help with this... On my search page, I want to use the value of the first list/drop-down menu to filter the values of the second list/menu. I use PHP and DW 8.0.2.

    Example: The first column has each of the 50 States. second column has 3 000 counties. If a user selects New Jersey, I want to just 21 NJ counties to appear as options in the second menu downwards rather than 3 000 counties.

    First Recordset works very well for the States. But in my second recordset, I say 'select distinct County of the said County WHERE AS var1'... and var1 is $recordset1 [County]. But the 2 column is empty. How can I actively pass the value of the first column in the second while the user is still on the same page?

    Sandman

    >>
    Assuming that your table has a field named "State":
    «select County of States WHERE state = "var1""
    >>

    You can use this solution when the first menu page 1 and the second menu on page 2 (IE passing the value of a query on page 2), but as assumingly, you need to have this functionality within a single page, basic need based on a javascript solution 'drop-down menus of dynamic load' to load the menu2 - options "in situs.

    There is an extension for Dreamweaver stand alone for this on the site of Tecnorama , that also wants to work without the relationships between the tables, in other words, with the data in a table, which matches your scenario.

  • How to filter the view LOV object?

    Hello

    Can someone help me please how to filter the LOV VO according to the selected result of LOV another?

    Thank you.

    Jon

    In the second LOV have additional lov map.

    In the property inspector
    Set the property ITEM of criteria with the first value LOV
    LOV region article - select the attribute of second LOV that specify the link between your two LOV.
    Required - True property

    You have defined the question of the criteria for the second LOV with the value of the first LOV, second lov runtime will filter the values based on the values first of lov.

    Hope this will help you. For more information you can always see the development guide.

    Arvind

  • How to use an option button in the report of the IR to redirect itself to view another report

    IHH team, I have a requirement where I have an IR report option button. By clicking this radio button, another report appears under the main report with few other details of the selected item. The idea was to have a zoom of report as seen in the Group of MS Excel.  However, I am stuck because I don't want the user to press the "submit" button each time after selection of a radio button. I want the result to Report2 to change on the selection radio button in report 1.

    Please notify.

    Kind regards

    Samar

    for example

    Report1 details

    RB col_id text1 text2 Text3

    1 . abc erd 45

    2 ghj dfgrt 67

    Suppose the user selects the first option button, the page displays another report with details below the main report

    Report1 details

    col1_id text1 text2 Text3

    RB1 1 abc erd 45

    2 RB2 ghj dfgrt 67

    Report2 details

    col1_id col2_id text1 text2 Text3

    1 11 ihj pkpk 78

    1 23 ljl kpk 45

    user6255521 wrote:

    Please update your forum profile with a real handle instead of 'user6255521': Video tutorial how to change username available

    When asking a question, always include the information referred to in these guidelines: How to get the answers from the forum

    I was able to achieve using the linl. I created a link on the col_id and it redirected to itself after you set the value of col2_id. I also changed the style of the button link and so col1_id looks like a button.

    However, I was interested to know if we can achieve this with a radio button and use the update form the Report2.

    You mean like this? It is very simple to implement using dynamic measurements.

    1. Add a column of radio group to the main report:

    select
        apex_item.radiogroup(1, d.department_id) rbg
      , d.*
    from
        oehr_departments d
    

    APEX 5.0, apply a static ID "rbg" to the column of radio group.

    2. create a hidden page unprotected element to maintain the value of the selected radio button to use as a filter in the detailed report. In the example, it is P31_DEPARTMENT_ID.

    3 refer to the element of filter in the WHERE clause of the report detail:

    select
        *
    from
        oehr_employees
    where
        department_id = :p31_department_id
    

    Set the Items property of the Page to send in the definition of report P31_DEPARTMENT_IDretail area.

    4. create a dynamic action of change on the Group of radio buttons:

    Event: Change

    Selection type: jQuery Selector

    jQuery Selector:td[headers="rbg"] input[type="radio"]

    Real Actions

    Seq: 10

    Action: Set value

    Type of value: Expression of JavaScript

    JavaScript expression:$(this.triggeringElement).val()

    Selection type: Article (s)

    Point: P31_DEPARTMENT_ID

    Seq: 20

    Action: Discount

    Selection type: Region

    Region:

    The best way to get help with something like that is for you to reproduce the problem with an example on apex.oracle.com. Set up as much as you can before posting here and when you post the question, share identification information of developer comments for the workspace so that we can see the example and work the solution directly.

  • Dynamic MessageChoice based on the value of each line

    Hi all

    I'm trying to implement a requirment, don't know how I can acchive this in the OPS.
    I appriciate any person that makes me in the right direction


    How to have a dynamic messageChoice in OAFTable.

    My scenario is like this,


    OAFTable [UI Table]
    ========================================
    | Name | xxx movies | MessageChoice values.
    ========================================
    | 12-A | xxx movies | Apple, Airport |
    | 15-B | xxx movies | Ball, box |
    | 20 S | xxx movies | Singapore |
    =======================================|


    VALUE_TABLE [table DB]
    =======================
    | Letter | Value |
    =======================
    | A     | Apple |
    | S     | Singapore |
    | A     | Airport |
    | B | Ball |
    | B | Box |
    =======================

    (There is a messageChoice column in my third OAFTable represented above column).
    the values for this messageChoice must be filtered on the 'Name' column in each snippet of it IE row letter and use this value to filter the values of VALUE_TABLE.

    Where clause for each message lines choice should change dynamically as

    Rank 1: select the value in VALUE_TABLE where letter = "A".
    Rank 2: select the value in VALUE_TABLE where letter = 'B '.
    Rank 3: select the value from VALUE_TABLE where letter = 'C '.

    Since the messageChoice EVENT is generated only after the exchange of value, I cann which allows to change the place where the clause of the VO.

    Is there a feature in OAF WHERE clause of that VO modifyes for each line?


    What will be the ideal approach to acchive. Surely someone would have solved this kind of scenario...

    Thanks for your suggestions in advance :)

    Srinath

    Hello

    Yes there is an available standard approach

    Consider a container, such as a table that has two columns. A column is a Department, while the
    another column shows all employees of this Ministry in a poplist. The view object used for the poplist
    (The view definition list pick) needs the number of Department (the "Deptno" of the container field) destined for bind
    variable: 1. This can be done with the following sample code in the processRequest of the controller method:
    Table OATableBean =...
    OAMessageChoiceBean = empPoplist
    (OAMessageChoiceBean) table.findChildRecursive ("EmpName");
    empPoplist.setListVOBoundContainerColumn (0, / * bind index * /)
    table, "Deptno");
    Copy the following lie the first index of (0th) bind to the view of poplist object used to the displayed value by the
    column named Deptno in the table.
    The setListVOBoundContainerColumn method can be called multiple times if the query used for the poplist
    several bind variables. Note that this approach actually simulates a BC4J link, except that it relies on
    the table columns of the user interface for bind rather than object attribute values values view directly.

    Thank you
    Gerard

  • Structures of the event, radio buttons and the property disable node

    Hello

    I have a very simple VI intended to simulate what I'm trying to accomplish in my program... in fact, when the 3rd option button is selected, I want the text box is disabled and grayed out.  Instead, the case of the event seems to perform the action on the * next * the iteration of the loop.  Can someone tell what I am doing wrong?

    Thank you!

    The terminal of the radio control is inside the case of the discipline concerned.

    (.. .or you can read the new value from the data event [NewVal] node instead if you need the Terminal also).

    Currently, it is read immediately and the value placed in the tunnel. When the event is triggered, the expired value is read from the tunnel.

    Once you pass the terminal in case of the event, it reads only after that the value has changed, and you get the current value.

    Also:

    • You also need an event for the button stop, otherwise the VI cannot be stopped easily.

    • You have the same property node in any of the structure of the case. Put it down after the structure of the case and one is enough.

    • Things that are different are inside the structure of the case.

    • You can combine the cases that are the same (not the default)

    • You can remove the case of timeout.

  • Cannot find the display in Code view Options button

    Hello

    To set the appearance of value encoding preferences in Dreamweaver code

    He said ""click the view Options button in the toolbar at the top of the Code view or the Code Inspector. " "

    However, I can't find it. If I click on Live, then I find it. But do not include the options Word Wrap, line numbers

    I'm wrong with something?

    The instructions are correct for the Code Inspector, but not for the document Code discovered.

    You can find options for Code view under view > Code view options.

    Some of these options are also available on the Code view toolbar, which can be activated from view > toolbars > coding.

  • Can't seem to load correct calculation on the option button

    Hi all

    Its a long time since I cut all code and need help with this question that I hope will help me other fields I'm calculating.

    So I use Acrobat X Pro, I'm new on so I have two radio buttons with the same name auth, but the choice of Yes and no; the Yes option button is the default.

    I have a read only area I want to maintain the value based on simple logic, if yes is clicked, then set a value of 350 set the value to 0

    I walked into the Javascript code within the custom calculation script

    var Field1 = this.getField("auth").value;

    If (field1 = "Yes") {event.value = "350";

    } else event.value = "0";

    When I test this the calculated field is STILL 350 regardless of the selected option button...

    someone tell me why? or especially how to fix it.

    Thank you

    George

    You have made the classic mistake of using the assignment operator 'is', where

    You should use the 'is' operator comparison in the if statement.

Maybe you are looking for

  • How can I remove my hotspot hackers

    There are some people who connected to n hotspot from my iphone whenever I turn on these devices to connect to it automatically. What can I do to remove these unexpected guests. I changed my password twice and the current password is a strong

  • Error WindowsUpdate_80070424 on vista 64-bit

    Hey,. I have problems all many from the WindowsUpdate_80070424 error.  I'm running vista 64-bit home premium SP1.  I can't upgrade to SP2, update windows install, install visual c ++ 2008, install video games because of this error. Things, I've tried

  • How to remove "PCPerformer553594.exe" from the computer?

    Original title: unwanted program. How can I find PCPerformer553594.exe? I get a popup every time I hardboot,. I tried kb331796 and don't see it here. Upon my return to a normal startup the onus. I don't know where it came from, and I don't want to in

  • Error code 80246008. What does that mean?

    Hi, try to install updates, but it keeps failing and comes up with error code 80246008. What does that mean? and how I can I get rid of him? Thank you Ollie

  • HOW WE CONFIGURE WIRELESS PRINTING BETWEEN MY MACBOOK PRO 2012 AND MY PRINTER HP DESKJET 6988?

    I have a MacBook Pro with Mac OS 10 and a hp Deskjet 6988 printer range. I can print wireless from my MacBook using this printer?  How do I put in place?  I'm new to Mac. If this is not possible, can I set up a HP 6310 or by a hp6540 printer? Thank y