How to validate and pass a value stored in the Check box to a SQL report

I have a menu(parameter form) with select lists and two check boxes(one option for DD/MM/YY(called CHK_BOX_MTH) and other for Quarter(Called CHK_BOX_QTR)).
If the user selects the check box for month, he should be only be able to select list of values for Month, Day and Year. The user should not be able to choose Quarter(or should be prompted with a message, "Check only one option"). Similarly if Quarter is chosen, DD/MM/YY should be disallowed.
How do I code this validation in HTML DB and where would it reside on the item?
How do I then pass these parameters(Checked box value) using a URL to another page as input?
The query expects the following
SELECT ... FROM DIM_DAY
WHERE
(:CHK_BOX_MTH IS NOT NULL AND START_DATE = ":SELECTED_DATE")
OR
(:CHK_BOX_QTR IS NOT NULL AND QTR = ":SELECTED_QTR");

Vikas ,Thank you for your reply.
The only reason I am not able to use the radio group because I am not able to place the items shown adjacent to Month in the page. The From Date and To date (user enterable fields) should appear to the right of the Month radio button and quarter item to the right of the quarter radio button.
From Date : "Month" "Day" "Year" (should be displayed to the right of Month )
End Date : "Month" "Day" "Year" (should be displayed to the bottom right of
Month and above the Quarter line)
I hope I am making sense.

Similar Messages

  • How to dsplay the values based on the check box?

    forms6i
    Hi to all
    the requirment the we have already master detail form.example emp details based on the dept number.in the form just only displays three coloumns per record wise(emp details).
    actually my requrment is place the check box each record and place a one button in the form.once check the particular record and click on the button open the another form
    it's displays that particular record entire emp details.any one help me...........
    Edited by: 994418 on 3 Apr, 2013 1:50 AM

    994418 wrote:
    forms6i
    Hi to all
    the requirment the we have already master detail form.example emp details based on the dept number.in the form just only displays three coloumns per record wise(emp details).
    actually my requrment is place the check box each record and place a one button in the form.once check the particular record and click on the button open the another form
    it's displays that particular record entire emp details.any one help me...........
    Edited by: 994418 on 3 Apr, 2013 1:50 AMHi,
    As you said, you emp block is tabular, i think there is no need of check box. Just add a button in that block. So there is a button for each record and associate button click display the associate record details (you said to go another form and display)
    check this Calling a form and passing a context
    Hope this helps
    Hamid
    Mark correct/helpful to help others to get right answer(s).*

  • How to put Check Boxes in a SQL Report?

    Hi All,
    I have a SQL Report in my application. I want to put check box for each row of the report. How can I achieve that in APEX?
    Here is my application page.
    http://apex.oracle.com/pls/otn/f?p=20420:4:
    Under the "Select" column heading I want to add the check box for each row of the report.
    So that User select that row and when he clicks on Generate report It should generate its report.
    The report should generate if user selects multiple rows also.
    Workspace : alaka
    username : [email protected]
    Password : earth
    Thanks
    Alaka

    Hi,
    But I could not able to find whether the check box is checked or not.
    In the apex page , button is provided and the checked rows "empno" should pass to next page hidden item when the button is clicked.
    I tried apex_ITEM.CHECKBOX(1,empno,'CHECKED') by passing in the URL on click of the button. But it passes the test " apex_ITEM.CHECKBOX(1" to the item in the next page. And not checked values.
    Here is my application page.
    http://apex.oracle.com/pls/otn/f?p=20420:4:
    Workspace : alaka
    username : [email protected]
    Password : earth
    Application: TEST 20420
    Page : 4
    The button "Generate Report" is provided in the page. On click of this button the checked values should pass to the next page.
    Please help me in this.
    Thanks
    Alaka

  • Help! Trying to enable automatic downloads on iTunes and im not able to click the check box!!

    So i have the latest itunes, im trying to get iCloud to work.
    When i go to store under settings in my iphone 4, automatic downloads are turned on.
    When i go to itunes in my macbook, and try to enable automatic downloads, the boxes next to "music, books, apps" are unable to be checked, they appear in a light gray color.
    I dont know why this is happening!
    Can someone help me please?

    Hi carolyn..
    I dont think you quite understand my problem at hand..
    Basically, automatic downloads are enabled on my iphone.
    The PROBLEM is when i go to enable automatic downloads on my macbook, i see the boxes next to books apps and music but it is NOT letting my check those boxes for some reason! It is completly restricted and i am confused to why it is doing that.
    Thank yoU!

  • How to Get and Update properties values from XML tag Using Xquery or PL Sql

    Hi
    I have this tag
    <Solicitud Pais = "1">
    How i can get Pais value?
    How i can update Pais Value?
    Y can use Xquery funtions or PL SQL for this?
    Thak's
    Angel

    How i can get Pais value? ExtractValue
    How i can update Pais Value?UpdateXML
    Y can use Xquery funtions or PL SQL for this?Yes
    Without knowing more about your requirements, where information resides, or even a version of Oracle, that is the best I'll do.

  • How to  define and work with bind-variables without the dialog-box ?

    I want to select different tables with the same bind_variables,
    but do want not fill the bind-variables-dialogbox
    everytime I use the select statements
    because I could simple edit and bind this bind-variables once
    at the first select.
    select col1, col2 into :bind1, :bind2 from mybasictable_10 where col3 = 'ABCD':
    select * from mytable_b where b1 = :bind1 and b2 = :bind2 ;
    select * from mytable_c where c1 = :bind1 and c2 = :bind2 ;
    select * from mytable_d where d1 = :bind1 and d2 = :bind2 ;
    select * from mytable_e where e1 = :bind1 and e2 = :bind2 ;
    it doesn't work and I didn't find that in help,
    how does it work in sql-developer ?
    regards

    david,
    back to the root of my question:
    I do use an 10 years old low-end sql / plsql-tool where I can simple and fast do sql-things like that:
    select col1, col2 into :bind1, :bind2 from mybasictable_10 where col3 = 'for_example_ABCD':
    select * from mytable_b where b1 = :bind1 and b2 = :bind2 ;
    select * from mytable_c where c1 = :bind1 and c2 = :bind2 ;
    select * from mytable_d where d1 = :bind1 and d2 = :bind2 ;
    select * from mytable_e where e1 = :bind1 and e2 = :bind2 ;
    I would like to use oracles SQL-Developer instead of this 'old' tool,
    and want to use my 'old' sql / plsql scripts
    but the SQL-Developer in this matter seems is to much complicate to use,
    I can do complex and big things with sql-dev,
    but not simple using bind-variables ;-)( .

  • How to get the  Checked box which are clicked

    for(int k=0;.....
    jsp code
    <input type=checkbox name=checkbox value='<%=k%>' >
    how to get the particular Checkbox which are checked???

    String[] checkedValues = request.getParameterValues("checkbox");You'll get an array filled with the values only for the checked boxes. In other words, if no boxes are checked, checkedValues will be null or checkedValues.length == 0, not sure, going from memory.
    Hope this helps!
    Patrick

  • How do you create a user defined functions  UDF and passing a value like a ID to GEt a Value.

    How do you create a user defined functions UDF and passing a
    value like a ID to GEt a Value.
    using a query.
    are there example.
    Thanks

    tons of examples at cflib.org - good place to start, even
    though many
    udfs there are a bit outdated in their code...
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com

  • How to compare the values stored in the list

    Hi,
    I am having the requirement that i want to compare the values stored in the list.How to store the values in the list and compare the list values stored inside it.
    Regards,
    Ahamad

    http://java.sun.com/j2se/1.5.0/docs/api/java/util/Collections.html#sort(java.util.List)
    http://java.sun.com/j2se/1.5.0/docs/api/java/util/Collections.html#sort(java.util.List,%20java.util.Comparator)
    http://java.sun.com/j2se/1.5.0/docs/api/java/util/Comparator.html
    http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Comparable.html

  • How to prevent ipad apps from being stored in the iCloud and how to bring them back to the iPad

    I have an iPad Mini Retina with 128GB of storage.  I purchased about a dozen apps and it gets stored in the iCloud and I don't know how to access them on the cloud storage.  Plus I have many apps from me itouch that I use and they are also stored on the iCloud. 
    How can I prevent further apps that I buy from gettting transfer to the iCloud?
    How can I download my existing apps that I purchase and that are from my itouch that are stored in the iCloud into my iPad?
    How do I access my iCloud storage from my iPad?
    Thanks.

    You make it sound like apps are disappearing from your iPad and uploading to iCloud. That's not how it works. Maybe somebody (or you) deleted the apps and you don't realize it.
    You cannot prevent apps from being stored in iCloud. That is one of the reasons for using iCloud. It will store all of your purchased apps and you will be able to download them if you delete them, or if you buy another device that you want to use the apps on.
    If you have apps that are in iCloud, just go to the Purchased Tab in the app store, tap on the Not on this iPad button at the top. Look for any of the apps that you want to download and then tap the cloud icon in order to download them to the iPad. You access your iCloud storage in the purchased tabs of the different stores or in the apps themselves. Any data that is being backed up in iCloud is on the device in the corresponding apps and you don't need to access that data in iCloud. It's at your fingertips already,
    Purchased apps do NOT count against your iCloud storage. If you have 60GB of apps, they do not take up the alloted 5GB of free storage that you get. The app data would count against the storage but not the apps themselves.

  • How to pass the check box values from one view to another view

    Hi Experts,
    I have a selection screen view which consists of check boxes.
    WBS System status.
    Release                      Completed                  Closed as 3 check boxes.
    Note : The above ones are check boxes.
    Based on the selection made by the user, those values needs to be passed to second view which retrieves the data and
    displays the data accordingly.
    At the same time if the user does not make any selection, then WBS System status should contain Released, Completed and Closed values and that needs to be sent to Second view.
    Kindly advise.
    Regards,
    Chitrasen

    hi ,
    make a attribute of type WDY_BOOLEAN to achieve this functionality
    u need to follow these steps :
    1 in side ur component controller , under the ATTRIBUTES tab , make 3 attributes say attr1 , attr2 and attr3 of type WDY_BOOLEAN
    2 create a context node , cn_check and 3 context attribute ca_check1 , ca_check2 and ca_check3 in ur first view for
    release , complete and close check boxes
    3 inside the DOINIT of ur 1st view , set the attributes attr1 , attr2 and attr3 to blank
    wd_comp_controller->attr1 = ' '
    wd_comp_controller->attr2 = ' '
    wd_comp_controller->attr3 = ' '
    4 inside the method , where u r validating , if the check boxes are checked or not , read the attributes ca_check1 , ca_check2 and
    ca_check3
      DATA lo_nd_cn_check TYPE REF TO if_wd_context_node.
        DATA lo_el_cn_check TYPE REF TO if_wd_context_element.
        DATA ls_cn_check TYPE wd_this->element_cn_check.
        DATA lv_ca_check1 LIKE ls_cn_check-ca_check1.
    *   navigate from <CONTEXT> to <CN_CHECK> via lead selection
        lo_nd_cn_check = wd_context->get_child_node( name = wd_this->wdctx_cn_check ).
    *   get element via lead selection
        lo_el_cn_check = lo_nd_cn_check->get_element(  ).
    *   get single attribute
        lo_el_cn_check->get_attribute(
          EXPORTING
            name =  `CA_CHECK`
          IMPORTING
            value = lv_ca_check1 ).
    IF lv_ca_check1 EQ 'X' .
    wd_comp_controller->attr1 = ' X'
    wd_comp_controller->attr2 = 'X '
    wd_comp_controller->attr3 = ' X'

  • How can i get the value stored in the session object using its sessionid

    how can i get the value stored in the session object using its sessionid by running stand alone java application

    myforum wrote:
    how can i get the value stored in the session object using its sessionid by running stand alone java applicationThis does not seem to make sense! You need at least to give a lot more detail of what you are doing.

  • Just upgraded to lateste verison of Firefox and started using the Tab groups. Like them, but noticed that Save all bookmarks is now gone. How do I save all my bookmark stored inside the tab groups?

    I am using Firefox 6.0 (and still using windows XP ). I have a habit of opening tons of tabs and the new Tab group feature seems perfect for me. But I couldn't find anywhere to save all my tabs as the Save all bookmarks is now gone. How do I save all my bookmarks stored inside the tab groups?
    thanks

    I had to restart firefox because of an update and I saved all my tabs and when I restarted firefox it has lost all of my saved bookmarks...won't be using the new tab groups again..very disappointed

  • I need to add the values stored in the session object into the html textbox

    Dear Sir,
    i have been trying to create an edit employee details page
    What i have done till now is as follow:
    1. Got employee id from HTML page.
    2. Compared it with the id stored in the database.
    3. If the id is correct then pulled the record of the corresponding employee and stored it in the session object.
    4. Dispatched the session values to another servlet EditEmpDetails2.java
    what i need to do now
    5. Now i need to set the session values in the text field of the html form
    6. I also need to be able to edit those vales and store the edited values in the database.
    Please help me as i have tried doing it for 1 week without any clues
    i have tried to create a html page which is something like this:
    <html>
    <head>
    <title>Edit Employee Details Page</title>
    <body BGCOLOR="red" text="black">
    <h1 ><font color="black">Edit Employee Details Page</font></h1>
    <form action = "EditEmpDetails" method="Get">
    <table width="50% align="center"
    <tr><td>Employee ID: </td>
    <td><INPUT TYPE="TEXT" name="employeeid"<br></td></tr>
    <tr><td><center><input type="submit" value="submit"></center></td></tr>
    <tr><td><center><input type="reset" value="reset" ></center></td></tr>
    </table>
    </form>
    </body>
    </html>
    design of my servlet EditEmpDetails.java
    public void EditEmpDetails1 extends HttpServlet
    public void doGet(HttpServletRequest request, HttpServletResponse response)throws ServletException, IOException
    PrintWriter out = response.getWriter();
    response.setContentType("text/html");
    HttpSession session = request.getSession();
    String employeeid;
    String X = request.getParameter("employeeid");
    System.out.println("Employee iD:" + X);
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con = DriverManager.getConnection("jdbc:odbc:murphy");
    String query = "Select * from users where employeeid=?";
    PreparedStatement stat = con.prepareStatement(query);
    System.out.println(stat);
    stat.setString(1,X);
    ResultSet rs = stat.executeQuery();
    while(rs.next())
    String Z = rs.getString(password);
    if(Z.equals(X))
    String A = rs.getString(1);
    session.setAttribute("employeeid", A);
    String B = rs.getString(2);
    session.setAttribute("firstname", B);
    String C = rs.getString(3);
    session.setAttribute("lastname", C);
    String D = rs.getString(4);
    session.setAttribute("gender", D);
    String E = rs.getString(5);
    session.setAttribute("dateofbirth", E);
    String F = rs.getString(6);
    session.setAttribute("address", F);
    String G = rs.getString(7);
    session.setAttribute("postalcode", G);
    String H = rs.getString(8);
    session.setAttribute("phone", H);
    String I = rs.getString(9);
    session.setAttribute("mobile", I);
    String J = rs.getString(10);
    String url = "/EditEmpDetao;s.java";
    RequestDispatcher dispatcher = getServletContext().getRequestDispatcher(url)
    dispatcher.forward(request,response);
    catch (Exception e)
    system.out.println(e)
    I do not know how to put the values stored in the session object into the html text box

    3. If the id is correct then pulled the record of the corresponding employee and stored it in the session object.do you really need to store this in session object?
    5. Now i need to set the session values in the text field of the html form which form? in a new html/jsp page? i suggest go for a JSP
    In your JSP page use JSP expression tags to put the session attributes.
    it's something like : <input type='text' name='employeeid' value='<%= session.getAttribute("employeeid") %>' >and you need to generateanother servlet for saving the details/modifications to the database.
    I think i m clear enough.
    if you need more clarifications. just try it and then post your problem.
    Diablo

  • Help requested: How to pass the (check box) selected rows data to other scr

    Hi friends, Here is a situation where I have to pick only those records data which i select by checking the check boxes and carry on to next screen where I have to display them and do some processing on such selected rows of data. Can any one suggest me how to code this. Thanks in advance.

    Hi Subbarao,
    One way is to check if the field is selected by checking if the field value = 'X'.
    If it is a table control we will have to loop and find out which all records are selected..it is notable that the check box field will mostly be of single character and contain 'X' if it is checked and space if not checked
    Based on the structure where the check box is held we may have to implement various logic to retrieve whether the field is checked or not....for instance we can move data to another internal table for which the checkbox is checked and can retrieve it from the next screen
    Pls check,revert and reward if helpful
    Regards
    Byju

Maybe you are looking for

  • Read-Only mode for a Essbase DB

    Is the a way to put my Essbase Db with Historical values in read-only?, I found that the Maxl Archieve option will do but I don't know if this is only for backup. Regards, Antonio

  • Exchange rate difference coming in BRS

    Dear FICO Experts, we created 3 bank g/l accounts like main, reciept and pmt. but currency assigned in control data is USD bcoz all transaction vll be posted in USD. We also defined house bank master data in FBZP for the same.My company code curency

  • Macbook pro 2012 battery issue

    i bought a 2012 macbook pro, non retnia display.  The battery is losing charge while plugged in.  running nothing save for chrome and quicksilver.  has anyone else ran into this issue?

  • Why Doesn't Premiere Elements 12 Recognize My Sony AVCHD Camera?

    This is my first attempt at using Premiere Elements 12.  Unfortunately, it is not recognizing my Sony HDR AVCHD format camera.  It uses a san disk.  I get a message "No supported devices detected".  It does find the jpg photos, though. So I directly

  • Ipad 2 3G stuck on "Connect to iTunes screen"

    Yesterday I updated my iPad 2 3G to 4.3.3 from 4.3.2. iTunes gave me a error (9) and my iPad is now stuck on the "Connect to iTunes screen". I tried it on multiple pc's everywhere i get error (9). Also tried multiple cables which just does the same.