CurrentView.XML provides incorrect XML

Status
Not open for further replies.
B

Brian Kelly

I am trying to manipulate the CurrentView.XML to ensure that every time I

navigate to a "Deleted Items" page I see the "From" column and every time I

get to a "Sent Items" folder, I see a "To" column (trying to work around

problem described here:

http://www.office-outlook.com/outlook-forum/index.php/m/171124/#msg_171124).

In general, the code works fine, but sometimes the XML returned by

"CurrentView.XML" is incorrect.

For example, while looking at a particular view in which I can clearly see

the "To" column displayed, I can walk through my code and see that the

returned XML does not contain the "To" field, it contains the "From" field.

<column
<autoresize>0</autoresize
<heading>From</heading
<prop>urn:schemas:httpmail:fromname</prop
<type>string</type
<width>184</width
<style>padding-left:3px;;text-align:left</style
</column
Something is apparently cached somewhere (?) or otherwise corrupt. In fact,

this may even be the cause of the misbehavior in the first place, I suppose.

Regardless--does anyone know a way to get CurrentView.XML to reflect what is

actually shown in the current view?

Thanks!
 
How are you getting the view XML and when?

"Brian Kelly" <Brian Kelly> wrote in message

news:2192E1BF-8EC1-41DD-B0C7-9D01F882C6DF@microsoft.com...
> I am trying to manipulate the CurrentView.XML to ensure that every time I
> navigate to a "Deleted Items" page I see the "From" column and every time
> I
> get to a "Sent Items" folder, I see a "To" column (trying to work around
> problem described here:
> http://www.office-outlook.com/outlook-forum/index.php/m/171124/#msg_171124).

> In general, the code works fine, but sometimes the XML returned by
> "CurrentView.XML" is incorrect.

> For example, while looking at a particular view in which I can clearly see
> the "To" column displayed, I can walk through my code and see that the
> returned XML does not contain the "To" field, it contains the "From"
> field.

> <column
> <autoresize>0</autoresize
> <heading>From</heading
> <prop>urn:schemas:httpmail:fromname</prop
> <type>string</type
> <width>184</width
> <style>padding-left:3px;;text-align:left</style
> </column
> Something is apparently cached somewhere (?) or otherwise corrupt. In
> fact,
> this may even be the cause of the misbehavior in the first place, I
> suppose.

> Regardless--does anyone know a way to get CurrentView.XML to reflect what
> is
> actually shown in the current view?

> Thanks!
 
Status
Not open for further replies.

Similar threads

Back
Top