Problem with dropdown

Hi,
My dropdown which i am using in a table , always selects the first value. Wen i click on other values , i am able to retrive the values and process them but again the first value of dropdown is selected and not the value which i selected.
Thanks,
Pris.

Hi Pris,
Please paste your code, so that we can help you.
For same type of problem see this thread [DROPDOWN PROBLEM|Re: How to get a listbox return value;.
May it helps you.
Regards.
DS.

Similar Messages

  • Mac Firefox has a problem with dropdown menus over a flash

    I have notice a problem over the last couple of months when
    using drop down menus from P7, and Quckmenu. The drop down menus
    appears to clip any flash movies below them when using transparent
    settings in css. The recent case the transparent settings where
    apply as following: The wmode of the flash movie set to
    transparent, no problem with flash covering the menu. #qm0 is my
    sub container for the drop down. When commenting out the
    transparent settings, no problem on the Mac. The Firefox browser is
    2.0, and the Mac OS is OS 10, Flash Player 9. I am thinking this is
    Adobe Flash player problem.
    #qm0 div a
    color:#000000;
    padding:2px 20px 2px 5px;
    border-right: 1px solid #000000;
    border-left: 1px solid #000000;
    border-top: 1px solid #000000;
    background-color: #f9f9fb;
    filter:alpha(opacity=90);
    -moz-opacity:0.90;
    -khtml-opacity: .90;
    opacity: 0.90;
    My temp work around is to check the http_user_agent for Mac.
    If is a Mac, no transparent menus.
    David Pearson

    Some gestures have been removed in Firefox 4.
    You can restore the zoom feature by changing the values of the related prefs on the <b>about:config</b> page.
    browser.gesture.pinch.in -> <b>cmd_fullZoomReduce</b>
    browser.gesture.pinch.in.shift -> <b>cmd_fullZoomReset</b>
    browser.gesture.pinch.out -> <b>cmd_fullZoomEnlarge</b>
    browser.gesture.pinch.out.shift -> <b>cmd_fullZoomReset</b>
    browser.gesture.pinch.latched -> <b>false</b>
    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access that page.<br />

  • Problem with DropDown in a table

    Hello,
    I have created a table with some elements and a drowndown. My problem is if I choose an entry in the drowndown menu in one row and select another row, evertime time the new chosen dropdown entry will overwrite all the other choosen entrys in the other dropdowns. How can I fix that? If I work with local simple types it works, but in my case I get the entrys from a context node mapped to an external RFC interface.
    Any ideas?
    Regards,
    Frank

    Hm, in my case, I get three rows but the entries for the drowdown are only shown in the first row, the dropdowns of the other two rows are empty. Here is the source code I use. The Node Po_Items_Copy is the table node and T_Coinnen_Copy the dropdown node:
    for (int i=0; i<3; i++){
    IPrivateKontierungView.IPo_Items_CopyElement Text = wdContext.createPo_Items_CopyElement();
              Text.setShort_Text_Copy("Test1"+i);
              wdContext.nodePo_Items_Copy().addElement(Text);
              for (int j=0; j<4; j++) {
                   IPrivateKontierungView.IT_Coinnen_CopyElement Dropdown = wdContext.createT_Coinnen_CopyElement();
                   Dropdown.setAufnr("Test2"+j);
                   wdContext.nodeT_Coinnen_Copy().addElement(Dropdown);
    Regards,
    Frank

  • Problem with DropDown List and ValueChange

    Hi,
    I have the following problem (I use NetBeans 6.1): I have a page, made with the Visual Web Designer, where there is a DropDown List component. The expected behaviour is once I select an item from the dropdown list, something (depending on the item I clicked) appears or happens (so, without any submit button or action link).
    This is the code I have at the moment:
    JSP (Pagina1.jsp):
    <h:selectOneMenu binding="#{Pagina1.dataTypeDropDown}" id="dataTypeDropDown" immediate="true" onchange="return getSearchFields(this);" style="height: 24px; left: 192px; top: 24px; position: absolute; width: 744px" valueChangeListener="#{Pagina1.dataTypeDropDown_processValueChange}">
        <f:selectItems binding="#{Pagina1.dropdown1SelectItems}" id="dropdown1SelectItems" value="#{Pagina1.dropdown1DefaultItems}"/>
    </h:selectOneMenu>
    Bean (Pagina1.java):
    public void dataTypeDropDown_processValueChange(ValueChangeEvent vce)
        String selectedValue = (String)vce.getNewValue();
        System.out.println(selectedValue);    // nothing happens!
        System.out.println("Hello");    // nothing happens!
    [...]My problem is that, whenever I select an item form the dropdown list, ehm... nothing happens.
    What could I do? Isn't that a kind of "change of value"? JavaScript events work fine, but no way with the ValueChange.
    And please consider that I'd like to obtain the same result with both Standard Components and Woodstock Components.
    Any help would be greatly appreciated!
    Thanks!

    try adding "*this.form.submit();*" to your on change attribute of select menu.
    Your on change will look like onchange="return getSearchFields(this);this.form.submit();"
    This should work.

  • Problem with Dropdowns

    Hi,
    We are designing a form which has the following number of elements.
    Text Field 76
    Drop Down 45
    Numeric Field 18
    Radio Button 20
    Check Box 0
    Date Time Field 4
    We are having severe performance issues on filling the form.
    We have 2 dropdowns which have 365 & 261 items each.
    Everytime we go to select this, the computer freezes up.
    Is there any other method for filling a dropdown and improve its performance?
    Any input is greatly appreciated

    hi,
    i have not used any scripts myself.
    can you suggest me any changes in the default configuration
    and how to go about that.
    whatever code is there,
    is in method wdDoInit()
    that is the first method that is called before the view is shown.
    it is used to initialize values for the view.(wdDoInit())
    regards.

  • FF and IE problem with dropdowns

    Another Firefox vs. Safari functionality question related to the navbar I am building:  www.akstauffer.com/2011/.
    I have five first-level menu items.  Nos. 2, 3, and 4 (services, clients, samples) have drop-downs for second-level items, and under "services" the item "project types" has a submenu.
    Works fine in Safari in Chrome.  But in Firefox and IE, "clients" and "samples" aren't coming visible properly.  Maybe it's some sort of z-order setting?
    Thanks.
    -- Andy

    The following is the format for a SpryMenuBar
    <ul id="MenuBar1" class="MenuBarHorizontal">
      <li><a class="MenuBarItemSubmenu" href="#">Item 1</a>
        <ul>
          <li><a href="#">Item 1.1</a></li>
          <li><a href="#">Item 1.2</a></li>
          <li><a href="#">Item 1.3</a></li>
        </ul>
      </li>
      <li><a href="#">Item 2</a></li>
      <li><a class="MenuBarItemSubmenu" href="#">Item 3</a>
        <ul>
          <li><a class="MenuBarItemSubmenu" href="#">Item 3.1</a>
            <ul>
              <li><a href="#">Item 3.1.1</a></li>
              <li><a href="#">Item 3.1.2</a></li>
            </ul>
          </li>
          <li><a href="#">Item 3.2</a></li>
          <li><a href="#">Item 3.3</a></li>
        </ul>
      </li>
      <li><a href="#">Item 4</a></li>
    </ul>
    Notice how a class of MenuBarItemSubmenu has been given to all menu items that have sub menus beneath them.
    If you compare that with what you have, where the class has been used at random, your menu should not work at all.
    Gramps

  • Problem with selectOneMenu in Datatable

    Hi
    I have the following datatable that binds correctly to a set of Game objects.
    I need to have a dropdown with the numbers 1 to 10 as items which is bound to each dataItem's newRating field.
    However there is some problem with the dropdown that i can't figure out. The datatable stops rendering when it hits the first dropdown.
    At the moment,
    The new rating field in the Game class is of type SelectItem with the appropriate get and set methods.
    Could anyone please point out what I'm doing wrong
    Thanks.
    Here is the relevant part in Home.jsp:
                                              <h:dataTable binding="#{Home.newGamesTable}" id="newGamesTable" value="#{Home.newGames}" var="dataItem">
                                                                <h:column>
                                                                    <f:facet name="header">
                                                                        <h:outputText value=""/>
                                                                    </f:facet>
                                                                    <h:panelGroup layout="block" styleClass="new_game_main">
                                                                        <h:outputText styleClass="new_game_title" value="#{dataItem.title}"/>
                                                                        <h:outputText escape="false" styleClass="new_game_label" value="Date added: "/>
                                                                        <h:outputText styleClass="new_game_data" value="#{dataItem.dateString}"/>
                                                                        <h:outputText escape="false" styleClass="new_game_label" value="Average Rating:"/>
                                                                        <h:outputText styleClass="new_game_data" value="#{dataItem.rating}"/>
                                                                        <h:outputText styleClass="new_game_label" value="Uploaded by:"/>
                                                                        <h:outputText styleClass="new_game_data" value="#{dataItem.userName}"/>
                                                                        <h:commandLink styleClass="new_game_label" value="Play Now!"/>
                                                                        <h:selectOneMenu styleClass="new_game_rating" value="#{dataItem.newRating}">
                                                                            <f:selectItems value="#{ratingItems}" />
                                                                        </h:selectOneMenu>
                                                                        <h:commandLink action="#{Home.rateNewGame}" styleClass="message_link" value="Rate"/>
                                                                    </h:panelGroup>
                                                                </h:column>
                                                            </h:dataTable>and Home.java
    private List<SelectItem> ratingItems = null;
         public List<SelectItem> getRatingItems()
             if (ratingItems == null)
                 ratingItems = new ArrayList<SelectItem>();
                 for (int i = 1; i <= 10; i++)
                     SelectItem item = new SelectItem();
                     item.setValue(Integer.valueOf(i));                        
                     ratingItems.add(item);
             return ratingItems;
         public void setRatingItems(List<SelectItem> items)
             ratingItems = items;        
        private List<Game> newGames = null;
        private boolean hasNewGames;
        public List<Game> getNewGames()
            if (newGames ==null)
                newGames = DataFactory.getNewGames();           
            hasNewGames = !newGames.isEmpty();
            return newGames;
        }

    What do you mean by stops rendering? Can you paste the relevant portion of the output (from view source in the browser).

  • Problem with buttons in page fragment

    Hi,
    I'm developing a jsp-page, which has two page-fragments and one inline frame..
    I've a problem with one page-fragment. This one contains three buttons, for changing the language. When someone pushes the button, it seems that there is no action triggered...
    Here is my code:
    <?xml version="1.0" encoding="UTF-8"?>
    <div style="-rave-layout: grid" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:j="http://www.sun.com/creator/jsfcl">
        <f:loadBundle basename="oltbwebapplication.bundle" var="bundle"/>
        <h:outputText binding="#{OltbStatus.mnuBanksys}" id="mnuBanksys" style="left: 96px; top: 0px; position: absolute" value="#{bundle.mnuLac}"/>
        <h:commandButton action="#{OltbStatus.choseNl}" actionListener="#{OltbStatus.btnNl_processAction}" binding="#{OltbStatus.btnNl}" id="btnNl"
            style="left: 432px; top: 0px; position: absolute" value="NL"/>
        <h:commandButton action="#{OltbStatus.choseFr}" binding="#{OltbStatus.btnFr}" id="btnFr" style="left: 480px; top: 0px; position: absolute" value="FR"/>
        <h:commandButton action="#{OltbStatus.choseEn}" binding="#{OltbStatus.btnEn}" id="btnEn" style="left: 528px; top: 0px; position: absolute" value="EN"/>
    </div>Thx in advance
    Ann Carpentier

    Hi Ann,
    I was working with dropdowns in pagefragments consequent to your query. I noticed that there is a problem with the dropdowns too. This especially happens if you have the same components in both the page fragments. For example buttons in both the page fragments or dropdowns in both page fragments etc.
    I have filed a change request on your behalf for the same.
    We thank you for bringing this to our notice.
    Thanks and
    Cheers :-)

  • I am having a strange problem with the awesome bar

    The awesome bar/location bar is no longer as awesome as it used to be. When I start typing in an address it seems like it no longer checks through my history and gives a list of possible matches but just gives the stem of an address. For example, if I type in 'goo' it will complete this to 'google.com' if I then append this with an '/a' it will complete this to 'google.com/analytics' but that's as good as it gets, as I say, no list from the history or bookmarks.
    I've checked the options and also about:config and all the settings are as they should be, as far as I can tell (and I certainly hadn't changed any of them when it started misbehaving). I've also disabled all extensions and plug-ins.
    It's driving my slightly bonkers because I quite often use sites with long addresses and can't remember each of the components of each address. I'd switch to using Chrome but I also use Firebug a fair bit so don't really want to do this.

    Hi cowtan, <br/>Sorry you are having problems with the awesome bar.
    I imagine the new behaviour may be reversed by changing some pref but I have not looked that up.
    Regardless of the new behaviour you seem to have some fault as my awesomebar still gives bookmarked items.
    As a troubleshooting step try adding an asterisk in the awesomebar (as first character or anywhere) that should then filter the results in the dropdown list to bookmarked only items, does that work ?
    * see [[Search your bookmarks, history and tabs with the Awesome Bar#w_changing-results-on-the-fly]]_changing-results-on-the-fly
    You possibly have some extension interfering with the awesome bar, try Firefox in safe mode (but do NOT* at this stage try the Reset Firefox option)
    <nowiki>*</nowiki>'''edit''' - personal opinion, if a user; such as you; is knowledgeable enough to use ''about.config'' the easy solution of ''FirefoxReset ''is probably not the best route, as it can have unwanted side effects that are avoidable.
    * [[Troubleshoot Firefox issues using Safe Mode]]
    Do your bookmarked items appear in safe mode ?
    <u>Try a new Profile.</u><br/>The best method for troubleshooting this will be to set up a new Firefox profile, you can then: experiment, troubleshoot, alter settings or extensions installed in that profile without changing and potentially damaging your current profile.
    * http://kb.mozillazine.org/Profile_Manager#Creating_a_new_profile
    I suggest to prevent unexpected problems you
    * use a sensible name such as test 2012 for the profile name
    * ensure an empty folder is used & do not then rename or delete the new profile (instead add or delete shortcuts to it)
    * also see http://kb.mozillazine.org/Using_multiple_profiles_-_Firefox

  • Airport problem with iMAC 27" and serious service support for indonesia

    Hi all,
    i can't seem to get any help from anywhere else. so i try to post it here.
    i tried to call the apple store (indonesia) which i bought this imac 27" from. got transfered 4 times and i had to explain it to them all over. in the end i got to speak to the technician and i asked whether i can get a replacement and they don't think it's the correct solution and leave me hanging here.
    the apple store is listed as an apple authorized service provider (AASP) or apple authorized distributor (AAD):
    iBox by Padang Digital Indonesia - Apple Authorised Service Provider
    Puri Imperium Office Plaza, (Belakang Menara Imperium)
    Jl. Kuningan Madya Kav. 5-6, Jakarta
    12980
    Tel: 62 21 8370-iBox (4269); 830 6763
    Fax: 62 21 830 6730
    Email: [email protected]
    Web: http://www.ibox.co.id
    i called the apple support on the apple.com (0018 03061 2009 for indonesia) today wednesday 19 may 2010, time 1:12pm indonesia local time (GMT +7) i didn't get the guy's name but i can tell he's Indian from the accent, i told him what the problem is, he told me to wait, i waited for 10 minutes and he hung up on me at 1:24pm. please check on the record, because i was told the whole conversation was recorded.
    so, let's go to the problem:
    i can't share my internet with airport built-in in my imac 27".
    I'm using ZTE usb hsdpa modem connected to the imac. (fyi, my friend is using the same exact modem and internet provider and don't have any problems with internet sharing using his macbook)
    i tried to share the internet through the airport express simply with these steps:
    1. open the system preferences, internet sharing,
    2. connection with "ZTE usb modem", and the box next to "Airport" is ticked
    3. turn on the internet sharing
    4. press start
    5. yes the firewall is off.
    and these are what i'm having right now:
    1. the airport symbol wont turn into an arrow
    2. when i open the network preferences, it says: AirPort is turned on but is not connected to a network. (color is orange not green)
    3. i searched the wireless network with my ipod touch and i found nothing
    4. if i try to "create a network" here's what it says "There was an error creating your computer-to-computer network."
    5. this are the details on the airport card:
    Software Versions:
    Menu Extra: 6.2 (620.24)
    configd plug-in: 6.2 (620.15.1)
    System Profiler: 6.0 (600.9)
    Network Preference: 6.2 (620.24)
    AirPort Utility: 5.5.1 (551.19)
    IO80211 Family: 3.1 (310.6)
    Interfaces:
    en1:
    Card Type: AirPort Extreme (0x168C, 0x8F)
    Firmware Version: Atheros 9280: 2.1.9.5
    Locale: RoW
    Country Code:
    Supported PHY Modes: 802.11 a/b/g/n
    Supported Channels: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140, 149, 153, 157, 161, 165
    Wake On Wireless: Supported
    Status: Not Associated
    and yes, i've updated all the airport software and i stick on the 10.6.2 os.
    It seems like people who has this latest imac 27" also having problems with the airport express. and they somehow got a replacement.
    http://discussions.apple.com/thread.jspa?threadID=2261196&tstart=0&messageID=109 80828
    so, i really really appreciate if i can get help here.
    many thanks and best regards,
    irene

    If you have anything configured in System Preferences/Network/Airport then you have conflicts configured into the network. I suggest that you start from the beginning. Do not assume anything. Do not take any short cuts. Start fresh.
    Go to Sys Prefs/Sharing turn off Internet Sharing. Go to Sys Prefs/Network, highlight AirPort and press the - symbol below to remove the AirPort interface. Now press the + symbol and create a new AirPort Interface. In the new AirPort interface do not turn on AirPort. You should only select the box to show AirPort Status in the menu bar. Now press Apply.
    Go to Sys Prefs/Sharing and follow the steps 1 through 11 in my first post.
    In step 11 Sys Prefs should ask you to turn on AirPort. Turn it on. It should next ask you to start Internet Sharing. Start Internet Sharing.
    The AirPort Status in the menu bar should show AirPort is on and have an arrow pointing up. In the AirPort Status dropdown menu it should show AirPort is ON, Internet Sharing is ON and it should show the name of the Internet Sharing network that you created.

  • Problems with wireless mouse/keyboard after upgrade to snow leopard

    Hi!
    I am wondering if someone has some insight for me.  I recently upgraded to Snow Leopard from Tiger. I have been using a Logitech S 530 wireless keyboard/mouse combo for a few years.  I am now having problems with them irratically.
    1. When on line and the page is large, I often cannot move the blue bar at the bottom of the screen to scroll to the right. What happens is like a stutter; as I am dragging the bar, it and the page shake rapidly side-to-side. Sometimes, I can drag it to the right, but as soon as I let go, it snaps back to the left.  This does not happen in Word.
    2. When in boxes with dropdown options, only occasionally does that happen.  The dropdown either doesn't show, or it flashes quickly.  Sometimes it will work after clicking many times. This happens with dropdown menus as well as search boxes that have dropdown choices for previous searches or suggested searches a la Google.
    3. When I use my function key or mouse to display all windows, I can't choose the one I want.  Regardless of which one I put my cursor over, only the left-most one is highlighted and comes to the front when I click.
    4. There is a varying lag. Sometimes the system is responsive, and other times there is a lag of varying lengths before the system responds to the mouse action (click, drag, zoom, etc.)
    5. For a while, my left mouse button wouldn't work.  I reconfigured it, that seems to have done the trick.
    6. Today, I can't open any of the menu items on Firefox.  I can move the cursor there, but when I click on any of them, nothing happens. This is okay in Safari.
    I have disconnected and reconnected the usb, restarted the computer, and tried to reinstall the software for the mouse and keybord. When I did that, I got a message saying it couldn't install on the current OS, so I went to Logitech and dowloaded and installed the latest version (which indicated it is for OS X 10.6.8.)
    I don't know if this is a Snow Leopard problem, but it started sometime after I upgraded.  Thanks in advance for any help!
    Donna

    Update all your third party software  or uninstall and reinstall 10.6 versions.
    If your going to 10.7, be warned a lot of software will not work at all and your 10.5 era machine will be slow, perhaps even have problems as 10.7 is problematic on older hardware.
    http://roaringapps.com/apps:table
    IMO save for a new 10.8 machine after this summer.
    See #1-15 here, tune yourself up good.
     Step by Step to fix your Mac

  • HP Envy 15 Graphics Problem with Windows 8.1 (Intel and NVidia Graphics). Help!

    I bought an HP ENVY TouchSmart 15-j013ea about 6 months ago and I have had a major problem with the graphics that I cannot seem to solve. I think it started when I updated to Windows 8.1, even though I am not 100% certain.
    I have noticed the following three problems, and I think they are related:
    Some windows (such as Chrome, Skype, or even Device Manager or other windows) are very blurry compared to others.
    The firefox menu window has some deformed black arrows instead of the normal ones.
    When playing a game (specifically, Star Wars the Force Unleashed 2), after a while I get an error that the computer has ran out of memory. However, according to task manager, only about 50% is in use, not to mention that I have 8 GB of RAM + 2 GB graphics memory. At the same time, the computer gets rather loud (like a fan working overtime) and hot.
    The laptop has both Intel and NVidia graphics, and both are enabled in Device Manager. To be honest, I have no idea which is used when, or how to check that (let me know if there is a way)
    I have tried the following without success:
    Uninstalling the Intel graphics driver from device manager and installing a version I downloaded from the HP website for my laptop and OS. After that, Windows would NOT BOOT, and I had to do a system restore.
    Uninstalling the Intel graphics from Programs and Features, and installing 2 different versions from the Intel website. Nothing changed.
    Updating Nvidia driver through GeForce Experience. Nothing changed.
    Updating Intel drivers from Windows Update. Nothing changed.
    Quite frankly I am not sure what the problem could be, since the graphics versions are supposed to be compatible with WIndows 8.1. I also don't get why some windows are blurry and others are not. I am thinking the computer uses only the Intel graphics and not the Nvidia (at least in the blurry windows), but even if that was the case (and it shouldn't be), I don't think I should be having this problem.
    At this point, I really need help. My graphics details are:
    Intel HD Graphics 4600: Driver version: 10.18.10.3412
    NVidia GeForce GT 740M: Driver version: 335.23
    NVidia GeForce Experience version: 1.8.2
    I am attaching screenshots that show driver details and the problems.
    Thank you.
    Blurry Chrome:
    Firefox menu problem:
    Device Manager and driver windows are also blurry, both graphics are shown

    I had a similar problem with a Dell laptop.  I found the problem was the laptop wanted to switch between the Intel and NYIDIA video cards.  It would switch to the Intel when high graphics was not required then to the NIVIDIA when high graphics was required.  The laptop does this to save power when high graphics is not required but it caused problems with some applications, specifically high graphics games.
    For me the solution was to disable the Intel graphics processor.  You can do this by right clicking on your Wallpaper, select the NIVIDIA Control Panel, then select Set Physx Configuration.  You will see a dropdown box labeled Select Physx Processor.  It is set to Auto by default.  This allows the switching I described. Select this dropdown box and select your NIVIDIA processor.  This will prevent the laptop from switching and force it to use your NVIDIA processor exclusively.
    Hope this helps.
    Sacto Fred
    Owner and CEO
    H&O PC Soultions

  • ALV GRID Problem with reading contents

    Hi there! I'm quite new with ABAP and I have some problems with the syntax of it. Maybe I should first describe my aim and then I'll show you my code.
    1. I read contents from two database tables, called 'zbc_dan_registry' and 'zbc_dan_category'.
    'zbc_dan_registry' has 2 columns: name, value.
    zbc_dan_category' has 1 column: category.
    Now I want to have an ALV Grid, that displays the contents of 'zbc_dan_registry' and one additional column with dropdown fields, where the user can select a category for each row. This is, what my code already does.
    Now I want to save the contents of the whole table in a new table 'zbc_dan_registrz' (you see: 'registrz', not 'registry'!) with 3 columns:
    name, category, value.
    My problem is, how can I read the contents of the ALV Grid, with the user selected category for each row, and save them in an internal table? I've tried to adapt the code of "BCALV_EDIT_04", but I don't get it running.
    Some detailled help would be great, you know, I'm really working hard to understand ABAP, but it's really hard for me. Thanks for your support and help!!
    Here's my code so far:
    *& Report  ZBC400_DAN_TESTNO4
    REPORT  ZBC400_DAN_TESTNO4.
    DATA: lt_registrz TYPE TABLE OF zbc_dan_regstrz WITH HEADER LINE,
          lt_category TYPE TABLE OF zbc_dan_category WITH HEADER LINE,
          ls_category TYPE zbc_dan_category, "Struktur Kategorie
          ok_code LIKE sy-ucomm,
          container_r TYPE REF TO cl_gui_custom_container,
          grid_r TYPE REF TO cl_gui_alv_grid,
          gc_custom_control_name TYPE scrfname VALUE 'CONTAINER_REG',
          fieldcat_r TYPE lvc_t_fcat,
          layout_r TYPE lvc_s_layo,
          lt_ddval TYPE lvc_t_drop,
          ls_ddval TYPE lvc_s_drop,
          c TYPE i.
    CLASS lcl_event_receiver DEFINITION DEFERRED.
      DATA g_verifier TYPE REF TO lcl_event_receiver.
      DATA: BEGIN OF gt_outtab OCCURS 0.
        INCLUDE STRUCTURE zbc_dan_regstrz.
        DATA: celltab TYPE lvc_t_styl.
      DATA: END OF gt_outtab.
    CLASS lcl_event_receiver DEFINITION.
      PUBLIC SECTION.
      TYPES: BEGIN OF lt_registrz_key.         "Struktur mit den Schlüsseln der Tabelle 'Registry'
        TYPES:  name TYPE zbc_dan_name,
                value TYPE zbc_dan_value,
                category TYPE zbc_dan_cat.
      TYPES: END OF lt_registrz_key.
      TYPES:  ls_registrz_keys TYPE STANDARD TABLE OF lt_registrz_key,
              ls_registrz_table TYPE STANDARD TABLE OF zbc_dan_regstrz.
      METHODS: get_inserted_rows EXPORTING inserted_rows TYPE ls_registrz_keys.
      METHODS: refresh_delta_tables.
      METHODS: handle_data_changed FOR EVENT data_changed OF cl_gui_alv_grid IMPORTING er_data_changed.
    *  METHODS: get_inserted_rows EXPORTING inserted_rows TYPE registrz_keys.
    *  METHODS: refresh_delta_tables.
      PRIVATE SECTION.
      DATA: inserted_rows TYPE ls_registrz_keys.
      DATA: error_in_data TYPE c.
      METHODS: get_cell_values IMPORTING row_id TYPE int4 pr_data_changed TYPE REF TO cl_alv_changed_data_protocol EXPORTING key TYPE lt_registrz_key.
    ENDCLASS.
    CLASS lcl_event_receiver IMPLEMENTATION.
      METHOD handle_data_changed.
        DATA: ls_good TYPE lvc_s_modi,
              ls_new TYPE lvc_s_moce.
        error_in_data = space.
        IF error_in_data = 'X'.
          CALL METHOD er_data_changed->display_protocol.
        ENDIF.
      ENDMETHOD.
      METHOD get_cell_values.
        CALL METHOD pr_data_changed->get_cell_value
          EXPORTING i_row_id = row_id i_fieldname = 'NAME'
            IMPORTING e_value = key-name.
        CALL METHOD pr_data_changed->get_cell_value
          EXPORTING i_row_id = row_id i_fieldname = 'VALUE'
            IMPORTING e_value = key-value.
        CALL METHOD pr_data_changed->get_cell_value
          EXPORTING i_row_id = row_id i_fieldname = 'CATEGORY'
            IMPORTING e_value = key-category.
      ENDMETHOD.
      METHOD get_inserted_rows.
        inserted_rows = me->inserted_rows.
      ENDMETHOD.
      METHOD refresh_delta_tables.
        clear me->inserted_rows[].
      ENDMETHOD.
    ENDCLASS.
    START-OF-SELECTION.
        SELECT client name value
          INTO CORRESPONDING FIELDS OF TABLE lt_registrz FROM zbc_dan_regstry.
        SELECT category INTO CORRESPONDING FIELDS OF TABLE lt_category FROM zbc_dan_category.
    CALL SCREEN 0100.
    MODULE user_command_0100 INPUT.
      CASE ok_code.
        WHEN 'BACK'.
          SET SCREEN 0.
          MESSAGE ID 'BC400' TYPE 'S' NUMBER '057'.
        WHEN 'SAVE'.
          PERFORM save_data.
        WHEN OTHERS.
      ENDCASE.
    ENDMODULE.
    MODULE clear_ok_code OUTPUT.
      CLEAR ok_code.
    ENDMODULE.
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'DYNPRO100'.
      SET TITLEBAR 'D0100'.
    ENDMODULE.
    MODULE display_alv OUTPUT.
      PERFORM display_alv.
    ENDMODULE.
    FORM display_alv.
    IF grid_r IS INITIAL.
    *----Creating custom container instance
      CREATE OBJECT container_r
      EXPORTING
        container_name = gc_custom_control_name
      EXCEPTIONS
        cntl_error = 1
        cntl_system_error = 2
        create_error = 3
        lifetime_error = 4
        lifetime_dynpro_dynpro_link = 5
        others = 6.
        IF sy-subrc <> 0.
    *--Exception handling
        ENDIF.
    *----Creating ALV Grid instance
        CREATE OBJECT grid_r
        EXPORTING
          i_parent = container_r
        EXCEPTIONS
          error_cntl_create = 1
          error_cntl_init = 2
          error_cntl_link = 3
          error_dp_create = 4
          others = 5.
          IF sy-subrc <> 0.
    *--Exception handling
          ENDIF.
          CREATE OBJECT g_verifier.
          SET HANDLER g_verifier->handle_data_changed FOR grid_r.
    *----Preparing field catalog.
          PERFORM prepare_field_catalog CHANGING fieldcat_r.
    *----Preparing layout structure
          PERFORM prepare_layout CHANGING layout_r.
    *----Here will be additional preparations
    *--e.g. initial sorting criteria, initial filtering criteria, excluding
    *--functions
          CALL METHOD grid_r->set_table_for_first_display
          EXPORTING
    * I_BUFFER_ACTIVE =
    * I_CONSISTENCY_CHECK =
    * I_STRUCTURE_NAME =
    * IS_VARIANT =
    * I_SAVE =
    * I_DEFAULT = 'X'
            is_layout = layout_r
    * IS_PRINT =
    * IT_SPECIAL_GROUPS =
    * IT_TOOLBAR_EXCLUDING =
    * IT_HYPERLINK =
          CHANGING
            it_outtab = lt_registrz[]
            it_fieldcatalog = fieldcat_r
    * IT_SORT =
    * IT_FILTER =
          EXCEPTIONS
            invalid_parameter_combination = 1
            program_error = 2
            too_many_lines = 3
            OTHERS = 4.
          IF sy-subrc <> 0.
    *--Exception handling
          ENDIF.
          ELSE.
            CALL METHOD grid_r->refresh_table_display
    * EXPORTING
    * IS_STABLE =
    * I_SOFT_REFRESH =
          EXCEPTIONS
            finished = 1
            OTHERS = 2.
          IF sy-subrc <> 0.
    *--Exception handling
          ENDIF.
        ENDIF.
        CALL METHOD grid_r->register_edit_event
          EXPORTING
            i_event_id = cl_gui_alv_grid=>mc_evt_enter.
        CALL METHOD grid_r->register_edit_event
          EXPORTING
            i_event_id = cl_gui_alv_grid=>mc_evt_modified.
    ENDFORM.
    FORM prepare_field_catalog CHANGING pt_fieldcat TYPE lvc_t_fcat.
      DATA ls_fcat TYPE lvc_s_fcat.
      CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
      EXPORTING
        i_structure_name = 'ZBC_DAN_REGSTR2'
      CHANGING
        ct_fieldcat = pt_fieldcat[]
      EXCEPTIONS
        inconsistent_interface = 1
        program_error = 2
        OTHERS = 3.
      IF sy-subrc <> 0.
    *--Exception handling
      ENDIF.
      LOOP AT pt_fieldcat INTO ls_fcat.
        CASE ls_fcat-fieldname.
          WHEN 'NAME'.
            ls_fcat-coltext = 'Name'.
            ls_fcat-outputlen = '40'.
            MODIFY pt_fieldcat FROM ls_fcat.
          WHEN 'VALUE'.
            ls_fcat-coltext = 'Wert'.
            ls_fcat-outputlen = '30'.
            MODIFY pt_fieldcat FROM ls_fcat.
          WHEN 'CATEGORY'.
              LOOP AT lt_category into ls_category.
                ls_ddval-handle = 1.
                ls_ddval-value = ls_category-category.
    *            ls_ddval-style = cl_gui_alv_grid=>mc_style_enabled.
                APPEND ls_ddval TO lt_ddval.
             ENDLOOP.
             CALL METHOD grid_r->set_drop_down_table
                EXPORTING it_drop_down = lt_ddval.
            ls_fcat-edit = 'X'.
            ls_fcat-drdn_hndl = '1'.
            ls_fcat-coltext = 'Kategorie'.
            MODIFY pt_fieldcat FROM ls_fcat.
        ENDCASE.
      ENDLOOP.
    ENDFORM.
    FORM prepare_layout CHANGING ps_layout TYPE lvc_s_layo.
      ps_layout-zebra = 'X'.
      ps_layout-grid_title = 'Kategorie zur Registry hinzufügen'.
      ps_layout-smalltitle = 'X'.
    ENDFORM.
    FORM save_data.
      DATA: ls_ins_keys TYPE g_verifier->ls_registrz_keys,
            ls_ins_key TYPE g_verifier->lt_registrz_key,
            ls_registrz TYPE zbc_dan_regstrz,
            ls_outtab LIKE LINE OF gt_outtab,
            lt_instab TYPE TABLE OF zbc_dan_regstrz.
      CALL METHOD g_verifier->get_inserted_rows IMPORTING inserted_rows = ls_ins_keys.
      LOOP AT ls_ins_keys INTO ls_ins_key.
        READ TABLE gt_outtab INTO ls_outtab
        WITH KEY  name = ls_ins_key-name
                  value = ls_ins_key-value
                  category = ls_ins_key-category.
        IF sy-subrc = 0.
          MOVE-CORRESPONDING ls_outtab TO ls_registrz.
          APPEND ls_registrz TO lt_instab.
        ENDIF.
      ENDLOOP.
      INSERT zbc_dan_regstrz FROM TABLE lt_instab.
      CALL METHOD g_verifier->refresh_delta_tables.
      ENDFORM.

    Hi Hans,
    You raised the Question in the Webdynpro ABAP forum. Here its very diffcult to get the answer from this forum. Please close it here and raise the same question in ABAP General Forum there you will get faster and so many anwsers.
    Please close the question here.
    Warm Regards,
    Vijay

  • Problem With Cutom Configuration with Object Type

    Dear Guru's
    I am working WebUI, I am facing a problem with Custom Configuration.
    1. The initial requirement to control the visibility for a dropdown event in ERP Quotation.
    2. To this i copied the default configuration to custom configuration with custom Object type and Subtype.
           CONFIG KEY: ZPJQTN
           OBJECT TYPE: ZOTYP_CONFIG
           OBJECT SUB TYPE:  ZSTYPE_CONFIG1
    3. I have created customm fields in enhancement.
    4. Now i chosen my new configuration (ZPJQTN,ZOTYP_CONFIG,ZSTYP_CONFIG1), when i click Show available fields, the custom fields are not showing. Instead the created fields are available at other configuration.
    5. I am able to control the visibility for the standard available fields.But i am not getting the custom created fields
    (Note:  I have created the Object type and Object sub type as follows: SPRO->CRM->UI Framework->Define Object Types
    Object type: ZOTYP_CONFIG Callback class: ZCL_CONFIG_CALLBACK
    Redifned the method: IF_BSP_DLC_OBJ_TYPE_CALLBACK~GET_OBJECT_SUB_TYPES
    Coded as below:
      data: lv_subtype type bsp_dlc_object_sub_type.
      lv_subtype = 'ZSTYP_CONFIG1'.
      append lv_subtype to result.
      lv_subtype = 'ZSTYP_CONFIG2'.
      APPEND lv_subtype to result.
    Now Please suggest me how to achieve this.
    Also please let me know, whether i am following the correct procedure for controlling the visibility.
    Thanks in Advance,
    S.Meganadhan.

    Hi Harshit,
    I added custom fields using AET only.
    I am able to see the field got added in the structure. I am able to access GET and SET methods of the field.
    But the problem is, it is not getting saved. Am i missed any configuration step?
    Please suggest me.
    Thanks in advance,
    Regards,
    S.Meganadhan.

  • Problem with subrpt links in crystal reports 8.5 (cr 9 and 2008 installed)

    I am trying to add a subreport to an existing CR 8.5 report.  I currently have Cr 8.5, cr 9 and cr 2008 on my pc (xp).  The subrpt is pointing to a sql 2005 stored procedure that has a parameter (@vvcrCono).  When I try to set up the link, the parameter  is not listed in the of available parameters to link to.  I select a field from the available fields on the main report, hit the > to move it over as a field to link to, and the dropdown that contains the list of parms to link to on the subreport will change to ?pm-(fieldname).  I do not see the parm list from the subreport.  I am unable to get the link defined.  This occurs even when trying to edit an existing subreport.
    Is there a problem with running these crystal report versions on the same machine?  Or am I just missing something? It has been a while since I've used cr 8.5.

    Joanne, thank you for your posted solution and specifically your mention of miniscule scroll bar of the 'subreport parameter field to use' drop down, I had been on several forums but none of them mentioned this, my subreport now accepts the passed parameter and main report works well. Hope your post helps others as it did me, only wish we could include a graphic to illustrate this as I have seen same question posed several times and several different msg boards.

Maybe you are looking for

  • Creating a read only page

    Say I have a page with 80 items on it. Is there any way to make the page/regions read-only instead of doing it by individual items. I've search the forum and it looks like it is by item only. Has anyone come up with a workaround or now of a solution

  • Use external display only - without mirroring?

    I've seen some folks using a Mac mini as a media center. I have a 12" PB and I was wondering if there's some hack for convincing the PB that there's -only- the external display (let's say 1366x768 or something similar in a wide-screen LCD) so that al

  • I am being told I need a wpa2 password to login to wifi. .

    I am being told I need a wpa2 password to login to wifi.  The business where I am has a strong wifi And I'm using the correct password. Others here are able to log on. Why can't I? Brand new MacBook Air/snow Leopard. Any ideas? Thanks.

  • How do i spell check.  I run it but nothing happens

    My spell check doesn't work.  I run it but nothing happens

  • I lost all my ibooks after an ios update. How can I get my ibooks back?

    Hi everyone, SO here's my problem : I updated my ipad. Then I updated my ibooks app. I saw that every ibooks that i had was erased. Is it becauss of the app update or the ios update? BEfore I updated my ipad, I backed it up. IS there any way to get m