With the help of the checkbox or radio button

Dear,
How to use the checkbox for option button? I would like to have 4 checkbox option buttons, for cases 'everything' and 3 other cases.
And by clicking on a link, I'll build a statement according to the selected linh slect and the selected area.

Could someone help me?

Thank you.
Celio

Hello

As long as the tables/columns can be the same, a report should be ok.

On my page, option buttons are defined as a LOV using:

STATIC2:All;ALL,Department 10;D,Names beginning with A;A,Salary > 2000;S

So 'All' return 'ALL', ' Department 10 "returns"D", 'Names...' returns 'A' and"Salary..." ' returns "S".

My report SQL statement is:

SELECT EMPNO, ENAME, DEPTNO, NVL(SAL,0) SAL, NVL(COMM,0) COMM
FROM EMP
WHERE
(:P176_REPORT = 'ALL')
OR
(:P176_REPORT = 'D' AND DEPTNO = 10)
OR
(:P176_REPORT = 'A' AND UPPER(ENAME) LIKE 'A%')
OR
(:P176_REPORT = 'S' AND NVL(SAL,0) > 2000)

So if the user selects "ALL", the report would return all records that the first condition would be true, if they chose "D", the second condition would become true, so only records where the DEPTNO = 10 would be returned, as so on.

Andy

Tags: Database

Similar Questions

  • How can we have a column with the text and radio button in the same row?

    Hello

    I have a column that need to have data with a radio button. Has been able to achieve this by using < trh:tableLayout >. But when I select the option button it moves to the next line. You want to stop this behavior of option button to move to the next line. This column also includes a hyperlink. If the text and the hyperlink are made invisible visible based on the action of the radio button.
    Adding one more doubt. A horizontalgrid of specific columns can make invisible?
    Any help would be appreciated.

    example code:
    < trh:cellFormat id = "cf8" halign = 'Start' >
    < af:activeOutputText value = "#{rank." Actions}"id ="aot2"/ >
    < af:goLink text = ' #{rank. " Actions}"id ="gl1 ".
    clientComponent = "true" visible = "false".
    targetFrame = "_blank" destination = "http:// + #{rank." BUTTON_URL} ">"
    < / af:goLink >
    < af:selectBooleanRadio text = "" id = "sbr1" > "
    < af:clientListener method = "selectCheckBox" type = "click on" / >
    < / af:selectBooleanRadio >
    < / trh:cellFormat >

    Thank you
    Nita

    Remove the components from . Put the other components like the direct children of the PanelGroupLayout:

    
      
        
        
        
        
          
        
      
    
    

    If you need to add some space between the components horizontan, you can put (s) between components.

    Dimitar

  • Calculation of the numeric fields radio button and checkbox-based response

    I am to change a form that was created by someone else.  I added checkboxes and radio buttons based on the need to form. I would like for the amount of check calculate automatically based on the selection of a radio button.  I've implemented some numeric fields to play with adding the amounts and placed them in the field 'Amount to check', but I can't seem to calculate.  Once I have to calculate correctly, I need to know how to automatically enter a number in the appropriate digital field based on the option button or check box selected.  Here is a picture of what I've put up.  Help, please!  I read all the forums, watched the videos and tried everything.  I'm so frustrated.

    MemberStatusHelp.jpg

    Don't know if I have the layout if correct me if Im wrong. I assume you have a radio button group on the top line for the first 3 check boxes and boxes (when the user selects one) for the following 2 lines (where the user can select independently of the other 3 above) with a final calculation at the end to check the amount field.

    You can either place the code on each change of each checkbox/radio button event to recalculate or just do it on the final checksum field. I tried putting a calculate on the last field to check the quantity, and it seems to do what it takes.

    Try this in the case of calculating the amount of check field

    var membershipAmount = 0;
    if ( (RadioButtonList.rawValue == "2") || (RadioButtonList.rawValue == "3") )
    {
        membershipAmount = 35;
    }
    
    if (CheckBox1.rawValue == "1" )
    {
        membershipAmount += 15;
    }
    
    if (CheckBox2.rawValue == "1" )
    {
        var txtAmount = TextField3.rawValue;
        var amt = 0;
        if ( (txtAmount != null ) && (! isNaN(txtAmount) ) )
        {
            amt = parseFloat(txtAmount);
        }
    
        membershipAmount += amt;
    }
    
    this.rawValue = membershipAmount;
    
  • Resize the system checkbox and radio buttons system

    Is it possible to resize the system checkbox and radio buttons system. If we right click on one of them and go to properties, size controls are disabled. I wonder if it's feasible.

    Also I noticed that I could add the new radio buttons to do a right-click and choosing Add new button. Is it possible to achieve this programattically.

    Kind regards

    Austin

    AustinCann wrote:

    Is it possible to resize the system checkbox and radio buttons system. If we right click on one of them and go to properties, size controls are disabled. I wonder if it's feasible.

    As mentioned, system controls cannot be customized, because they depend on the windows theme. However, here are some Boolean values, so all you need to do is use an ordinary Boolean value and import the graphics that you want in the case of true and false. They can easily be made to look like an oversized check box. More details, especially about radio buttons can be found here.

    AustinCann wrote:

    Also I noticed that I could add the new radio buttons to do a right-click and choosing Add new button. Is it possible to achieve this programattically.

    You could probably do it in edit mode programmatically by using scripts. You can't do it at run time.

    To fill a RadioButton with new Boolean values, you can simply drag the new values Boolean inside or even shift-do drag an item to create a copy of it. Don't forget to change the labels to something intuitive.

  • Show/hide an element with the click of a button - Script works does not in Firefox

    Hi all

    Basically, I'm looking for show/hide a DIV with the click of a button.

    The script works in IE but fail in FF.

    I am sure that I am the problem here.

    <script type="text/javascript">

    function toggle(box) {
         var el = document.getElementById('box');
         el.style.display = (el.style.display != 'none' ? 'none' : '' );
         
         
         value = document.getElementById('content').value;
         if(value=="Show Calendar"){
         document.getElementById('content').value="Hide Calendar";
         }
         else{
         document.getElementById('content').value="Show Calendar";     
    }
    }
    </script>


    <style type="text/css">
    #box{
         background-color: #C0C0C0;
         height: 100px;
         width: 100px;
    }
    </style>
    </head>

    <body>

    <div id="box">
    </div>

    <input id="content" value="Hide Calendar" type="button" onclick="toggle(box)" />
    </body>
    </html>

    WE

    He also worked if you had changed-

    
    

    on this subject.

    
    
  • With the help of text boxes and radio buttons

    Hello!

    I tried to make a small Manager application where the user writes his name is on a TextBox and selects her sex between the two options in radio buttons (female or male). These information apears inside a text on another screen. I tried desperately to organize the code to make this work, but I haven´t successful.  Anyone of you Director community could help me with this give me an idea of how do to solve this problem?

    Thank you very much!!!

    Philippa

    I have downloaded a file that shows what you are trying to do - feel free to use all or part of it. Sorry, but I was not taking the time to comment the code for you - if you have any questions, ask at your

  • Problem with the checkbox and 'if' statement 'else if '.

    Hi, I had something like this:

    if (this.rawValue=="0" ){
      app.alert("0");
      this.resolveNode("Circle1").presence = "hidden";
      this.resolveNode("cross").presence = "visible";
     }  
    
    
    else if (this.rawValue=="1"){
      app.alert("1");
      this.resolveNode("Circle1").presence = "visible";
      this.resolveNode("cross").presence = "hidden";
      }
    
    else{
      app.alert("2");
       this.resolveNode("Circle1").presence = "hidden";
      this.resolveNode("cross").presence = "hidden";
     }
    

    I put a default position on the neutral State. The values are default: on = 1, off = 0, neutral = 2.

    When I'm clicking my button to check it works only 'market' (1) and (2) State "neutral." 'off' State does not work and I do not know why.

    Please help me with this.

    Hello

    Here is the form to the you: https://acrobat.com/#d=qiBnkcpRnPWxA5hokFXvQw.

    I shook the script, but it wasn't the main problem. The issue was that the box is on the Master Page and had a default value of the neutral. Some objects on the Master Page, as with the values by defect and buttons, checkboxes can behave badly when the form is reparqué (layout: ready event).

    If you take a look at the form, you will see the objects on the design Page behave as expected. However, similar objects on the Master Page by default returns every time that the layout event: loan fires. It has already been noted with Adobe.

    I recommend that you move the objects in a design Page or perhaps use a drop-down list instead of the check box.

    Niall

  • alert with the checkbox.

    Hello

    I use a warning window to ask my user to share things with the Internet.
    In the alert window, there is a Yes / No button.
    I know not how I can catch the button that was clicked, but now my problem;

    In the alert window I want to have a checkbox option; Save this settings.
    If the user does not answer that question over and over again.

    How can I get an alert window with an option to check into it, and how can I see if this box is checked or not?

    Please, help.
    Welcome, jacob

    You are welcome Jacob, do not forget to close the message.

  • Y at - it a bug with the checkbox 'Keep iTunes media folder organized' preference?

    My iTunes for Windows version 12.3.3.17 music library has always organized automatically by itunes with all the files placed in the album and records of the artist, with the song title names preceded the disc number, track number, etc..

    I don't like it. This creates a maze of unwanted, unnecessary nested folders such as [name of artist]------\(tune list) [Album 1 name], [artist name]------[Album 2 name] \(tune list), etc.  or, in many cases, [artist name] \Unknown Album\(tune list).

    I have cloned my Itunes Media\Music file and traversed the clone, all music files manually non-breeders (all I want is artist Name\ [tune list]...) I don't want to see songs of the artist sorted into subfolders based on the album of the artist names, and I am certainly not zillions of subfolders "Unknown Album" being intended to receive the different air in cases where iTunes is unable to identify the name of the album because at some point in the past, I've copied CD tracks on my PC as .aiffs and then imported into iTunes to mp3 stripping inadvertently names album from metadata of files.)

    Once the clone folder was all cleaned up, I opened iTunes and it deleted my entire library of music.

    I closed iTunes, DISCONNECTED MY COMPUTER FROM the INTERNET and then restarted iTunes. In PREFERENCES, I made sure the checkbox 'Keep iTunes media folder organized' has been DISABLED so that iTunes can no longer "place files in folders of album and artist and name the files based on the number of the disc, track number and the title of the song.

    Finally, I imported my cleaned files of music together collection, in the clone folder in iTunes.

    Once this is done, I closed iTunes and then manually open my folder of C:\Users\[me]\Music\iTunes\iTunes Media\Music to observe and enjoy the fact that he was, hopefully finally organized my way.

    To my surprise, when any iTunes my library cleaned, he completely ignored my preference setting to NOT "maintain organized the iTunes Media folder. He was once more reorganised in the same maze of unwanted files/subfolders!

    It seems that this particular box really doesn't do anything.  iTunes still examines the metadata of files available (since there is no way, it can access the Internet with disabled connections) and continues to insist on all reorganize in subfolders based on file metadata, EVEN IF you set preferences to prevent it explicitly to do this.

    What Miss me?

    You would need to get the result you wanted to copy the folder "stored until" in the iTunes Media folder and added that copy in the library, or have disabled alternately to copy files to the iTunes folder when adding to Library Media then added support to its original path. When iTunes makes the imported copy, CD rips, format convert, downloads from the iTunes Store, etc. or you add using automatically add to iTunes folder it will always use its nesting default < artist > \Music\ < Media folder > \ < Album > for music. Personally, I think that you are taking the wrong approach. I always fill all the missing details and have my library organized in this sense much like iTunes does, although I don't like the way it truncates names to 40 characters and I keep certain genres like classical music, humor and music stored in their own subfolders. If you really want to impose your own structure take a look at my CustomRenamerscript.

    TT2

  • You can change the color of the quiz answer radio buttons / checkboxes?

    Captivate v5.5

    I like to use a background image on my quiz slides (see below) and thus answers boxes option and check boxes (which are gey) do not stand out as much as they would on a white background.

    Quiz boxes.png

    I know that I can reduce the parameter Alpha of background or even use a different background, but before we go down this path, is there anyway to change the color of these buttons/boxes or make them stand out more?

    Noel

    Why don't you simply place a point box culminating or rectangle behind the quiz answer text captions?  Just make it white and set the transparency on this box to be about 50% or more.  The legends of the response text will always be on top.  The area under expected to reduce background noise.  It should only be slightly larger than the area occupied by the text captions.

  • define a field as requires it, from the Group of radio buttons

    I saw not a strong response if you can set the field as required - in this case a date field based on the selection of a previous radio button.

    A post was that you couldn't do with calc form, it will have to be JS.

    I'm not the best at that.  The form is sent by mail on a web server for data capture.

    Any help would be appreciated.

    Hello

    Yes, you can change the status of 'necessary' to one or more fields by using the validate.nullTest in Formcalc or Javascript. You can use script like this in the output of the option button event:

    If (this.rawValue == 1) then
    DateTimeField1.validate.nullTest = "error".
    on the other
    DateTimeField1.validate.nullTest = "disabled".
    endif

    'error' sets the field referenced on required; considering that the 'disabled' changes back to not required.

    Good luck

    Niall

  • How to make the non selectable radio button field

    I want to UN selectable radio button field average user will be not be able to select. How can I achieve this. Please help me for this.

    You could remove them from the screen, or do unfocusable or make unmodifiable.  The choice will depend on what you're trying to reach.

  • The award of radio buttons to the signatories Echosign.

    I have a form of EchoSign, which must be completed by the signer1, but cannot be modified by the subsequent signatories. I put all the fields must be attributed to the signer1, but the default value of "Anyone", radio buttons and I can not change this setting.

    Hello Paula3869,

    You can assign the specific role of radio buttons according to the signer by double clicking on it and selecting role as E-sign of Signer1, 2 as needed. Here is the link for reference:

    https://helpx.Adobe.com/content/help/en/document-cloud/help/field-roles.html

    Kind regards

    -Usman

  • Problem with the report as a button link

    Apex 3.2

    I had a relationship with a column of link to another page.

    The user wanted a button instead of one of the standard icons, so I change the link text to

    < button type = "button" > Clean < / button >

    If I use firefox, then this link works very well, but in IE, nothing happens when I click on the button.

    Gus

    Hello

    Perhaps this example help

    https://Apex.Oracle.com/pls/Apex/f?p=39006:35

    I created request report

    SELECT empno,
      ename,
      job,
      APEX_UTIL.PREPARE_URL('f?p=&APP_ID.:37:&APP_SESSION.::&DEBUG.::P37_EMPNO:' || empno,NULL,3) AS linkurl
    FROM emp
    

    Then I change the LINKURL Link Text column

    
    

    Link attributes

    class="hideMe508"
    

    Target URL and URL # (sharp right)

    Kind regards

    Jari

  • Problem with the Code/Design view buttons

    (My bad... maybe a clearer title will help you...)

    OK, I work with DW CS4 v.10.0 Build 4117 on a platform of Win XP Pro SP3.

    When you work with files from my site, they open in Code view.  The Split and design buttons are grayed out.  When I click the page layout button, the check mark is sometimes next to the option Code, but sometimes next to Design (even if the page is clearly displayed only in Code view!).

    To view the file in Design view or split view, click the page setup button, click on the Code, click on the button layout again, click Design or split view and then it will display the page in this way file.

    It's SO frustrating!  Is this a bug in CS4?  (I scanned through the other topics and can't seem to find anything about it.)  I don't remember having this problem with CS3 and have spoken with other DW CS3 users who also say that they have never had this happen.

    What can I do?

    Thanks in advance for any help you can provide.

    Susan

    Hi Susan,.

    I might have a solution for this one. I had the same problem. It would be 'reliable' whenever I would create a new PHP file.

    "File" > "New" > "PHP" > Layout 'None' > 'Create' - no buttons 'Split' or 'Design' (grey)

    In 'preferences' under 'File Types/errors', there is a section "open in code view".

    I removed the. The extension PHP from here, tried again and it worked!

    Maybe it will work for you.

    Good luck

    Tony

Maybe you are looking for

  • iMovie does not open Costco DVD VHS movies converted

    iMovie for Mac does not open Costco DVD converts VHS movies at home. I don't know that I was able to do what a few years with an older version of iMovie. There is a limitation with iMovie? DVD of Costco is just a bunch of old family VHS home movies.

  • flattened draw without border and transparent background pixmap

    Dear members of the Forum, I am completely new to LabVIEW and use especially for graphic animations.  I want to build a multimedia graphic where parts are dynamic (i.e. they change from red to green to indicate stopped execution of State respectively

  • How to find my router settings

    router cannot find the settings

  • receiving a lot of spam email in hotmail account

    Microsoft didn't and will not address the issues! RE: Hotmail changed to win. live?  Live is lower. How to bring back my old Hotmail account? After 11 years, you would think that I could 'keep what I have. My account is all messed up! I get 200-400 O

  • HP DVDRAM GT20L ERROR 19

    I have had this PC for 2 years or more. He suddenly left 'See' the DVD player. In Device Manager, I see the error: Windows cannot start this hardware device because its information of configuration (in the registry) is incomplete or damaged. (Code 19