Hide or delete column (linked to item with edit menu) in power shell

Hi;
How in powerShell can I change the column in a SharePoint list that has the link to the item and the link to the item with edit menu.
For examlpe :
Title (linked to item) and Title (linked to item with edit menu)
I want to add into my view only the Title (linked to item) : ViewFields.Add("Title(linked to item)")
Thanks

The name of the field which needs to be deleted is LinkTitle. Here is a sample PowerShell code:
$web = Get-SPWeb "http://aissp2013/sites/TestSite"
$list = $web.Lists["XYZ"]
$view = $list.Views["All Items"]
$view.ViewFields.Delete("LinkTitle")
$view.Update()
Blog | SharePoint Learnings CodePlex Tools |
Export Version History To Excel |
Autocomplete Lookup Field

Similar Messages

  • Change Linked to Document with Edit Menu Column in Forms Library

    Hi!
        I am using a Forms Library, which I have associated with a Infopath Form, and there is that column "Name" which is linked Edit Menu... I do not want to use this column "Name" which is basically a FileName, so if I hide this "Name" column, how can I use an other column like ID (for eg) to link to document with edit menu...
        I'll appreciate any advice on this... Thanks in Advance

    Steve - Open the page in SP designer and in design mode hover over an item in the column a little '>' should show, click it and you can choose the options, however in SP2013 the design mode is gone so here is how it looks in the code of the page for adding
    a menu to the 'ActiveSite' column, note you need to do this in every location the column is used, which may make this not workable?
    <ViewFields>
    <FieldRef
    Name="Attachments"/>
    <FieldRef
    Name="LinkTitle"/>
    <FieldRef
    Name="SiteURL"
    />
    <FieldRef
    Name="ActiveSite"LinkToItem="TRUE"
    ListItemMenu="TRUE"/>
    </ViewFields>
    http://sharepointsurfer.wordpress.com/.

  • PO Release Strategy not changed after deletion of few line items with less

    Subject : PO Release Strategy not changed after deletion of few line items with less Total PO
    Dear Friends
    We have issue with PO Release strategy. We have created the PO. with release strategy  with multiple approvers.  After approval of first approval manager , one of the PO line item got deleted and Total PO value is reduced . The new PO value should have changed the PO release strategy. But it is not changed. Old release strategy only showing in the PO which is wrong. 
    Details of the PO
    PO no 4500000123 with 5 line items Total PO value : 100,000 USD Release strategy : AB
    PO line item 5 deleted. Now total PO value changed to 50,000 USD and the PO release strategy should have been changed to AA but not changed. Still showing PO release strategy AB only.
    Are there any OSS notes available to correct his bug.
    Please let me know if you need more details
    Thanks in Advance
    Thanks
    MVS

    Hi,
    release indicators  change it to 4.It may works. Please explore to all 6 indicators..........
    i.e,
    1-cannot be changed
    2-changable,no new determination of strategy
    3-changable,new release in case of strategy
    4-changable,new release in case of strategy or value change
    5-changable,new release if new strategy/outputted
    6-changable,new release if new strategy or value changed/ outputted......
    And check   Characteristic description and value in Classification  of Release strategies ........
    I hope this will help you. Thanking you.
    Regards,
    Venkat.

  • De-link PPM Item with SAP Project

    Hello,
    Can somebdoy throw a light on what to do in case I want to de-link a PPM-item with SAP project.This situation may rise if I want to change the project actuals going to bucket A to bucket B.As I can not change the relationship of an item with the bucket, I am looking for alternate solution where I can de-link SAP Project with SAP PPM item.
    thank you!
    Regards,
    Mahendra

    Hi Mahendra
    If you are meaning to de-link a PS Project from a PPM Item, you can from the Item navigate to the 'Relationships' tab and then on the 'object links'sub-tab select and delete the assignment:
    You can also remove a cProject relationship by clicking the 'Related Objects' sub-tab
    Your comment that you cannot move an Item to a new Bucket - is this because your business process does not allow you to do so? Because this is definitely possible in the system.
    Let me know if you have any further questions as I am not sure I have addressed your question
    Regards
    C

  • Linking Delivery Items with Delivery Items having batch

    Hello Fellow ABAPers,
    Does any one of you know how SAP links items in Delivery table (LIPS) without batches with their respective items having batch.
    For e.g. in Delivery Item we have delivery no. , item and batch. Assume we have delivery no 801xx and item 10 for this record there is batch with delivery no. 801xxx and item 90001. Likewise for delivery no 801xx and item 20 there is batch with delivery no. 801xxx and item 90002.
    How does SAP link line item 10 to 90001 and line item 20 to 90002. Batch no. could be different. If there are multiple batches for the same line item, how can we identify them programmatically?
    Is there any separate table in SAP or is it maintained in LIPS only?
    If you any of you have worked on this please let me know.
    Thanks and Regards,
    Huzefa Vasi

    Hi,
    In LIPS table itself, there is a field called UECHA. (Higher-level item of batch split item)
    This field contains the higher level item number
    for eg. consided line item 10 in 2 batches called 90001 and 90002
    VBELN             POSNR              UECHA
    801xx                 00010                   0000
    801xx                 90001                   0010
    801xx                 90002                   0010
    801xx                 00020                   0000
    if UECHA is 0, then it is the higher level item
    Hope this will be useful

  • Deleting an order line item with B1WS?

    Hi,
    I am building an application which uses B1WS as it's interface to DISERVER.  There is a situation I am confused about and am hoping the folks here can shed light on.
    I have an order object, and I would like to delete a line item from it.
    How can I do that?
    Thank you,
    Mike

    Ok, we figured it out.  I wasn't updating the LineNum property after resetting the line items.  The code below works for us, and  hopefully for you too.
    Again, the idea is, to delete a line item, create a new line items collection and put into it every line item EXCEPT the one you want to delete.  Then update SAP.
    private void DeleteLineFromOrder(string itemCode, string projectCode)
                // Load SAP order via B1WS
                string sessionID = B1WSLogin();
                GetSAPOrder(docEntry, sessionID, out _order, out _document);
                int oldLineItemCount = _document.DocumentLines.Count();
                // Create collection of the current lineitems, before the add.
                DocumentDocumentLine[] originalLineItems = _document.DocumentLines;
                // Update the line item count
                _document.DocumentLines = new DocumentDocumentLine[oldLineItemCount - 1];
                int lineItemCounter = 0;
                foreach (DocumentDocumentLine originalLineItem in originalLineItems)
                    if ((originalLineItem.ItemCode != itemCode) || (originalLineItem.ProjectCode != projectCode))
                        originalLineItem.LineNum = lineItemCounter;
                        _document.DocumentLines.SetValue(originalLineItem, lineItemCounter);
                        lineItemCounter++;
                _order.Update(_document);
    Cheers,
    Mike
    Cygnusoft, Inc.

  • Concatenate variable with string in sharepoint power shell

    Hello ,
      I have written the following script :
             $SiteURL ="http://mysite.com"
             <a href= $SiteURL + "/Lists/AllItems.aspx">Data</a>
       The concatenation in href not correct . how can I do the concatenation ?
      Thanks
    ASk

    Hello ,
      Thanks for ur reply . I have test your sample , but it is not working correctly . The generated url was "http://mysite/sites/tt/pages/Lists/FieldsMappingList"
      The script that i used :
        $siteUrl = "http://mysite/sites/tt";
    $pageURL = "Pages/Admin.aspx"
    $site = New-Object Microsoft.SharePoint.SPSite($SiteUrl)
    $psite = New-Object Microsoft.SharePoint.Publishing.PublishingSite($site)
    $web=$site.RootWeb
    $file = $web.GetFile($pageURL)
    if ($file.Level -ne "CheckOut")
      $file.CheckOut()
    $wpm = $web.GetLimitedWebPartManager($pageURL, [System.Web.UI.WebControls.WebParts.PersonalizationScope]::Shared)
     foreach($webPart in $wpm.WebParts)
               if($webPart.GetType().Name -eq "ContentEditorWebPart")
                 $cewp=[MicroSoft.SharePoint.WebPartPages.ContentEditorWebPart]$webPart
                 $xmlDoc=New-Object System.Xml.XmlDocument
                 $xmlElement=$xmlDoc.CreateElement("MyElement")
                 $xmlElement.InnerText='<div class="clear">
                                         <table class="admin"><tbody>
                                          <tr>
                                           <td>
                                            <a href= $($SiteURL + "/Lists/FieldsMappingList")>
                                             <img src="/_layouts/IMAGES/VGSP.VIS.TicketTale/common/remedy.png" alt=""/>
                                             <h1>Remedy Fields Mapping</h1>
                                             <span>a list containing fields mapping between remedy and ticket tale </span>
                                             </a>
                                           </td>
                                         </tr>
                                       </tbody></table>
                                      </div>'   
                 $cewp.Content=$xmlElement    
                 $wpm.SaveChanges($cewp)            
    $file.CheckIn("CheckIn")
    $file.Publish("Published")
    ASk

  • Remove/hide "new item or edit this list" link of sharepoint online (office 365) with csom

    as title, I delevelop an app for sharepoint online, so I must use client api to operate sharepoint object. now, i need to remove/hide the link “new item or edit this list”, not use js do it, what can i do? help!!

    Hi,
    Per my understanding, you might want to remove the link “new item or edit this list” of a list view web part using Client Object Model.
    As there is no such property in
    WebPart object can be used to hide/remove the link, I suggest you apply custom CSS style to the page which contains the list view
    web part to hide it.
    Best regards
    Patrick Liang
    TechNet Community Support

  • Delete Finder Today's items

    Hi there, I can't belive there is no way to delete the Finder Today History as easy as a simple "Clean Finder History" and tada. Hey guys please I DON'T WANT nobody to see where I have been, and Today's Finder items tell everybody what I did, Is there a way to delete this links, the whole activity?. I literally tried to delete these items by dragging them to the trash bin and then put them back, but when it comes to icons or programs I need the administrator password, oh gosh, ask my boss for a password to delete a history? way to go guys.
    This is a major annoying to me, I don't want NOBODY to see my activity (I think that the 100% of the people hate that as well), why this way to keep my activity tracked without a decent way, or easy way, to delete it for good?.
    I've read that these links are the real files (WHAT?...wow), well if your system created a link to a real file, how could it be possible that there is no way to delete this link without messing with the original file?
    So as I can see it Finder has a horrible way to handle my activity: a: Links are real files (C' ON). B: You can't delete the whole history from finder (I must do a double play by trashing files and then putting them back, but It wont work with icons/programs without the administrator password, because you are deleting the real thing
    Thanks guys, but if I you can't give me a simple way to delete Finder today's history to nothing I'm just going to be away from your products, Finder is like the gossip lady in the neighborhood, and I hate that lady, don’t make me hate Finder as well.
    Greetings.
    Macbook Air.

    You can clear the "Recent Items" menu under the Apple at upper left of your screen, and/or clear Finder-->Go-->Recent Folders. That is about the extent of it.

  • No data found when adding column link to classic report

    Hi,
    Oracle 11g r2, APEX 4.1.1.00.23.
    I have some classic reports.
    I go to Report Attributes, then I click Add Column Link in the "Tasks" right menu, it adds me a column link, I just add some text for the link and a page to go to.
    Then I run the report and I get :
    report error:
    ORA-01403: no data foundTested with several classic reports on multiple pages.
    Debug mode shows me :
    0.43816     0.00240     ...Execute Statement: select distinct [...] order by 3,11 ,4
    0.44056     0.00162     print column headings
    0.44218     0.04816     rows loop: 25 row(s)
    0.49037     0.00141     report error: ORA-01403: aucune donnée trouvée
    0.49175     0.00078     Computation point: After Box BodyWhen I run the query in my favorite tool, I get expected results.
    Did I missed something ?
    Thank you.
    Yann.

    Yann39 wrote:
    <font size="4">Is it an APEX bug ?</font>
    - Create a new Region of type Classic Report, then set Region source as :
    begin
    return test_return_query;
    end;- Run the page, the report works as expected
    - Go to Report Attributes and click Add Column Link (and just specify a text for the link and a page to go to).
    - Run the page, you should get the error !This might be unorthodox but try wrapping your returned query within an SQL statement, like so:
       begin
          return 'SELECT t.* FROM ('||test_return_query||') t';
       end;
    I can reproduce it on oracle.apex.com if needed...If my suggestion doesn't work, I think this might be the only option. You could create a new forum posting with the word "BUG" in the title, along with a link to this thread and the relevant workspace details (with guest developer credentials).

  • Column Links in Apex Reports

    I am using version 4.0 of APEX.  My question concerns linking to other APEX pages from a report.  In APEX we link to another page, which may be a form or another report, by using a column in the report as a link column.  Any column may be used to transfer values from any other column.  This works fine, but the disadvantage is that whichever column is used as the link column has a heading which identifies the column's purpose but may not identify the purpose of the transition to another page.  In Oracle Forms, we could use buttons as a column of the multi-row screen (i.e. same as APEX report), and the button's label identified the purpose for the transition.
    Is there any way to create a column in an APEX report  to serve the same purpose as the button in Oracle Forms?

    Doug wrote:
    I am using version 4.0 of APEX.  My question concerns linking to other APEX pages from a report.  In APEX we link to another page, which may be a form or another report, by using a column in the report as a link column.  Any column may be used to transfer values from any other column.  This works fine, but the disadvantage is that whichever column is used as the link column has a heading which identifies the column's purpose but may not identify the purpose of the transition to another page.  In Oracle Forms, we could use buttons as a column of the multi-row screen (i.e. same as APEX report), and the button's label identified the purpose for the transition.
    Is there any way to create a column in an APEX report  to serve the same purpose as the button in Oracle Forms?
    When discussing "reports" it is essential to indicate whether this means a standard report or an interactive report in order to receive an appropriate response.
    It is possible to create a link column that is distinct from report data columns. In standard reports, this is done using the Add Column Link option from the Tasks menu in the right sidebar of the Report Attributes page. In interactive reports, define a Link Column on the Report Attributes page.
    To provide further information about links to users in both cases, specify an HTML title attribute for the link in the Link Attributes property of the link definition. This will be rendered as a tooltip when the cursor hovers over the link in visual browsers, and as an audio cue on navigation to the link when using a screen reader.

  • Column link - call java script & assign current report column value to item

    Hi,
    How to call java script and assing current report column value to item?
    I have a button column in the report to 'delete' the selected row.
    I want to first show dialog box with message 'Are you sure?'. If yes, process to delete
    will be executed, else no action.
    In order to fire JS, I used Column Link ->Target=URL.
    Problem: The alert is showing but I don't know how to pass selected row's primary
    key value to process (to delete selected row).
    I have a item which can be used to store selected primary key value but don't know how to assign the value
    when button pressed.
    Thanks in advance
    Dip

    Ok. The issue has been resolved by following way.
    PAGE PROCESS: delete_request
    begin
    delete xyz
    where id = :P8_id;
    commit;
    end;BUTTON URL:
    javascript: DelRec(null,'CREATE', 'f?p=&APP_ID.:8:&SESSION.:delete_request:NO::P8_id:#id#');Java Script:
    <script language="JavaScript1.1" type="text/javascript">
    function DelRec(msg, req, url){
    var confDel = msg;
    if(confDel ==null){
    confDel= confirm("Are you sure?");
    }else{
    confDel= confirm(msg);}
    if (confDel== true){
    redirect(url);           }
    </script>

  • Hide the delete menu item from a specific document library

    I want to hide the Delete  item menu option for a specific document library.Since it is for a specific library I would not like to use customcore.js approach.Please suggest some useful javascript for same.
    I have a custom delete action associated with the menu which performs other function as well so need to hide the OOB delete option from the item  menu of a document library.
    I have already used below javascript in CEWP which I added on the document library page itself(allitems.aspx) but yeild no results:
    <script type="text/javascript">
    var elemTable=document.getElementById('ECBItems');
    if (elemTable !=null) {
         var elemTBody=elemTable.childNodes[0];
    //iterate each table row to find the correct ECB menu item to hide(remove)
       for (var iMenuItem=0; iMenuItem < elemTBody.childNodes.length; iMenuItem++) {
             var elemTR=elemTBody.childNodes[iMenuItem];
             var elemTDTitle=elemTR.childNodes[0];
             var title=GetInnerText(elemTDTitle);
     //here we filter on title, but the table contains more information if need be
            if(title =='Delete') {
                 elemTBody.removeChild(elemTR);
    </script>
    Please suggest which can be kept specific and requires no change in masterpage as same masterpage is used across the site.

    Hi justSP,
    Greetings.
    Hope the below links help you
    http://social.technet.microsoft.com/Forums/office/en-US/9adea3a2-6d08-4c04-ace2-88a704833f1d/how-to-hide-delete-item-from-ecb-menu-for-1-specific-custom-list?forum=sharepointcustomizationlegacy
    http://chakkaradeep.com/index.php/sharepoint-hiding-menu-items-from-the-edit-control-block/
    http://social.technet.microsoft.com/Forums/office/en-US/1b832635-4ae7-4f31-826c-2d6b834ece52/hide-delete-from-ecb-menu-for-a-specific-document-library-in-sharepoint-2010?forum=sharepointcustomizationprevious
    http://social.technet.microsoft.com/Forums/office/en-US/919e01e6-9a7a-4439-b778-28e0dc8bffba/how-to-hide-delete-option-from-ecb-menu-in-document-library-in-sharepoint-2010?forum=sharepointdevelopmentprevious
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • Report region with column link that opens a pdf doc based on report query

    Hello
    I'm building a report table that displays info about a customer - simple select - and, for each record, has associated column links based on report queries that receive ID as parameter. When clicked, it opens the report in pdf extension. My problem here is how to pass the ID as a parameter to that report query considering i'm using a report table and that there are no items in page 71...
    This is the report query i'm using:
    select initcap(a.customer) customer
    , initcap(a.address) address
    , initcap(a.rep) rep
    , (select initcap(b.city)
    from portal_records b
    where b.contrib=a.contrib
    and b.year=to_char(sysdate,'yyyy')) city
    , (to_char(a.datereg,'dd')||' de '||to_char(a.datereg,'Month')||' de '||to_char(a.datereg,'yyyy')) datereg
    from portal_authorizations_cve a
    where a.id=:P71_ID ???????????????
    I thank in advance all your replies!!

    Hello
    First of all, let me compliment your for your demo application... It's awesome!
    I've looked into your sample (page 15) and, as far as i see, it opens a document saved in a table's column. I don't want the file to be saved there but generated when the user clicks on that particular link... So i still have the problem of how to pass the right ID as a parameter considering there is no page item on that page...
    My javascript knowledge is little so i ask you: when clicking the link, is there any way of opening a window with the url f?p=&APP_ID.:0:&SESSION.:PRINT_REPORT=Authorization_CVE and the ID as a parameter?
    I thank in advance!

  • Display the second report as modalform and filter with primary key value of first report when you click on first report column link

    Hi All,
    I have two reports.
    1. order report
    2. order detail report
    when you click on the order report column it display the order detail report as a modal form.
    i was done below steps.
    1. In page header i was written the below code
    <link rel="stylesheet" href = "http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/
    redmond/jquery-ui.css" type="text/css" />
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js"> </script>
    <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.js"> </script>
    <script type="text/javascript">
    $( function() {
    $('#ModalForm1').dialog(
    autoOpen : false ,
    width :470,
    height: 500,
    resize :false,
    function openForm1()
    $('#ModalForm1').dialog('open');
    function closeForm()
    $('#ModalForm1 input[type="text"]').val('');
    $('#ModalForm1').dialog('close');
    </script>
    2. order report.
    3. order detail report
       select * from order_details where order_id = p_order_id;
    region header
    <div id="ModalForm1" title="Ordered Items" style="display:none">
    <p class="msg"></p>
    footer
    </div>
    4. created the hidden item in order detail report.
    5. in order report column attributes i was given link like below.
    javascript:$s('p_order_id','#order_id#');openForm1();
    when i click on the order report column link it passing the row primary key value to hiddent and open the report as modal form. however it is not filter the report with hidden item. it showing the no data found.
    problem is hidden item value is not submitting. once we submit that value it showing the 2nd report with filter data.
    can any help me to achieve above requirement.
    apex: 4.2
    oracle 11g
    Regards,
    Vijay.

    Vijay,
    Issue 1: Your usage of $s() JavaScript API seems to be wrong. For the first parameter, you need to use the name of the hidden page item and not p_order_id.
    javascript:$s('P1_ORDER_ID','#ORDER_ID#');openForm1();
    Issue 2: Seems like you are not setting the hidden page item's value in session state. Assuming your hidden page item is called P1_ORDER_ID, Under "Region Definition" tab of your "Order Detail Report" under "Source" tab, for page items to submit, enter the name of the hidden page item P1_ORDER_ID.
    Thanks!
    JMcG

Maybe you are looking for

  • Error while importing PAR file from local system.

    Hi Experts, While importing PAR file into my NWDS, I am encountered by some strange error. Please refer below screenshot for your reference. After clicking on "OK" button of the above error popup, another popup emerge with different error, please fin

  • System Creation problem in EP

    Hi All, I am trying to create a system to connect my portal to the R/3 backend to execute business package. All the entries goes well like system name,system alias,ITS nae etc. When I click the personalize link to map my user id for the sytem created

  • How can I specify different settings in CustomSettings.ini based on the OS that is being deployed?

    I originally thought this could be achieved using "OSVersion" or "OSCurrentVersion" but (unless I'm mistaken) those variables are in fact tied to the OS from witch you actually launch the MDT Wizard right? i.e. say I run MDT from within Windows PE to

  • New FI AR Doc Type

    Hi For Reporting purpose we want to create a new document type in FI AR.  what are stpes to do. like if we want to copy  doc type  "DG"  to  ZG. plz mention congiuration steps. ( with T-c0des ). Thanks. Thomas Moderator: Please, respect the rules of

  • Portable External Drive functions

    Hi to all, i am scouting for external hard drives. I know there are some hard drives that need power and some that are portable. questions: 1. on portables, can I remove the external drive (i.e. WD pocket drives) from my home desktop (given that it i