www.skelta.com
Home      Members   Calendar   Who's On

Welcome Guest ( Login | Register )
      

Home » BPM.NET 2007/Sharepoint Accelerator 2007 » BPM.NET 2007/Sharepoint Accelerator 2007 » Application Development » Clearing Custom property value


Clearing Custom property valueExpand / Collapse
Author
Message
Posted Friday, May 09, 2008
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 2 days ago @ 9:34 AM
Posts: 1, Visits: 14
I working with a custom property and was wondering if there is a way to clear the property value from the action properties tab? Rather than blanking it out in the custom page and saving there.

Like when a string property is set to an Expression, an image appears on the action property display to clear the value.
Post #765
Posted 2 days ago @ 6:05 AM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 2 days ago @ 6:00 AM
Posts: 6, Visits: 16
Hi

You can implement the Expression editor class for your custom property to enable same Expression Editor functionality to delete value for custom property. find below sample for the same.

// --> Implement an Explicit Class  called  ->
            Workflow.NET.ExpressionHandler

Along with IPropertyType interface


            this.IsExpression //-> will give whether user has chosen from expression editor or not
            this.GetProcessedValue(InitializationContextObject.CurrentContext).ToString();//will compile the expression built by user.

            void IPropertyType.ReadXml( System.Xml.XmlTextReader xtr )
            {
            this._PropertyTypeforCompile = "String";//This is a property from ExpressionHandler which determines the return type.
            if(!ReadExpressionXml(xtr))//This is a builtin method from ExpressionHandler similar to read Xml/WriteXml . //Similarly we have read ExpressionXml and Write ExpressionXml.
           _value = xtr.ReadElementString();
            }
            /// <summary>
            /// Implements IPropertyType.WriteXml.
            /// </summary>         
            void IPropertyType.WriteXml( System.Xml.XmlTextWriter xtw )
            {
           
            if (!WriteExpressionXml(xtw))//Only if user doesnt select from expression editor
                xtw.WriteCData(_value);           
            }
Regards,

Anil.

Post #769
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
-
Active Users: 1 (1 guest, 0 members, 0 anonymous members)
No members currently viewing this topic.

All times are GMT -5:00, Time now is 10:24am

 
Execution: 0.078.10 queries.Compression Enabled.

Copyright © 2002 - 2007 Skelta Software. All rights reserved. Tel: 1 (703) 229-6732 | Email:sales@skelta.com
Skelta - A BPM Workflow Software Company