Agusto Xaverius P Sipahutar

Job:Making some bugs and patch
Moss/Wss,C#,Sql Server,WWF,K2.BlackPearl
Motto : Keep Study and study
See also: Other Geeks@INDC

News




MCP Logo
MCTS Logo

MCP ID# 3542391

My Curiculum Vitae


Agusto Xaverius P S's Facebook profile

Other Article

My Community

My Article/Share Knowledge

Others Moss/Wss Site

My Other Website/Blogs

My Share (Ebook,etc)

October 2008 - Posts

Prepare for the Upcoming Office SharePoint Server 2007 and Windows SharePoint Services 3.0 Service Pack 2

Office Service Pack Team announced Service Pack 2 for 2007 Microsoft Office System.  This new service pack will be released between February and April 2009.  It will contain both client and server updates.  Here are some of the SharePoint related topics that we will be expanding upon in later posts.

  • Improved Read-only Content Databases
    Whenever a content database is marked read-only, all of the site collections in that database are automatically marked as read-only. 
  • ECM Performance and Manageability Improvements
    Improved performance and manageability in variations, including STSADM commands for repairing links between source and target pages.
  • Improved Index Rebuild Timer Jobs
    SharePoint content databases running in SQL Server 2005 will undergo an automatic index rebuild, which helps stop defragmentation, and stop the database from degrading in performance.
  • Upgrade Checker
    This will scan your SharePoint farm in advance of applying SP2 and will provide feedback on the environments readiness to upgrade.

So please stay tuned!

Link http://blogs.msdn.com/sharepoint/archive/2008/10/24/prepare-for-the-upcoming-office-sharepoint-server-2007-and-windows-sharepoint-services-3-0-service-pack-2.aspx

Share this post: | | | |
Membuat Custom Feature Module di MojoPortal

Hari ini kita membahas membuat Custom Feature Module di MojoPortal dari article yang lalu kita membuat custom webpart module.

 

1. Kita membuat solusi ini didalam code mojoportal yang telah kita download

image 

Pembuataan folder Modules and Controls bisa bebas.

2.  Buat File SampleExternalModule.ascx didalam folder Module

Asc nya sebagai berikut :

<%@ Control Language="C#" AutoEventWireup="false" EnableViewState="false"
    CodeBehind="SampleExternalModule.ascx.cs" Inherits="SampleExternalModule.SampleModuleControl" %>

<%@ Register TagPrefix="portal" Namespace="mojoPortal.Web" Assembly="mojoPortal.Web" %>
<%@ Register TagPrefix="portal" Namespace="mojoPortal.Web.UI" Assembly="mojoPortal.Web" %>
<%@ Register TagPrefix="mp" Namespace="mojoPortal.Web.Controls" Assembly="mojoPortal.Web.Controls" %>

<portal:ModuleTitleControl id="moduleTitle" runat="server" />
<asp:Panel ID="pnlSample" Runat="server">
    <asp:Label id="lblSample" runat="server" />
</asp:Panel>
<div class="modulefooter">&nbsp;</div>

 

Sedangkan untuk di code behind dengan code sebagai berikut :

using System;
using mojoPortal.Web;

namespace SampleExternalModule
{
    public partial class SampleModuleControl : SiteModuleControl
    {
        protected override void OnInit(EventArgs e)
        {
            this.Load += new EventHandler(this.Page_Load);
            base.OnInit(e);
        }

        private void Page_Load(object sender, EventArgs e)
        {
            this.moduleTitle.EditText = Resources.SampleExternalModule.EditLinkText;
            this.moduleTitle.EditUrl = SiteUtils.GetNavigationSiteRoot() + "/SampleModuleEdit.aspx";
            lblSample.Text = Resources.SampleExternalModule.SampleText;

            this.moduleTitle.Visible = !this.RenderInWebPartMode;
            if (this.ModuleConfiguration != null)
            {
                this.Title = this.ModuleConfiguration.ModuleTitle;
                this.Description = this.ModuleConfiguration.FeatureName;
            }
        }

    }
}

3. Buat file asp nya dimana pada aplikasi di ascx kita bila user klik edit maka akan ke aspx ini.

buat filename dengan nama : SampleModuleEdit.aspx

ASPX nya sebagai berikut :

 

<%@ Page Language="C#" AutoEventWireup="false" MasterPageFile="~/App_MasterPages/layout.Master" EnableViewState="false"
    CodeBehind="SampleModuleEdit.aspx.cs" Inherits="SampleExternalModule.SampleModuleEdit" %>

<%@ Register TagPrefix="portal" Namespace="mojoPortal.Web" Assembly="mojoPortal.Web" %>
<%@ Register TagPrefix="mp" Namespace="mojoPortal.Web.Controls" Assembly="mojoPortal.Web.Controls" %>

<asp:Content ContentPlaceHolderID="leftContent" ID="MPLeftPane" runat="server" />
<asp:Content ContentPlaceHolderID="mainContent" ID="MPContent" runat="server">
        <asp:Panel id="pnlInclude" runat="server">
            <asp:TextBox id="txtTest" runat="server" />
            <asp:Button id="btnClickMe" runat="server" />
            <mp:HelpLinkButton runat="server" id="HelpLinkButton1" HelpKey="linksedithelp" ImageUrl="~/Data/SiteImages/FeatureIcons/help.gif" />
        </asp:Panel>
</asp:Content>
<asp:Content ContentPlaceHolderID="rightContent" ID="MPRightPane" runat="server" />
<asp:Content ContentPlaceHolderID="pageEditContent" ID="MPPageEdit" runat="server" />

dengan code behindnya sebagai berikut :

using System;
using mojoPortal.Web;

namespace SampleExternalModule
{
    public partial class SampleModuleEdit : mojoBasePage
    {
        override protected void OnInit(EventArgs e)
        {
            this.Load += new EventHandler(this.Page_Load);
            this.btnClickMe.Click += new EventHandler(btnClickMe_Click);
            base.OnInit(e);
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            this.PageTitle = siteSettings.SiteName + " - " + Resources.SampleExternalModule.EditPageTitle;
            this.btnClickMe.Text = Resources.SampleExternalModule.ClickMeButtonText;
        }

        void btnClickMe_Click(object sender, EventArgs e)
        {
            this.txtTest.Text = Resources.SampleExternalModule.YouClickedMeText;
        }

    }
}

 

Nah jadilah 1 page feature and edit datanya. Tinggal ditambahkan di feature mojoportal supaya di kenal.

 

Happy Coding in MojoPortal

Share this post: | | | |
Posted: Oct 28 2008, 01:14 PM by agusto | with no comments
Filed under: , ,
Membuat Custom Webpart Module di MojoPortal

Didalam MojoPortal ada 2 hal yang dapat lakukan untuk membuat module yang kita ingin lakukan.

1. Dengan Menggunakan WebPart

2. Dengan menggunakan Feature

 

Dengan Menggunakan WebPart

Silahkan unduh mojoportal source code / releasenya di http://www.mojoportal.com

Untuk membuat webpart pada mojo itu sangat gampang hal membuat class library kita menggunakan System.Web.UI.WebControls.WebParts.WebPart

Dengan langkah langkah sebagai berikut :

1. Code

using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace SampleExternalWebPart
{

    public class SimpleWebPart : WebPart
    {
            private int itemCount = 5;

           public SimpleWebPart()
          {
                this.Title = "Simple Web Part";
                this.Description = "Simple WebPart Description";
           }

          [Personalizable, WebBrowsable, WebDescription("Number of articles to be displayed")]
        public int ItemCount
        {
            get { return itemCount; }
            set { itemCount = value; }
        }

        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
        }

        public override EditorPartCollection CreateEditorParts()
        {
            EditorPartCollection editorParts = base.CreateEditorParts();
            return editorParts;
        }

        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
        }

        public override WebPartVerbCollection Verbs
        {
            get
            {
                return base.Verbs;
            }
        }

        protected override void RenderContents(HtmlTextWriter writer)
        {
            writer.Write("This is a simple web part. You could say its the hello world of web parts.");
        }

    }
}

2. Deploy assembly file

    Dan setelah kita membuat coding tersebut kita compile dan copy assembly filenya ke bin tempat site mojoportal kita.

3. Register webpart ke MojoPortal Site

image

Klik Button Install.

image

Checked Available for MyPage dan klik Install

image

5.Penggunaan dalam Site

image

image

Klik Icon Edit pada WebPart Testing WebPart

image

Klik Button Save dan selesai WebPart sudah bisa digunakan.

Next publish akan bicara tentang Feature.

 

Happy Coding In MojoPortal

Share this post: | | | |
Posted: Oct 23 2008, 02:09 PM by agusto | with 5 comment(s)
Filed under: , ,
Mencoba MojoPortal

MojoPortal adalah CMS yang dibuat dalam .net framework dan yang terakhir saya download ini adalah versi mojoportal-2-2-7-6-mssqlreleasefiles. Hal yang bagus dari MojoPortal ini adalah banyaknya dukungan ke banyak database dan bisa juga ke mono platform.

image

 

dan ini adalah feature yang telah ada di MojoPortal (selain bank admin yang itu saya yang buat)

image

Happy Coding In Mojo

Share this post: | | | |
Posted: Oct 23 2008, 12:19 PM by agusto | with 6 comment(s)
Filed under: , ,
Impersonate at WSS 3.0

using (SPWeb web = new SPSite("http://demo:2100").OpenWeb()  )
{
         SPUser spUser = web.AllUsers[@"mydomain\agusto"];
         SPUserToken token = spUser.UserToken;

         //di sini SPSite sudah di impersonate base on user --> spUser
         using (SPSite impSite = new SPSite("http://demo:2100", token))
         {
                 SPWeb web1 = impSite.OpenWeb();
                 SPList list = web1.Lists["sampleList"];
                 SPListItem item = list.GetItemById(1); //get item base on user impersonate
         }
}

 

Share this post: | | | |
Posted: Oct 14 2008, 11:52 PM by agusto | with no comments
Filed under:
Microsoft Office SharePoint Server 2007 top 10 benefits

 I took this info from this link http://office.microsoft.com/en-us/sharepointserver/HA101655201033.asp.

Reason 1 Provide a simple, familiar, and consistent user experience.

Office SharePoint Server 2007 is tightly integrated with familiar client desktop applications, e-mail, and Web browsers to provide a consistent user experience that simplifies how people interact with content, processes, and business data. This tight integration, coupled with robust out-of-the-box functionality, helps you employ services themselves and facilitates product adoption.



Reason 2 Boost employee productivity by simplifying everyday business activities.

Take advantage of out-of-the-box workflows for initiating, tracking, and reporting common business activities such as document review and approval, issue tracking, and signature collection. You can complete these activities without any coding. Tight integration with familiar client applications, e-mail, and Web browsers provide you with a simple, consistent experience. Modifying and extending these out-of-the-box workflow processes is made easy through tools like Microsoft Office SharePoint Designer 2007 (the next release of Microsoft Office FrontPage).



Reason 3 Help meet regulatory requirements through comprehensive control over content.

By specifying security settings, storage policies, auditing policies, and expiration actions for business records in accordance with compliance regulations, you can help ensure your sensitive business information can be controlled and managed effectively. And you can reduce litigation risk for your organization. Tight integration of Office SharePoint Server 2007 with familiar desktop applications means that policy settings are rendered onto client applications in the Microsoft Office system, making it simpler for employees to be aware of and comply with regulatory requirements.



Reason 4 Effectively manage and repurpose content to gain increased business value.

Business users and content authors can create and submit content for approval and scheduled deployment to intranet or Internet sites. Managing multilingual content is simplified through new document library templates that are specifically designed to maintain a relationship between the original version and different translations of a document.



Reason 5 Simplify organization-wide access to both structured and unstructured information across disparate systems.

Give your users access to business data found in common line-of-business systems like SAP and Siebel through Office SharePoint Server 2007. Users can also create personalized views and interactions with business systems through a browser by dragging configurable back-end connections. Enterprise-wide Managed Document Repositories help your organizations store and organize business documents in one central location.



Reason 6 Connect people with information and expertise.

Enterprise Search in Office SharePoint Server 2007 incorporates business data along with information about documents, people, and Web pages to produce comprehensive, relevant results. Features like duplicate collapsing, spelling correction, and alerts improve the relevance of the results, so you can easily find what you need.



Reason 7 Accelerate shared business processes across organizational boundaries.

Without coding any custom applications, you can use smart, electronic forms–driven solutions to collect critical business information from customers, partners, and suppliers through a Web browser. Built-in data validation rules help you gather accurate and consistent data that can be directly integrated into back-end systems to avoid redundancy and errors that result from manual data re-entry.



Reason 8 Share business data without divulging sensitive information.

Give your employees access to real-time, interactive Microsoft Office Excel spreadsheets from a Web browser through Excel Services running on Office SharePoint Server 2007. Use these spreadsheets to maintain and efficiently share one central and up-to-date version while helping to protect any proprietary information embedded in the documents (such as financial models).



Reason 9 Enable people to make better-informed decisions by presenting business-critical information in one central location.

Office SharePoint Server 2007 makes it easy to create live, interactive business intelligence (BI) portals that assemble and display business-critical information from disparate sources, using integrated BI capabilities such as dashboards, Web Parts, scorecards, key performance indicators (KPIs), and business data connectivity technologies. Centralized Report Center sites give users a single place for locating the latest reports, spreadsheets, or KPIs.



Reason 10 Provide a single, integrated platform to manage intranet, extranet, and Internet applications across the enterprise.

Office SharePoint Server 2007 is built on an open, scalable architecture, with support for Web services and interoperability standards including XML and Simple Object Access Protocol (SOAP). The server has rich, open application programming interfaces (APIs) and event handlers for lists and documents. These features provide integration with existing systems and the flexibility to incorporate new non-Microsoft IT investments.





































 

 

 

Share this post: | | | |
Posted: Oct 08 2008, 01:45 AM by agusto | with no comments
Filed under:
How to pass the K2 context object to a .NET class

Bagaimana caranya parsing k2 context ke assembly kita :

1. Buat class library

namespace ClassLibrary1
{
    public class Class1
    {
        public void SetFolioField(SourceCode.KO.ServerEventContext K2)
        {
            K2.ProcessInstance.Folio = "Testing dari .Net Class";  //update folio
        }  
    }
}

note : Register assembly yang telah di buat ini kedalam GAC dan di referensikan ke K2 solution.

2. Parsing K2 Context ke .Net Class dengan menggunakan server event

public void Main(Project_2b407f6aa5a8407fa1224a6db17dfa90.EventItemContext_1245195e18b64c50948bf28edce9a5a6 K2)
        {
            ClassLibrary1.Class1 cls = new ClassLibrary1.Class1();     
            cls.SetFolioField(K2.GetServerContext());
        }

 

Get detail click on this link : http://www.k2underground.com/blogs/fromthebench/archive/2008/08/21/how-to-pass-the-k2-context-object-to-a-net-class.aspx

Share this post: | | | |
Posted: Oct 05 2008, 09:17 PM by agusto | with 3 comment(s)
Filed under: