Rudy Yulianto

See also: Other Geeks@INDC

beda Association dengan Instantiation Form(solve jg^^)

akhirnya solve jg..mengenai instantiation dan assosiation form infopath..

error yg kemarin The following location is not accessible, because it is in a different site collection:
urn:schemas-microsoft-com:office:infopath:FormPertanyaan:-myXSD-2009-02-06T06-57-41
.

ini dikarenakan pada saat menjalankan script stsadm

stsadm - installfeature -name namaFolderYangAdaFeatureNFormIP -force

pada saat ini nama Form IP yg ada, adalah InitiationForm.xsn

Form ini sdh pernah ada sebelumnya ( sdh pernah saya cb dengan workflow yang berbeda)..

Hal ini membuat komputer sering kali Hang saat loading install feature...

saya form ini ketika mencoba tutorial dari ebook Pro SharePoint 2007 Development Techniques, Margriet Bruggeman and Nikander Bruggeman ..

di chapter 4 halaman 221, ada panduan untuk mengecek hasil upload yg secara tidak langsung di lakukan ketika menjalankan script di atas(install feature yg ada instantiation form nya).

Untuk menge-ceknya di CA-Application Management - Manage Form Templates , ternyata form

InitiationForm.xsn sdh ada dan statusnya installing (bkn ready) .. ^^

akhirnya saya deactive dan uninstall pk script ini


stsadm -o deactivatefeature -filename namaFolder\feature.xml -url http://url

stsadm -o uninstallfeature -filename namaFolder\feature.xml


lalu saya ulang sekali lagi stsadm - installfeature -name namaFolderYangAdaFeatureNFormIP -force

 

berikut ini adalah isi dari file feature.xml yang saya gunakan

<?xml version="1.0" encoding="utf-8" ?>

<Feature  Id="58ea595e-5dcc-4f27-a6dc-ac8cfcbc72da"
      Title="MOSSWorkflow"
      Description="Description of the workflow"
      Version="12.0.0.0"
      Scope="Site"
      ReceiverAssembly="Microsoft.Office.Workflow.Feature,
                        Version=12.0.0.0,
                        Culture=neutral,
                        PublicKeyToken=71e9bce111e9429c"
         
      ReceiverClass="Microsoft.Office.Workflow.Feature.WorkflowFeatureReceiver"
         
      xmlns="http://schemas.microsoft.com/sharepoint/"
>
 
          <ElementManifests>
           
            <ElementManifest Location="workflow.xml" />
           
          </ElementManifests>
 
          <Properties>
           
            <Property Key="GloballyAvailable" Value="true" />
            <!-- Value for RegisterForms key indicates the path to the forms relative to feature file location -->
            <!-- if you don't have forms, use *.xsn -->
            <Property Key="RegisterForms" Value="*.xsn" />
           
          </Properties>
</Feature>

 

dan  file workflow.xml

<?xml version="1.0" encoding="utf-8" ?>

<!-- Customize the text in square brackets.
Remove brackets when filling in, e.g.
Name="[NAME]" ==> Name="MyWorkflow" -->

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
 
  <Workflow
     Name="MOSSWorkflow"
     Description="My SharePoint Workflow"
     Id="1b30cdf4-0830-4a9d-a46e-c3c550958b3b"
     CodeBesideClass="MOSSWorkflow.Workflow1"
     CodeBesideAssembly="MOSSWorkflow,
                         Version=1.0.0.0,
                         Culture=neutral,
                         PublicKeyToken=03ad188d75e07ee1"
     TaskListContentTypeId="0x01080100C9C9515DE4E24001905074F980F93160"
     AssociationUrl="_layouts/CstWrkflIP.aspx"
     InstantiationUrl="_layouts/IniWrkflIP.aspx"
     ModificationUrl="_layouts/ModWrkflIP.aspx"
     
  >

      <Categories/>
   
      <MetaData>
        
          <Association_FormURN>urn:schemas-microsoft-com:office:infopath:InitiationForm:-myXSD-2009-02-10T03-00-45</Association_FormURN>
          <Instantiation_FormURN>urn:schemas-microsoft-com:office:infopath:InitiationForm:-myXSD-2009-02-10T03-00-45</Instantiation_FormURN>
          <Task0_FormURN>urn:schemas-microsoft-com:office:infopath:EditTaskForm:-myXSD-2009-02-10T03-32-27</Task0_FormURN>
        <StatusPageUrl>_layouts/WrkStat.aspx</StatusPageUrl>
      </MetaData>
   
  </Workflow>
 
</Elements>

 

Thx for Mbak inti yg sdh membantu print tutorial ebook yg sangat berguna ini..^^

 

tambahan 16Feb2009

saat mengcopy file form infopath yg sdh di publish(.xsn) ke folder dalam directory

C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES

saya menggunakan script ini(dengan kondisi di cmd, sedang berada di directory yg sama dengan file .xsn tsb)

xcopy /s /Y *.xsn "%programfiles%\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES\namafolderyangdituju

 

Share this post: | | | |
Posted: Feb 10 2009, 01:50 PM by Rudy Yulianto | with 1 comment(s)
Filed under:

Comments

Football, Basketball, Hockey, NASCAR » Blog Archive » Solve Beda Association Dengan Instantiation Form - Rudy Yulianto said:

Pingback from  Football, Basketball, Hockey, NASCAR  &raquo; Blog Archive   &raquo; Solve Beda Association Dengan Instantiation Form - Rudy Yulianto

# February 14, 2009 1:47 AM