S
Stefan Singer
Hi,
I created a custom task-item which is published in several folders. The
form has a checkbox that is False by Default (same problem occurs with
other forms, there it is dropdown-menu with all the possible folder
names). Upon changing the value of this checkbox (i.e. the
UserProperty), the element should be moved (using item.move) to the
another folder. I use the CustomPropertyChange-Action to move the form:
Sub Item_CustomPropertyChange(ByVal cpName)
Select Case cpName
Case "ASF"
If Item.UserProperties(cpName)=-1 then
Set nFol = Me.Application.GetNamespace("MAPI")_ &
..Folders.Item("Öffentliche Ordner")
& .Folders.Item("Alle Öffentlichen Ordner") &
..Folders.Item("Glasreinigungsarchiv")
Item.Move(nfol)
Item.Close(0)
End IF
End Select
End Sub
It works fine so far as the element is indeed moved to the other folder.
However, in this other folder the element's UserProperty ASF is again
false! Same thing for the form with the dropdown menu: The value is
changed, say, to 'Archive', the element is moved to folder 'Archive',
btu there, the element has still it's old value. How can I store the new
value without opening the element again after it has moved?
Regards
Stefan
I created a custom task-item which is published in several folders. The
form has a checkbox that is False by Default (same problem occurs with
other forms, there it is dropdown-menu with all the possible folder
names). Upon changing the value of this checkbox (i.e. the
UserProperty), the element should be moved (using item.move) to the
another folder. I use the CustomPropertyChange-Action to move the form:
Sub Item_CustomPropertyChange(ByVal cpName)
Select Case cpName
Case "ASF"
If Item.UserProperties(cpName)=-1 then
Set nFol = Me.Application.GetNamespace("MAPI")_ &
..Folders.Item("Öffentliche Ordner")
& .Folders.Item("Alle Öffentlichen Ordner") &
..Folders.Item("Glasreinigungsarchiv")
Item.Move(nfol)
Item.Close(0)
End IF
End Select
End Sub
It works fine so far as the element is indeed moved to the other folder.
However, in this other folder the element's UserProperty ASF is again
false! Same thing for the form with the dropdown menu: The value is
changed, say, to 'Archive', the element is moved to folder 'Archive',
btu there, the element has still it's old value. How can I store the new
value without opening the element again after it has moved?
Regards
Stefan