Many check boxes list(question modified)

hi dear,
i want store the many check box values in database
i am giving example
i have one input list box
if i click on that list box many check box will come.which is already stote in the database
location
bangalore
chennai
hyderabad
mubai
.now i will select bangalore,chennai and it will show in the list box .that value i want store in the database for particular record along with emp id.
how to store pls help me.

You can see my answer in your previous post: how store in database  list of multiple check boxes values
With af:selectManyChoice the same, as with af:selectManyCheckbox:
<af:selectManyChoice value="#{backingBeanScope.rpoDangerObjectBean.licensedActionsSelected}"
label="#{bindings.LicensedActionsClsVO.label}"
id="smc2" simple="true"
contentStyle="width:440px"
autoSubmit="true"
disabled="#{pageFlowScope.disabledMode}">
<af:forEach items="#{bindings.LicensedActionsClsVO1.rangeSet}"
var="item">
<f:selectItem itemValue="#{item.Num}"
itemLabel="#{item.Code} #{item.Name}"
id="si66"/>
</af:forEach>
</af:selectManyChoice>

Similar Messages

  • How do I create a check-box matrix question using Acrobat XI Pro?

    I would like to insert a question that is a 10 x 10 matrix that allows respondents to select multiple boxes in each row.  For example, the "add item > rating scale" feature formats a matrix the way I would like, although it only seems to allow for radio buttons.  With this feature, respondents can only select one item per row.  Is there any way to use this feature with check-boxes rather than radio buttons?  Or a different feature to create a matrix that allows for multiple selections per row? 
    Thanks so much,
    Andy 

    I created a 30 page Form in Microsoft Word with 20 to 30 check boxes on each page using the Zapf Dingbats Font.
    When I used Acrobat XI Pro to automatically convert the form it fails to create usable check boxes.
    It worked properly about 3 times on test pages but it will not do it again.
    Manually inserting check boxes one by one on 30 pages is mind numbing to say the least.
    Why doesn't the software work properly anymore?

  • To create a check box list having values updated as on click

    hi i am working on jDeveloper
    My scenario is like this
    Select Payee : # All
    # Stamp duty 21212
    # Loan 12122
    Total -- ______
    *# represent check box* so if i click on any of the check box its values need to dynamically updated in the Total .
    I have used this code
    <af:selectOneChoice> to list the items but i cant be able to dynamically update the Total. And also only variable are displaying and i need to show the values also.
    So anyone can help me in this plz.

    No easy answer, so maybe you'll first have to know Captivate a little bit better?
    There is a checkboxes interaction, that can be used to manually check off. But if you want that to trigger an animation, you'll be needing an action to apply an effect or to insert an animation.
    Is this really that important, nothing else more urgent? The TOC provides you already with a way to have visited slides automatically being checked with a tick mark.
    Lilybiri

  • Can you create a webform which combines a check box list with a text field?

    In Business Catalyst I'm looking to create a question and answer web form where visitors to the site fill out a choice or choose other and fill in a text field. See sample below...
    Has anyone got any suggestions on how this could be done?
    The question would be as follows...
    Do you live in the area?
    _ Yes
    _ Cottager
    _ Visiting
    _ Other Location _____________

    Liam,
    Thanks for your response, now I'm finding out from the client that this is really an anonymous survey that they want to put on the site. They have been using an online survey but it keeps asking people to join by email. They are getting complaints about that so they want to find another way.
    I've tried to make the form anonymous but I can't remove the email field. Can this be hidden so it doesn't show. Or is there another way to do this?
    I'm not able to code javascript and there are other questions which are similar to the sample I gave which require a text field as well as check boxes.

  • Check Box/ItemListener question

    Hello all,
    I'm trying to create a GUI for a program that I've been working on for some time. In the program, various sections can be run depending on what variables are present in the input file AND whether or not certain previous sections have been selected to run. I'm trying to represent this with a menu comprised of check boxes, where if the proper sections have been selected other boxes become enabled accordingly. I tried to get this behavior simply by saying in itemStateChanged() that if stp1bt3 is selected and stp1bt1 has just been selected, to enable stp2bt1. For some reason, stp2bt1 isn't enabled whenever I try this. Any help would be greatly appreciated, as I'm sure it's something very small that I have to add to this. Here is the code I have:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class CheckGUI extends JPanel implements ItemListener {
    private JCheckBox stp1bt1;
    private JCheckBox stp1bt2;
    private JCheckBox stp1bt3;
    private JCheckBox stp2bt1;
    private JCheckBox stp2bt2;
    private JCheckBox stp2bt3;
    private JCheckBox stp3bt1;
    private JCheckBox stp3bt2;
    private JCheckBox stp3bt3;
    private JCheckBox stp3bt4;
    private JCheckBox stp3bt5;
    private JLabel emptyLabel;
    private JLabel step1Label;
    private JLabel step2Label;
    private JLabel step3Label;
    private boolean s1b2, s1b3, s2b1, s2b2, s2b3, s3b1, s3b2, s3b3, s3b4, s3b5;
    public CheckGUI(boolean s12, boolean s13, boolean s21,
    boolean s22, boolean s23, boolean s31,
    boolean s32, boolean s33, boolean s34,
    boolean s35){
    s1b2 = s12;
    s1b3 = s13;
    s2b1 = s21;
    s2b2 = s22;
    s2b3 = s23;
    s3b1 = s31;
    s3b2 = s32;
    s3b3 = s33;
    s3b4 = s34;
    s3b5 = s35;
    emptyLabel = new JLabel("");
    stp1bt1 = new JCheckBox("Button 1");
    stp1bt2 = new JCheckBox("Button 2");
    if (s1b2 == false){
    stp1bt2.setEnabled(false);
    stp1bt3 = new JCheckBox("Button 3");
    if (s1b3 == false){
    stp1bt3.setEnabled(false);
    stp2bt1 = new JCheckBox("Button 1");
    stp2bt1.setEnabled(false);
    stp2bt2 = new JCheckBox("Button 2");
    stp2bt2.setEnabled(false);
    stp2bt3 = new JCheckBox("Button 3");
    stp2bt3.setEnabled(false);
    stp3bt1 = new JCheckBox("Button 1");
    stp3bt1.setEnabled(false);
    stp3bt2 = new JCheckBox("Button 2");
    stp3bt2.setEnabled(false);
    stp3bt3 = new JCheckBox("Button 3");
    stp3bt3.setEnabled(false);
    stp3bt4 = new JCheckBox("Button 4");
    stp3bt4.setEnabled(false);
    stp3bt5 = new JCheckBox("Button 5");
    stp3bt5.setEnabled(false);
    step1Label = new JLabel("Step 1");
    step2Label = new JLabel("Step 2");
    step3Label = new JLabel("Step 3");
    setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
    add(step1Label);
    add(stp1bt1);
    if(s1b2 == true)
    add(stp1bt2);
    else
    add(emptyLabel);
    if(s1b3 == true)
    add(stp1bt3);
    else
    add(emptyLabel);
    add(step2Label);
    if(s2b1 == true)
    add(stp2bt1);
    else
    add(emptyLabel);
    if(s2b2 == true)
    add(stp2bt2);
    else
    add(emptyLabel);
    if(s2b3 == true)
    add(stp2bt3);
    else
    add(emptyLabel);
    add(step3Label);
    if(s3b1 == true)
    add(stp3bt1);
    else
    add(emptyLabel);
    if(s3b2 == true)
    add(stp3bt2);
    else
    add(emptyLabel);
    if(s3b3 ==true)
    add(stp3bt3);
    else
    add(emptyLabel);
    if(s3b4 == true)
    add(stp3bt4);
    else
    add(emptyLabel);
    if(s3b5 == true)
    add(stp3bt5);
    else
    add(emptyLabel);
    public void itemStateChanged(ItemEvent e){
    Object source = e.getItemSelectable();
    if (source == stp1bt1){
    if(e.getStateChange() == ItemEvent.SELECTED && stp1bt3.isSelected() && s2b1 == true){
    stp2bt1.setEnabled(true);
    public static void main (String args[]) {
    JFrame f = new JFrame ("CheckBox Test");
    JPanel j = new CheckGUI(true,true,true,true,true,true,true,true,true,true);
    f.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    System.exit(0);
    f.getContentPane().add (j, BorderLayout.CENTER);
    f.setSize (150, 450);
    f.show();
    }

    Hello,
    My dear frind you have to add the item listener fro an item to do dymaic changes in the check box.
    So for now i have added it.. check it down
    i have also placed the system.out.println(....);
    Alll THe Best
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class CheckGUI extends JPanel implements ItemListener {
    private JCheckBox stp1bt1;
    private JCheckBox stp1bt2;
    private JCheckBox stp1bt3;
    private JCheckBox stp2bt1;
    private JCheckBox stp2bt2;
    private JCheckBox stp2bt3;
    private JCheckBox stp3bt1;
    private JCheckBox stp3bt2;
    private JCheckBox stp3bt3;
    private JCheckBox stp3bt4;
    private JCheckBox stp3bt5;
    private JLabel emptyLabel;
    private JLabel step1Label;
    private JLabel step2Label;
    private JLabel step3Label;
    private boolean s1b2, s1b3, s2b1, s2b2, s2b3, s3b1, s3b2, s3b3, s3b4, s3b5;
    public CheckGUI(boolean s12, boolean s13, boolean s21,
    boolean s22, boolean s23, boolean s31,
    boolean s32, boolean s33, boolean s34,
    boolean s35){
    s1b2 = s12;
    s1b3 = s13;
    s2b1 = s21;
    s2b2 = s22;
    s2b3 = s23;
    s3b1 = s31;
    s3b2 = s32;
    s3b3 = s33;
    s3b4 = s34;
    s3b5 = s35;
    emptyLabel = new JLabel("");
    stp1bt1 = new JCheckBox("Button 1");
    stp1bt2 = new JCheckBox("Button 2");
    if (s1b2 == false){
    stp1bt2.setEnabled(false);
    stp1bt3 = new JCheckBox("Button 3");
    if (s1b3 == false){
    stp1bt3.setEnabled(false);
    stp2bt1 = new JCheckBox("Button 1");
    stp2bt1.setEnabled(false);
    stp2bt2 = new JCheckBox("Button 2");
    stp2bt2.setEnabled(false);
    stp2bt3 = new JCheckBox("Button 3");
    stp2bt3.setEnabled(false);
    stp3bt1 = new JCheckBox("Button 1");
    stp3bt1.setEnabled(false);
    stp3bt2 = new JCheckBox("Button 2");
    stp3bt2.setEnabled(false);
    stp3bt3 = new JCheckBox("Button 3");
    stp3bt3.setEnabled(false);
    stp3bt4 = new JCheckBox("Button 4");
    stp3bt4.setEnabled(false);
    stp3bt5 = new JCheckBox("Button 5");
    stp3bt5.setEnabled(false);
    step1Label = new JLabel("Step 1");
    step2Label = new JLabel("Step 2");
    step3Label = new JLabel("Step 3");
    setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
    add(step1Label);
    add(stp1bt1);
    if(s1b2 == true)
    add(stp1bt2);
    else
    add(emptyLabel);
    if(s1b3 == true)
    add(stp1bt3);
    else
    add(emptyLabel);
    add(step2Label);
    if(s2b1 == true)
    add(stp2bt1);
    else
    add(emptyLabel);
    if(s2b2 == true)
    add(stp2bt2);
    else
    add(emptyLabel);
    if(s2b3 == true)
    add(stp2bt3);
    else
    add(emptyLabel);
    add(step3Label);
    if(s3b1 == true)
    add(stp3bt1);
    else
    add(emptyLabel);
    if(s3b2 == true)
    add(stp3bt2);
    else
    add(emptyLabel);
    if(s3b3 ==true)
    add(stp3bt3);
    else
    add(emptyLabel);
    if(s3b4 == true)
    add(stp3bt4);
    else
    add(emptyLabel);
    if(s3b5 == true)
    add(stp3bt5);
    else
    add(emptyLabel);
    stp1bt1.addItemListener(this);
    stp1bt2.addItemListener(this);
    stp1bt3.addItemListener(this);
    stp2bt1.addItemListener(this);
    stp2bt2.addItemListener(this);
    stp2bt3.addItemListener(this);
    stp3bt1.addItemListener(this);
    stp3bt2.addItemListener(this);
    stp3bt3.addItemListener(this);
    stp3bt4.addItemListener(this);
    stp3bt5.addItemListener(this);
    public void itemStateChanged(ItemEvent e){
    Object source = e.getSource();
    if (source == stp1bt1){
         /*      System.out.println(e.getStateChange() == ItemEvent.SELECTED);
              System.out.println(stp1bt3.isSelected());
              System.out.println(s2b1 == true); */
    if(e.getStateChange() == ItemEvent.SELECTED && stp1bt3.isSelected() && s2b1 == true){
    stp2bt1.setEnabled(true);
    public static void main (String args[]) {
    JFrame f = new JFrame ("CheckBox Test");
    JPanel j = new CheckGUI(true,true,true,true,true,true,true,true,true,true);
    f.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    System.exit(0);
    f.getContentPane().add (j, BorderLayout.CENTER);
    f.setSize (150, 450);
    f.show();
    }

  • Check Box Selection Questions

    Is it possible to make a selection with a check box, and then have it select a predetermined selection from a drop down menu?
    e.g. If I select "Los Angeles" from a series of office locations in my check boxes, can it automatically select an address from a drop down selection for that Los Angeles Office?
    Thanks for any help in advance
    Aaron

    Notice that this line
    request.getParameterValues("build1");
    is getting the value of the check box. The "checked" attribute is not the value, just the attribute.
    Oddly enough, I just wrote some code to do this today.
    First, add this little javascript method to your page.
    <SCRIPT language="JavaScript"> <!--  //Hide contents from older browsers
    function setHiddenTagFromCheckbox(checkbox, element) {
      if(checkbox.checked) {
        element.value="yes";  
      else {
        element.value="no";  
    // End hiding the contents -->
    </SCRIPT> 2) Add a hidden input field for each checkbox field.
    <input type="HIDDEN" name="prin2signhidden" value = "no">3) Add an onclick handler for the check box
    <input type=checkbox name="prin2sign" onclick="setHiddenTagFromCheckbox(document.formname.prin2sign, document.formname.prin2signhidden)">In your servlet check the value of prin2signhidden instead of the checkbox input.
    The forum is doing odd things to this source code. Any place you see a > you should actually have a "greater than" sign.

  • Select many check box problem

    I'm having a lot of trouble with a selectManyCheckBox. I've got a faces panelTabbedPane - and one of the tabs contains a selectManyCheckbox. All the data in the tabs applies to the same bean so I want to apply all the changes or none of them.
    If I don't have the h:form around the tab then the check boxes aren't initialised. However with the h:form when I try and submit the form the checkbox values don't get set on my bean.
    What am I doing wrong and how do I fix it? Any help would be appreciated.
    JSP containing the panel tabbed pane
        <h:form id="edit.form">
            <x:messages id="messageList" showSummary="true" showDetail="true" summaryFormat="{0}:" styleClass="error" />
            <x:panelTabbedPane title="#{msg['account.edit.tabs.title']}" >
                <f:subview id="tab1" >
                    <jsp:include page="editGeneral.jsp"/>
                </f:subview>
                    <h:form id="roles.form">
                <f:subview id="tab2" >
                            <jsp:include page="editRoles.jsp"/>
                </f:subview>
                    </h:form>
                <f:subview id="tab3" >
                    <jsp:include page="editPreferences.jsp"/>
                </f:subview>
                <f:subview id="tab4" >
                    <jsp:include page="editCustomers.jsp"/>
                </f:subview>
                <f:verbatim><br /></f:verbatim>
                <x:commandButton id="editButton" value="#{msg['account.update']}" action="#{selectedAccount.update}" title="#{msg['account.update.alt']}" />
                <x:commandButton id="cancel" immediate="true" value="#{msg['enable.cancel']}" action="cancel" title="#{msg['enable.cancel.alt']}" />
            </x:panelTabbedPane>
        </h:form>And the included JSP
    <x:panelTab label="#{msg['account.edit.tab.roles']}" title="#{msg['account.edit.tab.roles.title']}" >
        <h:panelGrid columns="2" >
            <h:outputLabel for="roles" value="#{msg['account.edit.role']}" />
            <h:selectManyCheckbox id="roles" value="#{selectedAccount.roles}" layout="pageDirection" styleClass="menuSelectMany" >
                <f:selectItems value="#{userPreferences.roles}" />
            </h:selectManyCheckbox>
        </h:panelGrid>
    </x:panelTab>Thanks

    What type does 'userPreferences.roles' represent in your included jsp?
    Is it a collection of Role classes returned as a SelectItem array?

  • Check box list

    I'm looking to have a list containing checkboxes. I've found
    a couple examples online, but still can't seem to get what I need.
    I need to be able to drag the components up or down in the list to
    reorder them and also toggel them on or off (checked or unchecked).
    I can get the on/off and I can get the drag and drop, but when I
    click on an item to drag it, it toggles the checkbox automatically.
    Anywone know a better way to do this?

    I would create a composite component that uses a Checkbox and
    a Label. Don't use the built-in label property. You would drag it
    by dragging the Label, which would not also click the checkbox.
    Tracy

  • Highlight on check boxes on question slides

    Can I change the default green highlight on the checkboxes on question screens?
    Thanks

    The easiest way to do it would be to simply not allow the user to click the other 2 checkboxes if the first checkbox is filled.
    on checkbox1:
    if (this.rawValue == 1){ \\ checkbox is filled
         checkbox2.access = "protected";
         checkbox3.access = "protected";
    if (this.rawValue == 0){ \\ checkbox is unfilled
         checkbox2.access = "open";
         checkbox3.access = "open";
    Then you can simply reverse it for the other 2 that are allowed to be open together, the script would be the same for both checkboxes:
    if (this.rawValue == 1){ \\ checkbox is filled
         checkbox1.access = "protected";
    if (this.rawValue == 0){ \\ checkbox is unfilled
         checkbox1.access = "open";
    If the user can't click the checkboxes, the hidden forms can't be open.

  • ALV grid check box

    Hi,
    I am using ALV gid with FM 'REUSE_ALV_GRID_DISPLAY_LVC'. I am displaying a check box on the screen. I have to know how many check box were selected.
    Any idea how to get that.
    I have used lay-box_fnname = checkbox and looped the itab in user command. But I am not getting the desired result. Please lte me know how its managed.
    KK.

    REPORT ZALV_DISPLAY_CHANGE.
    TABLES :T247.
    TYPE-POOLS SLIS. "Type definitions for alv report
    DATA: IT_FIELDCAT TYPE LVC_T_FCAT,
    WA_FIELDCAT TYPE LVC_S_FCAT.
    DATA: WA_LAYOUT TYPE LVC_S_LAYO.
    DATA : BEGIN OF IT_FINAL OCCURS 0,
    CHECK(1),
    CELLTAB TYPE LVC_T_STYL, " Switch between display/change
    MNR LIKE T247-MNR,
    LTX LIKE T247-LTX,
    END OF IT_FINAL.
    DATA : WA_FINAL LIKE IT_FINAL.
    DATA : W_REPID LIKE SY-REPID.
    W_REPID = SY-REPID.
    REFRESH IT_FINAL.
    SELECT MNR LTX
    FROM T247
    INTO CORRESPONDING FIELDS OF TABLE IT_FINAL
    WHERE SPRAS EQ 'E'.
    WA_FIELDCAT-FIELDNAME = 'CHECK'.
    WA_FIELDCAT-TABNAME = 'IT_FINAL'.
    WA_FIELDCAT-CHECKBOX = 'X'.
    WA_FIELDCAT-EDIT = 'X'..
    WA_FIELDCAT-OUTPUTLEN = '3'.
    WA_FIELDCAT-COL_POS = '1'.
    APPEND WA_FIELDCAT TO IT_FIELDCAT.
    CLEAR WA_FIELDCAT.
    WA_FIELDCAT-FIELDNAME = 'MNR'.
    WA_FIELDCAT-TABNAME = 'IT_FINAL'.
    WA_FIELDCAT-OUTPUTLEN = '8'.
    WA_FIELDCAT-COL_POS = '2'.
    WA_FIELDCAT-REPTEXT = 'Month'.
    APPEND WA_FIELDCAT TO IT_FIELDCAT.
    CLEAR WA_FIELDCAT.
    WA_FIELDCAT-FIELDNAME = 'LTX'.
    WA_FIELDCAT-TABNAME = 'IT_FINAL'.
    WA_FIELDCAT-OUTPUTLEN = '20'.
    WA_FIELDCAT-COL_POS = '3'.
    WA_FIELDCAT-REPTEXT = 'Month Desc'.
    APPEND WA_FIELDCAT TO IT_FIELDCAT.
    CLEAR WA_FIELDCAT.
    DATA: WA_CELLTAB TYPE LVC_S_STYL,
    IT_CELLTAB TYPE LVC_T_STYL,
    L_INDEX TYPE I.
    CLEAR : WA_CELLTAB,WA_FINAL,IT_CELLTAB.
    REFRESH IT_CELLTAB.
    *Initialize the celltab table
    LOOP AT IT_FINAL INTO WA_FINAL.
    L_INDEX = SY-TABIX.
    WA_CELLTAB-FIELDNAME = 'CHECK'.
    WA_CELLTAB-STYLE = CL_GUI_ALV_GRID=>MC_STYLE_ENABLED.
    INSERT WA_CELLTAB INTO TABLE IT_CELLTAB.
    INSERT LINES OF IT_CELLTAB INTO TABLE WA_FINAL-CELLTAB.
    MODIFY IT_FINAL FROM WA_FINAL INDEX L_INDEX.
    ENDLOOP.
    *Make the first five 5 rows as disabled
    CLEAR L_INDEX.
    LOOP AT IT_FINAL INTO WA_FINAL.
    L_INDEX = SY-TABIX.
    IF SY-TABIX LE 5.
    LOOP AT WA_FINAL-CELLTAB INTO WA_CELLTAB.
    IF WA_CELLTAB-FIELDNAME EQ 'CHECK' .
    WA_CELLTAB-STYLE = CL_GUI_ALV_GRID=>MC_STYLE_DISABLED.
    MODIFY WA_FINAL-CELLTAB FROM WA_CELLTAB.
    MODIFY IT_FINAL INDEX L_INDEX FROM WA_FINAL TRANSPORTING CELLTAB.
    ENDIF.
    ENDLOOP.
    ENDIF.
    ENDLOOP.
    WA_LAYOUT-BOX_FNAME = 'CHECK'.
    WA_LAYOUT-NO_ROWMARK = 'X'.
    WA_LAYOUT-STYLEFNAME = 'CELLTAB'.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'
    EXPORTING
    I_CALLBACK_PROGRAM = W_REPID
    I_GRID_TITLE = 'GRID DISPLAY'
    I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
    IS_LAYOUT_LVC = WA_LAYOUT
    IT_FIELDCAT_LVC = IT_FIELDCAT
    TABLES
    T_OUTTAB = IT_FINAL
    EXCEPTIONS
    PROGRAM_ERROR = 1
    OTHERS = 2.
    FORM USER_COMMAND USING P_UCOMM TYPE SY-UCOMM
                            P_SELFLD TYPE SLIS_SELFIELD.
    Data ref1 type ref to cl_gui_alv_grid.
    CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
    IMPORTING
    E_GRID = ref1.
    call method ref1->check_changed_data
    CASE P_UCOMM.
      WHEN 'DELETE'.
          loop at it_final where check eq 'X'.
            count = count + 1.                       " Counts the no of checked records
          endloop.
    ENDCASE.
    ENDFORM.

  • Return Item and Free goods check box in purchase order

    Hi Guru:
    I just got the question regarding the return item and free goods check box,my question is that if I check the free good check box,then the price of the matieral will be charged to zero,however,if I want to issue the return purchase order to the vendor,does I need to check the return box first and then issue the return order to the vendor? Then go to MIGO transaction to select the movement type 122 to return the goods,what's the whole precedure for returning the goods to the vendor,can anybody tell me,very appriated!

    Hi,
    Retun to vendor through have two types....
    One is you have Po created, vendor send the item in that few items have rejected so you need to return the item to vendor......
    here in MIGo chose returrn to vendor selce the PO numbere.... system automaticaly take the movent type 122....
    sencond type is Retun PO..... In Po while creting the PO tick the return indication..
    If you do the GR system will pick 161mopvent type.. ( GR returns)...
    REgards
    anand

  • Troubles hidding check box's

    Hi,
    I'm working with Forms Versión 6.0.8.14.1 and I have a problem...
    I have a block with 20 records. I need to display the check box only if the query
    has returned records. For example, if the query returns two records, I need to display two check box's. I tried to use set_item_instance property but this can't hide the check box.. How can I do this ?
    Thanks!!

    Hi,
    Thanks Simon!,
    --How many check boxes are there in each record (1 or 20 )...???
    Only 1 check box
    --How do you fetch records...??? By execute_query(forms built-in procedure) or by cursor...????
    --Is the datablock a database block or control block...????
    Is a database block and we fetch records by execute_query, the max number of records in the block are 20 but we fetch only 3 (Ex.).. I wanna display only 3 check's and hide the rest of the checks, can i change the max number of records of the block in the POST-QUERY to set it to 3 or 4 if i only have 4 matches ?
    Thanks!, and sorry for my bad English
    Regards,
    Simon

  • How to select the output list check boxes

    Hi ABAP gurus,
       I am developing the on report, it display the output list, in that output list first column is Check box,
    here i created the 3 Pushbuttons on application tool bar,  one pushbutton is SELECT ALL, 2nd one is DESELECT ALL , 3rd one is CREDIT NOT CREATE,
    here when i click on the Select all button it will select all the check boxs and click on the credit not button  it will create credit memos for all the customers,  if i select the one or more than one check boxs, it will not working means (Credit note will not be created for that paricular customer)
    plz tell me answer, if u know the any example programs related to this program plz send me.

    Hi,
    refer this sample code.
    AT USER-COMMAND.
      CASE sy-ucomm.
        WHEN 'F2'.
          PERFORM selection.
        WHEN 'SELECTALL'.
          PERFORM selectall.
        WHEN 'DESELECTAL'.
          PERFORM deselectall.
      ENDCASE.                             " CASE SY-UCOMM
    *&      Form  selection                                                *
          Selecting records of basic list and display flight information *
          No parameters transferred                                      *
    FORM selection .
      DO w_lines TIMES.
        READ LINE w_lineno FIELD VALUE w_checkbox INTO w_checkbox
                                    fs_spfli-carrid INTO fs_spfli-carrid
                                    fs_spfli-connid INTO fs_spfli-connid
                                    w_mark INTO w_mark.
        IF sy-subrc EQ 0.
          IF w_checkbox EQ 'X' AND w_mark NE '*'.
            w_mark = '*'.
            MODIFY CURRENT LINE FIELD VALUE w_mark
                                FIELD FORMAT w_checkbox INPUT OFF.
            SELECT carrid                  " Airline Code
                   connid                  " Flight Connection Number
                   fldate                  " Flight date
                   seatsmax                " Maximum capacity
                   seatsocc                " Occupied seats
              FROM sflight
              INTO CORRESPONDING FIELDS OF TABLE t_sflight
              WHERE carrid EQ fs_spfli-carrid AND connid EQ fs_spfli-connid.
            IF sy-subrc EQ 0.
              LOOP AT t_sflight INTO fs_sflight.
                WRITE :/2 fs_sflight-carrid,
                       10 fs_sflight-fldate,
                       25 fs_sflight-seatsmax,
                       45 fs_sflight-seatsocc.
              ENDLOOP.                     " LOOP AT T_SFLIGHT INTO....
              ULINE.
              CLEAR t_sflight.
            ELSE.
              MESSAGE text-001 TYPE 'S'.
            ENDIF.                         " IF SY-SUBRC EQ 0
          ENDIF.                           " IF W_CHECKBOX EQ 'X' AND .....
        ENDIF.                             " IF SY-SUBRC EQ 0
        ADD 1 TO w_lineno.
        CLEAR w_checkbox.
      ENDDO.                               " DO W_LINES TIMES
      w_lineno = 3.
    ENDFORM.                               " Selection

  • How to add check box in the ALV list

    dear Experts,
                 i have a requirement.
    i want show the check boxes in my ALV list.
    can u please give the solution.
    thanks

    TYPE-POOLS: slis.
    *---internal tables
    DATA: BEGIN OF it_flight OCCURS 0,
    SEL, " add a single character field in the final output table
    carrid LIKE sflight-carrid,
    connid LIKE sflight-connid,
    fldate LIKE sflight-fldate,
    seatsmax LIKE sflight-seatsmax,
    seatsocc LIKE sflight-seatsocc,
    END OF it_flight,
    *--internal tables for alv
    it_fieldcat TYPE slis_t_fieldcat_alv,
    wa_fcat LIKE LINE OF it_fieldcat,
    layout TYPE slis_layout_alv,
    it_sort type slis_t_sortinfo_alv,
    wa_sort like line of it_sort.
    DATA: BEGIN OF it_flight_sel OCCURS 0,
    SEL,
    carrid LIKE sflight-carrid,
    connid LIKE sflight-connid,
    fldate LIKE sflight-fldate,
    seatsmax LIKE sflight-seatsmax,
    seatsocc LIKE sflight-seatsocc,
    END OF it_flight_sel.
    data: wa_flight like it_flight.
    In the layout set give the name of the field
    whose checkbox will be created ( SEL as it has 1 char only )
    layout-box_fieldname = 'SEL'.
    *---start-of-selection .
    START-OF-SELECTION.
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
    i_program_name = sy-repid
    i_internal_tabname = 'IT_FLIGHT'
    i_inclname = sy-repid
    CHANGING
    ct_fieldcat = it_fieldcat
    EXCEPTIONS
    inconsistent_interface = 1
    program_error = 2.
    *----get data
    SELECT carrid
    connid
    fldate
    seatsmax
    seatsocc
    FROM sflight
    INTO CORRESPONDING FIELDS OF TABLE it_flight
    UP TO 20 ROWS.
    wa_fcat-do_sum = 'X'.
    MODIFY it_fieldcat FROM wa_fcat TRANSPORTING do_sum
    WHERE fieldname = 'SEATSOCC' .
    wa_sort-fieldname = 'CARRID'.
    wa_sort-group = 'UL'.
    wa_sort-up = 'X'.
    APPEND wa_sort TO it_sort.
    clear wa_sort.
    wa_sort-fieldname = 'CONNID'.
    wa_sort-subtot = 'X'.
    wa_sort-up = 'X'.
    APPEND wa_sort TO it_sort.
    clear wa_sort.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    i_callback_program = sy-repid
    I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
    is_layout = layout
    it_fieldcat = it_fieldcat
    it_sort = it_sort
    TABLES
    t_outtab = it_flight
    EXCEPTIONS
    program_error = 1.
    FORM user_command USING r_ucomm LIKE sy-ucomm
    rs_selfield TYPE slis_selfield.
    Check function code
    CASE r_ucomm.
    WHEN '&IC1'.
    Check field clicked on within ALVgrid report
    IF rs_selfield-fieldname = 'EBELN'.
    Read data table, using index of row user clicked on
    READ TABLE it_ekko INTO wa_ekko INDEX rs_selfield-tabindex.
    Set parameter ID for transaction screen field
    SET PARAMETER ID 'BES' FIELD wa_ekko-ebeln.
    Sxecute transaction ME23N, and skip initial data entry screen
    CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.
    ENDIF.
    WHEN '&IC1'. "'&DATA_SAVE'. "user presses SAVE
    loop at it_flight into wa_flight.
    if wa_flight-Sel EQ 'X'.
    collecting records in table it_flight_sel to process further
    append wa_flight to it_flight_sel.
    clear wa_flight.
    TYPE-POOLS: slis.
    *---internal tables
    DATA: BEGIN OF it_flight OCCURS 0,
    SEL, " add a single character field in the final output table
    carrid LIKE sflight-carrid,
    connid LIKE sflight-connid,
    fldate LIKE sflight-fldate,
    seatsmax LIKE sflight-seatsmax,
    seatsocc LIKE sflight-seatsocc,
    END OF it_flight,
    *--internal tables for alv
    it_fieldcat TYPE slis_t_fieldcat_alv,
    wa_fcat LIKE LINE OF it_fieldcat,
    layout TYPE slis_layout_alv,
    it_sort type slis_t_sortinfo_alv,
    wa_sort like line of it_sort.
    DATA: BEGIN OF it_flight_sel OCCURS 0,
    SEL,
    carrid LIKE sflight-carrid,
    connid LIKE sflight-connid,
    fldate LIKE sflight-fldate,
    seatsmax LIKE sflight-seatsmax,
    seatsocc LIKE sflight-seatsocc,
    END OF it_flight_sel.
    data: wa_flight like it_flight.
    In the layout set give the name of the field
    whose checkbox will be created ( SEL as it has 1 char only )
    layout-box_fieldname = 'SEL'.
    *---start-of-selection .
    START-OF-SELECTION.
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
    i_program_name = sy-repid
    i_internal_tabname = 'IT_FLIGHT'
    i_inclname = sy-repid
    CHANGING
    ct_fieldcat = it_fieldcat
    EXCEPTIONS
    inconsistent_interface = 1
    program_error = 2.
    *----get data
    SELECT carrid
    connid
    fldate
    seatsmax
    seatsocc
    FROM sflight
    INTO CORRESPONDING FIELDS OF TABLE it_flight
    UP TO 20 ROWS.
    wa_fcat-do_sum = 'X'.
    MODIFY it_fieldcat FROM wa_fcat TRANSPORTING do_sum
    WHERE fieldname = 'SEATSOCC' .
    wa_sort-fieldname = 'CARRID'.
    wa_sort-group = 'UL'.
    wa_sort-up = 'X'.
    APPEND wa_sort TO it_sort.
    clear wa_sort.
    wa_sort-fieldname = 'CONNID'.
    wa_sort-subtot = 'X'.
    wa_sort-up = 'X'.
    APPEND wa_sort TO it_sort.
    clear wa_sort.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    i_callback_program = sy-repid
    I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
    is_layout = layout
    it_fieldcat = it_fieldcat
    it_sort = it_sort
    TABLES
    t_outtab = it_flight
    EXCEPTIONS
    program_error = 1.
    FORM user_command USING r_ucomm LIKE sy-ucomm
    rs_selfield TYPE slis_selfield.
    Check function code
    CASE r_ucomm.
    WHEN '&IC1'.
    Check field clicked on within ALVgrid report
    IF rs_selfield-fieldname = 'EBELN'.
    Read data table, using index of row user clicked on
    READ TABLE it_ekko INTO wa_ekko INDEX rs_selfield-tabindex.
    Set parameter ID for transaction screen field
    SET PARAMETER ID 'BES' FIELD wa_ekko-ebeln.
    Sxecute transaction ME23N, and skip initial data entry screen
    CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.
    ENDIF.
    WHEN '&IC1'. "'&DATA_SAVE'. "user presses SAVE
    loop at it_flight into wa_flight.
    if wa_flight-Sel EQ 'X'.
    collecting records in table it_flight_sel to process further
    append wa_flight to it_flight_sel.
    clear wa_flight.
    Please follow the code.

  • Drop-down list of check-box options with header.

    Okay, I'm not sure if this is actually possible but I shall ask anyway. Partially because I have limited FP real estate and also because I think this is relatively easy method for the user to use, I have come up with the following idea:
    I want something that looks similar to a menu ring when not selected, displaying the text 'Plots'. Then, when it is clicked a list/menu opens downwards (as opposed to the default operation of menu rings). In this list/menu will be an element for each plot that is displayed on an XY Graph. Each element will contain a check-box (control) and a string (indicator). The strings will each display their respective plot name. The user can then click on the list/menu/thing to show the elements for the plots, and can check or uncheck however many they wish. The idea is that whichever plots are checked will be the ones displayed on the XY Graph.
    Firstly, have I explained this well enough, and secondly, is it possible?
    Thank you.
    James
    Never say "Oops." Always say "Ah, interesting!"
    Solved!
    Go to Solution.

    Just to make sure I wasn't leading you down the garden path, I messed around a little and came up with the following two vi's (LV 8.5)
    Load  Custom Ring Main.vi, run it, and try selecting the ring list.
    Hope this helps! 
    Thoric (CLA, CLED, CTD and LabVIEW Champion)
    Attachments:
    Custom Ring Main.vi ‏24 KB
    custom_ring_subvi.vi ‏37 KB

Maybe you are looking for