weblogs.com.pk

Proud To Be Pakistanis!
Welcome to weblogs.com.pk Sign in | Join | Help
in Search

Adeel bin Khalid

"When a Man's Education is Finished; He is finished"

FileNet Content Engine: Change the value of an attribute of a folder on its creation

Last month brought lot of new things to my life. I came back from Islamabad after spending 5 months (18/7) on client side. We worked like hell there. And on 31st of March I got married :).. thanks :).. and this is something I’ve been thinking form the day I got married that how people get time for their studies after getting married :).. any comment from married readers would be really appreciated :)..

And finally this is a VBScript snippet, used in FileNet CE, I have written to change the property value of a folder on its creation. This code is used on a subscription event and changes the value of an attribute of a folder as soon as the folder is created

Public Sub OnEvent (EventObject, Subscription)
    dim oSource , os
    Const idmObjTypeFolder = 2
    set os = EventObject.ObjectStore
    set oSource = os.GetObject(idmObjTypeFolder,EventObject.SourceObjectId)
    oSource.SetValue "ObjectStoreName", Ucase(os.Name)
    oSource.Save
End Sub 

 

Published Monday, May 07, 2007 11:03 AM by abk
Filed under:

Comments

 

Arsalan said:

Studies after marriage, eh? How about studying full time and working full time after getting married and on top of it having children to raise at the same time. I shall elaborate soon.

September 4, 2007 11:47 PM
Anonymous comments are disabled
Powered by Community Server (Personal Edition), by Telligent Systems