Change behavior after mouseclick
- I have a sharepoint list with a few items in it.
How can I programmatically change the default behavior if I click on the item?
Do I have to change something in the schema.xml?- 移動Mike Walsh MVPMVP, モデレータ2009年11月30日 15:51customization not programming (From:SharePoint - Development and Programming)
すべての返信
Yes, you need to make modifications to the Schema.xml of the particular list. If you go to Schema.xml
You can see a column 'LinkTitle'
<Field ID="{82642ec8-ef9b-478f-acf9-31f7d45fbc31}" ReadOnly="TRUE" Type="Computed" Name="LinkTitle"which is referencing to field '_EditMenuTableStart' in the 'DisplayPattern' node and if go to that field
<Field ID="{3c6303be-e21f-4366-80d7-d6d0a3b22c7a}" Hidden="TRUE" ReadOnly="TRUE" Type="Computed" Name="_EditMenuTableStart"
You can find the following display pattern. This is the area you need to start with.
<DisplayPattern>
<HTML><![CDATA[<table height="100%" cellspacing=0 class="ms-unselectedtitle" onmouseover="OnItem(this)" CTXName="ctx]]></HTML>
However i have not done any modifications to these fields myself.
SatheeshYes, you need to make modifications to the Schema.xml of the particular list. If you go to Schema.xml
You can see a column 'LinkTitle'
<Field ID="{82642ec8-ef9b-478f-acf9-31f7d45fbc31}" ReadOnly="TRUE" Type="Computed" Name="LinkTitle"which is referencing to field '_EditMenuTableStart ' in the 'DisplayPattern' node and if go to that field
<Field ID="{3c6303be-e21f-4366-80d7-d6d0a3b22c7a}" Hidden="TRUE" ReadOnly="TRUE" Type="Computed" Name="_EditMenuTableStart"
You can find the following display pattern. This is the area you need to start with.
<DisplayPattern>
<HTML><![CDATA[<table height="100%" cellspacing=0 class="ms-unselectedtitle" onmouseover="OnItem(this)" CTXName="ctx]]></HTML>
However i have not done any modifications to these fields myself.
Satheesh
Do I have to insert a JavaScript there, right?- Yes you have to.You can have Javascript outsite the schema.xml, probably in a separate js (suggested approach). But myself i never played around this.
Satheesh Yes you have to.You can have Javascript outsite the schema.xml, probably in a separate js (suggested approach). But myself i never played around this. I ha
I have the problem that whatever I change in den schema.xml it doesn`t affect my sharepoint website. I even restartet the IIS. The new schema.xml is deployed but it looks like before, whatever I write in the schema.xml...
Satheesh
What can I do?- What's the change in behavior you'd like to make? There are multiple approaches, and the best one is going to vary based on your goals.
M.
Marc D Anderson - Sympraxis Consulting LLC - Marc D Anderson's Blog - @sympmarc - jQuery Library for SharePoint Web Services