A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Tags: , ,

Editing custom fields





 
 
Thread Tools Display Modes
  #1  
Old January 21st 07, 12:54 PM posted to microsoft.public.outlook.program_forms
Alex
external usenet poster
 
Posts: 74
Default Editing custom fields

Hi,
I can change custom fields in the outlook custom viewer organizer (View -
Current View - Define Views), but how do I do it using the VSTO?
I tried to get access to the custom fields through with
TableView.ViewFields, but then I can only change the field's format with the
ColumnFormat property.
I want to edit the value. For example, if I add new custom formula fields, I
want to initialize it when the outlook starts.

Thanks,
Alex.
Ads
  #2  
Old January 21st 07, 02:46 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Editing custom fields

The field value is not part of the view. It's a property of each individual item. Use the item's UserProperties collection.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Alex" wrote in message ...
Hi,
I can change custom fields in the outlook custom viewer organizer (View -
Current View - Define Views), but how do I do it using the VSTO?
I tried to get access to the custom fields through with
TableView.ViewFields, but then I can only change the field's format with the
ColumnFormat property.
I want to edit the value. For example, if I add new custom formula fields, I
want to initialize it when the outlook starts.

Thanks,
Alex.

  #3  
Old January 22nd 07, 08:11 AM posted to microsoft.public.outlook.program_forms
Alex
external usenet poster
 
Posts: 74
Default Editing custom fields

My UserProperties collection is empty.
I see the formula results in outlook but still can't access it.
I'm using Outlook 2007 and VSTO 2005 SE.

"Sue Mosher [MVP-Outlook]" wrote:

The field value is not part of the view. It's a property of each individual item. Use the item's UserProperties collection.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Alex" wrote in message ...
Hi,
I can change custom fields in the outlook custom viewer organizer (View -
Current View - Define Views), but how do I do it using the VSTO?
I tried to get access to the custom fields through with
TableView.ViewFields, but then I can only change the field's format with the
ColumnFormat property.
I want to edit the value. For example, if I add new custom formula fields, I
want to initialize it when the outlook starts.

Thanks,
Alex.


  #4  
Old January 22nd 07, 10:51 AM posted to microsoft.public.outlook.program_forms
Alex
external usenet poster
 
Posts: 74
Default Editing custom fields - update

ok,
I see that with Folder.UserDefinedProperties I can see my custom fields and
view the formula with Formula property.
The problem is that the Formula property is read only and I can't change it.
Any idea on how do I initialize it?

"Alex" wrote:

My UserProperties collection is empty.
I see the formula results in outlook but still can't access it.
I'm using Outlook 2007 and VSTO 2005 SE.

"Sue Mosher [MVP-Outlook]" wrote:

The field value is not part of the view. It's a property of each individual item. Use the item's UserProperties collection.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Alex" wrote in message ...
Hi,
I can change custom fields in the outlook custom viewer organizer (View -
Current View - Define Views), but how do I do it using the VSTO?
I tried to get access to the custom fields through with
TableView.ViewFields, but then I can only change the field's format with the
ColumnFormat property.
I want to edit the value. For example, if I add new custom formula fields, I
want to initialize it when the outlook starts.

Thanks,
Alex.


  #5  
Old January 22nd 07, 02:18 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Editing custom fields - update

A formula property calculates a value based on the value of other properties of the item. You can't change the value of formula property directly, only by changing the values of the properties it depends on -- on each individual item where you want the formula property value to change.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Alex" wrote in message ...
ok,
I see that with Folder.UserDefinedProperties I can see my custom fields and
view the formula with Formula property.
The problem is that the Formula property is read only and I can't change it.
Any idea on how do I initialize it?

"Alex" wrote:

My UserProperties collection is empty.
I see the formula results in outlook but still can't access it.
I'm using Outlook 2007 and VSTO 2005 SE.

"Sue Mosher [MVP-Outlook]" wrote:

The field value is not part of the view. It's a property of each individual item. Use the item's UserProperties collection.

"Alex" wrote in message ...
Hi,
I can change custom fields in the outlook custom viewer organizer (View -
Current View - Define Views), but how do I do it using the VSTO?
I tried to get access to the custom fields through with
TableView.ViewFields, but then I can only change the field's format with the
ColumnFormat property.
I want to edit the value. For example, if I add new custom formula fields, I
want to initialize it when the outlook starts.

Thanks,
Alex.

  #6  
Old January 22nd 07, 03:42 PM posted to microsoft.public.outlook.program_forms
Alex
external usenet poster
 
Posts: 74
Default Editing custom fields - update

Thanks for the reply.
I wanted to change the Formula itself.

"Sue Mosher [MVP-Outlook]" wrote:

A formula property calculates a value based on the value of other properties of the item. You can't change the value of formula property directly, only by changing the values of the properties it depends on -- on each individual item where you want the formula property value to change.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Alex" wrote in message ...
ok,
I see that with Folder.UserDefinedProperties I can see my custom fields and
view the formula with Formula property.
The problem is that the Formula property is read only and I can't change it.
Any idea on how do I initialize it?

"Alex" wrote:

My UserProperties collection is empty.
I see the formula results in outlook but still can't access it.
I'm using Outlook 2007 and VSTO 2005 SE.

"Sue Mosher [MVP-Outlook]" wrote:

The field value is not part of the view. It's a property of each individual item. Use the item's UserProperties collection.

"Alex" wrote in message ...
Hi,
I can change custom fields in the outlook custom viewer organizer (View -
Current View - Define Views), but how do I do it using the VSTO?
I tried to get access to the custom fields through with
TableView.ViewFields, but then I can only change the field's format with the
ColumnFormat property.
I want to edit the value. For example, if I add new custom formula fields, I
want to initialize it when the outlook starts.

Thanks,
Alex.


  #7  
Old January 22nd 07, 04:16 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Editing custom fields - update

As you've already apparently seen, you can't do that programmatically. EIther do that manually. Or remove the field from UserDefinedFields and add a new field by the same name, passing the formula as a parameter to the Add method.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Alex" wrote in message ...
Thanks for the reply.
I wanted to change the Formula itself.

"Sue Mosher [MVP-Outlook]" wrote:

A formula property calculates a value based on the value of other properties of the item. You can't change the value of formula property directly, only by changing the values of the properties it depends on -- on each individual item where you want the formula property value to change.

"Alex" wrote in message ...
ok,
I see that with Folder.UserDefinedProperties I can see my custom fields and
view the formula with Formula property.
The problem is that the Formula property is read only and I can't change it.
Any idea on how do I initialize it?

"Alex" wrote:

My UserProperties collection is empty.
I see the formula results in outlook but still can't access it.
I'm using Outlook 2007 and VSTO 2005 SE.

"Sue Mosher [MVP-Outlook]" wrote:

The field value is not part of the view. It's a property of each individual item. Use the item's UserProperties collection.

"Alex" wrote in message ...
Hi,
I can change custom fields in the outlook custom viewer organizer (View -
Current View - Define Views), but how do I do it using the VSTO?
I tried to get access to the custom fields through with
TableView.ViewFields, but then I can only change the field's format with the
ColumnFormat property.
I want to edit the value. For example, if I add new custom formula fields, I
want to initialize it when the outlook starts.

Thanks,
Alex.


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
importing custom fields into a custom form susan lasalle Outlook - Using Contacts 1 January 16th 07 10:01 PM
Allow in-cell editing: creating custom dropdown box Foo Outlook - General Queries 2 November 9th 06 05:52 PM
Export Custom Fields crwnsvn Outlook - Using Contacts 3 October 19th 06 08:21 PM
Custom Fields Dick84 Outlook - Using Contacts 5 October 7th 06 08:41 PM
copy custom task with custom fields VinceGSMW Outlook - General Queries 3 May 31st 06 04:11 AM


All times are GMT +1. The time now is 02:58 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2008 Outlook Banter, part of the NewsgroupBanter project.
The comments are property of their posters.
Mobile Phone - Credit Cards - Advertising - Best Credit Cards - Personal Finance