Dropdown getting deleted , when called in popup

Hi All,
When i press a button on my main view i call a popup view.
In the popup view i need to add dropdowns on "Add dropdown Button"
When i press the button once the  dropdown is created.
When i press the button for second time the second dropdown doesnt gets created.
In debugging i can just see that the navigation goes to onaction of the add button and then modify view.
and then nothing happens.
Can some one please help me with this?
Edited by: Bhanu  Malik on Mar 21, 2011 4:02 AM
Edited by: Bhanu  Malik on Mar 21, 2011 5:55 AM

On Add dropdown
lo_nd_cn_rulehead_edit2->bind_table( new_items = lt_cn_rulehead_edit2 set_initial_elements = abap_true ).
   cl_wd_dropdown_by_idx=>new_dropdown_by_idx(
  EXPORTING
     bind_texts   = 'CN_RULEHEAD_EDIT2.CA_RULEHEAD_EDIT2'
      id          = 'EDIT_DROP2'
       RECEIVING
      control    = lr_input1 ).
when i press the button again (this dropdown doesnt gets created)
   cl_wd_dropdown_by_idx=>new_dropdown_by_idx(
  EXPORTING
     bind_texts  = 'CN_RULEHEAD_EDIT3.CA_RULEHEAD_EDIT3'
      id          = 'EDIT_DROP3'
       RECEIVING
      control    = lr_input2 ).
    lr_matrix = cl_wd_matrix_head_data=>new_matrix_head_data( lr_input2 ).
   lr_input2->set_layout_data( lr_matrix ).
    wd_comp_controller->lr_container->add_child(
        the_child = lr_input2
I think there is some other problem of modify view because when first dropdown is created it works fine
and when second dropdown is created it gives problem

Similar Messages

  • Temp table gets deleted when calling another function

    Hello Everyone
    I am using temporary tables which gets deleted on commit to workaround a multiset union (which doesnt work on Oracle 9). Now, this table somehow gets deleted (the content) during execution of my stored procedure but there is no delete or commit statement.
    Here is what I am doing
    start
    delete temp table (just to be sure)
    prepare array
    loop array {
    output count of temp table
    a = some other function(...)
    output count of temp table
    insert stuff I need to temp table
    output count of temp table
    end
    The output is giving me (example). The correct result would be 140 at the end
    0
    0
    100
    0
    40
    I checked all further function calls, there is no delete or commit, just some objects are created (and collections) which are then processed and returned.
    Could it be that there is a automatic commit or something like that?
    Thanks
    Edited by: maschlegel on Jan 26, 2009 6:36 AM
    Edited by: maschlegel on Jan 26, 2009 6:37 AM
    Edited by: maschlegel on Jan 26, 2009 6:38 AM

    just some objects are created (and collections) which are then processed and returneAll DDL statements issue COMMITs implicitly - once before the statement is processed and once after. (so any data changes are committed even if the DDL statement fails).
    This is just one reason why it is such a bad idea to stick DDL statements in the middle of transactions.
    Cheers, APC
    blog: http://radiofreetooting.blogspot.com

  • Events in ical on my macbook get deleted when I sync w/my iphone5.

    Been having problems getting ical events to merge between iphone5 and macbook.  After some suggestions from the community, I discovered I have no icloud in ical system preferences, and events scheduled in ical on macbook gets deleted when syncing to my iphone5.  Getting frustrated.

    You probably have your iPhone set up to clear out old events.  My guess is that the events that are being deleted have already occurred.
    Check Settings > Mail, Contacts, Calendars > Sync, and make sure the events you want to keep are preserved.

  • How do I save photos that have been synced to my Ipad2, so that they do not get deleted when I sync with a different photo file on my computer.

    How do I save photos that have been synced to my Ipad2, so that they do not get deleted when I sync with a different photo foder on my computer (Pc win7).

    Place that first folder of photos that you synced to the iPad within the main folder of photos that you sync from and select them to sync again. You can place any number of subfolders within the main folder that you sync from and select those folders to sync. Just "tick"(select) the folders in the photos tab in iTunes.
    iOS and iPod: Syncing photos using iTunes

  • Will the app specific files get deleted when i remove/uninstall an app from iPad

    I mean those files added to an app using iTunes. For example, pdf files added to a reader.
    Do these files get deleted when i delete an app from iPad?

    I've learnt that this data do get deleted along with the app during deletion/uninstallation. Please correct me if I'm wrong.

  • Resources getting deleted when trying to add at run time

    Hi All,
    When i am trying to add resources to another file at run time, some of the earlier resources are getting deleted. Please find the source code below:
    void CResourceIncludeSampleDlg::OnBnClickedButton1()
    CString strInputFile = _T("C:\\SampleData\\FileToInsert.zip"); // This File is 100 MB
    HANDLE hFile = CreateFile(strInputFile, GENERIC_READ, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
    DWORD FileSize = GetFileSize(hFile, NULL);
    BYTE *pBuffer = new BYTE[FileSize];
    DWORD dwBytesRead;
    ReadFile(hFile, pBuffer, FileSize, &dwBytesRead, NULL);
    for (int iIndex = 1; iIndex <= 4; iIndex++)
    InsertResource(FileSize, iIndex, pBuffer);
    CloseHandle(hFile);
    void CResourceIncludeSampleDlg::InsertResource(DWORD FileSize, int iIndex, BYTE *pBuffer)
    CString strOutputFile = _T("C:\\SampleData\\ResourceIncludeSample_Source.exe");
    int iResourceID = 300 + iIndex;
    HANDLE hResource = BeginUpdateResource(strOutputFile, FALSE);
    if (INVALID_HANDLE_VALUE != hResource)
    if (UpdateResource(hResource, _T("VIDEOBIN"), MAKEINTRESOURCE(iResourceID), MAKELANGID(LANG_ENGLISH, SUBLANG_ENGLISH_US),
    (LPVOID)pBuffer, FileSize) == TRUE)
    EndUpdateResource(hResource, FALSE);
    After completion of the execution, i am expecting output as 301, 302, 303 and 304 added under "VIDEOBIN" category. But only 2 (sometimes 3) resources are present. One resource
    is always deleted.
    Could you please let me know what could be wrong or any fix for the same ?
    Any help or sample source code is greatly appreciated.
    Thanks and Regards,
    Kishor Reddy
     

    Make sure that all precautions mentioned in the
    docum are met.
    "Before you call this function, make sure all file handles other than the one returned by
    BeginUpdateResource are closed." and also regarding LN and MUI files.
    -- pa

  • Error when calling a popup window in the initial screen of an application

    Hi,
        I am calling a popup window in the Initial screen to select the variant list.
    I am getting an error reference to Null Object reference.
    Here is the Error.
    Runtime Errors         OBJECTS_OBJREF_NOT_ASSIGNED_NO
    Exception              CX_SY_REF_IS_INITIAL
    Date and Time          15.06.2007 10:00:16
    Short text
    Access via 'NULL' object reference not possible.
    What happened?
    Error in the ABAP Application Program
    The current ABAP program "CL_WDR_MESSAGE_AREA===========CP" had to be
    terminated because it has
    come across a statement that unfortunately cannot be executed.
    What can you do?
    Note down which actions and inputs caused the error.
    To process the problem further, contact you SAP system
    administrator.
    Using Transaction ST22 for ABAP Dump Analysis, you can look
    at and manage termination messages, and you can also
    keep them for a long time.
    Error analysis
    An exception occurred that is explained in detail below.
    The exception, which is assigned to class 'CX_SY_REF_IS_INITIAL', was not
    caught in
    procedure "SUPPLY_VIEW_DATA" "(METHOD)", nor was it propagated by a RAISING
    clause.
    Since the caller of the procedure could not have anticipated that the
    exception would occur, the current program is terminated.
    The reason for the exception is:
    You attempted to use a 'NULL' object reference (points to 'nothing')
    access a component.
    An object reference must point to an object (an instance of a class)
    before it can be used to access components.
    Either the reference was never set or it was set to 'NULL' using the
    CLEAR statement.
    How to correct the error
    Probably the only way to eliminate the error is to correct the program.
    If the error occures in a non-modified SAP program, you may be able to
    find an interim solution in an SAP Note.
    If you have access to SAP Notes, carry out a search with the following
    keywords:
    "OBJECTS_OBJREF_NOT_ASSIGNED_NO" "CX_SY_REF_IS_INITIAL"
    "CL_WDR_MESSAGE_AREA===========CP" or "CL_WDR_MESSAGE_AREA===========CM00Q"
    "SUPPLY_VIEW_DATA"
    If you cannot solve the problem yourself and want to send an error
    notification to SAP, include the following information:
    1. The description of the current problem (short dump)
    To save the description, choose "System->List->Save->Local File
    (Unconverted)".
    2. Corresponding system log
    Display the system log by calling transaction SM21.
    Restrict the time interval to 10 minutes before and five minutes
    after the short dump. Then choose "System->List->Save->Local File
    (Unconverted)".
    3. If the problem occurs in a problem of your own or a modified SAP
    program: The source code of the program
    In the editor, choose "Utilities->More
    Utilities->Upload/Download->Download".
    4. Details about the conditions under which the error occurred or which
    actions and input led to the error.
    The exception must either be prevented, caught within proedure
    "SUPPLY_VIEW_DATA" "(METHOD)", or its possible occurrence must be declared in
    the
    RAISING clause of the procedure.
    To prevent the exception, note the following:
    Looking for Ur valuable suggestions.
    Cheers,
    Sam

    Hi Sam,
    The correct code for creating a popup window will be:
      data lo_window_manager type ref to if_wd_window_manager.
      data lo_api_component  type ref to if_wd_component.
      data lo_window         type ref to if_wd_window.
      lo_api_component  = wd_comp_controller->wd_get_api( ).
      lo_window_manager = lo_api_component->get_window_manager( ).
      lo_window         = lo_window_manager->create_window(
                         window_name            = 'WINDOW_NAME'
    *                    title                  =
    *                    close_in_any_case      = abap_true
                         message_display_mode   = if_wd_window=>co_msg_display_mode_selected
    *                    close_button           = abap_true
                         button_kind            = if_wd_window=>co_buttons_okcancel
                         message_type           = if_wd_window=>co_msg_type_none
                         default_button         = if_wd_window=>co_button_ok
      lo_window->open( ).
    Hope this helps.
    Regards,
    Ram

  • Need to dynamically include an image file when calling a popup window

    I am working on a web dynpro Java app which uses a button to call a popup window/view. Within the popup, I want to dynamically choose an image to show (from mime types) based on a criteria...there will be multiple buttons on the initial view that all call the same popup, but the popup will have content specific to which button called it (specifically the image embedded in the view).
    My question is, what is the proper/best way to do this?
    Here are some possible ways I can think of...
    1. Pass a parameter from each button during the call of the event, but how does that get sent to the implementation of the second view for use in determining which image? And, how do I modify the source property of the image element based on that parameter?
    2. Create multiple pages and views for each button to call...but this seems decidedly un-DRY.
    3. Saw one posting on how to dynamically create a cached image...I could use different event handlers in the initial view, then load individual images from the mime library at that point...cache it into a hard-coded image name...then just call the identical view every time. Not sure this is even possible...input?
    I don't know specifically how to implement any of these options, or know if there are other/better ways. Any help would be appreciated.

    Just create a context attribute "imageFileName" in the component controller or a custom controller, map this attribute from both views (the one that contains the buttons and the one in the popup window that displays the image).
    Now you can have an separate action for each button or one common action. In the first case just set the "imageFileName" inside the action handler for the specific button. In the second case use an action parameter "buttonId" and a parameter mapping
    button.mappingOfOnAction().setParameter("buttonId", button.getId());
    to determine which button triggered the action. After having checked which button was pressed, set the "imageFileName" accordingly.
    Armin

  • Notes get deleted when mailed

    Hi,
    I am seeing a problem with the notes app wherein when I mail the note (by hitting the mail icon at the bottom) it gets deleted. The note was mailed succesfully, but for some reason it disappeared on my notes list. Is anybody else seeing this?
    Thanks.

    Hello - I just posted a Q and am reading your answer here from a year ago. Maybe you can help me.
    I Have a series of notes I've kept the last several years on various topics. I just added a topic To a note on iPhone 5 I have had running at least 3 yrs (my point is it's kinda important note).  When I finished adding I was 1/2 paying attention and clicked the + at the top. That brought me to a blank page so I realized I clicked +. So, I clicked Done. That brought me to the menu of my notes - except the note I had added to was no longer there. DISAPPEARED. And, I am pretty sure I never clicked delete - but, like I said, I was 1/2 paying attention - however, if delete was clicked, it would have been after I clicked + and applicable (I guess) to that newly created + topic. But I really don't remember clicking delete.
    Now I have gone thru all my note topics to see if the disappeared note may have been added somewhere but it's not there. I then got the bright idea to turn on my iPad and look at Notes and sure enough the disappeared note is gone from there also.
    DO you have any ideas?? Or is this note gone forever? :-(
    THanks......

  • How come the year the album was released gets deleted when I edit the album name?

    When ever I edit the name of an album, the year gets deleted. Under "edit info" it says it is there but it never goes through to my ipod? This is the second time this has happened. What do I do?

    You might be able to do some of this with retaining the original information if you enter it into the sort ___ fields.  Never worked with those myself.

  • Presets and defaults get deleted when InDesign CS3 crashes

    Every few days InDesign CS3 crashes. I don't know why, but that's not even the issue here. The problem is that when it does, all of my presets and default settings get erased.
    Is there anything I can do to keep this from happening?
    If I save my default settings (by which I mean measurements, color palette, default fonts, stuff like that) as a workspace, will that allow me to import it all again when it does happen? Or will my workspaces get deleted too?
    This is getting really really really frustrating and I'd appreciate any advice on the matter!
    Shari+

    Read through the prior threads Peter posted. I see no solution offered. I
    too have had this problem on two separate workstations from the day ID CS3
    was installed. Intermitant, but it can be made to happen quite easily. I
    have never had a problem with printing, just opening multiple files through
    explorer.
    I spend hours on the phone with Adobe tech support and they also could not
    resolve the issue. Tried everything under the sun, including activating only
    the bare minimum fonts required by the systems, creating new XP user
    accounts, reinstalling the suite, deleting prefs, washing some files through
    INX, defrag, turning off all processes other than ID... nada... still
    problems. They gave up. So did I. Just living with it waiting for the next
    update.
    If someone has a fix for this, I'm all ears.
    Larry

  • Parent getting deleted when it's required child is deleted from BCC

    I'm extending the product catalog to attach another object, say additional info and this is a mandatory field during product declaration and hence this property is been marked with required=true
    But whenever the child item i.e, additional info is deleted through BCC, the products which are associated with this objects are also getting deleted from BCC.
    I guess this is how ATG deals with relationships. Business team is asking for any alternate or better approach.
    Is there any round about way of having the product deleted and still have this some kind of mandatory check working?

    Below is a sample xml configuration. In the case below, when delivery type is deleted from BCC, the associated products also get deleted
    <item-descriptor name="product">
            <table name="dcs_product" type="primary" xml-combine="append">
                <property name="description" required="true" />
            </table>
            <table name="tf_product" id-column-name="product_id" type="auxiliary">
                   <property     name="deliveryType" item-type="deliveryTypes" column-name="delivery_type"
                            display-name-resource="DeliveryType" category-resource="categoryBasics"
                            required="true" default="DT02"
                            hidden="false" writable="true" cache-mode="inherit" queryable="true" >
                            <attribute name="propertySortPriority" value="5"/>
                </property>  
                <!-- Story TF-384 merchandizing attributes and delivery type end -->           
            </table>
    </item-descriptor>
    <item-descriptor name="deliveryTypes" display-property="description" display-name-resource="DeliveryType" >
            <attribute name="resourceBundle" value="atg.commerce.CustomCatalogTemplateResources"/>
            <attribute name="plural-display-name-resource" value="DeliveryType.plural"/>
            <attribute name="create-asset-name-resource" value="DeliveryType.create"/>
            <attribute name="new-asset-name-resource" value="DeliveryType.new"/>
            <attribute name="plural-asset-name-resource" value="DeliveryType.plural.select"/>
            <attribute name="select-asset-name-resource" value="MDeliveryType.select"/>
            <table name="tf_delivery_types" id-column-name="id" type="primary">
                <property    name="id"    column-name="id"    data-type="string"
                    hidden="false" writable="true" required="false" cache-mode="inherit" queryable="true"
                    category-resource="categoryBasics" >
                    <attribute name="propertySortPriority" value="1"/>
                </property>
                <property    name="description"     column-name="description"     data-type="string"
                    hidden="false" writable="true" required="true" cache-mode="inherit" queryable="true"
                    display-name-resource="DeliveryType" category-resource="categoryBasics" >
                    <attribute name="unique" value="true"/>
                    <attribute name="propertySortPriority" value="2"/>
                </property>
    </table>
        </item-descriptor>

  • Email on the IPhone gets deleted when the email is checked on the PC

    Hey all,
    My boss gave me the task of figuring out issues on his IPhone 4G so here I am. He says when he checks an email on his personal computer, that same email gets deleted on his IPhone. We use Windows Mail and I'm sure it's POP. I've googled this in countless different ways with no clear answer so here I am in the Apple forums! He was also curious about saving excel/word documents but from what I've read, you're only able to email them and view them in Safari, correct?

    POP wasn't really designed to be checked from different computers/mobile devices, so this can indeed cause problems sometimes.
    His e-mail client is probably set up in a way that e-mails will be removed from the server as soon as the e-mail is downloaded to the computer (better known as checked).
    If this is the case: he can change the settings of his e-mail client to leave the mail on the server after it has been checked, either for a certain period of time or indefinitely.
    This might however be against company policy, because this will require more server space, if everybody will do this.

  • Artwork gets deleted when Syncing podcasts

    I've had this issue forever and dammit it must be fixed. I download a podcast directly from the Touch. When I sync with iTunes the podcast artwork ALWAYS gets deleted. When I disconnect the touch and play my podcasts, there is no artwork at all, just the bowling pin/armless person thing with circles around it that is there by default. ***? This is a piddly thing but losing the artwork *****.

    Sunshine_Dave wrote:
    I download a podcast directly from the Touch.
    I assume you mean tothe Touch over the Wi-Fi.
    If you don't find a fix for this, an alternative solution is to download Podcasts to iTunes from the iTunes Store and then Sync them to your Touch. I suggest this because there have been small issues with apps not working when downloaded directly to the Touch and this sounds as though it could be a similar problem.
    Phil

  • Suffix data gets deleted when SunOne server is restarted

    I manually created a new suffix for a program I'm installing. The program, during configuration, creates directory entries in this new suffix. Everything works great, but whenever you restart the SunOne server, the data entries underneath this suffix get deleted. the suffix is still there, but when you click on the Directory tab in the console, the directory entries have all disappeared for the suffix I created. Very bizarre. Any help would be appreciated!

    I checked both the access and the error logs, nothing of significance shows up. The suffix was originally created from the console manually. This problem occured on a Solaris 9 server, but I have been able to re-create it very easily on a Windows 2000 Advanced server.
    Using VMWare, I can easily keep going back and forth from the image with the data and the image with the data missing. I've also noticed that if I try to do an export of the data for this suffix, I get an error that says
    "LDAP server is unwilling to perform". I'm wondering if these two errors are related. When I try to do an export with a different suffix on this server, it works great. Right before you do the export, it tells you that if the server does not have the proper access rights on this file, the export will not succeed. I'm not sure how to check that. I did create the suffix manually from the console logged in as cn=Directory Manager". Should I be using a different id? Thanks for your help!

Maybe you are looking for