SP.ListOperation.Selection.getSelectedItems(context); is not working in IE

Hi All,
Below is my full code.
I am using  list view web parts and not working in IE browser but Its working fine in Chrome.
SP.ListOperation.Selection.getSelectedItems(context); - always returns null in IE but working fine with Chrome.
<div>
<tr>
<td>
<input type='button' value='Delete Service' onclick='javascript:DeleteSelectedItems();' />
</td>
</tr>
</div>
<script language='javascript' type='text/javascript'> 
$(document).ready(function(){       
      var scriptbase = _spPageContextInfo.webAbsoluteUrl + "/_layouts/15/";
        $.getScript(scriptbase + "SP.Runtime.js",
            function () {
                $.getScript(scriptbase + "SP.Core.js",  function () {return true;});
$.getScript(_spPageContextInfo.webAbsoluteUrl + "/_layouts/15/SP.Runtime.js");
$.getScript(_spPageContextInfo.webAbsoluteUrl + "/_layouts/15/SP.Core.js");*/
function DeleteSelectedItems()
SP.SOD.executeOrDelayUntilScriptLoaded(itemDeleteFromList, 'SP.js');
function itemDeleteFromList()
var selectedItems = null;
var context = SP.ClientContext.get_current();
var currlist = context.get_web().get_lists().getByTitle("SourceMemory");
context.load(currlist);
selectedItems = SP.ListOperation.Selection.getSelectedItems(context);
if(selectedItems != null && selectedItems != "" )
if(confirm('Are you sure you want to delete the memory(s)?'))
var item = null;
for (item in selectedItems)
            var projectItem = currlist.getItemById(selectedItems[item].id);
            projectItem.deleteObject();
context.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded), Function.createDelegate(this, this.onQueryFailed));
else
if (selectedItems == null || selectedItems == "")
    alert('Please select a memory to delete.');
  return;            
function OpenNewFormPopup() { 
var pUrl = "/sites/KGS/Lists/FunctionMaster/NewForm.aspx"        
 SP.UI.ModalDialog.showModalDialog(   
       url: pUrl,
       width: 800,  
       height: 700,  
       title: "Add Service"  
function onQuerySucceeded() {
    window.location.href = window.location.href
function onQueryFailed(sender, args) {
    alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());
</script>

Hi ,
For this issue, I'm trying to involve someone familiar with this topic to further look at it.
Thanks,
Eric
Eric Tao
TechNet Community Support

Similar Messages

  • Select * from tab is not working in oracle 10g

    select * from tab is not working in oracle 10g. But at the same time,
    select * from <<table>> is working.
    Please advise me.

    This works for me in 10.2.0.2
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    SQL> select * from tab;
    TNAME                          TABTYPE            CLUSTERID
    LOAN_DETAIL                    TABLE
    PLAN_TABLE                     TABLE
    ...

  • Type to selection tool quick command not working in InDesign CC

    When I have the type tool selected in InDesign and hold command for the selection tool, it's not working. When I hold the command button it highlights the selection tool, but as soon as I click my mouse, it reverts back to the type tool. Also, when I change the size of my text box it does not resize the text in the box, even if I hold for a a few sec before moving the cursor.

    @Cindy – usually all 3rd party developers will provide some information for installing and uninstalling their products. First see if you can find some information on their web sites.
    Also there should be a dedicated Adobe Extension Manager app where you can look up the installed parts of InDesign. Since I do not have InDesign CC installed, I do not know exactly, but its name should be something like "Adobe Extension Manager CC".
    If you start this app it will show all parts installed with InDesign (or other apps that are installed).
    Usually at the bottom of the list are the 3rd party installed components. They do not state "Adobe Incoroprate System" as author. Never uninstall (remove) the Adobe ones!
    Here a screen grab from my German Adobe Extension Manager CS5:
    If you select one, a new option is available at the right. In my case here the "Entfernen" button ("Remove" in English).
    Uwe

  • SELECT INTO ( variable ) STATEMENTS NOT WORKING FOR SYBASE TABLE AS VIEW

    Dear Experts,
    We have connected our 9i db with Sybase db using Hs connectivity.
    and then we have create the view in oracle db for SYBASE_TABLE as SYBASE_TABLE_VIEW.
    ALL THE INSERT, UPDATE AND DELETE COMMANDS ARE WORKING BUT THE
    select Into (variable) is not working.
    Please help to resolve the select into statment which is in BOLD in the below routine
    PLEASE NOTE! FORM WAS COMPILED SUCCESSFULLY AND FORM IS RUNNING BUT SELECT INTO COMMAND IS NOT WORKING.
    Thanks & Regards
    Eidy
    PROCEDURE SRBL_INSERT IS
    CURSOR SRBL IS
         SELECT impno,impcod,impnam
         from oracle_table1 a, oracle_table2 b
         WHERE a.impcod=b.empcod
         v_srpcod varchar2(5);
    BEGIN     
    FOR rec in SRBL loop     
         begin
    select "im_code" into v_impcod                    
         from SYBASE_TABLE_VIEW
         where "im_code"=rec.impcod;
    exception when no_data_found then
         v_srpcod:=null;
    end;
    END LOOP;
    END;
    Edited by: Eidy on Aug 16, 2010 11:28 AM

    hellow
    try this.
    select "im_code" into v_impcod
    from SYBASE_TABLE_VIEW
    where "im_code"=rec.impcod;
    v_srpcod := v_impcod ;
    ........

  • The select/start button is not working on my Vita?

    as title, anybody face the problems???
    actually, my vita (wifi) freezed last week, PS button blue light, cannot shut down.
    after hold down power button, enter to Safe Mode, and done everything (restore, restart, rebuild, format m.card).
    now, PS button alive, working, but select / start button still not working!!
    HELP HELP HELP.......

    Here Is the Solution see on pictures This Fault Is Caused With Shorted Right Top Button When This shows conductivity few ohm this interfere with the signal line on the pcb.to test it disconnect this button from the socket by lifting up the small lock on amphenol socket.measure the 2 tracks on the foil if its conductive.in most cases will be leave it disconnected turn on the psp vita with some games and test if the start button respond 99% it will be working ok.if yesthen turn off the unit disconnect the main battery to avoid shortage to the motherboard.peel gently off the top right button and replace with new oneiff you cannot get parts then separate the 2 foil and clean the ferrite pad's.cut a thin foil with 2 hole same size as the button conductive pad's this will create bigger gap between these conductive touch pad's and the foil. Warning !!! This guide is for advanced component level engineers not for beginners require esd protection.  

  • Context change not working

    hi,
    i am doing a maping between an xsd and message type with structure which has:
    1.nested structure
    2.source field occurs more than once in thses netsed structure.
    fields not having multiple occurence have the same value as in source but the one having mulitple occurence are having different fields.
    my context handling not working.
    i m using splitByValue and changing the context of source field to its immediate header which is again not working.
    can anyone help in this regards
    i appreciate quick reply which is needed-thanks

    okay Mark,
    i will try to explain,
    target
    <Root>
    ><Parent Node1> 1..unbounded
    ><childe node1> 0..1
    ><childe node2> 0..1
    ><Parent Node2> 0..unbounded  "item of parent node1"
    ><childe node3> 0..1
    ><childe node4> 0..1
    ><Parent Node3> 0..unbounded ""item of parent node2"
    ><childe node1> 0..1
    ><childe node2> 0..1
    source
    <Root>
    ><Parent Node> 0..unbounded
    ><childe node1> 0..1
    ><childe node2> 0..1
    ><childe node3> 0..1
    ><childe node4> 0..1
    when i try to check the context at parentNode1,2,3 its occurences gets affected.
    like if supoose parent node1 is suppose to occur3 times along with its items i.e parentNode2, parentNode3; it occurs 3 times but in the 2nd and 3rd occurences there are no items in it.
    rest the child nodes are mapped wth context chnge to its immediate header using splitVal.
    let me knw if nt clear
    thnx al

  • Context IDs not working

    I am working in RoboHelp 10, my .html files are generating using the WebHelp target. My source files are in FrameMaker, which are linked to RoboHelp. I set up context IDs in RoboHelp.
    Suddenly, the context IDs aren't working in outputs at all. I've rebuilt the RoboHelp linking and re-setup the context IDs.
    Any ideas on what happened? Thanks.

    Are the map files selected in your SSL settings? That is the most common cause for CSH not working. When all the ID's are linked to topics, the problem is probably not found in the linking to FM.
    Kind regards,
    Willam

  • FileReference Select and Cancel Event Not Working in leopard

    FileReference not working in leopard
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:Script>
    <![CDATA[
    import mx.controls.Alert;
    public function onClick():void{
    var fr:FileReference=new FileReference();
    //fr.addEventListener(
    fr.addEventListener(Event.OPEN,openHandler);
    fr.addEventListener(Event.COMPLETE,completeHandler);
    fr.addEventListener(Event.SELECT,selectHandler);
    fr.addEventListener(Event.CANCEL,cancelHandler);
    fr.addEventListener(DataEvent.UPLOAD_COMPLETE_DATA,uploadCompleteDataHandler);
    fr.addEventListener(HTTPStatusEvent.HTTP_STATUS,httpStatusHandler);
    fr.addEventListener(IOErrorEvent.IO_ERROR,ioErrorHandler);
    fr.addEventListener(ProgressEvent.PROGRESS,progressHandler);
    fr.addEventListener(SecurityErrorEvent.SECURITY_ERROR,securityErrorHandler);
    fr.browse([new FileFilter("images", "*.png;*.jpg;*.gif")]);
    private function cancelHandler(event:Event):void {
    trace("cancelHandler: " + event);
    private function completeHandler(event:Event):void {
    trace("completeHandler: " + event);
    private function
    uploadCompleteDataHandler(event:DataEvent):void {
    trace("uploadCompleteData: " + event);
    private function
    httpStatusHandler(event:HTTPStatusEvent):void {
    trace("httpStatusHandler: " + event);
    private function ioErrorHandler(event:IOErrorEvent):void {
    trace("ioErrorHandler: " + event);
    private function openHandler(event:Event):void {
    trace("openHandler: " + event);
    private function progressHandler(event:ProgressEvent):void {
    var file:FileReference = FileReference(event.target);
    trace("progressHandler name=" + file.name + " bytesLoaded="
    + event.bytesLoaded + " bytesTotal=" + event.bytesTotal);
    private function
    securityErrorHandler(event:SecurityErrorEvent):void {
    trace("securityErrorHandler: " + event);
    private function selectHandler(event:Event):void {
    Alert.show("XD");
    ]]>
    </mx:Script>
    <mx:Button x="205" y="198" label="Button"
    click="onClick()"/>
    </mx:Application>
    Adobe Flex Builder 3 Beta3
    Leopard 10.5.1
    both Safari and firefox doesn't work

    Flash version is 115 debug player

  • Context IDs not working in merged projects

    I can’t seem to get context sensitivity to work. I have
    a master project: OG and two slave projects: rbc and MAINT. I used
    the TOC tab in the OG project to merge the rbc and MAINT chms. The
    merged TOC and index appear to be working OK.
    Next I edited the OG BSSCDefault.h file so it looks like
    this:
    #define Operator_s_Guide 1
    #define MSW 3
    #define AAA 4
    Then I edited the OG.ali file:
    Operator_s_Guide=HTML\operators_guide.htm
    MSW=redirect.xhtm#MSW
    AAA=redirect.xhtm#AAA
    I updated the redirect.xhtml file
    <html>
    <head><title>Redirect Page</title>
    <script>
    var Code = window.location.hash.substring(1);
    var URL= "";
    if (Code == "AAA") URL="its:rbc.chm::\HTML\AAA.htm";
    else if (Code == "MSW")
    URL="its:MAINT.chm::\HTML\banner.htm";
    if (URL != "")
    window.location.replace(URL)
    else if (Code != "")
    alert("Redirection code not defined: "+ Code);
    </script>
    </head>
    <body>
    </body>
    </html>
    redirect.xhtml appears in OG Baggage files and the [FILES}
    section of the OG.hhp.
    When I test using the RoboHelp CSH tool, ID 1 (local to
    OG.chm) works. IDs 3 and 4 open the OG.chm but the topic is
    “The Page cannot be displayed”.

    Hi,
    In your redirect.xhtml file, be sure to use forward slashes
    rather than backslashes in the paths to the slave topics. For
    example, these are right:
    if (Code == "AAA") URL="its:rbc.chm::/HTML/AAA.htm";
    else if (Code == "MSW")
    URL="its:MAINT.chm::/HTML/banner.htm";
    but backslashes will break the redirect mechanism.
    Pete

  • Selection-Screen validation is not working

    Dear Gurus,
    I did one report in that,selelction screen is not working properly.
    if i give input by F4 searching,selection condition not working.
    it does not retrive the particular result instead of that it retrive the all values what can i do for this.
    Regards,
    Rajkumar.A

    Hi Rajkumar,
    What do you mean by selection-screen not working?
    Does not it give values on clicking execute or doesnot it move to the output screen or does it throw an error?
    Please explain

  • Select all button is not working in vl01n

    Dear All,
    We are facing a problem at the time of creating delivery through vl01n. At the time of selecting all line items of delivery on item overview screen, we are unable to select all line items. Due to this we have to delete each line item batches separately & to redetermine the batches or we can say select button is not working on item overview screen of vl01n. Also when we redetermine the batch split & return back to item overview screen, select all button works for line items perfectly.
    thanks & regards
    Deven Sharma

    Hi,
    In the user command write the code as per the sample given below:
    FORM select_all .
      CLEAR v_lisel.
      DO.
        READ LINE sy-index FIELD VALUE v_chk.
        IF sy-subrc NE 0.
          EXIT.
        ENDIF.
        READ LINE sy-index FIELD VALUE sy-lisel INTO v_lisel.
        IF v_lisel+2(1) = ' ' AND sy-index GT 5.
          v_lisel+2(1) = 'X'.
          MODIFY LINE sy-index FIELD VALUE sy-lisel FROM v_lisel.
        ENDIF.
      ENDDO.
    ENDFORM.                    " select_all
    reward if useful
    regards,
    ANJI

  • Select for update query not working..

    hi i am tying to get this bit of ncode to work so i can then go to the next part of demonstrating a deadlock between two transactions. however i cannot go any further has my initial code does not work at all. here it goes
    //////////User A////////////////////////////////
    DECLARE
    v_salary squad.salary%TYPE := 300;
    v_pos squad.position%TYPE := 'Forward';
    BEGIN
    UPDATE squad
    SET salary = salary + v_salary
    WHERE sname = 'Henry';
    FOR UPDATE;
    UPDATE squad
    SET position = v_pos
    WHERE sname = 'Fabregas';
    COMMIT;
    END;
    //////////////////////User B/////////////
    DECLARE
    v_salary squad.salary%TYPE := 200;
    v_pos squad.position%TYPE := 'Forward';
    BEGIN
    UPDATE squad
    SET position = v_pos
    WHERE sname = 'Fabregas';
    FOR UPDATE;
    UPDATE squad
    SET salary = salary + v_salary
    WHERE sname = 'Henry';
    FOR UPDATE;
    COMMIT;
    END;
    Basicly user a creats a lock and so does user b, user b enquires a lock from user a and vice versa i.e. a deadlock

    Hi
    You get the following error:
    ORA-06550: line 8, column 7:
    PLS-00103: Encountered the symbol "UPDATE" when expecting one of the following:
    because the FOR UPDATE; is invalid in your statement.
    Try this:
    //////////User A////////////////////////////////
    DECLARE
    v_salary squad.salary%TYPE := 300;
    v_pos squad.position%TYPE := 'Forward';
    v_n number;
    BEGIN
    UPDATE squad
    SET salary = salary + v_salary
    WHERE sname = 'Henry';
    select 1 into v_n from squad
    WHERE sname = 'Fabregas'
    for update;
    UPDATE squad
    SET position = v_pos
    WHERE sname = 'Fabregas';
    COMMIT;
    END;
    //////////////////////User B/////////////
    DECLARE
    v_salary squad.salary%TYPE := 200;
    v_pos squad.position%TYPE := 'Forward';
    v_n number;
    BEGIN
    UPDATE squad
    SET position = v_pos
    WHERE sname = 'Fabregas';
    select 1 into v_n from squad
    WHERE sname = 'Henry'
    for update;
    UPDATE squad
    SET salary = salary + v_salary
    WHERE sname = 'Henry';
    COMMIT;
    END;
    To syncronize the blocks first in a SQLPlus call these two statements:
    select 1 from squad WHERE sname = 'Fabregas' for update;
    select 1 from squad WHERE sname = 'Henry' for update;
    After this start the user A code in another SQLPlus, and start the user B code. After this call rollback or commit in the first sqlplus.
    Ott Karesz
    http://www.trendo-kft.hu

  • ICE edit, in context editor not working?

    I can't seem to activate the in context editor for the site newmovers.businesscatalyst.com. The 'Edit' button is there, and when I click it the link changes to /icecube but nothing else happens. I contacted BC's support team and was told "I suspect the reason why the edit button is not working is, you have custom code placed on the pages."
    It works on my other sites, just not here.
    Has anyone else had an issue like this? I wasn't aware everyone else was using non-custom code for their sites! Is it possible that I have some Javascript or other code that is disrupting?
    Any help greatly appreciated!

    After some back & forth, the BC support team was right that it was my code which was breaking the ICE:
    I had two div's with the same id on my home page. Not sure why that broke the in context editor, but maybe this will help someone else out down the road.

  • Select in FROM clause not working

    Hello,
    I have three tables with one table containing the name of the other two tables and i want to select dynamically the two selects based on their ID that matches in the first table.
    CREATE TABLE_NAMES (ID NUMBER, TableName VARCHAR(2) )
    CREATE TRADE (activites VARCHAR(2), TRADE_ID )
    CREATE CONTRACT(activites VARCHAR(2), TRADE_ID )
    INSERT INTO TABLE_NAMES ( 101, 'TRADE' );
    INSERT INTO TABLE_NAMES ( 202, 'CONTRACT' );
    INSERT INTO TRADE ('TRADE 1' , 101 )
    INSERT INTO CONTRACT ('CONTRACT 1' , 202 )
    What I wanted to do is select the table name dynamically based up on the id in TABLE_NAMES
    and I failed when doing this
    SELECT SELECTED_TABLE.activites FROM ( SELECT TABLE_NAME FROM TABLE_NAMES WHERE ID = 101 ) SELECTED_TABLE
    OR a more generic form with JOIN statement also did not work
    SELECT SELECTED_TABLE.activities FROM TABLE_NAMES SELECTION JOIN ( SELECT TABLE_NAME FROM TABLE_NAMES) SELECTED_TABLE
    ON SELECTION.ID = SELECTED_TABLE.TRADE_ID
    Thanks in advance

    What you are trying to do will not work. To accomplish your requirement you would have to use dynamic SQL.
    However, I want to stress that this is probably not a good design decision because:
    1. Maintainability of the code may be jeopardized
    2. Dynamic SQL could be laden with SQL injection vulnerabilities
    3. Dynamic SQL generally does not perform as well as static SQL.
    HTH!

  • SQL Developer: View menu selections Reports and Connections not working

    Downloaded latest SQL Developer May 9 updated version and my dropdown selections from the View menu for Connections, and View Reports do not work. However, Snippets does appear when selected. Hate to lose some of the User Defined reports I had created. Any help would be appreciated.

    Don't know if I get what you're saying: the entries Connections and Reports from the View menu don't work?
    On top of the connection tree, if you get one, aren't there the two tabs with these options?
    If you're unable to view the whole tree, you're installation would be corrupted. Install from scratch in a separate folder, first without migration to see if that resolves the issue. Then you could do the same with migration to retrieve all previous settings and connections.
    K.

Maybe you are looking for

  • Raw files not showing in PSE12

    I recently upgraded from a Canon T3 to a Canon 70D.  I had been using PSE11 with my T3 without any trouble.  But when I got the 70D it would no longer load my raw files.  I did some quick research and saw that I needed to purchase PSE12, so I did.  H

  • Webservices a JPEG and using in Flex

    I have a webservice that passes a images back as a base 64 encoded format. I have tested displaying the image in Coldfusion and it works fine. I have tried using decoding it and using loader.loadbytes and it show that i have bytes loaded but no conte

  • Peachpit Project Files Missing in 10.0.6

    This is more of a tip than a problem. If you use the Peachpit 'Final Cut Pro X: Professional Video by Diana Weynand, you may have noticed that some of the projects you should be seeing in the lesson folders are no longer visible in FCPX 10.0.6. They

  • How to correct copy/append/insert a array

    Hi @ all, I have a message type I'd like to iterate through and extract values from array (1). Then place into another array (2): TestOutputVariable(Array (1)): <roottest> <AAA> <BBB>result1.1</BBB> <BBB>result1.2</BBB> <testname>test1</testname> </A

  • Pass ship-to-ctry to BAPI_ACC_DOCUMENT_POST

    Hello, I have a requirement to pass ship-to-country to BAPI_ACC_DOCUMENT_POST.  I do not see ship-to-country in any of the tables, nor in the table provided for update by the user exit.  Does anyone know how to do this? Thanks in advance for your hel