DCSIMG
July 2008 - Posts - Dor Rotman`s Blog

July 2008 - Posts

How to get the context item in an SPD Workflow Activity

David Birin, a talented colleague of mine who also works at Omnisys, has just published a post about getting the context item in a SharePoint Designer Custom Workflow Activity.

This post is important for SharePoint developers since most samples you’ll find on the internet ignore this ability. Instead, their workflow activities ask the user to supply an item, while it’s obvious the relevant item is the current one, which the workflow is running on. (Even the ECM samples in the WSS/MOSS SDK have this issue.)

So go on and read it. :)

It’s David’s first post (not including the introduction one), so congrats and keep on posting good stuff. :)

 

Dor Rotman.

Quickstart Guide: Customizing Office 2007 Ribbons
הנה רשימה של מספר קישורים שהם חובה לכל מי שמעוניין לפתח יישומי Office 2007 שישתלבו לתוך ה-Ribbons:
 
החבר’ה ב-MSDN השקיעו רבות במאמרים מפורטים וברורים, במגוון נושאים בפיתוח Ribbons. בין הנושאים: איך להשתמש ב-Ribbon Designer של Visual Studio 2008, איך לייצר Custom Tab שמציג Actions Pane, וכן סקירה של ה-Object Model.
 
זהו מאמר (מסמך Word) המציין שיקולים ו-Best Practices לפיתוח ל-Office. כדאי מאוד לקרוא, הוא די קצר ונותן הרבה תובנות. 
 
זוהי רשימת כל האייקונים של Office, בהם אפשר להשתמש ב-Ribbons ובתפריטים.
מורידים את גיליון ה-Excel, פותחים אותו, ובלשונית ה-Developers ניתן למצוא כפתורים עם תפריטים קופצים המציגים את כל הסמלים.
לכל סמל יש ID משלו אשר ניתן להקליד לתוך מאפיין ה-OfficeImageId ב-Ribbon Designer של Visual Studio 2008 או לתוך מאפיין ה-imageMso ב-XML, במידה וכותבים אותו ישירות, לדוגמא ב-Visual Studio 2005.
 
זוהי רשימת כל ה-ID-ים של פקדים בתפריטי Office.
נשמע מיותר, אך למעשה זה שימושי מאוד: לרוב לא נרצה שה-Add-In שנכתוב ייכנס ללשונית “תוספות” שכולם שוכחים מקיומה, אלא נעדיף לשלב את הכפתורים שלנו בתוך אחת הלשוניות הרלוונטיות יותר, כגון "בית” (הלשונית הראשית) או “הוספה”. 
הפתרון לכך הוא קביעת הלשונית בה יופיעו הפקדים שלנו, וכן קביעת הפקד המדויק שלפניו או אחריו יופיע הפקד שלנו. זאת באמצעות המאפיינים BeforeOfficeId או AfterOfficeId ב-Ribbon Designer.


אם יש נושאים שמעניינים אתכם בפיתוח VSTO ואתם מעוניינים לקבל עליהם מידע, אשמח לשמוע בתגובות או באימייל.
דור רוטמן.
My Two Cents about Twitter...

twitter