Selection box display  in OOALV

Hi ,
I am using OOALV, i am trying to display selection tab in the ALV display. I am able to display the seletion box only in the corner of the layout but I am not able to display the selectionbox for all records. I am using the following code:
form prepare_layout  changing p_gW_layout TYPE lvc_s_layo.
P_gw_layout-BOX_FNAME = 'SEL_FIELD'.
endform.        
In internal table I have included field SEL_FIELD of type char(1).
Please give me a possible solution.
Regards,
Sankar

hi
when you define the <b>layout</b> for the ALV structure LVC_S_LAYO
set the field SEL_MODE = 'A'.
This will allow for all the fields.

Similar Messages

  • The html select box option is not getting displayed properly in IE11

    The html select box option is not getting displayed properly in IE11
    I have developed a website that has a select box drop down. The select box drop down is getting displayed properly in IE9. But in IE11, if I am selecting any option apart from the first one, the whole select box option is getting moved up in the page.
    In IE11, if option 2 is selected, then the select options is getting moved up. But in IE9, if option 2 is selected, then the select options is getting displayed properly.
    Please let me know the fix so that the select options are displayed in the same manner as in IE9.
    Sorry but I am unable to upload images as this site is throwing some error

    Hi Kevin Shen,
    Thanks for post.
    I tried above code in ie 11(version 11.0.9600.17633).
    But it is not working. If you select option 2, and open select box then it open on the select box.
    It should open below the select box.
    Code for above:-
    <select>
    <option>1</option>
    <option>2</option>
    <option>3</option>
    </select>
    Sorry I could not attach screen shot. We have normal select box with three options. If we select option 2, it is showing option list on the select box. It is coming below the select box in ie 10 and other browse like chrome. 
    So what we should do, so that all options will come below the select box?
    Thanks,
    Yogesh Toke

  • Multi-Select Box Not Displaying Values Passed From Grid?

    Coldfusion 8
    I inherited an application and am trying to maintain and improve it... hit a snag today.
    I have a multi-select box that is not displaying what I expect.  The values come from a ColdFusion grid which is based off a database query.
    Here is the code for the select - does not work - nothing is selected:
    <cfselect name="USER_IDS" multiple="true" queryposition="below" selected="USER_IDS" query="ActiveUsersPlus" disabled="#disabled#" value="G_USER_WORK_UNIT_SK" display="G_USER_ID" >
    </cfselect>
    Now if I change the multiselect to a single select like below - it takes the first item in the field list (from the grid) and selects it in the drop down.
    <cfselect name="USER_IDS" multiple="false" queryposition="below" selected="USER_IDS" query="ActiveUsersPlus" disabled="#disabled#" value="G_USER_WORK_UNIT_SK" display="G_USER_ID" >
    </cfselect>
    Or if I assign a variable like this and use the multi-select code it seems to work as well.
    testlist = "22,26";
    <cfselect name="USER_IDS" multiple="true" queryposition="below" selected="#testlist#" query="ActiveUsersPlus" disabled="#disabled#" value="G_USER_WORK_UNIT_SK" display="G_USER_ID" >
    </cfselect>
    I have displayed the value of "User_IDs" in the grid and in the data entry part of the screen to see values of:  22,26
    to make sure that wasn't my issue.
    Do grids and multiselects require something additional?  Any advice on how to resolve?

    Problem was related to some javascript for the select box.  There was a function for a single select box but not a multiple select box - this fixed it: 
    if(theForm.elements[i].type == "select-multiple"){
                        var selectBox = theForm.elements[i];
                        var sbname = selectBox.name;
                        cpvalue = String(eval('record.data.' + sbname));
                        var NotifyArray = cpvalue.split(',');
                        for (var j=0; j < selectBox.length; j++) {
                            selectBox[j].selected = false;
                        for (var j=0; j < selectBox.length; j++) {
                            sbvalue = selectBox[j].value;
                            for (var k=0; k < NotifyArray.length; k++){
                                if (sbvalue == NotifyArray[k]){
                                    selectBox[j].selected = true;

  • Display Key and Text in Variable Selection Box by Default in BEx

    Hi Experts,
    I have a requirement to display both key and text in the variable selection box by default.
    Currently, only the text is being displayed.
    The 'wrench' can be used to change the display, but the client would like to see both key and text by default.
    Is there  a way I can accomplish this?
    Thanks,
    Points will be assigned!

    hi experts,
    i have done the same settings in development and its working fine and we can see key/text bydefault in variable selection in Dev. and when i transport the cube into quality the settings are reflecting but in analyzer(QA) variable selection screen still its giving text(DEFAULT). could you please provide me the solutions to do it.
    thanks & Regards
    vadlamudi

  • Display in multiple selection box

    Hi
    I have two multiple selection boxes.When i select few items in the first box and click a button it should appear on the second box.
    how can it be achieved? any help would be appreciated.

    You could do this or using Javascript or updating the page by passing a parameter.
    It depends on what u have to implement.
    Ing. Steva

  • Dynamic populating the items in the select boxes

    Hi,
    I need three select boxes on a webpage in such a way that the options in select box 2 should be populated only after selecting some item in "select box 1" and the options in the "select box 3" should be displayed by selecting the options in "the select box2". The data is being retrived from the database. I know that this functionality can be acheived through the "javascript". I am fine until getting the data from the database but not sure how to get it work using javascript.
    I would appreciate if someone can post any snippet of code or give any suggesstions or pointer on how to proceed....
    -coolers

    probably should ask on a javascript forum then. This is for java.

  • How to populate optional items in SELECT BOX

    // REGISTRATION.JSP//
    <%@ page import="java.util.Enumeration" %>
    <%@ page import="java.util.Vector" %>
    <%@ page import="java.util.*" %>
    <%@ page import="java.lang.*" %>
    <%@ page import="java.sql.*" %>
    <%@ page import="beans.register2" %>
    <jsp:useBean id="registerbn" scope= "session" class="beans.register2" />
    <% String base = (String) session.getAttribute("base");
    registerbn.setDburl((String)session.getAttribute("dbUrl"));
    registerbn.setDbuser((String)session.getAttribute("dbUserName"));
    registerbn.setDbpasswd((String)session.getAttribute("dbPassword"));
    System.out.println("Inside jsp - setMembers of promotion successful");
    registerbn.setMembers();
    System.out.println("after setting");
    %>
    <%
    String action=request.getParameter("action");
    %>
    <HTML>
    <HEAD>
    <TITLE> TIFR INTRANET </TITLE>
    </HEAD>
    <HEAD>
    <script language="_JavaScript1.2">
    function isIdcode()
    / validating
    function isUser()
    / validating
    function isEmail()
    / validating
    function isPassword()
    / validating
    function isDob()
    / validating
    </javascript> -----java script ends here----------------
    <TD align="top" valign="top"><jsp:include page="menu.jsp" flush="true"/>
    </td>
    <td>
    <table cellpadding="2" cellspacing="3" width="40%">
    <form method="post" action="./beans.register2">
    Fisrt question: we have creaated "register2.java "as beans class for setting the values in to the data base.
    is it correct ?
    <td width="40" align="center"
    <font face="arial" size="5" align="right">
    <b>
    Registration <hr> </hr>
    </b>
    </font>
    <br>
    </td>
    <tr valign="center" width="80%">
    <td width="40%">
    <b><font face="Arial" size="2">IdCode </b> </font>
    </td>
    <td width="40%">
    <b><font face="Arial" size="2">
    <input type="text" name="idcode" size="6" style="border-style:solid" value="">
    </font></b>
    </td>
    </tr>
    <tr width="80%">
    <td width="40%">
    <b><font face="Arial" size="2">User </font></B></td>
    <td width="40%">
    <input type="text" name="user" size="12" style="border-style: solid" value="">
    </font></b></td>
    </tr>
    <tr width="80%">
    <td width="40%">
    <b><font face="Arial" size="2">Password </font></B></td>
    <td width="40%">
    <input type="password" name="password" size="25" tabindex="20" style="border-style: solid" width="12" value="">
    </font></b></td>
    </tr>
    <tr width="80%">
    <td width="40%">
    <b><font face="Arial" size="2">Section code </font></b></td>
    <td width="40%">
    <select size="1" name="section_code" tabindex="9"
    style="border-style: solid">
    <%@ include file="section.txt" %>
    Secound question:
    // inclided simple .txt file here
    // what if new item get enlisted in the database , we have to countinuesly update this .txt file ? so we head for creating simple beans class for retriving values
    then displaying in the SELECT box
    // we dont know how to do it.
    //other html tags //
    ----------------at end -----------------
    <input type="Submit" value="Submit" name="B1" > </td>
    <td width="40%">
    <input type="reset" value="Reset" name="B2"></td>
    <%
    String action=request.getParameter("Submit");
    if(action!=null && action.equals("Submit"))
    try{
    String idcode=request.getParameter("idcode");
    String user=request.getParameter("user");
    String password=request.getParameter("password");
    String seccode=request.getParameter("section_code");
    String Category=request.getParameter("Category");
    String BCategory=request.getParameter("BCategory");
    String Bheads=request.getParameter("Bheads");
    String OtherCategory=request.getParameter("OtherCategory");
    String email=request.getParameter("email");
    String day=request.getParameter("day");
    String month=request.getParameter("month");
    String year=request.getParameter("year");
    String Dob=day+"/"+month+"/"+year;
    String day1=request.getParameter("day1");
    String month1=request.getParameter("month1");
    String year1=request.getParameter("year1");
    String Doj=day1+"/"+month1+"/"+year1;
    registerbn.setIdcode("idcode");
    registerbn.setUser("user");
    registerbn.setPassword("password");
    registerbn.setSec_code("seccode");
    registerbn.setCategory("Category");
    registerbn.setBut_Category("BCategory");
    registerbn.setBut_heada("Bheads");
    registerbn.setOther_Category("OtherCategory");
    registerbn.setemail("email");
    registerbn.setDob("Dob");
    registerbn.setDoj("Doj");
    registerbn.saveData();
    /// saveData() is the one method where we are wrintn query to insert in to database//
    }catch(Exception ex)
    out.println("ERROR :has occured ");
    %>
    </table>
    </table>
    </table>
    </form>
    </td>
    </tr>
    <jsp include page="Footer.jsp" flush="true"/>

    To do that you have to get your recordset, and insert option tags into a while cicle. Something like this:
    <select name="mySelectName">
    <%while(myRecordSet.next()){%>
    <option value="<%=myRecordset.getObject(myField1)>"><%=myRecordset.getObject(myField2)%></option>
    <%}%>
    </select>

  • How to Populate values dynamically in Select Box.

    Hi All,
    I have few select boxes in my webdynpro application. Right now I am populating them using Harcoded values in the Dictionary. But I dont want to harcode the values in the dictionary, i want pull the values from database tables or  text files of EP KM. Just let me know which is the better way to populate the select box without hardcoding & why ?
    Thanks in Advance.
    Regards,
    Aditya Metukul

    Hi Aditya,
    Getting values from KM and database is possible
    It depends on your requirement
    ie if the dropdown should contain details of documents from KM or it should display the details in a table
    if it is oracle table see this link
    Webdynpro and Oracle
    if you want to get data from km see this tutorial
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/tutorial on using knowledge management functions in web dynpro - 26.htm
    Hope this helps you
    Regards
    Rohit
    Regards
    Rohit

  • Error Box displays in JClient Form with no text (preview 9.0.3)

    I am using Preview 9.0.3, with a JClient Form, running as an applet. When I execute the applet within JDeveloper, an Error box displays, but has NO text. When I try to close the box, it just keeps redisplaying, with no text. I am using the -Djbo.debugoutput=console, and the last statement to be logged is the SELECT statement from the Entity Object I am working with.
    Is there any other diagnostic logging I can turn on to find out what the error is?
    Any ideas?

    I am using Preview 9.0.3, with a JClient Form, running as an applet. When I execute the applet within JDeveloper, an Error box displays, but has NO text. When I try to close the box, it just keeps redisplaying, with no text. I am using the -Djbo.debugoutput=console, and the last statement to be logged is the SELECT statement from the Entity Object I am working with.
    Is there any other diagnostic logging I can turn on to find out what the error is?
    Any ideas? You may turn on the diagnostic on BC4J to see where things are breaking.
    Open up Project settings. In the Runner panel, provide runtime option : -Djbo.debugoutput=console

  • Messages doesn't  keep my "Show as Boxes"display preference after restart.

    Any ideas on how to make Messages keep my “Show as Boxes”display preference after restart. It always defaults back to “Show as Ballons”.
    Thank you community,
    Paul

    Hi,
    Open a Finder  window
    Go to the View Menu and chose "Show Path Bar"
    This will show the way to the folders and files you navigate to.
    In the Finder still, use the Go Menu whilst holding down the ALT key
    Select the Library that appears
    Navigate to the Preferences Folder.
    Now Right click the Library in the Path Bar.
    Choose Get Info.
    In the panel that opens up check the Ownership and Permissions section
    highlight your Name and then use the cogwheel type icon.
    Your shortname should appear in a sentence that reads "Make Shortname (me) the Owner" but it should be greyed out if you already Own the folder.
    Your name in the list should have Read and Write Permissions.
    Do you have Read and Write Permissions an Own the Library folder ?
    Repeat for the Preferences Folder.
    Repeat for a file in the Preferences folder called  com.apple.ichat.plist (just highlight the file and then do CMD + i keys (Get Info))
    Basically to be able to change a Preference you need permission to Write to the file involved.
    However you also need Read and Write permissions to the containing folders.
    If it is not sticking then it would seem you do not have those.
    9:30 pm      Monday; November 4, 2013
      iMac 2.5Ghz 5i 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • Help with building a select box from a query?

    New thread from a topic I started yesterday. From the responses, and a search of other threads, I realized that I was way off base:-) So, I went back and verified that my TomCat setup was alright. After a few tweeks I verified that I could display the index page and successfully run all of the example servlets and jsps. I then built a simple login.jsp and an associated bean to verify a user id and password on an ldap db. That works good. Next, I built a bean which runs a query against the same ldap db and returns a list of last names. What I want to do is use the last names in the bean to populate my select box. At first I was trying to build the html with the list from my bean, i quickly realized you guys didn't like that approach. So, can someone explain, in some detail (because I'm really dense), just how I can return the values from my bean and build a select box with those values.
    regards,
    Mat
    BTW Gone to see Lord of The Rings...back in about 5 hours :-)

    Just in general, I prefer knowing how to do things the "old-fashioned way" first before using other tools, because if it comes time for you to take over someone else's code, you'll probably find that they did it the old way and you'll want to understand that. Further, the new ways are based on the old ways for many things.
    Struts is a good system, but unless you have some understanding of the basics, it's probably going to be harder to understand it. If you have the time, I'd say at least go thru one book on JSP/servlets (which should be all about the basics, maybe a slightly older book) and go thru the examples in it.

  • Change LOV to select box in e-business suite

    Hello, not sure this is the right forum but I have special information types I have converted to self service pages. These act as the default LOV's you find on oracle, where you click go, do a search, find what you are looking for and continue. My question is, is there a personalization I can use to make this LOV box a select drop down list? Obviously this doesn't make sense for all fields but for most with maybe 1 or 2 values, a select box makes a lot more sense.
    Many Thanks

    You cannot convert a LOV to dropdown. However you can hide a LOV field using personalization and create a dropdown using the same. You would need to create a separate POPList VO which can be used to refer the display and value attributes.
    Caution: Many times LOV has multiple mappings (LovRelations) which would populate multiple fields (visible and not visible) based on the value you select. It would not be easy to replicate all such mappings in a drop down. Please gauge the complexity involved in your case and take a decision.
    Regards
    Sumit

  • Select box choice resetting

    I have a drop-down box that I am using to control the sorting
    of my dataset. The drop-down box is located in a spry region
    because I want to display different sorting choices depending on a
    javascript variable. I have it scripted so that the dataset.sort()
    function is called by the drop-down box's onChange handler. It
    works great for the sorting - the only problem is that the
    drop-down box always reverts back to the first <option> as
    soon as the sort() method is called and I would prefer to have it
    remain on the last selected index. I know I could probably rig
    something complicated in JavaScript involving observer objects and
    dynamically building the select options, but before I went down
    that road, I was wondering if anyone knew how to get the
    <select> box from reverting first?
    I attached a quick sample of what I'm talking about below:
    <td spry:region="dsPlans" class="SpryHiddenRegion">
    <span spry:choose="spry:choose">
    <!--- When selected, this select box always resets to
    whatever the first option is --->
    <select name="sSortBy" spry:when="var1 == 'value1'"
    onChange="dsPlans.sort(this.value,'toggle');">
    <option value="Field1">Field1</option>
    <option value="Field2">Field2</option>
    <option value="Field3">Field3</option>
    </select>
    <select name="sSortBy" spry:when="var1 == 'value2'"
    onChange="dsPlans.sort(this.value,'toggle');">
    <option value="Field4">Field4</option>
    <option value="Field5">Field5</option>
    <option value="Field6">Field6</option>
    </select>
    <select name="sSortBy" spry:default="spry:default"
    onChange="dsPlans.sort(this.value,'toggle');">
    <option value="Field7">Field7</option>
    <option value="Field8">Field8</option>
    <option value="Field9">Field9</option>
    </select>
    </span>
    </td>
    Any help is greatly appreciated! Thanks!

    Hi Michael,
    The cleanest way is to use observers as you suggest.
    onPreUpdate, store the selected index of the select, and then
    onPostUpdate, restore it. Something like:
    var savedIndex = 0;
    dsPlans.addObserver(function(noticationType, notifier, data)
    if (notificationType == "onPreUpdate" &&
    document.forms[ 0 ] && document.forms[ 0 ].sSortBy)
    savedIndex = document.forms[0].sSortBy.selectedIndex;
    else if (notificationType == "onPostUpdate")
    document.forms[ 0 ].sSortBy.selectedIndex = savedIndex;
    You'd probably also want some logic that resets this
    savedIndex whenever your var1 changes too.
    --== Kin ==--

  • Product Variation Select Box Issue

    HI all! I'm having an issue with the production variations that I have out of stock and they're still showing in the select dropdown menu. I have tried to get support on this but they're telling me that it's something to do with my template. I haven't been able to find any issue with my template though. Upon inspection of the code, I can see that the select box is being set to "display: none" When I disable this, a second select box appears next to the first select box with the correct inventory available selections. Can anyone help me figure out this issue? Thanks in advance!
    {tag_attributes} has been changed to {tag_attributes, vertical, true, false} and all out of stock variations have been disabled.
    UPDATE: On CSS style: select, .selectBox - line 504 "style.css" I forced display: inline-block and now you can see the two select boxes upon page load.
    UPDATE: For the incorrect select box that showed all the product variations despite their disabled status -  i was able to force it to display: none !important --- and it solved this issue. I would still like to know why this was happening if anyone has ideas.
    Thanks!

    Hi mattkrae34,
    What version of SpryMenubar.js are you using? You can find
    the version on the first line of the file.
    Also, do you have a sample URL we can take a look at?
    --== Kin ==--

  • How to update database with a select box

    I'm hoping someone can/will help me with a new feature I'm
    trying to add to my web site. I'll summarize what I'm working with
    and then proceed to what I'd like to do. This is the web site I'm
    working on: www.truckerstoystore.net
    I have a database for the Truck of the Week set up with the
    information that is output on each page in the left column and
    on the Truck of the week page itself. I add new Truck of the
    Week (TOW) entries via a form I've put together. Right now, in
    order to change the current TOW, I have to manually go into my
    template and change the ID (which is automatically assigned when
    the record is created, and thus makes it unique) in my SQL which
    currently reads
    SELECT *
    FROM truckofweek
    WHERE ID="4"
    to the ID of the current TOW.
    What I want to be able to do is create a new form that will
    allow me to select the TOW entry that I want to be displayed from a
    select box (drop down box). I have a good idea of how to populate
    my select box, but don't know how to get it to work. My first idea
    was to update the table in the database (Access) manually with a
    new column called currentTOW, with values set to a Yes/No type,
    with default values set to "No". Then I would use my form to set
    the value for one of them to "Yes" so I could set my SQL to 'WHERE
    currentTOW ="yes" ' I would also make a <cfif> statement that
    checks for entries marked "Yes" and changes them to "No" when the
    form loads to avoid setting 2 entries to "Yes" and my page thus
    attempting to load 2 TOW entries.
    My problem is, I don't know how to do any of this. I hope
    I've described this situation well enough. I know there has to be
    at least one guru on here that can help me. Any assistance would be
    greatly appreciated.

    Hey,
    Thanks for replying. That sounds like a good idea, but I
    don't know how to do it.
    I started working on a new idea, where I have a second table
    in the same datasource set up called currentTOW, with one field
    called currentTOW and only one record. The idea is to send the
    string of the "owner" field from the select box, which is populated
    from the table called truckofweek to this one cell in the
    currentTOW table.
    This way, in my page which will display the data, I have 2
    querys. The first pulls the data in the single cell from currentTOW
    and outputs its string into the second query. I've attached the
    code below. I get an error when I try to display the page, see the
    error here:
    www.truckerstoystore.net/currentTOW2.cfm.
    However, the SQL looks like I want it to look, as "WHERE Owner =
    Craig Carp" is essentially the same record that it displays now in
    the live page "/currentTOW.cfm" only the SQL currently reads "WHERE
    ID = 4" (4 and Craig Carp are part of the same record).
    Here is the link to my form:
    Form

Maybe you are looking for

  • How do I access the music on photos on my external hard drive, on my MBA?

    I bought a 64Gb MBA slightly used, and knew the space wasn't going to be enough for my music and photos, so I bought an external hard drive, (the iomega helium), thinking that I could just load it with my pics and music, and access it from there, whe

  • Compressor H.264 and Android devices

    I'm looking to make videos on our web site as mobile compatible as is practical and have run into a specific issue with compressor. When I tried to play one of our H.264 videos on an Android device I got the picture but no sound. I did some experimen

  • Question regarding a method of stocking data

    I know this thread already is in the "New to Java Technology" Forum, although I said the topic was closed there so I could open it back here.. I realized it would be more fitting here and it would probably get more replies... I am working with a frie

  • IPhoto 6 Pc to Mac files

    ASAP . I have a project due and I can't get the iPhoto to read my jpg files scanned on my PC. It read 9 out of 10 CD correctly and now on the last one it says it is unusable files format. Next I lost my iPhoto files. I check here and tried the option

  • N8 and wireless router connectivity

    I have a problem with my new N8. If I use the N8 at home it interferes with my broadband wireless router (BT Homehub) resulting in my losing a wireless internet connection on my laptop.  The laptop tells me I have Limited Connectivity. I must thenkee