Outlook 2k3 Script: Pb saving data in custom item

  • Thread starter news.microsoft.com
  • Start date
N

news.microsoft.com

Hi All,

I've made my own task form and added many personal Item, I set tow of them
in read only , to prevent manual modification of these value

on the first I put the Number of the task (personal calculated Number)
on the second I put other calculated value

these values are calculated once by my script only if it is a new Task, when
I Open a new task the value are correct, but when I save and reopen a task
the value are set to 0 zero

When I set the Box to read / Write the correct values are stored

I use this to display the value on my Form

CustomIdBox is the name of the box CustomId is the field displayed
in CustomBox TheVALUE is the calculated value

If Item.LastModificationTime = #1/1/4501# Then
FormPage.Controls("CustomIdBox").value = TheVALUE
CustomId = TheVALUE
item.mileage = TheVALUE
else
FormPage.Controls("CustomIdBox").value = item.mileage
'End If


Tks for help
 
K

Ken Slovak - [MVP - Outlook]

Are those controls bound to the UserProperty's you created? If not the code
will have to read the user properties on Item_Open and set the controls
then.

I'd probably check for Item.EntryID = "" as my new item test.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top