How to avoid custom action script link executing for all pages. It should execute for only custom list

Hello all,
The below code creates the custom action script link. however this is executing for all the pages.
I want to execute only to list not on all the pages. How i can acheive this. Please help
var context =
new SP.ClientContext.get_current;
this.oWebsite = context.get_web();
var collUserCustomAction =
this.oWebsite.get_userCustomActions();
var scriptLink = collUserCustomAction.add();
scriptLink.set_name('Welcome');
scriptLink.set_title('Welcome');
scriptLink.set_description('Welcome to new custom script Link');
scriptLink.set_location('ScriptLink');
scriptLink.set_scriptSrc('~Site/Scripts/test.js');
scriptLink.set_group('');
scriptLink.update();
Navaneeth

Then Edit the list page add the script editor web part on the page . Copy the paste the script. Now it will affect the list only. Or else in your script just validate the list id.
Ravin Singh D

Similar Messages

  • How to write a shell script to execute a procedure with out parameter

    Hi,
    How to write a shell script to execute a procedure with out parameter.
    here is my procedure
    PROCEDURE sample(invar1 VARCHAR2,
    invar2 VARCHAR2,
    invar3 VARCHAR2,
    invar4 VARCHAR2,
    ecode out number);
    Any example really helpfull
    Thanks in advance

    Or if we're passing values in, maybe something like:
    Test procedure:
    CREATE OR REPLACE PROCEDURE p (myin IN VARCHAR2, myout OUT VARCHAR2)
    AS
    BEGIN
        myout :=
            CASE myin
                WHEN 'A' THEN 'APPLE'
                WHEN 'B' THEN 'BANANA'
                ELSE 'STARFRUIT'
            END;
    END;Shell script:
    #!/bin/bash
    my_shell_variable=$1
    unset ORACLE_PATH
    sqlplus -s un/pw@db <<-EOF
    set feedback off pause off
    set pagesize 0
    set autoprint off
    VAR out varchar2(30)
    VAR myin varchar2(30)
    exec :myin := '${my_shell_variable}'
    BEGIN
      p(:myin, :out);
    END;
    print out
    exit
    EOFTest:
    /Users/williamr: xx A
    APPLE
    /Users/williamr: xx B
    BANANA
    /Users/williamr: xx
    STARFRUITObviously in a real script you would not hardcode the password or let it show in a "ps" listing.
    Message was edited by:
    William Robertson

  • How to avoid duplicate posting of noted items for advance payment requests?

    How to avoid duplicate posting of noted items for advace payments request?

    Puttasiddappa,
    In the PS module, we allow the deletion of a component pruchase requisition allthough a purchase order exists. The system will send message CN707 "<i>A purchase order already exists for purchase requisition &</i>" as an Iinformation message by design to allow flexible project management.
    If you, however, desire the message CN707 to be of type E you have to
    modify the standard coding. Doing so, using SE91, you can invoke the
    where-used-list of message 707 in message class CN, and to change the
      i707(cn)
    to
      e707(cn)
    where desired.
    Also, user exit CNEX0039 provides the possibility to reject the
    deletion of a component according to customers needs e. g. you may
    check here whether a purchase order exists and reject the deletion.
    Hope this helps!
    Best regards
    Martina Modolell

  • How to avoid the Amount and Date values for VOID Cheques

    Hi All,
    I had created a two window i.e For Amount and Date. If I process the cheque the Amount value and Date should not trigger for VOID CHEQUES.
    Can any one tel me how to avoid the Amount and Date values for VOID Cheques
    Your help will be greatly appreciated.
    Regards
    Yathish

    Hi,
    I dont know which tablel you are referring to, is it PAYR table and the field VOIDR?
    If a cheque is voided, it would have a reason and it is stored in VOIDR field of this PAYR table.
    Check if the field VOIDR is filled, if it is filled, do not print the amount and date.
    Regards
    Subramanian

  • How do you make a Spry menu view on all pages but only have to change it one place?

    How do you make a Spry menu view on all pages but only have to change it one place? Someone told me maybe I could create a Library item. Any help will be appreciated.

    If your pages all have the same basic design, using a DW Template would be a way to do it...
    http://help.adobe.com/en_US/dreamweaver/cs/using/WScbb6b82af5544594822510a94ae8d65-7abea.h tml

  • Fullscreen mode: how to avoid having to click link to open

    Does anyone know how to avoid requiring a user click a link "Click here to Open XYZ Training in Full Screen Window " in order to open the captivate htm in full screen mode?

    Hi there
    Many things are possible if you wish to resort to using JavaScript to open your Captivate movies. That's exactly what's happening with the link you click. JavaScript is being used to open a new window without the chrome elements present.
    Cheers... Rick
    Click here for Adobe Certified Captivate and RoboHelp HTML Training
    Click here for the SorcerStone Blog
    Click here for RoboHelp and Captivate eBooks

  • How Can I Remove the Home Link on the Main Page

    I am using PT 8.49 and I am creating a custom page where the only options I'd like to show on the page are my custom menu option and "Sign out" at the top right. I'd like to remove the "Home" link on the top right menu because I am doing the selection for them. I don't want them to be able to go back to the Home menu once they've entered my custom page. I have everything working the way I'd like except that I cannot get rid of the "Home" link. Can anyone help with that?
    I am also using a template in portal called HOMEPAGE_DESIGNER_TEMPLATE as this causes the page to display without the left menu, as I want it to be.
    Thanks for your help!

    Restore the default home page
    * https://support.mozilla.com/en-US/kb/How%20to%20set%20the%20home%20page#w_restore-the-default-home-page
    Now, set a single web site as your home page
    * https://support.mozilla.com/en-US/kb/How%20to%20set%20the%20home%20page#w_set-a-single-web-site-as-your-home-page
    Check and tell if its working.

  • How can I get my Indesign script to apply to all pages in the document?

    My script (java) shown below will only apply to the first page of the document. How can i get it to apply to all pages of my document? What am I missing? Thanks.
    scirpt:
    myDocument = app.activeDocument
    with (myDocument.pages.item(0).marginPreferences){
    columnCount = 1;
    //columnGutter can be a number or a measurement string.
    columnGutter = "0";
    bottom = "0"
    //When document.documentPreferences.facingPages == true,
    //"left" means inside; "right" means outside.
    left = "0"
    right = "0"
    top = "0"
    inside = "0"

    Hi,
    You have to iterate through all pages.marginPreferences:
    var
      myDocument = app.activeDocument,
      allPagesMaPref = myDocument.pages.everyItem().marginPreferences,
      curPageMaPref;
    while ( curPageMaPref = allPagesMaPref.pop() )
      with (curPageMaPref) {
      columnCount = 1;
      //columnGutter can be a number or a measurement string.
      columnGutter = "0";
      bottom = "0"
      //When document.documentPreferences.facingPages == true,
      //"left" means inside; "right" means outside.
      left = "40"
      right = "0"
      top = "0"
      inside = "0"
    Jarek

  • How can I create a working link from the home page to other pages?

    Using iWeb, I created links on the Home page directed to other pages within my web site. The links are located in the main body of the Home page (on the right side) and are not included in the Navigation Menu. The links function correctly when I test them in iWeb, however, the links do not function at all after publishing to the internet.
    Within the inspector, I have chosen, Link To: "One of my pages" and the appropriate page is selected.
    The links within the gray rectangles do not function. The same links below the gray rectangle links go to a "Page Not Found" page.
    See the home page at http://www.daleenstrom.com
    How can I make these links function correctly?

    Welcome to the Apple Discussions. I've found that using the "One of my pages" often doesn't work. Since you've published the site go to each page, copy its URL and use it for the hyperlink. I've found that to me more reliable.
    Are those two links inside the shapes or just on top? Both of those items are one large image file. If you inserted the link in the shape be sure you've selected the text (might take a few clicks to get inside and select it) to use for the hyperlink. Also make sure there are no other objects overlapping each of the shaped with the hyperlinked text.
    Also it appears that the entire text box is an image. Turn on iWeb's preferences to display the text image indicator:
    Click to view full size
    and then you'll see the following on any object that will be converted to text once published:
    Click to view full size
    The two links below work for me. Be sure to clear your browsers cache (CommandOptionE for Safari) and reload the page.
    OT

  • How to avoid Build Array function inside a For (while) Loop?

    Hi there,
    I have a simple question about how to avoid using Build Array function inside the loop. Now I want to remove the Build Array funtion inside the loop to improve the performance (To get better memory management). Any idea how to do that?
    Thanks a lot!
    Warmest regards,
    Chong

    It's been my experience that using the auto-indexing to build an array
    on a For loop is just as good as initializing and replacing elements.
    The For loop knows before it runs how many iterations it has to run and
    can allocate the array ahead of time.
    You're better off initializing and replacing when using a While loop
    because it does not know how many iterations it will run and can't
    pre-allocate the array ahead of time.
    Ed
    Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
    Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.

  • How to avoid a line of data being cut by page jump ?

    Dear Java Experts,
    I have encountered a very troublesom problem!
    The problem is described as follows:
    When the browser (IE or Netscape) contains many HTML character data (especially HTML tables and data from DATABASE), how can I print the data to client's printer
    (i.e. browser's printer) without having a line of data cut by page jump?
    That is how to avoid a line of data cut by page jump, upper part of the data in one page and lower part in next!
    I think the problem should be solved with client's java applet!
    Can any expert give me sample code to solve the problem or indicate me where I can find documents about solving the problem?
    Thank you very much in advance!!
    Best Regards,
    Jackie Su

    HTML is not really meant for device-specific presentation (despite a lot of abuses in this area).
    I don't think you're going to solve this satisfactorily with HTML, no matter what you jury-rig around it.
    If this kind of presentation control is a requirement, you're probably better off with a format that directly supports this--PDF is the most obvious choice.
    There's a sourceforge project that supports PDF generation from Java (http://sourceforge.net/projects/itext/ - I don't have any experience with it) and I think there may be others.
    And I believe there are also commercial products for this.

  • How to disable custom list --Add New Item in share point 2010

    Hi,
      I  have associated the workflow for the custom list .So i should not allow user to add any item on the custom list.
    Regards,
    Lakshmi

    I understand that you want to restrict users from adding item to a list but they can do it from workflow.
    You can break inheritance on that list and remove all permission.
    Now run workflow using elevated privileges to add item to list
    http://office.microsoft.com/en-in/sharepoint-help/what-is-permissions-inheritance-HA102772762.aspx
    office.microsoft.com/en-001/sharepoint-foundation-help/edit-permissions-for-a-list-library-or-individual-item-HA101805400.aspx
    Try above
    If this helped you resolve your issue, please mark it Answered

  • How to add 1 inch of white space to all pages?

    How do you add a uniform amount of blank space to the top of all slides in the PDF? I have a 53 page PDF and I now need to add a 42 pixel high navigation menu above all pages without overlapping the contents of those pages. What is the easiest, most efficient way to do this? I have tried Pages > Crop, double click > Change page size: Custom, enter in 1 more inch of height. But that must be done for each slide individually and is extremely inefficient. That also ins't working because if I try to make it add just 42 pixels/less than a couple inches it fails to resize. It makes me add 2-3 inches before it'll do anything.
    Thank you.

    That leads to the same window as the Crop tool. So there is no way to add i.e. an inch to a page, just to reset length of the page as a specific # of inches? Each page will be a different # of inches, but I want them all to be 1 inch longer than they are right now. I am beginning to suspect there may not be a feature for that.

  • SCRIPT : width identical on all pages

    I am working on a SAP Script .
    I made the changes in the Script editor and saved, However when i try to activate the SCRIPT FORM it is giving a message "Page PAGE1 window MAIN: width is not identical on all pages".So the Script form is not getting activated..with out which my changes will not b reflected in the out put.Please tell me how can i make the width identical on all the pages.

    No, you can't select all items on all pages at one time. You could select all items on 1 page, and then do an operation; you can repeat with all items on each page.
    But really, it sounds like you need to change how you do a data merge. You can use data merge to put multiple items on 1 page, it will repeat and create a new set of frames for each record. Check out some tutorials on that. Here's an old one using CS3:  http://www.youtube.com/watch?v=YD_O8751Cc8

  • How to get 'exit event' script to execute again when form file with saved data is re-opened?

    I have created an Adobe Dynamic XML Form using LiveCycle Designer with many fields / subforms that are ‘visible’ or ‘hidden’ dependent upon the options selected from various Drop-Down Lists. The form has also been save-enabled. Users can successfully complete the form and save a copy with the data that has been input.
    The problem I have is that when the saved file is re-opened the ‘hidden’ fields / subforms which were previously made visible by selection of the appropriate options from the Drop-down Lists are now NOT displayed. However if you make the same selections from each of the Drop-down Lists AGAIN the hidden fields / subforms are displayed and do contain the data that was entered.
    The problem appears to be that the script which determines whether a field / subform is ‘hidden’ or ‘visible’ is an
    <event activity="exit" name="event__exit">
    which is followed by
    if (this.rawValue == "0")- (i.e. the value of the Drop-down List)
    sfCompanyDetails.presence = "visible";
    sfRecruitmentAgency.presence = "hidden";
    etc, etc
    and, therefore, it is not executed again when the saved file is re-opened.
    Can anyone please advise how to achieve this?

    Moved from Adobe Connnect Forums.

Maybe you are looking for

  • WRT160N - problem with on-line games and downloading

    Hi, Several months ago I bought a WRT160N router and I have a strange problem. When I play online games, such as QL, and someone else will start downloading from the Internet, from time to time about 10 sec I have 999 ping I turned on in the backgrou

  • Unable to use X Query function in  the conditional branch of Proxy Service

    Hi all, I need to check the string length of a node then depending on that have to call two different business services. i have added a conditional branch inside the proxy service. Now when I use the below expression in the I get an error fn:string-l

  • How do you burn a slideshow to a DVD that will play on DVD players and PC computers?

    I burned a slideshow in Aperture onto a DVD containing about 40 photos with a sound track from iTunes.  The disk will play on my iMac but not on my wife's PC or on two of our DVD players (less than three years old.).  What am I missing in the burning

  • IDE Problem

    I have write an application that use a master-detail class as superclass of my JInternalFrames The m-d(master-detail) class is a JPanel with 2 to JPanels as fields When i subclass the m-d i have notice that it's no way to drag and drop a JComponent f

  • Deactivating Adobe Standard 8 from dead machine and Download licensed version

    My work laptop died.  I had Adobe writer 8 standard (same as Adobe standard 8?) on it.  I have the license key.  How do I get it installed on my new machine?  do I need to dactivate from my dead laptop?  how do i do that?  Also, I can't find a link t