Edit properties link with SPMenuField in SPGridView

Hi,
I've a new questionfor my webPart that display search result in spgridview
Do you know a method to propose in a SPMenuField on a SPGridView the link "edit properties"?
We have this line to retrieve the edit form:
string.Format("{0}{1}?ID={2}", item.Web.Url, item.ParentList.Forms[PAGETYPE.PAGE_EDITFORM].ServerRelativeUrl, item.ID);
here is my menu entry
MenuItemTemplate viewProperties = new MenuItemTemplate("Edit properties", "/_layouts/images/editDocument.gif");
viewProperties.ClientOnClickNavigateUrl = "";
//entry.ClientOnClickScript = "your javascript here";
menuTpl.Controls.Add(viewProperties);
I don't know what write in ClientOnClickNavigateUrl to go to the edit form related on each Item.
How can i get the list for each item?
thanks for your help

Hello,
Try to use "ClientOnClickNavigateUrl " and pass your URL here.
string itemUrl = string.Format("{0}/{1}?ID={2}", web.Url, list.Forms[PAGETYPE.PAGE_DISPLAYFORM].Url, itemID);
MenuItemTemplate editCustomer =
new MenuItemTemplate("Edit", "/images/edit.gif");
editCustomer.ClientOnClickNavigateUrl = itemUrl;
customerMenu.Add(editCustomer);
Refer this:
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.webcontrols.menuitemtemplate.clientonclickscript.aspx
Hemendra:Yesterday is just a memory,Tomorrow we may never see
Please remember to mark the replies as answers if they help and unmark them if they provide no help

Similar Messages

  • Create a Template Editable Region Link with static "label"?

    Hello.
    Does anybody know how to create a simple, basic link on my template (just the word "LINK" will do) . . . . and put an Editable Field *behind* the "LINK" . . . so I can change the link destination link on each child page?
    So, in the particular child page, the visitor clicks on "LINK" . . . then goes to a specific destination URL just for that child page?
    Thanks.

    Chamuel333 wrote: Nadia . . . I have *attached* a screen shot of the error message I receive to this post (I figured that will eliminate the risk of me screwing-up a description of exactly what it says . . . and wasting your time).
    And, lastly, here is the exact code causing that error message:
    <!-- TemplateBeginEditable name="change-link" --><a href="http://annapolis-resume.com/Links.html" class="style7">Links</a><!-- TemplateEndEditable -->
    Thank you so much for your help with my beginner question!
    Jim
    That's pretty much the code I suppied originally and then removed thinking you'd prefer blus' method, which isn't all that hard to do by the way.
    The error message is saying that the template markup is sitting insite a block element, something like a paragraph, which is a block element,  for example.
    <!-- TemplateBeginEditable name="change-link" --><a href="http://annapolis-resume.com/Links.html" class="style7">Links</a><!-- TemplateEndEditable --></p>
    If so, move the template markup outside of the <p> attribute like so:
    <!-- TemplateBeginEditable name="change-link" --><p><a href="http://annapolis-resume.com/Links.html" class="style7">Links</a></p><!-- TemplateEndEditable -->
    This will make the paragraph editable.
    If that's not the problem, and you don't have the link inside a paragraph, then post a bit of code that surrounds that template markup that you have.  Better yet, if you can post a link to the page maybe even better  (if you can upload it to a server).

  • Edit Properties of Links inbetween pdf

    Hi there! I'm searching for a solution about editing Links inbetween pdfs. I got pdfs with wrong links and want to change them automatically. Is there a possibility to automate the replacement of links? The perfect way would be to automate the action: Right Click => Properties => Actions => Edit => Change link => Save.
    Thanks for your suggests.

    This program solved my problem. http://try67.blogspot.de/2010/03/acrobat-batch-edit-links.html Easy batch conversion for links in pdfs. Great job!

  • Edit a link in Acrobat MacIntosh

    Ok, I give up.  How do you edit a link in Acrobat MacIntosh?  The link is the word "here" as in click here.  So this is a text link I want to change.  I am using 7.1.0.

    You can't just bound an area and stop there. Decide what you want the link to do: Open a page in the current document, Open another file or Open a web page. For the latter, you must type in, or paste in, a complete URL (include the http://) and then close the dialog box. You should be able to single click in the new area to Open your newly established link. If you want the link area to have a different appearance, with the Link Tool still active, double click the new area and choose the Appearance tab and make your decisions and close the Properties box. There's not much else to it.  Don

  • PDF goto named destination link with current zoom level

    Hi,
    I am created PDF file from 3b2 software with many links and bookmarks, The links with in documents are created with named destination bookmark names.
    When I am click the link to navigate with in document it will goto the bookmarked location and zoom level will changed into “FIT TO WIDTH” but I am want to navigate over the document with current zoom level from the link where I am clicked.
    For this process I am tried one method that is javascript action in link.
    Using link properties
    Action -> Add Action -> Select Action  (Run Javascript)
    Script
    main()
    function main()
    var zoom = this.zoom;
    this.gotonameddest(“bk1”);
    this.zoom = zoom;
    By this method I am get what I am looking but I am having one problem,
    First I will goto that book marked page with and after only it will fit to the current zoom level, so when I am go for previous view it will goback to "FIT TO WIDTH" zoom level, so this method failed.
    And also I am unable to edit all the links in my PDF document by Manually.
    So please advice me what is right way to navigate over the document with current zoom level from link where I am clicked.
    Note:
    The output PDF document will contain 100 number of links so I want to update all the links with my requirement by automation.
    Is there is any way to handle this process by Acrobat SDK with C# , .NET
    Regard
    Thirusanguraja V

    Thank you Very much,
    If you do't mind could you give me sample PS file with,
    Destinations specify a particular location in a file, and a zoom factor.
    The zoom level must be current zoom level of the page where i am link click.
    Sample PS syntax i am tryed:
    [/Dest /bmkaff1 /Rect [2000 3062 2100 2886] /View [/XYZ 0 0 0] /LNK pdfmark
    Reference I am used for this:
    pdfmark Reference
    © 2006 Adobe Systems Incorporated. All rights reserved.
    Adobe® Acrobat® SDK 8.0 pdfmark Reference for Microsoft® Windows®, Mac OS®, Linux®, and UNIX®
    Edition 1.0, November 2006
    Chapter 3 : 3 Actions and Destinations................44

  • [SOLVED] Xfce terminal open links with wrong browser.

    After installing Opera as second browser, xfce terminal began to open links with it, instead of my default browser - Firefox.
    I right click on an URL, choose 'Open Link' and it opens in Opera.
    Firefox is set as default browser in Settings -> Preferred Applications -> Web Browser
    xdg-open http://archlinux.org
    - opens Firefox
    exo-open http://archlinux.org
    - opens Firefox
    After quick search through xfce terminal sources i found it uses some function - gtk_show_uri.
    I googled it, found that topic: https://bbs.archlinux.org/viewtopic.php?id=140028 and tried the solution:
    cat ~/.local/share/applications/mimeapps.list
    [Added Associations]
    x-scheme-handler/mailto=exo-mail-reader.desktop
    x-scheme-handler/http=firefox-browser.desktop
    strangely it doesn't help.
    After all righ click url in terminal and 'Open Link' still uses Opera.
    Any ideas? What else can i do to find out a reason?
    Last edited by spacetekk (2015-01-04 11:41:53)

    Tried BROWSER envar - doesnt help, and as i understand it must work only for cli apps.
    Editing of  ~/.config/mimeapps.list doesnt help eather:
    cat ~/.config/mimeapps.list
    [Default Applications]
    text/vcard=firefox.desktop
    text/html=firefox.desktop
    [Added Associations]
    text/vcard=firefox.desktop;
    text/html=firefox.desktop
    but maybe it's not correct.
    After that i tried to strace xfce4-terminal:
    poll([{fd=4, events=POLLIN}], 1, 4294967295) = 1 ([{fd=4, revents=POLLIN}])
    recvmsg(4, {msg_name(0)=NULL, msg_iov(1)=[{"\34\0.\331!\t`\2N\1\0\0\330\336\7\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 352
    recvmsg(4, 0x7fff5ad349d0, 0) = -1 EAGAIN (Resource temporarily unavailable)
    stat("/home/user/.local/share//mime/mime.cache", 0x7fff5ad34470) = -1 ENOENT (No such file or directory)
    stat("/home/user/.local/share//mime/globs", 0x7fff5ad34470) = -1 ENOENT (No such file or directory)
    stat("/home/user/.local/share//mime/magic", 0x7fff5ad34470) = -1 ENOENT (No such file or directory)
    stat("/usr/local/share/mime/mime.cache", 0x7fff5ad34470) = -1 ENOENT (No such file or directory)
    stat("/usr/local/share/mime/globs", 0x7fff5ad34470) = -1 ENOENT (No such file or directory)
    stat("/usr/local/share/mime/magic", 0x7fff5ad34470) = -1 ENOENT (No such file or directory)
    stat("/usr/share/mime/mime.cache", {st_mode=S_IFREG|0644, st_size=115108, ...}) = 0
    open("/usr/share/applications/opera.desktop", O_RDONLY) = 13
    fstat(13, {st_mode=S_IFREG|0644, st_size=550, ...}) = 0
    read(13, "[Desktop Entry]\nVersion=1.0\nName"..., 4096) = 550
    read(13, "", 4096) = 0
    close(13) = 0
    access("/usr/local/sbin/opera", X_OK) = -1 ENOENT (No such file or directory)
    access("/usr/local/bin/opera", X_OK) = -1 ENOENT (No such file or directory)
    access("/usr/bin/opera", X_OK) = 0
    getuid() = 1000
    stat("/usr/bin/opera", {st_mode=S_IFREG|0755, st_size=416, ...}) = 0
    access("/usr/local/sbin/opera", X_OK) = -1 ENOENT (No such file or directory)
    access("/usr/local/bin/opera", X_OK) = -1 ENOENT (No such file or directory)
    access("/usr/bin/opera", X_OK) = 0
    getuid() = 1000
    stat("/usr/bin/opera", {st_mode=S_IFREG|0755, st_size=416, ...}) = 0
    pipe2([13, 19], 0) = 0
    pipe2([20, 21], 0) = 0
    clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7fd725cf1bd0) = 1469
    close(19) = 0
    close(21) = 0
    wait4(1469, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 1469
    and it's strange but as i can understand it uses some mime cache file located at /usr/local/share/mime/mime.cache
    and before that some other non existing files, but i dont see there any familiar config files.

  • How do i edit the links in the top nav bar on an enterprise wiki site?

    I would like to edit and change the links in the top nav bar on my enterprise wiki.
    Currently the links are "About this wiki" and "Recent" a drop down menu with links.
    I would like to change "About this wiki" to a "Home" page link and remove the "Recent" drop down menu and links. I also would like to be able to add more links to the to the top nav bar.
    I there anyway I can do this one an enterprise wiki site?
    Thanks
    James T.F

    Hi,
    According to your post, my understanding is that you wanted to edit the links in the top navigation bar on an enterprise wiki site.
    I try to reproduce the issue, however, my enterprise wiki site don’t have the drop down menu.
    How did you add the Recent link?
    How did you create the drop down menu?
    Did you use the seattle master page or olso master page?
    It will be better if you can descript more detail and provide some screenshots.
    You can use JavaScript to add and remove the items in the drop down menu.
    More information:
    Add items in Drop Down List or List Box using Javascript
    Asim Sajjad: DropDownList Add/Remove Item Using Javascript
    HTML DOM Select remove() Method
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • WPC Problem after creation of new Site - no "Edit Page" Link available

    Hello,
    I have a problem with WebPageComposer (WPC) and Edit Page link.
    We are currently on EP 7.01 SP6.
    (I have the wpc_editor_role for my user)
    I am doing the following:
    1) I create a new site, (derived permissions for all folders is wpc_editor_role - Full Control),
    2) I Create some article within its Site Content folder
    3) I create a new web page in its Web Pages folder
    4) assign the article to the web page and publish it
    5) add web page within Site Navigation as a new node
    6) I used Publish Site Navigation
    After clicking on the web page within Web Pages folder it does a preview.
    Our older WPC content does display the Edit Page link - the new one does not.
    What step am I missing here?
    Maybe it is an upgrade issue?
    Best Regards, Thomas
    P.S.: copying one of our older WPC pages into my new site + renaming it via KM + removing old content + assigning new one does display the correct link after publishing it! Any indeas?

    Dear Thomas,
    It sounds like your are doing all the right actions, I don't think that your missing any step in the process, but please consider the following.
    Are you using a custom WPC layout template? The reason I ask is that I have developed a number of WPC custom templates and in some circumstances I have needed to remove/hide the "pageheader" section of the template. This action removed the links from displaying at the top of the page. Try creating and publishing a web page using a SAP standard WPC layout and see if the edit link appears once the page is published.
    The editing and preview page views do not display the "edit" link, they only display the other page header links that can be assigned to a page. The edit link is only visible when viewing the page via the portal, not in edit mode. Another question, was the deployment of KMCWPC successful and without error? I have experienced issues where the deployment did not fully complete, causing some subtle issues regarding publishing of WPC content and redeploying KMCWPC fixed the issue. I hope this helps.
    Best Regards,
    Chris

  • Is CPA Cache refresh linked with  ftp or file pooling process in XI?

    Hi,
    I have a file to file scenario using Transport protocol as FTP in XI 3.0 SP 15.
    When we try to sends some file using ftp protocol where we are using
    FTP  connection parameters
    Server                          = <CORRECT IP>,
    Port                               =  21 ,
    User name                <CORRECT NAME>,
    Password                  <PASSWORD> ,
    Data Connection           = Active
    Connection Seq          = None
    Connection Mode          = Permanently
    Transfer Mode            =   Text
    Processing Parameters
    Quality of Service    = Exactly Once
    Pooling Interval        = 1 sec
    Processing Mode    = delete
    File Type                   = Text
    File encoding           = utf-8                 
    The problem we are facing like some time the ftp is not working even the file is present in the location for pick up. If few files are stacked up to be collected then when we are using CPA Cache refresh in Full mode manually then it fetches all the files from the location but the problem is that ,we have a time constraint for this process to be completed in just 60 seconds if we are not able to pick up a  file in 60 Secs then the file will be treated as invalid.
    So I just want to know how Manual CPA CACHE refresh in full mode generally solve the problem.
    Next if more files will be stacked up then cache refresh also failed to solve the problem and more cache refresh result in NOT pooling any other files in XI including the above discussed flow.
    So,in anyway Cache refresh linked with ftp or file pooling process in XI?
    Please assist me in correctly understating the whole problem and what solution could be put to solve this.
    Thanks,
    Satya
    Edited by: Satya Jethy on Mar 14, 2008 12:28 PM

    Hi Suraj,
      If you see my query i have mentioned that the pooling interval is 1 Second.
    If we are not able to pick the file with in 60 Secs as this is a  real time scenario so the file will be treated as a invalid file.
    Moreover this problem is happening some time.
    I have also checked the component monitoring it is saying everything is ok as because we are receiving the file with out any error and the file transfer is also success.The only problem is that it is not collecting the files from the given location.
    Hope i make you understnad the problem .If not please revert back i will try to explain once again.
    Thanks,
    Satya

  • "Edit photo" link in iPhoto Book Project does not work

    Hi,
    I am putting together an Book project in iPhoto.  On a few pictures, I would like to edit them to make minor adjustments. 
    When I right click on the picture in iPhoto Book Project, there is an option to "Edit Photo".
    When I click on the "Edit Photo" link, the screen switches to the iPhoto Edit page  but the picture does not load for editing - it's just a black screen.
    I can always edit the photo before placing it in the Book, but in a large Book it is more convenient to select the picture on the Book page rather than going back and look for it in iPhoto.
    Anyone has experienced/fixed this?  Is this a bug?  I have version 9.2.3
    Thanks
    Armen

    Are you able to go to the photo in its Event and edit it there? Apply the fix below:
    Fix #1
    1 - launch iPhoto with the Command+Option keys held down and rebuild the library.
    2 - run Option #1 to repair permissions and #4 to rebuild the database.
    OT

  • The 'Edit folder' link doesn't appear in content area portlet (URGENT)

    Hi! I made three content areas, and published them as portlets in a page. However, when I enter the page as an authorized user, I don't see the 'Edit folder' link on any content area portlet. But if I enter to any of the content area pages with the same user, I see the link
    Is this a bug? What could be the reason?
    Thanks a lot!
    Luis

    try this...
    Edit the page where you added the portlets. Click the edit defaults link next to each of the portlets and scroll down to make sure the show Edit Link checkbox is checked. I don4t see any Edit Link checkbox when I edit the portlet's defaults!!
    What should it be?

  • I want to edit properties of the interface windows opened while "Open File", "Save Page As" and interface opened during Downloading of any file.

    I am doing a small project on dedicated web client where in user automatically logs in non-root user and Firefox automatically starts.
    I am using Fedora 14 kernel 2.6.35.12-88.fc14.i686 and Firefox 3.6.16.
    I have installed only Gnome in my computer with no Nautilus or other file browser on it.
    I want to edit properties of the interface windows opened while "Open File", "Save Page As" and interface opened during Downloading of any file.
    Please guide me for this.

    First, I sent an email to the author of PhotoME to inform him of the serious issues his addon caused with Firefox latest versions.
    Now, for those of you who do not have the PhotoME addon and yet experience the same problem that I had and that I described above, I suggest the following strategy.
    As PhotoME did cause these problems with Firefox latest versions, I am pretty covinved other addons probably might cause these problems too. Therefore, adopt the following method.
    Test one addon at a time to see if this particular addon is behind your Firefox issues like the ones I had.
    So, disable one addon only at a time. Then close your Firefox and restart it from scratch and see if you still have your Firefox problems. You must restart the Firefox browser from scratch. If you still have these Firefox problems, re-enable the disabled addon, restart your Firefox (again!) and repeat the same method for every single addon that you have.
    Try to be selective by choosing first addons that are more likely to cause your Firefox problems such as not very well-known or not very popular addons (like it was the case for the PhotoME addon).
    If this method works or if it does not work, report it on this web page so that others can be helped with your comments.
    I hope this method will help you because I was really upset that I had these Firefox problems and I first thought it was the fault of Firefox, only to discover later that this PhotoME addon was the culprit and had caused me such upset.

  • [SOLVED] mingw32 cross compile won't link with static libraries

    Hi all,
    I'm trying to cross compile an app I have written to i486-mingw32.  I'm running Arch 64-bit (under which it compiles fine natively), and I have installed the mingw32 binaries along with mingw32-boost-static from AUR.
    All seems well, but unfortunately when I cross compile my code libtool refuses to link to the static Boost libraries:
    *** Warning: Trying to link with static lib archive /usr/i486-mingw32/lib/libboost_filesystem-mt-s.a.
    *** I have the capability to make that library automatically link in when
    *** you link to this library. But I can only do this if you have a
    *** shared version of the library, which you do not appear to have
    *** because the file extensions .a of this argument makes me believe
    *** that it is just a static archive that I should not use here.
    This then leads to undefined references as the library is not linked in.  But as I *want* the static version of the library, does anyone know how to tell libtool to accept the .a file and link it?
    Last edited by Malvineous (2011-05-02 02:44:48)

    Just to follow up on this, I discovered the problem.  It turns out libtool was doing the correct thing, and refusing to link the static library in with the shared one (otherwise later this could result in something being defined multiple times.)  The undefined references were unrelated to the error above, and the code that was causing them (in a different Boost header file) could be easily #defined out.
    When the time came to link the actual executables, libtool did include all the necessary libraries and everything worked as it should!

  • How to replace document edit-properties buttons

    We have replaced the "Edit Properties" ribbon button with the following element XML:
    <?xml version="1.0" encoding="utf-8"?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <CustomAction
    Sequence="20"
    Location="CommandUI.Ribbon"
    RegistrationId="101"
    RegistrationType="List"
    Title="New EditProperties">
    <CommandUIExtension>
    <CommandUIDefinitions>
    <CommandUIDefinition Location="Ribbon.Documents.Manage.EditProperties">
    <Button Id="Ribbon.Documents.Manage.EditProperties.ReplacementButton"
    Command="MyNewButtonCommand"
    Image16by16="/_layouts/$Resources:core,Language;/images/formatmap16x16.png" Image16by16Top="-128" Image16by16Left="-224"
    Image32by32="/_layouts/$Resources:core,Language;/images/formatmap32x32.png" Image32by32Top="-128" Image32by32Left="-96"
    LabelText="$Resources:core,ButEditProperties;"
    ToolTipTitle="$Resources:core,ButEditProperties;"
    ToolTipDescription="$Resources:core,cui_STT_ButEditDocumentProperties;"
    TemplateAlias="o1"
    />
    </CommandUIDefinition>
    </CommandUIDefinitions>
    <CommandUIHandlers>
    <CommandUIHandler Command="MyNewButtonCommand" CommandAction= "Javascript:
    function demoCallback(dialogResult, returnValue)
    SP.UI.Notify.addNotification('Operation Successful!');
    SP.UI.ModalDialog.RefreshPage(SP.UI.DialogResult.OK);
    var ctx = SP.ClientContext.get_current();
    var items = SP.ListOperation.Selection.getSelectedItems(ctx);
    var myItems = '';
    var k;
    for (k in items)
    myItems += '|' + items[k].id;
    var options = {
    url: '/_layouts/DCMLibrarySettings/LibraryDcmSetting.aspx?List={01610989-0039-4cbe-9890-38d685af0334}',
    tite: 'Set Document Properties',
    allowMaximize: true,
    showClose: false,
    width: 800,
    height: 600,
    dialogReturnValueCallback: demoCallback };
    SP.UI.ModalDialog.showModalDialog(options);" />
    </CommandUIHandlers>
    </CommandUIExtension>
    </CustomAction>
    </Elements>
    However, we are unsure how to repeat this for the following document "Edit properties" option:
    Can anyone tell us where to find the XML definition for this please?

    Hi,
    Here is a workaround for your reference:
    We can add a new ECB Menu use the following XML definition.
    <?xml version="1.0" encoding="utf-8"?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <CustomAction
    Id="ReplaceEditProperties"
    RegistrationType="List"
    RegistrationId="101"
    ImageUrl="/_layouts/images/edititem.gif"
    Location="EditControlBlock"
    Sequence="220"
    Title="Replace Edit Properties" >
    <UrlAction Url="javascript:alert('Test')"/>
    </CustomAction>
    </Elements>
    Then hide the old "Edit Properties" option using CSS, add the following Style into a Content Editor Web Part.
    <style>
    LI[text='Edit Properties'] {
    DISPLAY: none !important
    </style>
    More information:
    http://www.thespgeek.com/2011/01/how-to-add-custom-menu-item-in.html
    Best Regards,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Link with table CAWN and MSEG

    Hi Friend how can i link with clasification
    fields(CAWN-ATWRT) with meterial document no(MSEG-MBLNR)
    in MM in the transaction migo.
    Thanks and Regards
    D Tarun Kumar
    Edited by: Devalla Tarun Kr. on Sep 9, 2008 2:29 PM

    If you want the Material Classification, then for each Material in the Material Document (MSEG-MBLNR) get the CUOBJ value from the MARC Table. Input the MARC-CUOBJ in the CAWN-ATINN to get the ATWRT Value for the same.
    Hope it was clear.
    Thanks and Regards,
    Venkat Phani Prasad Konduri
    Edited by: Konduri Venkata Phani Prasad on Sep 9, 2008 6:15 PM

Maybe you are looking for