![]() |
| 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. |
|
|||||||
| Tags: custom, editing, fields |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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 | |
|
|
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 |