Create record issue in the JHS LOV popup window after delete record

Jdeveloper : Studio Edition Version 11.1.2.2.0
Jheadstart : 11.1.2.1.28
hi
i sent a testcase to [email protected]
in JHS lov popup window,when i delete a record and then, i want to create a new record,it is not work
but when i click in one of the fields and then click plus icon, it work correctly

OK, this happens because of the code that fixed the delete issue that I sent you before. This code needs to be changed slightly, the following lines:
Row row = selectedRowData.getRow();
if (!isMultiSelect())
// make this row current, so row delete will work in LOV page
selectedRowData.getIteratorBinding().getRowSetIterator().getRowSet().setCurrentRow(row);
selectedRows.add(new RowData(row));
should be enclosed with a check whether there is a selected row:
if (selectedRowData != null)
Row row = selectedRowData.getRow();
if (!isMultiSelect())
// make this row current, so row delete will work in LOV page
selectedRowData.getIteratorBinding().getRowSetIterator().getRowSet().setCurrentRow(row);
selectedRows.add(new RowData(row));
Steven Davelaar,
JHeadstart team.

Similar Messages

  • How to get the values from popup window to mainwindow

    HI all,
       I want to get the details from popup window.
          i have three input fields and one search button in my main window. when i click search button it should display popup window.whenever i click on selected row of the popup window table ,values should be visible in my main window input fields.(normal tables)
       now i am able to display popup window with values.How to get the values from popup window now.
       I can anybody explain me clearly.
    Thanks&Regards
    kranthi

    Hi Kranthi,
    Every webdynpro component has a global controller called the component controller which is visible to all other controllers within the component.So whenever you want to share some data in between 2 different views you can just make it a point to use the component controller's context for the same. For your requirement (within your popups view context) you will have have to copy the component controllers context to your view. You then will have to (programmatically) fill this context with your desired data in this popup view. You can then be able to read this context from whichever view you want. I hope that this would have made it clear for you. Am also giving you an [example|http://****************/Tutorials/WebDynproABAP/Modalbox/page1.htm] which you can go through which would give you a perfect understanding of all this. In this example the user has an input field in the main view. The user enters a customer number & presses on a pushbutton. The corresponding sales orders are then displayed in a popup window for the user. The user can then select any sales order & press on a button in the popup. These values would then get copied to the table in the main view.
    Regards,
    Uday

  • TS1702 Has anyone had any issues with the app scramble with friends after updating to iOS 6. The touch screen is not responding properly when selecting the tiles but worked fine before the update

    Has anyone had an issue with the app scramble with friends after upgrading to iOS 6. Tapping the screen will not select the tiles and hold them.

    Yes I am having the same problem. I can't find any info about it and nothing seems to help. I am just posting this in hope that if it's a wider problem, there will be a quick solution.

  • Hi, coding to display popup window after first alv grid display

    hi
    can anybody please send coding to display popup window after first alv grid display i.e.  first the prog shows grid display and from grid display the user select the field and on the basis of field value i need to show pop up window in the first secondary window and then third popup window.
    thanx
    rocky

    Hi rocky,
    here is the sample code .hope this helps you.
    TYPE-POOLS : SLIS.
    DATA : GT_OUTTAB TYPE VBAK OCCURS 0,
           GS_PRIVATE TYPE SLIS_DATA_CALLER_EXIT,
           GS_SELFIELD TYPE SLIS_SELFIELD.
    DATA : IT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
           WA_FIELDCAT TYPE SLIS_FIELDCAT_ALV.
    DATA : ITAB TYPE TABLE OF SLIS_SELFIELD,
           WA_ITAB LIKE LINE OF ITAB.
    START-OF-SELECTION.
    PERFORM POPULATE_GT_OUTTAB.
    PERFORM GET_POPUP.
    PERFORM POPULATE_ITAB.
    PERFORM FIELDCAT.
    PERFORM DISPLAY_DETAILS.
    *&      Form  FIELDCAT
          text
    -->  p1        text
    <--  p2        text
    FORM FIELDCAT .
    LOOP AT ITAB INTO WA_ITAB.
    WA_FIELDCAT-FIELDNAME = 'TABINDEX'.
    WA_FIELDCAT-TABNAME = 'WA_ITAB'.
    WA_FIELDCAT-COL_POS = 1.
    WA_FIELDCAT-SELTEXT_L = 'TABLE INDEX'.
    APPEND WA_FIELDCAT TO IT_FIELDCAT.
    WA_FIELDCAT-FIELDNAME = 'SEL_TAB_FIELD'.
    WA_FIELDCAT-TABNAME = 'WA_ITAB'.
    WA_FIELDCAT-COL_POS = 2.
    WA_FIELDCAT-OUTPUTLEN = 20.
    WA_FIELDCAT-SELTEXT_L = 'FIELD NAME'.
    APPEND WA_FIELDCAT TO IT_FIELDCAT.
    WA_FIELDCAT-FIELDNAME = 'VALUE'.
    WA_FIELDCAT-TABNAME = 'WA_ITAB'.
    WA_FIELDCAT-COL_POS = 3.
    WA_FIELDCAT-SELTEXT_L = 'FIELD VALUE'.
    APPEND WA_FIELDCAT TO IT_FIELDCAT.
    ENDLOOP.
    ENDFORM.                    " FIELDCAT
    *&      Form  POPULATE_GT_OUTTAB
          text
    -->  p1        text
    <--  p2        text
    FORM POPULATE_GT_OUTTAB .
    SELECT * FROM VBAK
           UP TO 10 ROWS
           INTO TABLE GT_OUTTAB.
    ENDFORM.                    " POPULATE_GT_OUTTAB
    *&      Form  GET_POPUP
          text
    -->  p1        text
    <--  p2        text
    FORM GET_POPUP .
    CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
      EXPORTING
       I_TITLE                       = 'SALES ORDER'
      I_SELECTION                   = 'X'
      I_ALLOW_NO_SELECTION          =
       I_ZEBRA                       = 'X'
      I_SCREEN_START_COLUMN         = 0
      I_SCREEN_START_LINE           = 0
      I_SCREEN_END_COLUMN           = 0
      I_SCREEN_END_LINE             = 0
      I_CHECKBOX_FIELDNAME          =
      I_LINEMARK_FIELDNAME          =
      I_SCROLL_TO_SEL_LINE          = 'X'
        I_TABNAME                     = 'SALES ORDER'
        I_STRUCTURE_NAME              = 'VBAK'
      IT_FIELDCAT                   =
      IT_EXCLUDING                  =
      I_CALLBACK_PROGRAM            =
      I_CALLBACK_USER_COMMAND       =
       IS_PRIVATE                    = GS_PRIVATE
    IMPORTING
       ES_SELFIELD                   = GS_SELFIELD
      E_EXIT                        = G_EXIT
      TABLES
        T_OUTTAB                      = GT_OUTTAB
    EXCEPTIONS
       PROGRAM_ERROR                 = 1
       OTHERS                        = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFORM.                    " GET_POPUP
    *&      Form  POPULATE_ITAB
          text
    -->  p1        text
    <--  p2        text
    FORM POPULATE_ITAB .
    WA_ITAB-TABNAME = GS_SELFIELD-TABNAME.
    WA_ITAB-TABINDEX = GS_SELFIELD-TABINDEX.
    WA_ITAB-SEL_TAB_FIELD = GS_SELFIELD-SEL_TAB_FIELD.
    WA_ITAB-VALUE = GS_SELFIELD-VALUE.
    APPEND WA_ITAB TO ITAB.
    ENDFORM.                    " POPULATE_ITAB
    *&      Form  DISPLAY_DETAILS
          text
    -->  p1        text
    <--  p2        text
    FORM DISPLAY_DETAILS .
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
      I_INTERFACE_CHECK              = ' '
      I_BYPASSING_BUFFER             =
      I_BUFFER_ACTIVE                = ' '
      I_CALLBACK_PROGRAM             = ' '
      I_CALLBACK_PF_STATUS_SET       = ' '
      I_CALLBACK_USER_COMMAND        = ' '
      I_STRUCTURE_NAME               =
      IS_LAYOUT                      =
       IT_FIELDCAT                    = IT_FIELDCAT
      IT_EXCLUDING                   =
      IT_SPECIAL_GROUPS              =
      IT_SORT                        =
      IT_FILTER                      =
      IS_SEL_HIDE                    =
      I_DEFAULT                      = 'X'
      I_SAVE                         = ' '
      IS_VARIANT                     =
      IT_EVENTS                      =
      IT_EVENT_EXIT                  =
      IS_PRINT                       =
      IS_REPREP_ID                   =
      I_SCREEN_START_COLUMN          = 0
      I_SCREEN_START_LINE            = 0
      I_SCREEN_END_COLUMN            = 0
      I_SCREEN_END_LINE              = 0
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER        =
      ES_EXIT_CAUSED_BY_USER         =
      TABLES
        T_OUTTAB                       = ITAB
    EXCEPTIONS
       PROGRAM_ERROR                  = 1
       OTHERS                         = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFORM.                    " DISPLAY_DETAILS
    award points if helpful.
    regards,
    deepthi reddy

  • How can I restore the "All my files" shortcut in the finder window after deleting it

    Hello all!
    How can I restore the "All my files" shortcut in the finder window after deleting it?

    Finder > Preferences > Sidebar
    Put a checkmark in the box beside "All My Files".

  • How to pass the values from popup window to parent's window

    Hi Experts,
    in my application i need to develop one popup window in that i have created 4 dropdowns and one ok button , if i willl click on that ok  button the values should pass to parent window dropdownlistboxes
    can any body suggest how i will get the popup window values
    thanks in advance,
    ramani.

    Hi Ramani,
    I can provide few inputs on how can we control JSP 2 from JSP1.
    Here is the code. Check if you can convert this to make useful to you. I am not passing values but control.
    here it is:
    JSP 1.
    <h1>Page One</h1>
    <br>
    <a href="/irj/portalapps/<PAR_FILE_NAME>/images/<HTML_PAGE_NAME>.html#part1">part 1</a>
    <br><br><br>
    <a href="/irj/portalapps/<PAR_FILE_NAME>/images/<HTML_PAGE_NAME>#part2">part 2</a>
    <br><br><br>
    <a href="/irj/portalapps/<PAR_FILE_NAME>/images/<HTML_PAGE_NAME>#part3">part 3</a>
    JSP 2.
    <h1>Page Two</h1>
    <br>
    <a name="part1">
    <h3>Part 1</h3>
    </a>
    <a name="part2">
    <h3>Part 2</h3>
    </a>
    <a name="part3">
    <h3>Part 3</h3>
    </a>
    This way you can move from one JSP to other.
    regards
    -Kedar Kulkarni
    reward points if useful.
    Message was edited by:
            Kedar Kulkarni

  • LoV - popup window too small

    Hi all,
    I'm using Oracle Forms Builder 10gR2. I have a LoV attached to a button but when the user open it - the popup window which appears is too small and customer has to enlarge it.
    Any ideas how to set it larger? Maybe in property palette or other option i have to define?
    Thanks in advance,
    Bahchevanov.

    You can set the width and the height of the LOV plus their x and y position in the property pallette at design time.
    cheers

  • Issue with the material field in ME23N after upgrade

    Hi Experts,
    We are having an issue with transaction ME23N in ECC6.0 after upgrade from 4.6c.
    In this transaction for the given PO the value of the material is not populating. The material coloumn is displaying but the value of the material is not coming.
    For the same PO with the same data we are able to see the material number in ME23N in 4.6c.
    Please help me to resolve this.
    Thanks,
    Rakesh

    Hi,
    If you are a functional consultant then check the configuration settings in SPRO and compare it with the one in 4.6c system to find if the material number display in ME23N is enabled in your new system or not. Go to tcode SPRO and Material Management-> Purchasing->Purchase Order->Define Screen Layout at Document level.
    Execute this and select on ME21N or tcode that you are having problem with. Then press details button and double click on Enjoy fields. Check if it Display check box is ticked or not.
    KR Jaideep,

  • How do I create a printer friendly page in a popup window for a JSF page

    I have a JSF page that displays a table that shows the inventory level of a particular garment style. The table is like a matrix with each row representing a color of the style and each column representing a size of the garment. So the data in the table cell is for the inventory level of a particular color/size combination (e.g. navy blue of medium size ) for the particular style. The page also allows you to dynamically select a warehouse from a dropdown to see the inventory matrix of that warehouse.
    Now everything has been working fine except that the matrix table is not printer-friendly. So we need to have a Print button or link on the page that will generate a popup window that displays the same matrix table in a printer-friendly format (with different style sheet etc.). What is the best way to populate the matrix table in the popup? The data in the matrx table is stored in a hashmap in a InventoryManageBean of session scope.
    Also, shoud I use window.open to get the new window and if so what do I pass in the URL parameter?
    Any advice is appreciated. It would be great if you can include a code sample as I would think someone else must have had this done before.

    Any one please? This is urgent. Thanks a ton!

  • To open the screen as popup window in EP

    Hi All,
    We have standard webdynpro ABAP UI (Floor plan manager)  in portal from the standard SAP EM Configuration.
    In WDABAP User interface, when user clicks on the link then SAP screen is opening in the new window , but that should be opened as a pop up window in the same portal screen where user clicks on link UI element, instead of opening in the new window.
    Please let me know whether SAP provides this feature as part of any standard configuration either in FPM front or with other solution.
    Currently All webdynpro ABAP UI screens are accessing in portal are from WDABAP standard UI from FPM configuration in SAP EM system.
    Please get back to me on this, Thanks in advance.
    on click of UI link the standard SAP screen is opening in new window, but that screen should be opened in the same screen as popup window.
    Please let me know whether any configuration is a
    Regards,
    Portaluser100

    Hi,
    there is currently no standard configuration available to change this behaviour. These kind of links will always open a new window.
    Best regards, Daniel

  • How to create a button to get File Open popup window and select a file

    Hi,
    I have an applet that contains Browse button. When user clicks on that, a File Open popup window should be displayed to enable user to select the input file. This file path should be given back as parameter.
    How to do this? I have tried using LoadFileData but not able to get the desired result.
    Any pointers would be helpful.
    Thanks,
    Lalitha Dandibotla

    Do you need only the path or also the file back into Siebel?
    If you need both, the have a look at any attachment applet, that will give you a good start.
    Are you using Siebel in High Interactivity (HI) Mode or Standard Interactivity (SI) Mode?
    If you are in SI Mode have a look at the html type
    <input type="file">
    http://www.w3.org/TR/html401/interact/forms.html#h-17.4
    Axel

  • How to stop the Company Code popup window in MIRO!

    Hi,
    When User logs in the system and enters into the MIRO transaction, he is asked to enter the Company Code first in order to proceed further. I know that once you enter the company code then the system does not ask it to enter again during that login, however, it will asks again whenever User login the system again!
    Can someone tell that how to stop this Company Code popup window in MIRO, so that the system should not ask for the Comp Code whenever User logs in and enters into MIRO? I think there are some entries maintained in the User Master for this!
    Thanks.

    Hi,
    It is Necessary for the user to enter the company code for which he need to process the Invoice.
    First think is if the user knows ,that he is only going to do for one company code.then
    in the T code SU3.
    In the parameter TAB
    you can make the Default value for the parameter ID BUK as your Comany Code value ( Eg 1000)
    so that when ever the user does the MIRO ,it comes with that company code only.
    and if he want to do for another comapany code ,he has to use the option of Switching the comapny code.
    so this is user dependent and has to be made for all users.
    Note .the above setting works only you have entered saved and logged off and log in again.
    also ,this value gets defaulted you all the comapny codes in all screen.
    Hope so it helps.
    Regards
    Anjanna.

  • Could I pass the inputvalue to popup window?

    I put the field( a VO attribute) in a table with a image behind it.I set the image's Destination URL as "javascript:void(window.open('OA.jsp?page=/oracle/apps/po/webui/popupPG&ID={@ManagerId}&retainAM=Y'));".
    When I click the image ,the ManagerId I got in popup window was not the value I input,but the value before I edit.
    can anybody help on this?
    Thanks and Regards,
    binghao

    Upon clicking the image, you're getting the previous value because the form is not submitted therefore you cannot get your new input since it is not populated in your VO.

  • Add "*" infront of the label  in the error message popup window

    Dear all,
    I am new in ADF, I would like to add an "*" infront of the Salutation label in the error message popup,
    does anybody know how to do it? pls help me out in this...thanks
    PS: The Salutation is a af:selectOneChoice component with required validation,
    and if I modified the Salutation to af:inputText with required validation the "*" is shown automatically.
    http://dl.dropbox.com/u/11032207/screen%202012-12-18.jpg
    Edited by: user5638657 on Dec 18, 2012 6:04 PM

    Here is the jsf, thanks
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    xmlns:f="http://java.sun.com/jsf/core">
    <af:panelBorderLayout id="pbl1">
    <f:facet name="start"/>
    <f:facet name="bottom">
    <af:panelGroupLayout id="pgl3">
    <af:popup id="p1">
    <af:noteWindow id="nw1">
    <af:outputText value="#{particularsBundle['TEXT.GENERAL.NOTE.SURNAME']}"
    id="ot13"/>
    </af:noteWindow>
    </af:popup>
    </af:panelGroupLayout>
    </f:facet>
    <f:facet name="end"/>
    <f:facet name="top">
    <af:group id="g1">
    <af:outputText value="#{particularsBundle['TEXT.PARTICULARS.PAGE']}"
    id="ot2" inlineStyle="color:Black; font-size:large;"/>
    <af:spacer width="10" height="10" id="s3"/>
    </af:group>
    </f:facet>
    <af:panelGroupLayout id="pgl4" layout="vertical">
    <af:outputText value="#{particularsBundle['TEXT.GENERAL.REQUIRED']}"
    id="ot5"/>
    <af:spacer width="10" height="10" id="s5"/>
    <af:panelFormLayout id="pfl1" labelAlignment="start">
    <af:panelLabelAndMessage label="#{bindings.UserId.hints.label}"
    id="plam1" inlineStyle="color:Black;">
    <af:outputText value="#{bindings.UserId.inputValue}" id="ot1"/>
    </af:panelLabelAndMessage>
    <af:selectOneChoice value="#{bindings.UserSalutation.inputValue}"
    label="#{bindings.UserSalutation.label}"
    required="true"
    shortDesc="#{bindings.UserSalutation.hints.tooltip}"
    id="soc1">
    <af:selectItem label="#{particularsBundle['SELECT.SALUTATION.MR']}"
    id="si1" value="Mr."/>
    <af:selectItem label="#{particularsBundle['SELECT.SALUTATION.MRS']}"
    id="si2" value="Mrs."/>
    <af:selectItem label="#{particularsBundle['SELECT.SALUTATION.MISS']}"
    id="si3" value="Miss"/>
    <af:selectItem label="#{particularsBundle['SELECT.SALUTATION.DR']}"
    id="si4" value="Dr."/>
    <af:selectItem label="#{particularsBundle['SELECT.SALUTATION.PROFESSOR']}"
    id="si5" value="Professor"/>
    </af:selectOneChoice>
    <af:inputText value="#{bindings.UserSurname.inputValue}"
    label="#{bindings.UserSurname.hints.label}"
    required="#{bindings.UserSurname.hints.mandatory}"
    columns="#{bindings.UserSurname.hints.displayWidth}"
    maximumLength="#{bindings.UserSurname.hints.precision}"
    shortDesc="#{bindings.UserSurname.hints.tooltip}"
    id="it6">
    <f:validator binding="#{bindings.UserSurname.validator}"/>
    </af:inputText>
    <f:facet name="footer">
    <af:spacer width="10" height="10" id="s4"/>
    </f:facet>
    </af:panelFormLayout>
    <af:spacer width="20" height="10" id="s11"/>
    <af:panelGroupLayout id="pgl0" layout="horizontal">
    <af:commandButton text="#{particularsBundle['BUTTON.CONTINUE']}"
    id="cb1"
    action="#{updateProfileBackingBean.actionContinue}">
    <af:setActionListener from="#{bindings.UserEmail.inputValue}"
    to="#{bindings.email.inputValue}"/>
    </af:commandButton>
    <af:spacer width="20" height="10" id="s2"/>
    <!--af:resetButton text="#{particularsBundle['BUTTON.RESET']}" id="rb1"
    inlineStyle="height:19.0px;"/-->
    <af:resetButton text="#{particularsBundle['BUTTON.RESET']}" id="rb1" inlineStyle="background-position:center top;
    background-repeat:repeat-x;
    margin:0;
    padding-bottom:3px;
    padding-top:1px;
    text-decoration:none;
    white-space:nowrap;"/>
    </af:panelGroupLayout>
    </af:panelGroupLayout>
    <af:spacer width="20" height="10" id="s1"/>
    </af:panelBorderLayout>
    </jsp:root>

  • Commit after deleting records

    Hi All,
    I wrote one delete command .This command deletes 20 millions of records.But I want to give "commit" after deleting every 100000 records. How to give "commit" for this requirement.
    please guide me.
    Thank you.

    Depends on your delete statement.
    Sometime you can group the delets into logical units.
    Compare and consider the following three approaches.
    1) This deletes all data from all previous months.Delete from myTable where insertDate < trunc(sysdate,'mm'))
    2) Delete each month separately and commit in between.Delete from myTable where insertDate < trunc(sysdate,'year'));
    commit;
    Delete from myTable
    where insertDate >= trunc(sysdate,'year'))
    and insdate < add_months(trunc(sysdate,'year'),1) -- "january"
    and insdate < trunc(sysdate,'mm')) -- do not delete too much!
    commit;
    Delete from myTable
    where insertDate >= trunc(sysdate,'year'))
    and insdate < add_months(trunc(sysdate,'year'),2) -- "February"
    and insdate < trunc(sysdate,'mm')) -- do not delete too much!
    commit;
    Delete from myTable
    where insertDate >= trunc(sysdate,'year'))
    and insdate < add_months(trunc(sysdate,'year'),3) -- "March"
    and insdate < trunc(sysdate,'mm')) -- do not delete too much!
    commit;
    Delete from myTable
    where insertDate >= trunc(sysdate,'year'))
    and insdate < add_months(trunc(sysdate,'year'),12) -- "December"
    and insdate < trunc(sysdate,'mm')) -- do not delete too much!
    commit;
    3) Delete based on ID and logical groups
    Select min(id), max(id) into v_min, v_max
    from myTable where insertDate < trunc(sysdate,'mm'));
    for i in 1..trunc(v_max-v_min)/100000)+1 loop
      delete from myTable
      where id >= v_min+((i-1)*100000)
      and id < v_min+(i*100000)
      and id <= v_max
      and insertDate < trunc(sysdate,'mm')) -- this line is not really needed, maybe remove it depending on the execution plan.
      commit;
    end loop;

Maybe you are looking for