Pergunta

Existe uma maneira de permitir que os usuários cliquem em outra linha única de texto ou até mesmo um campo de data para que o documento dentro de uma biblioteca se abra?Meus usuários não querem ter o campo "Nome" visível dentro da visualização padrão, mas se for esse o caso. Eles podem abri-lo sem precisar selecionar o documento e clicar em "Editar documento"?

Foi útil?

Solução

Not sure if this works for opening a document, but you want to add a LinkToItem="TRUE" on other column.

<ViewFields>
    <FieldRef Name="SomeField1" LinkToItem="TRUE" />
    <FieldRef Name="SomeField2"/>
    <FieldRef Name="SomeField3"/>
</ViewFields>

This link explains how to do it for a list: http://thechriskent.com/tag/listmenuitem/

you can also add the ECB menu to the column:

<ViewFields>
    <FieldRef Name="SomeField1" ListMenuItem="TRUE" />
    <FieldRef Name="SomeField2"/>
    <FieldRef Name="SomeField3"/>
</ViewFields>

Another SharePoint StackExchange Question/Answer on this: Change Title (linked to item with edit menu) to different column

another reference: http://kamilmka.wordpress.com/2011/04/20/enable-context-menu-in-a-custom-column/

Outras dicas

You can modify the current view of the list and check the out of the box column named "Edit (link to edit item)" which will add an icon next to every item in your list, click it and it will open the edit item view for the current item!

enter image description here

And of course you can hide the Title/Name column.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a sharepoint.stackexchange
scroll top