Rudy Yulianto

See also: Other Geeks@INDC

January 2009 - Posts

Hidden Field InfoPath Form

Saya ingin mencoba membuat hidden field tapi dengan beberapa kondisi pada saat form tersebuat di panggil pertama,

dan yg saya coba adalah dengan membuat form tanpa code, dengan control yg ada yaitu check box dengan file attachment.

saat membuka office infopath 2007

saya memilih Design a form template ( di bagian Design a form )

lalu memilih blank form template tanpa mencentang Enable browser compatible features only - ok

saya menganbil 2 controls check box (field1) dan fileattachment (field2),

saya pilih fileattachment dan Format-Conditional Formating, allu pilih Add,

Di bagian

If this Conditional is true

dr bagian yg paling kiri di isi select field or group, lalu pilih field1 ,

bagian ke-2 di isi is equals to true

dan dibagian Then apply this formating

pilih hide this controls . OC , OC

coba jalankan form dengan memilih Preview..

 

Bagaimana caranya ya untuk mengubah step by step di atas menjadi sebuah code di VSTA (dimana akan saya pakai saat pertama kali form di panggil ) ?

 

 

 

 

 

 

Share this post: | | | |
Posted: Jan 19 2009, 08:36 PM by Rudy Yulianto | with 2 comment(s)
Filed under:
System Account di Sharepoint

setelah mendapatkan error Send Mail activity saya mendapatkan beberapa ilham, menurut saya System Account adalah sama seperti user lainnya. yang membedakan adalah system account adalah seseorang yang mengatur pekerjaan administrator di belakang layar (saat code kita impersonate sbg administrator, atau yg berhubungan dengan aplikasi sharepoint).

Saat membuat Web App di CA

 

kita akan di minta memilih account untuk  app pool

 

kemarin saya memilih Configureable..

user inilah yg menjadi system account.. (pertama x saya mengisinya dengan administrator )

dan tidak ada mslh hanya saja saat login sebagai administrator, yang saya temukan adalah system account ( create by - nya, jika membuat sesuatu di doc lib misalnya )

yang menjadi masalah adalah saat saya mengisinya dengan user lain yang bukan administrator dan ada di Active Directory kita..

dampaknya besar untuk saya , berikut adalah listnya :

1. Saat deploy workflow mengunakan VS,

saya menggunakan  VS 2008, saat mendeploy saya menemukan pesan "Potential Harm full User " , dimana usernya --> adalah nama domain\userSystemAccount , dan yang ada hanya pilihan Oc..

Jika Di lihat di Event Viewer, bagian Application, ada 2 warning yg isinya

Access is denied. Check that the Default Content Access Account has access to this content, or add a crawl rule to crawl this content. (0x80041205)

 Login failed for user Domain\Admin_DB'. [CLIENT: <local machine>]

2. Saat upload Form Infopath lewat Central Admin

pernah 1x saya tidak bisa mengaktive, form infopath yg sdh saya publish dan upload di

Central Administration > Application Management > Manage Form Templates  

3. Saat mengunakan Form infopath yang sdh di activekan di site collection

Saya ada mengunakan code ini :

 SPSecurity.RunWithElevatedPrivileges(delegate()
 {

 using (SPSite WebApp = new SPSite(_nameOfWeb))
 {
 WebApp.AllowUnsafeUpdates = true;
 using (SPWeb Site = WebApp.OpenWeb())
 {

Site.AllowUnsafeUpdates = true;

 

//set item permission

 

Site .AllowUnsafeUpdates = false;
                                         

  }
WebApp .AllowUnsafeUpdates = false;
WebApp .Close();
}
 });

 

jika code ini di jalankan dan di berikan try catch maka akan pesan error yang di dapat adalah access denied, sepertinya

 SPSecurity.RunWithElevatedPrivileges(delegate() --> di impersonate ke system account permission.

 

 


 

Share this post: | | | |
Re Error Custom workflow send mail With SendMail Activity in VS 2008 SP1 (solve)

hallo semua saya sdh solve mslh ini (saya sempat posting sebelumnya),

karena saya memiliki 2 sendMail activity, dan saat mensetting bind variabel ke properti workflownya salah. hal ini tidak menyababkan error saat di history workflow (saat run di web app sharepoint portal )

 

error message di atas ternyata banyak di temui oleh para programmer lainnya..

ini adalah link untuk solve masalah tsb ( yg mengacu pada settingan outgoing mail dan ada juga custom code untuk sendmail activity itu sendiri)

http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/MS-SharePoint/Q_22455047.html

http://alancoulter.blogspot.com/2008_11_01_archive.html

http://spschris.blogspot.com/2008/03/e-mail-message-cannot-be-sent-make-sure.html

http://kbalertz.com/891538/address-could-error-messages-logged-gatherer-crawls-content-index-completed-successfully-SharePoint-Portal-Server.aspx

http://spschris.blogspot.com/2008/03/e-mail-message-cannot-be-sent-make-sure.html

http://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/22f41ab8-4f8b-4e19-8752-faaa1ca19b07/

 

it's my favorite link for this problem(coz full link of reference at there)..^^

http://discoveringsharepoint.blogspot.com/2008/08/e-mail-message-cannot-be-sent-make-sure.html

 

 

dan setelah saya teliti lagi propertu sendmail activity di workflownya saya menemukan penyebab errornya (di asalah 1 activity sendmail saya salah setting pathnya)

 

berikut adalah perubahan yg saya lakukan (di masing2 activity tsb)

 

 

 

 

it's work for me....

Share this post: | | | |
Posted: Jan 16 2009, 12:06 PM by Rudy Yulianto | with no comments
Filed under:
Error Custom workflow send mail With SendMail Activity in VS 2008 SP1

Saya mendapatkan error berikut ini,  

 

 

Custom Workflow Tsb masih bisa Run dan mengalami hanya masalah saat mengirim email, dimana setting email tsb tdk sampai ke user yg di tuju (outlook)..Saya merasa aneh dng hal ini..karena sebelumnya workflow ini (dng code yang sama), bisa jalan dengan baik..tidak mengalami errror seperti ini...(System Account ini apa ya??),

kira2 Apa penyebab error ini?? dan apa ya solusinya??

Mohon bimbingannya..thx

 

Share this post: | | | |
Posted: Jan 15 2009, 09:25 AM by Rudy Yulianto | with no comments
Filed under:
Error When Actived Infopath Form ( After Publish it )

 

Hay guys, i get this error . when i activated a infopath form in Central Admin Sharepoint...

" The form template could not be activated to the following site collection: http://sharepoint:2009. You do not have the permissions required to perform this operation. Only the administrators of this site collection can activate to the site collection. Either add yourself as a site collection administrator, or have a site collection administrator activate the form template."

 

Why? it's strange..i login as administrator..

Share this post: | | | |
Posted: Jan 13 2009, 09:22 PM by Rudy Yulianto | with 2 comment(s)
Filed under:
The Next Step (2) For Error In VS 2008

Saya Sdh mengupgrade menjadi VS 2008 SP 1, tapi tetap mengalami hal yang sama , sampai akhirnya saya cb untuk install VS 2008 dengan melihat list yg perlu di uninstall dari artikel brkt ini :

http://msdn.microsoft.com/en-us/vs2008/bb968856.aspx

Lalu saya install ulang VS 2008nya ternyata error yg di dapat msh sama, seperti di bawah ini(menggunakan new project pun jg mendapat error yg sama)..

 

 

 

Berikut ini adalah Tampilan Error yang saya dapatkan dan hanya muncul pada  saat deploy..setelah itu error ini tdk muncul..

dan yg muncul hanyalah keterangan singkat berikut..

Jika Ini di lanjutkan (tekan Yes), maka workflow akan terdeploy ke document library yg dituju...

Dan bisa di debug...

Hasil yg di dapat sama jika mendeploy workflow menggunakan command promnt(stsadm)..

karena hal tsb, error yg muncul (object reference not set...) , akan saya abaikan..karena workflow bs jg terdeploy ke server..

tapi saya msh berharap untuk bisa menghilangkan pesan error saat proses deploy..jika ada teman2 yang mengetahui caranya, saya mohon bimbingannya..thx

 

Share this post: | | | |
Posted: Jan 09 2009, 02:00 PM by Rudy Yulianto | with no comments
Filed under:
Overview Windows Seven

http://www.microsoft.com/windows/windows-7/default.aspx

 

wow..^^

Share this post: | | | |
Posted: Jan 09 2009, 01:55 PM by Rudy Yulianto | with no comments
Filed under:
The Next Step For Error In VS 2008

for this error, Mr. Robin Suggets me for install VS 2008 SP 1..

When i try it..my hardisk is not enough (Drive C)..

My Friend , Mr. Ardiansyah , from operation section help me ..thx for him

My Step For Resize The Hardisk are:

1. BackUp Drive D

2. Restart Operation System (Windows Server 2003), And Run Live CD Linux (i use U-Buntu)

3. Choose System-Administrator-Partition Editor- Resize

4. Drag Drive C, to full size..

5. Apply and restart..and i get my disk with new size Big Smile

 

 

Share this post: | | | |
Posted: Jan 08 2009, 05:44 PM by Rudy Yulianto | with no comments
Filed under:
Error In VS 2008

I get Error message "Object reference not set to an instance of an object. " at VS 2008

It's Strange,  Because i can't get any information of this error...

i am Confused...

I get This Error when i try to deploy workflow to sharepoint document library..But If You deploy it at Stsadm (command in CMD) you will get it done..

And If I Play it (in VS) , there are alert me like this "There were deployment errors. Continue?"

if i choose yes..i will get it work...

can any one help me..to solve  this problem ?

thx before...


 

 

Share this post: | | | |
Hello Guys, it's content of My Blog

Blog ini akan menjadi history saya pekerjaan saya sharepoint.dan mungkin untuk dotnet atau yang berhubungan dengan pekerjaan saya..hope it can use by us..

i very happy in sharepoint..alot of experience make spirit for me..thx god.. ^^

 

Share this post: | | | |
My Error In Sharepoint Server ,

The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID

{61738644-F196-11D0-9953-00C04FD919C1}

to the user LAB\LAB_Admin_DB SID (S-1-5-21-1061890561-1051542271-3984552843-1157). This security permission can be modified using the Component Services administrative tool.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

 

 

I found solution for this problem..

http://support.microsoft.com/kb/899965

http://geekswithblogs.net/mhamilton/archive/2006/12/19/101568.aspx

 http://snahta.blogspot.com/2008/09/local-activation-permission-for-clsid.html

http://soerennielsen.wordpress.com/2007/04/16/fixing-those-pesky-dcom-event-log-error-10016-in-a-sharepoint-farm-environment/

 http://fusionovation.com/blogs/mbell/archive/2008/09/25/event-id-10016-on-a-sharepoint-server.aspx

http://forums.techarena.in/windows-x64-edition/754746.htm

 http://www.jadota.com/2008/07/moss-2007-install-not-done-just-yet/

http://www.os.com/blog/troubleshooting-events-10016-7888-6482-and-6398-in-sharepoint/

All Of These References , One Way Of Direction:

This is my Step :

1. Run - Regedit - edit-find , type your GUID id in Event Viewer , my GUID {61738644-F196-11D0-9953-00C04FD919C1}

2. Next, i found IIS WAMREG admin Service(default)

3. Now i have closed my registry window

4. Start- Administrative Tools - Component Services -DCOM Config - Right Click IIS WAMREG admin Service , properties

5. select security tab, Launch and Activation Permission Area, ensure you choose Customize , and click edit .

6. Add your service Account..(in my case : LAB\LAB_Admin_DB)

5. And Give Permission

  • Local Launch
  • Remote Launch
  • Local Activation
  • Remote Activation
  • 6. Add One User Again for Network Service and give permission like step 5

    7. Restart IIS

     

     

     

     

     

    Share this post: | | | |