Help on checkbox

Gurus,
I have an application which needs some modifications, for which I need help from you Gurus.
Region 1 : I have a Report filter Parameters which is of type HTML text.
This essentially comprises of a bunch of LOV's for the users to set the report filters and a Go button.
Region 2: Report based on PLSQL function body returning SQL Query.
Here we build the query dynamically by setting the filters, the standard
q := q || .......
The users set the filter, hit GO and the data is displayed in Region 2 based on the filters.
Now I want to give the users functionality of putting checkbox on the records for further review which has to be saved to the database.
Regards.
DK

Hello,
As you're already using dynamic SQL, just embed the following in your query code - http://download-uk.oracle.com/docs/cd/B31036_01/doc/appdev.22/b28550/api.htm#CHDDCHAF
Of course, now you also should add the necessary buttons and processes to utilize the checkboxes information. If you'll search this forum you'll find many examples that can help you.
Regards,
Arie.

Similar Messages

  • Selecting an entire row with the help of Checkbox

    Hi and Evening to Everybody,
    I have a Scenario where i need to select an entire row using the check box. Let me first define the Situation. I created a Simple Sql-report where the first column is a Simple Checkbox and the second column is a display only name and followed by the rest 5 columns as a checkbox.
    my table structure is :
    **create table satt (SELECT_ALL VARCHAR2(10), Name VARCHAR2(50), Object1 VARCHAR2(10), Object2 VARCHAR2(10), Object3 VARCHAR2(10), Object4 VARCHAR2(10), Object5 VARCHAR2(10));**
    Now i had a requirement where i need to Check All or Uncheck All Checkbox by clicking SELECT_ALL column header and i made it using
    simple java-script :
    "<input type="Checkbox" onclick="$f_CheckFirstColumn(this)">"
    Now i need to Check all checkbox in a row by clicking any of the SELECT_ALL check boxes. (Say i have 5 checkboxes in SELECT_ALL column and if i click 3rd checkbox... i need the entire 3rd row checkbox to be checked on click of that 3rd check box).
    I hope i was clear with my question. i did my best. Please help me out with this... Im eagerly lookin for the solutions.
    Thanks & Regards,
    - The Beginner.
    Edited by: 854477 on Jul 13, 2011 4:57 AM
    Edited by: 854477 on Jul 13, 2011 5:01 AM

    Solomon Yakobson wrote:
    There is no row order in relational tables unless ORDER BY is used, so there is no way to decide if 3 Mathematics belongs to 100 or to 200.
    SY.That's not how I interpretted it. I thought he was saying that in the first row column B has the value:
    '1 Physics'||chr(10)||'2 Chemistry'||chr(10)||'3 Mathematics'
    in which case something like this would work
    select a,replace(b,chr(10),chr(10)||a||' ') from table;

  • Help for checkbox display

    Hi good souls,
    I have 8 check boxes and when i want to insert the record in my table and check any of checkboxes the required field gets updated. but the problem is coming when i want to display the values.
    the check boxes are not marked when i display the result. please help me by code and by your ideas on how to display the check mark when i press display.
    data: mac1 type c,
    mac2 type c,
    mac3 type c,
    mac4 type c,
    mac5 type c,
    mac6 type c,
    mac7 type c.
    WHEN 'INSERT'.
    if mac1 = 'X'.
    zaa_st-mc1 = 'CORRUGATOR'.
    endif.
    if mac2 = 'X'.
    zaa_st-mc2 = 'INLINE'.
    endif.
    if mac3 = 'X'.
    zaa_st-mc3 = 'LANGSTON'.
    endif.
    if mac4 = 'X'.
    zaa_st-mc4 = 'DRO'.
    endif.
    if mac5 = 'X'.
    zaa_st-mc5 = 'BOBST'.
    endif.
    if mac6 = 'X'.
    zaa_st-mc6 = 'EMBA PRINTER'.
    endif.
    if mac7 = 'X'.
    zaa_st-mc7 = 'EMBA GLUER'.
    endif.
    INSERT ZAA_ST.
    IF SY-SUBRC = 0.
    MESSAGE I000(0) WITH 'RECORD INSERTED'.
    ELSE.
    MESSAGE E001(0) WITH 'RECORD NOT INSERTED'.
    ENDIF.

    Hi friend,
    How is your zaa_st table? Is it contains any field for check box (i.e: check_box). If yes, transfer 'X' to check_box field.
    ex:
    data: mac1 type c,
    mac2 type c,
    mac3 type c,
    mac4 type c,
    mac5 type c,
    mac6 type c,
    mac7 type c.
    WHEN 'INSERT'.
    if mac1 = 'X'.
    zaa_st-mc1 = 'CORRUGATOR'.
    endif.
    if mac2 = 'X'.
    zaa_st-mc2 = 'INLINE'.
    endif.
    if mac3 = 'X'.
    zaa_st-mc3 = 'LANGSTON'.
    endif.
    if mac4 = 'X'.
    zaa_st-mc4 = 'DRO'.
    endif.
    if mac5 = 'X'.
    zaa_st-mc5 = 'BOBST'.
    endif.
    if mac6 = 'X'.
    zaa_st-mc6 = 'EMBA PRINTER'.
    endif.
    if mac7 = 'X'.
    zaa_st-mc7 = 'EMBA GLUER'.
    endif.
    * check box
    zaa_st-check_box = 'X'.
    INSERT ZAA_ST.
    IF SY-SUBRC = 0.
    MESSAGE I000(0) WITH 'RECORD INSERTED'.
    ELSE.
    MESSAGE E001(0) WITH 'RECORD NOT INSERTED'.
    ENDIF.
    please check and reply
    regards,

  • Help for checkbox display as marked

    HI ALL,
    I am facing some problem displaying the check box as marked or flagged when displaying the record.
    my requirement is that when i display a record it should also display the check box as marked. how do i do that. help me with the code.
    i have 8 checkboxes and when each checkbox is marked, the respective field is filled with a record. and when i display ( using push button) the selected record , it should show me the check box as marked if the field is not empty. how do i do it?

    LOOP AT T_SFLIGHT  INTO sflight.
                WRITE:
                  / SFLIGHT-FLDATE,
                    SFLIGHT-SEATSMAX,
                    SFLIGHT-SEATSOCC.
                MODIFY CURRENT LINE FIELD FORMAT BOX INPUT on.
                BOX = 'X'.
                MODIFY CURRENT LINE FIELD VALUE BOX.       
      ENDLOOP.
              ULINE.
    Try the highlighted lines.It will helps u.I

  • Please help with checkbox

    HI
    I buildt an image gallery with AS2 and XML, now I want the
    user to be able to check a checkbox next to the image whenever they
    want to select it as one of their favourates...it's kind of like a
    catalouge and it should just write the image info to a seperate
    word file or spreadsheat or even another movie. Is there any way of
    doing this and how do I get started?
    Thanx for any help

    What is your question? You're subject implies you want help
    with a checkbox,
    but then you ask about exporting an image from Flash, and you
    include a
    whole bunch of code with no explanation. Nobody is going to
    look through all
    your code for you. If you want to know how to export an image
    then Google
    'flash export image' or similar. There's a lof of info on
    this subject
    available from various blogs.
    Dave -
    Head Developer
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

  • Help with Checkbox Script!

    Hello,
    I have created a checkbox (named "Check Box1") and would like for this checkbox to show a button (named "Add Form") but if the box is unchecked then I'd like this "Add Form" button to remain hidden again. I have placed a JS under the checkbox but keep getting a syntax error:
    if(this.rawValue==1)
    Add Form.presence="hidden";
    } else {
    Add Form.presence="visible";
    Could someone help me get this script working? Your help is much appreciated!
    Omar

    You should post this question in the LiveCycle Designer forum here.

  • Need some help for checkbox

    Hi and Evening to Everybody,
    I have a Scenario where i need to select an entire row using the check box. Let me first define the Situation. I created a Simple Sql-report where the first column is a Simple Checkbox and the second column is a display only name and followed by the rest 5 columns as a checkbox.
    my table structure is :
    **create table satt (SELECT_ALL VARCHAR2(10), Name VARCHAR2(50), Object1 VARCHAR2(10), Object2 VARCHAR2(10), Object3 VARCHAR2(10), Object4 VARCHAR2(10), Object5 VARCHAR2(10));**
    Now i had a requirement where i need to Check All or Uncheck All Checkbox by clicking SELECT_ALL column header and i made it using
    simple java-script :
    "<input type="Checkbox" onclick="$f_CheckFirstColumn(this)">"
    Now i need to Check all checkbox in a row by clicking any of the SELECT_ALL check boxes. (Say i have 5 checkboxes in SELECT_ALL column and if i click 3rd checkbox... i need the entire 3rd row checkbox to be checked on click of that 3rd check box).
    I hope i was clear with my question. i did my best. Please help me out with this... Im eagerly lookin for the solutions.
    Thanks & Regards,
    - The Beginner.
    Edited by: 854477 on Jul 18, 2011 1:50 AM

    Dear BEGINNER..
    Assuming that you're using a standard table based layout for the report, what you need to do is add some code in the HTML attributes of the checkbox in the first column..
    The following javascript would set all other checkboxes in the same ROW as the first checkbox to the same state as it is.
    onclick="if (this.checked) {$f_CheckAll(this.parentNode.parentNode, true);} else {$f_CheckAll(this.parentNode.parentNode, true);}"NOTE: that this will only fire if the first checkbox on the row is actually clicked by the mouse. It won't fire if the first checkbox in the row is set by the CHECK_ALL in the column header.
    Hope this helps.
    Doug gault
    www.sumneva.com

  • Need help with Checkbox widget!!!

    Hi,
    I have made a quiz in which, on one part of the slide the user has to tick the boxes to see the symptoms he or she is feeling. (using default static checkbox widget) That needs to be reported, so we know the user symptoms during the time of the quiz. The problem is that when the user checks/ticks any information through the widget and press submit button, no report is generated or exported only values appear for instances '0' or '1' or any value i give to variable. (through google email reporting widget) Is it possible to achieve this somehow as this is the only objective of the quiz.
    I will be grateful, if anyone can kindly help and share some wisdom/solution.
    I have attached the screenshot where the user checks his/her symptoms.
    And i have also attached the spreadsheet, where values are just reported as 0, irrespective if the user ticks it or not. (not responding)
    I have also created variables for each symptoms through the widget and aswell as the project/variables.
    Can anyone guide me on how to report the selected ticks marks to appear on the spreadsheet or the same information to be exported ?
    Thanks

    Thank you for your prompt reply. I am using Captivate 8 widget through learning interaction.
    Do you mean to say that these are the values to the variables? (for example; value for variable: v_one would be 'Overly happy' )?
    What i am trying to achieve here is to capture the interaction data from this particular slide and export it into a spreadsheet for reporting, to see what user has selected so the report can be given to the client.

  • Need help with checkbox's

    Newbie on the loose.  Sorry I not sure what are the right terms of use here.  So here goes: I have a group of check boxs that I have set so only one can be checked at any time (which is what I want) but I have a subgroup of one of the parent group, and I need to be able to have one of the checkboxs ticked only when its parent is ticked, hope that makes sense... any help would be awesome. Using Arcobat pro 9.  cheers

    Here's a link to a sample document: https://workspaces.acrobat.com/?d=ZPHHsqzgaYPPosLGsctTOA
    It contains a group of check boxes (vertical, blue) and a subgroup (horizontal, yellow). When the third check box in the vertical group is selected, the second group becomes available to be selected. If it is not selected, the second group is cleared and all are set to read-only. You'll see that a JavaScript routine is called in the Mouse Up event of each of the first group of check boxes. To see the code, which is in a document-level JavaScript, select: Advanced > Doocument Processing > Document JavaScript, and select the script named "control" and then the Edit button. Post again if you have any questions.

  • Help! Checkbox on Table not working

    Help! I can't use a checkbox on a table to select rows.
    I don't know what I'm doing wrong, I exactly followed very tutorial there is and all won't work. First I tried the one described by the Tutorial Divas, but couldn't get it to work.
    I followed all the steps: add a HashSet to SessionBean1, then add a selected property of typ boolean and than set the selected property of the checkbox to the property in the SessionBean1 (selected). I changed the isSelected and setSelected methods, so they work with the HashSet.
    But when I select some checkboxes in the table, the HashSet is still empty... When debugging I saw, that the SetSelected method is never called (althougt isSelected is called). Why is that? I couldn't find detailed information on the matter. I looked at the Table_Component_example, but there a bit different approche is used, with a TablePhaseListener.
    I also read the part in Winston's blog, but that didn't really add anything and I tried the example described in the JSC Field Guide.
    Finally some code:
    public boolean isSelectedObservationPoint() {
            TableRowDataProvider rowData = (TableRowDataProvider) getBean("currentRow");
            if(rowData == null) return false;
                RowKey rowKey= rowData.getTableRow();
                if(selectedObservationPoints.contains(rowKey)) return true;
                else return false;
    public void setSelectedObservationPoint(boolean selectedObservationPoint) {
            TableRowDataProvider rowData = (TableRowDataProvider) getBean("currentRow");
            RowKey rowKey= rowData.getTableRow();
            if(selectedObservationPoint){
                this.selectedObservationPoints.add(rowKey);
            else {
                this.selectedObservationPoints.remove(rowKey);
        }So the only thing is, that I changed the iterating over the Hashset to contains call (why wasn't that used in the first place?) But that can't really be the problem, as I doesn't do anything... SetSelected is never called (at least not when debugging).
    Is there something I missed? Could this be a problem, that the table itself a rather complicated grid-layout?
    Thanks

    The JSP:
    <ui:table augmentTitle="false" binding="#{createConfig.observationPointTable}" id="observationPointTable"
                                        style="height: 121px" title="Observation Points" width="958">
                                        <script></script>
                                        <ui:tableRowGroup binding="#{createConfig.tableRowGroup1}" id="tableRowGroup1" rows="3"
                                            selected="#{createConfig.selectedObservationPoint}" sourceData="#{SessionBean1.observationDataProvider}" sourceVar="currentRow">
                                            <ui:tableColumn binding="#{createConfig.tableColumn1}" headerText="ID" id="tableColumn1" sort="id">
                                                <ui:staticText binding="#{createConfig.staticText1}" id="staticText1" text="#{currentRow.value['id']}"/>
                                            </ui:tableColumn>
                                            <ui:tableColumn binding="#{createConfig.tableColumn2}" headerText="DomainId" id="tableColumn2" sort="domainId">
                                                <ui:staticText binding="#{createConfig.staticText2}" id="staticText2" text="#{currentRow.value['domainId']}"/>
                                            </ui:tableColumn>
                                            <ui:tableColumn binding="#{createConfig.tableColumn5}" headerText="Type" id="tableColumn5" sort="type">
                                                <ui:staticText binding="#{createConfig.staticText5}" id="staticText5" text="#{currentRow.value['type']}"/>
                                            </ui:tableColumn>
                                            <ui:tableColumn binding="#{createConfig.tableColumn4}" headerText="Parameters" id="tableColumn4" sort="parameters">
                                                <ui:staticText binding="#{createConfig.staticText4}" id="staticText4" text="#{currentRow.value['parameters']}"/>
                                            </ui:tableColumn>
                                            <ui:tableColumn binding="#{createConfig.tableColumn20}" headerText="Next Processes" id="tableColumn20" sort="nextInfo">
                                                <ui:hyperlink action="#{createConfig.observ_next_action}" binding="#{createConfig.observ_next}" id="observ_next" text="#{currentRow.value['nextInfo']}"/>
                                            </ui:tableColumn>
                                            <ui:tableColumn binding="#{createConfig.tableColumn21}" headerText="Edit" id="tableColumn21" width="25">
                                                <ui:button action="#{createConfig.edit_Observationpoint_button_action}"
                                                    binding="#{createConfig.edit_Observationpoint_button}" id="edit_Observationpoint_button" text="Edit"/>
                                            </ui:tableColumn>
                                            <ui:tableColumn binding="#{createConfig.tableColumn22}" headerText="Remove" id="tableColumn22">
                                                <ui:button action="#{createConfig.remove_observation_point_action}"
                                                    binding="#{createConfig.remove_observation_point}" id="remove_observation_point" text="Remove"/>
                                            </ui:tableColumn>
                                            <ui:tableColumn binding="#{createConfig.tableColumn23}" headerText="Add to Config" id="tableColumn23" onClick="setTimeout('initAllRows()', 0)" selectId="checkbox2">
                                                <ui:checkbox binding="#{createConfig.checkbox2}" id="checkbox2" selected="#{createConfig.selectedObservationPoint}"/>
                                            </ui:tableColumn>
                                        </ui:tableRowGroup>
                                    </ui:table>As far as I can see it is pretty much the same. Did I over look something?

  • Help with checkbox column layout

    Here is the what I need to accomplish:
    I need to display a long list(50-200) of checkboxes w/ labels in a multi column format.  They need to be sorted alphabetically downward and accross all columns. If scrolling is needed, then it should only scroll vertically.  Something like the image below.
    What I have tried was to use a TileList with a checkbox itemRenderer.  It works great for 1 column and scrolls vertically just fine.  It works great for 3 columns, however when it scrolls it scrolls horizontally and I need it to scroll vertically.  I have attached my code.
    One thing I have noticed is when you set 'direction = vertical' for a TileList the list sorts vertically but scrolls horizontally.  If you leave it as default (direction = horizontal), then it sorts horizontally, but scrolls vertically.  I need it to sort vertically and scroll vertically.  I have tried setting the VerticallyScollPolicy and HorizontalScrollPolicy but that just cut off the data instead of changing the scroll direction.
    I guess my second question is if this functionality is impossible with a TileList then what component would be a better option.
    Thanks in advance for taking the time to answer my questions.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
                    xmlns:csc="com.facl.uaf.common.shared.widget.*"
                    layout="vertical"
                    verticalAlign="top"
                    horizontalAlign="center"
                    backgroundGradientColors="[0x000000,0x323232]"
                    paddingTop="20"
                    paddingBottom="20">
        <mx:ArrayCollection id="collection">
            <mx:Object label="Alameda"/>
            <mx:Object label="Alpine"/>
            <mx:Object label="Amador"/>
            <mx:Object label="Butte"/>
            <mx:Object label="Calaveras"/>
            <mx:Object label="Del Norte"/>
            <mx:Object label="El Dorado"/>
            <mx:Object label="Fresno"/>
            <mx:Object label="Kern"/>
            <mx:Object label="Los Angeles"/>
            <mx:Object label="Orange"/>
            <mx:Object label="Placer"/>
            <mx:Object label="Plumas"/>
            <mx:Object label="Riverside"/>
            <mx:Object label="Sacramento"/>
            <mx:Object label="San Diego"/>
            <mx:Object label="San Francisco"/>
            <mx:Object label="Santa Barbara"/>
            <mx:Object label="Santa Clara"/>
            <mx:Object label="Santa Cruz"/>
        </mx:ArrayCollection>
        <mx:TileList xmlns:mx="http://www.adobe.com/2006/mxml"
                     color="#323232"
                     textAlign="left"
                     paddingLeft="20"
                     itemRenderer="mx.controls.CheckBox"
                     verticalScrollPolicy="auto"
                     themeColor="#FFFFFF"
                     dataProvider="{collection}"
                     columnCount="3"
                     width="500"
                     height="100"
                     direction="vertical">
        </mx:TileList>
    </mx:Application>

    A List class like TileList does a couple of important things.  It only creates enough renderers to fill the viewable portion so you don't end up allocating tons of memory for 1000's of data items, and it has a selection model where you can select one or more data items and it draws a rollover and selection colored backgrounds over the entire renderer.
    Do you need that?  If not, a VBox with 3 HBoxes with 1/3 of the checkboxes in each HBox is all you need.  You can use a Repeater to generate the checkboxes or just add them in a loop.
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • Need help with checkbox

    i hav 2 check boxes and 1 submit button
    when the 1st checkbox is clicked and submit button presed to go to page 1.php, when the second checkbox is clicked and submit button presed to go to page 2.php, and when the bouth checkbox clicked and the submit button is presed to go to 3.php

    ok, suppose the checkboxes are in start.php, the pages you mention are page1, page2 and page3.php and the controller that controls which page to display is controller.php.
    start.php:
    <html>
      <head></head>
      <body>
        <form action="controller.php">
          <input type="checkbox" name="check1" value="1">
          <input type="checkbox" name="check2" value="1">
          <input type="submit" value="Go">
        </form>
      </body>
    </html>controller.php:
    <?php
      if ($_REQUEST["check1"]==1 && $_REQUEST["check2"]==1)
        $page = "page3.php";
      else if ($_REQUEST["check1"]==1)
        $page = "page1.php";
      else if ($_REQUEST["check2"]==1)
        $page = "page2.php";
      else
        $page = "start.php";
      header("Location: $page");
    ?>

  • Need help with checkbox javascript

    Looking to create a form where i have multiple items listed. So when "all" is check it will check all the boxes below it. When "All" is unchecked it will uncheck all of the items listed below. Note sure if this matters but, by defult i will have all items checked.
    All
    -A
    -B
    -C
    -D
    -D
    -E
    -F

    You can use this code as the MouseUp action of the All field. Of course, adjust the fields' names if necessary:
    this.getField("CheckBoxA").checkThisBox(0, event.target.value!="Off");
    this.getField("CheckBoxB").checkThisBox(0, event.target.value!="Off");
    this.getField("CheckBoxC").checkThisBox(0, event.target.value!="Off");
    this.getField("CheckBoxD").checkThisBox(0, event.target.value!="Off");
    this.getField("CheckBoxE").checkThisBox(0, event.target.value!="Off");
    // etc.

  • Need help wiht CheckBox Editor

    I have created checkBox editor that extends DefaultCellEditor but when i click in a cell it will get editor and then will call setValue(Object, int,int) of table model immediately.
    Here;s my celleditor code.
    public class CheckBoxCellEditor extends javax.swing.DefaultCellEditor {
    public CheckBoxCellEditor(javax.swing.JCheckBox checkBox) {
    super(checkBox);
    public CheckBoxCellEditor(javax.swing.JComboBox comboBox) {
         super(comboBox);
    public CheckBoxCellEditor(javax.swing.JTextField textField) {
         super(textField);
    public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) {
    Boolean b;
    if (value == null)
    value = new Boolean(false);
    if (value.getClass().equals(String.class))
    b = new Boolean((String) value);
    else
    b = (Boolean) value;
    if (value instanceof String)
    ((JCheckBox) editorComponent).setSelected(b.booleanValue());
    return editorComponent;

    where are you getting the editorComponent variable from that you are returning? shouldn't you be returning "this"?

  • Help with Javascript/Calculations

    Hello,
    Have a building use policy for school.
    Need help with checkboxes and default values.  I can get javascript/math to work when I click check box.
    Someone wants to rent a room they check the rentRoom checkbox.  Then the enter how many rooms 1,2,3 etc..  The value for the rentRoom checkbox is $25.
    I can get it when the checkbox for rentRoom is selected the rentRoom.Total computes correctly.  However, what I want is when the form opens up a default value of $0.00 to be in there.  I also want if someone goes back and unchecks the rentRoom checkbox the value goes back to $0.00 not just blank.   Right now I am getting the error the value entered does not match the value of the field.  That is if I put the default value in options.  Basically, I can't seem to figure out the javascript code to get this to work.
    Am I asking for too much, can someone guide me to javascript to help me out.
    I have tried if/then statements and switch statements.  I just can't figure out how to get it to for lack of better a word - toggle back and forth.
    If this is not possible please tell me.  If it is too complicated tell me.  I am not using livecycle for this as we had a word document and I just used the find form fields.  I am also using Adobe Acrobat 8 Professional.
    Thanks

    Hello,
    Thanks that looks good.  I am still missing something but the calc doesn't work when I put in my variables.  I will work with it more but nothing happens.
    The one thing is I have the default value of the checkbox as 15 so don't know if that messes it up.
    Right now I get the default value of $0.00 all the time.  When I click on the check box on/off it doesn't do the calcs.
    sorry, any more input, what am i missing??
    I also changed the syntax error that was posted on your origianl post.  You had == 'Off" I changed that to 'Off'

Maybe you are looking for