Welcome to MSDN Blogs Sign in | Join | Help

Dr. SharePoint

kirjutan SharePoint ja Project Server 2007 teemadel mida küsitakse või ise teen
Puhvrite juhtimine Project Professionaliga 2.

Projektidel on alati olemas oma kriitiline ahel ning selle juhtimiseks vajame ajapuhvrit.

Olgu meil näiteks alljärgneva projektiplaaniga:

image

Siin on näha, et kriitiline ahel koosneb Task1-Task2-Task11-Task12-Task13. Task3 võib hilineda 8 päeva enne kui hakkab mõjutama projekti lõpptähtaega.

Nüüd on vaja luua sellele projektile puhver, seda on võimalik teha kahel erineval moel.

1. projekti lõpptähtaeg on paigas ning puhver luuakse sellest ettepoole.

2. projekti lõpptähtaeg on dünaamiline ning sellest tulenevalt on ka puhver dünaamiline

 

2. Projekti lõpptähtaeg on dünaamiline ning sellest tulenevalt on ka puhver dünaamiline.

1. Loo uus task nimega puhver, mis eelneb vahetult Projekt Valmis taskile

2. Pane sellele taskile selline pikkus, mida soovid puhvril näha.

image

Nüüd kuvatakse puhvri task punasena, kuna aga selle näol ei ole tegemist kriitilise taskiga, tuleb sellele külge panna eraldi tunnus.

Selleks tunnuseks valime lisavälja Flag1 mille väärtuseks paneme Yes.

image

Vastavalt sellele tunnusele Flag1 palume Projectil antud taskid kuvada teist värvi.

Selleks tuleb teha Gantti graafiku peal hiirega paremklõps, valida “Bar Styles…” ning lisada sinna rida nagu alljärgneval näha.

image

Nüüd kuvatakse projektiplaanil kõik Falg1=Yes (ehk puhver-taskid) kollastena.

image

Salvesta BASELINE.

Kui nüüd projektiplaanis taskid muutuvad pikemaks, ehk hakkavad ära sööma puhvrit, siis selle haldamiseks tuleb:

1. pikendada taski mis parasjagu on pikenenud

2. lühendada sama päevade arvu võrra puhvrit

Selle tulemusena jääb projekti lõpptähtaeg paika, muutuvad vaid projektisiseselt taskide ja puhvri pikkus.

image

 

Ülaltoodud tegevus annab võimaluse hiljem Tracking Gantt vaates saada ülevaate selle kohta, milline oli puhver projekti alguses ja kui suur on see käesoleval hetkel.

image

Puhvrite juhtimine Project Professionaliga 1.

Projektidel on alati olemas oma kriitiline ahel ning selle juhtimiseks vajame ajapuhvrit.

Olgu meil näiteks alljärgneva projektiplaaniga:

Projektiplaan

Siin on näha, et kriitiline ahel koosneb Task1-Task2-Task11-Task12-Task13. Task3 võib hilineda 8 päeva enne kui hakkab mõjutama projekti lõpptähtaega.

Nüüd on vaja luua sellele projektile puhver, seda on võimalik teha kahel erineval moel.

1. projekti lõpptähtaeg on paigas ning puhver luuakse sellest ettepoole.

2. projekti lõpptähtaeg on dünaamiline ning sellest tulenevalt on ka puhver dünaamiline

 

1. Projekti lõpptähtaeg on paigas ning puhver luuakse sellest ettepoole.

1. Ava milestone “Projekt valmis”

2. Määra selle taski “Constraint type” ->  “Must Finish On” ja märgi  Constraint lahtrisse projekti lõppkuupäev.

Selle tulemusena muutuvad kõik taskid uuesti “siniseks” ning kriitilist ahelat justkui pole.

Kuidas nüüd aga vaadata projekti puhvrit?

Käesoleval juhul hakkab puhvrit tähistama Total slack. Total slack on aeg, mille võrra võivad projekti taskid venida pikemaks, ilma et hakkaksid mõjutama lõpptähtaega.

Mina soovitaksin mudida kuva et oleks välja paista arvutliselt, et kui suur on projekti puhver. Selleks vali “View – More Views – Detail Gantt”. Samuti võid lasta endal kuvada “Total slack” veeru.

projektiplaan

Nüüd on projekti juures näha, et

  • Analüüsi faasil tervikuna on 3 päevane puhver
  • TASK3-l on 11 päevane puhver
  • Kogu projektil tervikuna on 3-e päevane puhver

Kui me aga soovime jätkuvalt näha, milline on projekti kriitiline ahel (ehk soovime näha punaseid jooni), siis peame häälestama Project Professionali moel, et kriitiliseks muutuvad taskid mille slack on lühem kui 3 päeva.

Selleks siis ava Tools – Options – Calculation ja märgi vastav päevade arv.

image

Pärast seda muutub kriitiline ahel taas nähtavaks, kuigi kogu projekti suhtes võivad taskid pikeneda 3-e päeva ulatuses ilma lõpptähtaega mõjutamata.

projektiplaan

Praegusel juhul võimaldatakse TASK3-l pikeneda 8 päeva võrra, alles seejärel muutub see punaseks kuna Free slack väheneb siis 3-e päevani. Kui ma aga tahan, et see antud taskil oleks võimalik pikeneda vaid 2 päeva võrra siis tuleb kasutusele võtta taski Deadline ja märkida see 5 päeva kaugusele antud taskist.

Ava “Analüüs valmis-Advanced” ja märgi Deadline lahtrisse vastav kuupäev, see muudab koheselt antud milestonele eelneva taski Free slack kestust 5 päevani. Kui ma nüüd teise sammuna pikendan TASK3-e kestus 2 päeva võrra, muutab ka see ahel punaseks ehk kriitiliseks.

image

image

 

 

 

 

Nüüd on võimalik Tracking Gantt vaates näha muudatusi Baseline suhtes. Ehk kuidas on puhver võrreldes esialgsega muutunud.

image

SharePoint STSadm käsud - Silverlight

Kaks päris cool’i interaktiivset veebisaiti, mis annavad ülevaate Stsadm käsustikust:

http://technet.microsoft.com/en-us/office/sharepointserver/cc948709.aspx

http://technet.microsoft.com/en-us/windowsserver/sharepoint/dd418924.aspx

image

Kuidas kõige lihtsamalt teha master-project

1. Ava oma Project Web Accessis projektide nimistu

2. vali projektid, millele soovid teha ühe nn. master-projekti. Projektide valimisel hoia alla Ctrl klahvi ning ainuke piirang, ära vajuta projekti nimel, kuna siis üritatakse antud projekt avada kohesel PWA vahendusel.

PWA

3. Peale projektide valimist, vajuta nuppu “Edit”. Tulemusena avaneb Project Professional koos valitud kahe projektiga.

Project Professional

4. Vajuta nuppu salvesta. Peale seda pange master-projektile nimi, samuti küsitakse kas salvestada ka seal sisalduvad alam-projektid. Vastake Yes, kuna see salvestab alamprojektidesse informatsiooni, et need on lingitud masterprojektiga.

5. Edasi vajuta Publish, et antud projekt ka PWA-s nähtavale ilmuks ning ongi korras. Nüüd asuvad kaks projekti ühe nö. katus- või masterprojekti all.

PWA

Mõned head viited avalikele SharePoint saitidele

Klõpsake neil ja vaadake, kõik saidid on ehitatud SharePoint Server 2007 platvormil. Väga cool ja advanced võib SharePoint’i site välja näha. Neid saite on suurel hulgal veelgi, üks nimekiri (ka mitte täielik) asub siin: http://www.wssdemo.com/Pages/topwebsites.aspx

http://www.ferrari.com
Ferrari

http://www.rado.com
Rado
http://www.swissarmy.com
Victorinox 
http://www.volvocars.com
Volvo 

http://www.citroen.co.uk/
Citroen

http://www.viacom.com
Viacom

Tähelepanu!!! SharePoint Service Pack 2

Kõik kes on installeerinud enda SharePointi serveritele SP2-e, peavad tegema ühe lisaliigutuse, kuna ootamatult on välja tulnud tõsiasi, et peale nimetatud Service Packi installeerimist aktiveerub SharePointi aegumine 180 päeva jooksul. Ehk tegemist oleks justkui trial-versiooniga.

Kuidas teada saada, kas SharePoint on trial või mitte?

Võimalus selleks on Central Admin:

image

Selleks, et oma SharePoint jälle normaalsesse mode’i saada, tuleb sisestada uuesti tootevõti. Kui farmis on mitu serverit, siis seda peab tegema vaid ühe korra.

image

Peale Product Key sisestamist tuleb ette järgmine pilt:

image

Ja normaalne pilt peaks välja nägema selline (või siis vastavalt valitud litsentsile)

image

Täpsem announcment on siin artiklis: http://blogs.msdn.com/sharepoint/archive/2009/05/21/attention-important-information-on-service-pack-2.aspx 

Ning vastavasisuline Knowledge Base avaldatakse õige pea siin: KB article

Upgrade: SharePoint 2007 –> SharePoint 2010

Teadupärast tuleb uus SharePoint välja järgmise aasta esimeses pooles.

Seoses sellega on paljudel tekkinud küsimus, kas tänast SharePointi saab upgradeda uue peale või millised takistused võivad esineda.

Pannes tänasele SharePointile peale Service Pack 2-e, lisandub juurde üks oluline stsadm käsu laiend: preupgradecheck.
http://technet.microsoft.com/en-us/library/dd789638.aspx 

Alljärgnevas artiklis on viited KB-dele, et millised võivad olla enamlevinud probleemid: http://support.microsoft.com/kb/960577/.

Seega, ava cmd ja käivita seal käsk:

stsadm –o preupgradecheck, mina sain oma ühes keskkonnas järgmise tulemuse:

image

OS prerequisite on failed minul kahel põhjusel: 1) mul on Windows Server 2003 (peab olema windows server 2008) ning 2) see on 32bit server (uus SharePoint käib ainult 64bit riistvaral).

Ülejäänud komponendid mille kohta on Information only, nende vastavat informatsiooni vaata logifailist.

SharePoint ja Office SP2 on saadaval
  • 2007 Microsoft Office Suite Service Pack 2

http://www.microsoft.com/downloads/details.aspx?FamilyId=B444BF18-79EA-46C6-8A81-9DB49B4AB6E5

  • Microsoft Office Language Pack 2007 Service Pack 2

http://www.microsoft.com/downloads/details.aspx?FamilyId=E1203DB2-1CC9-4809-9B6E-3F232CB8899F

  • The 2007 Microsoft Office Servers Language Pack Service Pack 2 (SP2)

http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=01c6a3e8-e110-4956-903a-ad16284bf223

  • Microsoft Office SharePoint Designer 2007 Service Pack 2 (SP2)

http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=88eff285-0b92-45ed-979b-65aa22304dd6

Lühidalt, millised saavad olema muudatused SP2 välja tulles.

For Office Desktop Programs:

  • Improved Outlook Calendaring Reliability
  • Improved Outlook Performance
  • Enabling Object Model support for Charts in PowerPoint and Word
  • Improved cryptographic functionality by supporting all cryptographic algorithms offered by the operating system
  • Improved functionality in Excel’s charting mechanism
  • Ability to ungroup Smart Art graphics (and as a result, the ability to add animations to them in PowerPoint)
  • Ability for Visio to export UML models to an XML file compliant with the XMI standard
  • Tool that enables the uninstall of Office client Service Packs

For Servers:

  • Performance and manageability improvements to variations in Enterprise Content Management (ECM) including STSADM commands for repairing links between source and target pages
  • Improvements around processing status approvals from Office Project Web Access into Office Project Professional 2007
  • Improvements to read-only content databases and index rebuild timer jobs in Windows SharePoint Services 3.0

SP Improvement

Product(s)

Description

Built-in PDF/XPS Support

Access, Excel, PowerPoint, Publisher, Visio, Word

PDF/XPS support is built into these Office applications with SP2. Users no longer need to download the add-in separately.

Excel charting

Excel

Service Pack 2 fixes many issues in Excel 2007’s charting mechanism.

ODF Support

Excel, PowerPoint, Word

Adds support for opening, editing, and saving documents in the Open Document Format for Word, Excel, and PowerPoint.  These three of these applications now allow users to save files as OpenDocument Text (*.odt), OpenDocument Spreadsheet (*.ods), and OpenDocument Presentations (*.odp).

Service Pack Uninstall

Office Client

SP2 will be uninstallable via a command line tool that is downloadable separately.  This addresses a long-standing customer request that Office SP's be uninstallable rather than requiring users to uninstall and reinstall all of Office.

Improve Performance and Responsiveness

Outlook

Improved Responsiveness due to decreased I/O demands when working with a PST/OST file - especially helpful on slower hard drives or first generation Solid State Drives (SSDs).
Improved Boot and Shutdown times, and more reliable Shutdown.
Improved Folder Switch times.
More responsive loading of emails.
Synchronization improvements in IMAP.

Calendar Reliability Improvements

Outlook

Synchronization improvements between organizer and attendee appointments.
Improved reminder dismissal reliability.
Improved appointment saving reliability.
Corrected certain cases where the attendees did not receive appointment updates.
Corrected some cases where attendees could be mistakenly added or removed.
Fixed cases where recipients were being duplicated in appointments.

General Improvements

Outlook

Reduced the possibility of RSS feed items duplication.
Fixed crashes when opening IRM protected mail items.
Added support for Print options page selection.
Eliminated a number of top Outlook crashes. 
Implemented HAB schema change to support Exchange 14

SharePoint Designer nüüdsest tasuta saadaval

Peamine:

  • SharePoint Designer 2007 on vaba toode ning selle saab alla laadida siit
  • Antud toode on eemaldatud Aprilli hinnakirjadest 

Võta ja disani ning arenda oma SharePointi!

ofc-ShrPtDesign07-2_rgb

Project Portfolio Management Framework

Project Portfolio teemadega toimetavatele inimestele soovitan lugeda järgmisi artikleid:

Permanent link to Project Portfolio Management Framework Part 1 of 6

Permanent link to Project Portfolio Management Framework Part 2 of 6

Permanent link to Project Portfolio Management Framework Part 3 of 6

Permanent link to Project Portfolio Management Framework Part 4 of 6

Permanent link to Project Portfolio Management Framework Part 5 of 6

Rafal Lukawiecki on taas Tallinnas – tule kuulama

image Esinejaks on Rafal Lukawiecki - Project Botticelli Ltd strateegia konsultandina on Rafali roll vastutada IT valdkonna trendide prognoosimise ja analüüsimise eest. R

Ta on spetsialiseerunud mitmele alale: ärianalüütika (BI) ja andmekaevandamine, IT arhitektuursed mudelid, turvalisus ja krüptograafia ning lahenduste teostamise juhtimine.

Seminar toimub 15. jaanuaril ning teemadena tulevad käsitlusele:

  • Improving Insight and Decision Making Using Microsoft Business Intelligence and SQL Server 2008
  • Delivering BI Through Microsoft Office 2007 and PerformancePoint Server 2007
  • Aggregating Knowledge in a Data Warehouse and Multidimensional Analysis
  • Finding Hidden Intelligence with Predictive Analysis of Data Mining

Palun andke oma tulekust teada aadressil: i-marima@microsoft.com

Täüsema koha ning ajakava saab samuti ülelnimetatud aadressilt.

SharePointi kõige veidram bugi mis ma olen leidnud

Korraliku inimesena olete teinud endale listi alla template’i.

 

1. Oletame et teil on tegemist mahuka listiga kus on rohkem kui 16 User-tüüpi välja.

<Field Type=”User”>

2. Ja nüüd loote selle template’i põhjal endale list-instantsi.

3. Ja nüüd soovite kasutada selle list instantsi peal kasutada filtrit, mis näitab ainult sisselogitud kasutajaga seotud kirjeid mõne User-tüüpi väljaga seoses

4. Kui see User-tüüpi välja asub template’s alates 17. koht ja kõrgemale siis sellisel juhul antud välja peal filter [Minu] või inglise keelses keskkonnas [Me] ei tööta.

 

Seni kuni sellele hotfiksi pole, peab vajalikud User-tüüpi väljad tõstma template sees olevas loetelus esimesele kohale.

SharePointis vaikimisi defineeritud väljatüübid

Palju küsitud asi – olgu siinkohal siis välja toodud erinevad tüübid, mida saan välja loomisel kasutada.

Type

Required Text. The data type of the field. Windows SharePoint Services includes the following data types by default:

  • AllDayEvent   Specifies an all day event. Corresponds to the bit SQL data type.

  • Attachments   Stores the URLs for attachments. Corresponds to the bit SQL data type.

  • Boolean   Used to store a TRUE/FALSE value (stored in the database as 0 or 1). This field is sortable and groupable. Corresponds to the bit SQL data type and represented by the SPFieldBoolean class.

  • Calculated   Specifies a field whose value is calculated based on other columns. Corresponds to the sql_variant SQL data type and represented by the SPFieldCalculated class.

  • Choice   Allows the user to specify a predetermined set of values that can be used to enter data into the field. The Choice and Lookup types are the most important fields for sorting and grouping. The BaseType and Format attributes can be used for choice fields. This field is sortable and groupable. When a value is given for a choice option, then that value is used as the submitted value for the field selection. When no value is given, that choice is submitted as the text value of the choice. In all cases, the text value of the choice is what is displayed in the UI (drop-down list or radio button text). The order in which choices appear in the editing UI is always the order that items are specified within the CHOICES element. Use the MultiChoice type to specify a Choice field that implements check boxes and allows the user to select multiple values. Corresponds to the nvarchar SQL data type and represented the SPFieldChoice class.

  • Computed   Specifies a field that depends on another field for its contents. For example, a LinkTitleNoMenu field amounts to surrounding a Title field value with a hyperlink. Represented by the SPFieldComputed class.

  • ContentTypeId   Contains a content type ID. For information about the format of content type IDs, see Content Type IDs. Corresponds to the varbinary SQL data type.

  • Counter   Generally used only for the internal ID field. Its integer value is set automatically to be unique with respect to every other item in the current list. The Counter type is always read-only and cannot be set through a form post. This field is sortable but not groupable. Corresponds to the int SQL data type.

  • CrossProjectLink   Used to connect an event in a SharePoint list with a Meeting Workspace site; refers specifically to the field type of the checkbox used in New and Edit Item forms to create a Meeting Workspace site for the item. Corresponds to the bit SQL data type and represented by the SPFieldCrossProjectLink class.

  • Currency   Allows for a currency value to be entered. Each currency field is tied to a specific locale’s currency. In all other respects, it is treated like the Number field type. Use the LCID attribute to indicate a currency of a specific locale. The Decimals, Max, and Min attributes can be used for currency types. This field is sortable and groupable. Corresponds to the float SQL data type and represented by the SPFieldCurrency class.

  • DateTime   Allows for storage of a fully qualified date or time of day. Use the Format attribute to specify date formatting, and use the StorageTZ attribute to determine how date/time values are stored. This field is sortable and groupable. For Display mode, the order of date formatting derives from the regional settings ("M/D/Y" or "D/M/Y"). In Edit mode (or in New mode for Default element value), date/times are rendered in universal format: M/D/Y hh:mm am/pm. Corresponds to the datetime SQL data type and represented the SPFieldDateTime class.

  • File   Contains a file. Corresponds to the uniqueidentifier SQL data type.

  • GridChoice   Contains a rating scale for surveys. Corresponds to the ntext SQL data type and represented by the SPFieldRatingScale class.

  • Guid   Allows for globally unique identifiers (GUIDs). Corresponds to the uniqueidentifier SQL data type.

  • Integer   Allows for positive or negative integer values. The Commas and NegativeFormat attributes are used to specify integer formatting. Corresponds to the int SQL data type.

  • Lookup   Behaves very similarly to a Choice field, except that the available options come from another list rather than being a hard-coded selection of values. The List and ShowField attributes can be used for Lookup fields. This field is sortable and groupable. For sorting and grouping, use the DisplayField value (Title, by default) rather than the foreign key stored in the list. Corresponds to the int SQL data type and represented by the SPFieldLookup class.

  • LookupMulti   A Lookup field that can contain more than one value. Parent type: Lookup.

  • ModStat   Contains content approval status. Possible values include Approved (default), Rejected, and Pending (stored in the database as 0, 1, or 2, respectively). Corresponds to the int SQL data type.

  • MultiChoice   Specifies a Choice field that implements check boxes and allows the user to select multiple values. Corresponds to the ntext SQL data type and represented by the SPFieldMultiChoice class.

  • MultiColumn   A Note field that emulates a field containing multiple values. For an example of a multicolumn field type, see Custom Field Type Definition. For information on multicolumn fields, see Custom Multicolumn Field Classes. Parent type: Note.

  • Note   Allows users to enter multiple lines of text. This field is not sortable or groupable. All text is defined to be straight ASCII characters without HTML markup. Anything that looks like HTML markup or a URL is simply quoted (for example, Server.HTMLEncode) to look like straight text. The control for editing this format is a simple TEXTAREA block. Use the NumLines attribute to specify the number of lines to display. Corresponds to the ntext SQL data type and represented by the SPFieldMultiLineText class.

  • Number   Allows for a floating point number to be entered. This field is sortable and groupable. Numbers entered are parsed according to the current locale settings for decimal points and thousand separators. Negative numbers can be indicated by wrapping them in parentheses or by using a negative symbol. The following attributes can be used in conjunction with the Number attribute to specify number formatting: Decimals, Div, Max, Min, Mult, and Percentage.

    Corresponds to the float SQL data type and represented by the SPFieldNumber class.

  • PageSeparator   Inserts a page break in a survey list. Represented by the SPFieldPageSeparator class.

  • Recurrence   Used to edit and define the recurrence pattern for an item in an events list. Corresponds to the bit SQL data type.

  • Text   A single line of text entered in an edit box. This field is sortable and groupable. Use the MaxLength attribute to set a maximum number of characters allowed. Corresponds to the nvarchar SQL data type and represented by the SPFieldText class.

  • ThreadIndex   Contains the ID that indicates the relative position of a message within a conversation thread. Corresponds to the varbinary SQL data type.

  • Threading   The Threading field type is used in the creation and display of threaded discussion-like views. Any list can contain a threading column, but a special UI is generated when it is used. (It is never displayed as a standard editable field in a form nor as a normal column in a view.) If a sort is performed on a threading field, a pre-order traversal of all the records in a parent-child relationship is returned. This is accomplished by saving the concatenation of the creation date and ID number of all the parent records of a particular record. Corresponds to the varchar SQL data type.

  • URL   Used to create a freeform hyperlink. A URL field is displayed as <A HREF="URL">Description</A>. If no description is given, it is displayed as <A HREF="URL">URL</A>. The URL text is itself stored in the URLs (DocMd) table, which stores all the URLs in SharePoint databases on the server. This is done so that any URLs that are local on the server can be updated through link fixup when their destination moves. When a record with a URL field contained within it is deleted, the corresponding referenced record from the URL table is also deleted. This field is sortable and groupable. (The sort is defined according to the textual description rather than the contents of the URL; if no description is given, it sorts the same as blank.) When Type is URL, the LinkType attribute can be used to specify the type of link. Corresponds to the nvarchar SQL data type and represented by the SPFieldUrl class.

  • User   A Lookup field that references the UserInfo database table. Corresponds to the int SQL data type and represented by the SPFieldUser class.

  • UserMulti   A User field that can contain more than one value. Parent type: LookupMulti.

  • WorkflowEventType   Specifies a workflow event type as represented by the SPWorkflowHistoryEventType enumeration. Parent type: Integer.

  • WorkflowStatus   Specifies workflow status as represented by the SPWorkflowStatus enumeration. Corresponds to the nvarchar SQL data type.

DispForm, EditForm sidumine uue .master failiga

Probleemi olemus:

On vaja eemaldada vasakpoolne sinine riba DispForm ja EditForm failidelt.

Kui seda teha stiilis: 1) loon uue master-faili, mis on ilma sinise ribata 2) ühendan vastava document library vormid selle master-failiga – siis on tulemuseks kolm korda SharePoint Designeriga muudetud faili, mis omakorda mõjutab olulisel määral performance’t.

Seega, alljärgnevalt kirjeldan lahenduse kuidas:

  1. Luua custom master-fail
  2. Panna see SharePointi feature vahendusel (st. fail ei jää muudetuks SharePoint Designeri vahendusel)
  3. Ühendada List Template’i kaudu listiga uued DispForm ja EditForm failid, mis on seotud selle uue master-failiga
  4. Loo uus List Instance, mis kasutab eelnevalt muudetud template’i

1. Loon uue custom.master faili.

Seda on kõige mugavam teha SharePoint Designeriga – visuaalne kasutajaliides ja väga lihtne moodus tulemuse testimiseks ning sellest arusaamiseks.

Põhimõtteliselt võib master failiga tehtava muudatuse teha viisil mida kirjeldasin siin artiklis: Eemaldan vasakpoolse tühja sinise riba EditForm.aspx lehelt kuid mitte ühendada seda master faili SharePoint Designeri vahendusel vormidega.

2. Loon Visual Studioga uue projekti ja teen SharePointi feature.

Selles features on kolm faili + üks fail Pages kataloogis:

image

Vaatame iga faili sisu tähelepanelikumalt:

Feature.xml

<Feature xmlns="http://schemas.microsoft.com/sharepoint/"
         Id="{7426C872-AB28-40be-845E-824D5E89EC82}"
         Title="MCS.CreateMasterPage"
         Description="Kopeerib masterpage _catalogs/masterpage kataloogi"
         Version="1.0.0.0"
         Scope="Site"
         >
  <ElementManifests>
    <ElementManifest Location="Elements.xml"/>
  </ElementManifests>
</Feature>

Elements.xml

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <Module Name="NoLeftMenuMasterpage" Url="_catalogs/masterpage" RootWebOnly="TRUE">
    <File Url="NoLeftMenu.master" Type="GhostableInLibrary" IgnoreIfAlreadyExists="TRUE"></File>
  </Module>
</Elements>

NoLeftMenu.master

See fail on loodud SharePoint Designeriga ning lõpuks on avatud seal koodivaates ja kogu kood on üks-ühele kopeeritud Visual Studio-sse. Ehk selle koodi ei hakka siia kopeerima, tegemist on mahuka failiga.

NoLeftMenuMasterForm.aspx

Ava oma serveril kataloog C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\Pages

Antud kataloogis tee Ctrl+C failil form.aspx

Mine Visual Studiosse ja pane Ctrl+V selles pages kataloogis.

RENAME oma Visual Studio fail ära – minu puhul siis nimeks NoLeftMenuMasterForm.aspx

Ava see fail koodivaates ja muuda dokumendipäises kõige ülemist rida, kus on viide master-failile ja kirjuta sinna:

MasterPageFile="../../_catalogs/masterpage/NoLeftMenu.master" 
Ja salvesta fail tagasi.

Feature installeerimine

Kopeerida failid oma õigetesse kohtadesse, feature kopeerida featurede kataloogi ning NoLeftMenuMasterForm.aspx tuleb kopeerida pages kataloogi.

Installeeri ja aktiveeri feature.

3. Ühendan List Template’i abil document library uute DispForm ja EditForm failiga.

Võta lahti oma Document Library template’i projekt ja ava seal schema.xml fail.

image 

Klahvi kokku ContentTypes, Fields ja View selleks et oleks mugavam vaade Forms-sektsioonile.
Täienda kahte rida: DisplayForm ja EditForm alljärgnevalt:

<Form Type="DisplayForm" SetupPath="pages\NoLeftMenuMasterForm.aspx" Url="Forms/DispForm.aspx" WebPartZoneID="Main" />
<Form Type="EditForm" SetupPath="pages\NoLeftMenuMasterForm.aspx" Url="Forms/EditForm.aspx" WebPartZoneID="Main" />

Tee oma Template-projektile deactivate, uninstall, install, activate.

4. Loo uus List instance

Loo uus Document Library, mis baseerub ülelmuudetud List Template’l ja ongi meil tegemist uute DispForm ja EditForm failidega mis laetakse kõvakettalt ja mitte andmebaasist.

Tuunime SharePointi väljade indekseerimist – mahukad listid

Ilmselt paljud teist on vaadanud, et mis asi on SharePointi listide juures funktsionaalsus “Indekseeritud veerud” ja kas/kuidas oleks neid kõige mõistlikum kasutada.
Kindlasti on halb mõte need huupi sisse lülitada, et “äkki siis läheb kiiremaks”.

Aga siinkohal Best Practice, kuidas kasutada Indexed Columns funktsionaalsust.

Lühidalt öeldes: lülita sisse indexing nendele väljadele, mida sa kasutad vaadete filtreerimiseks.

 http://technet.microsoft.com/en-us/library/cc263028.aspx 

Kuid jälgi neid asjaolusid vaate loomisel:

  • Iga sisselülitatud lisa-index tekitab andmebaasile mõningase lisa, mistõttu kasuta neid ainult tõesti aktiivselt kasutusel olevate filtrite korral
  • Kui sa lood vaateid siis hoolitse, et ekraanile tõmmatavate Itemite arv ei ületaks 2000 (see on lihtne tulema kui kasutate näiteks grupeerimist vms tehnoloogiat)
  • Ainult ühte indekseeritud veergu saab kasutada vaate defineerimisel. Seega kasuta siinkohal veergu, mis aitab filtreerida enim dokumente.
  • Kui kasutada view’d mis täidab filtritingimusi OR lausendiga, puudub indekseeritud veeru kasutamisel igasugune mõte
  • Filtreerimine indekseeritud välja järgi on efektiivne,  “Item limit” kasutamine EI TÕSTA vaate loomise kiirust

Kui sul on palju kasutajaid, siis tasub sisse lülitada “Kasutajateabe loendi” listil indekseerimine sisutüübi ehk Content Type’i järgi. See kiirendab kasutajateabe loendite vaatamist.

Kuidas teha

Ava listi sätted:

image

Vali Indekseeritud veerud:

image

Märgi indekseeritud veerud linnukesega:

image

NÜÜD loo/muuda vaade ja häälesta seal filtreerimise tingimused. Pane tähele, et indekseeritud väljad kuvatakse esimese valikuna kohe.

image

image

Paar näpunäidet:

If you configure the Relevant Documents Web Part to… Then, in the Shared Documents library, index the following column:
Include documents last modified by me Modified By
Include documents created by me Created By
Include documents checked out by me

Checked Out By

More Posts Next page »
Page view tracker