Thomasm
25th October 2006, 14:33
Hello,
I have upgraded my test server from sp12 to sp20 and also to the porting set 6.1c.07.11. I have now found that the function stpapi.change.view is acting differently than before and also different than the documentation I have (document U8627A US delivered together with the SP solutions). The documentation says that the return values can be 0, 1 or 2. 1 meaning found, 2 meaning another record found (err.msg not filled) and 0 meaning unsuccessful and err.msg filled. This is according to older documentation and how it used to work.
In my example I am now working in session tihra1101m000 and setting the values to year, week and employee and then do a stpapi.change.view into a view where there are no records yet. Before the function would return 2 in this situation but now it suddenly returns 0 BUT the err.msg i not filled.
If I in this situation ignore my error handling and continue with setting data to the different fields and then do the insert I can see that the insert is successful (no error returned) and I can also see in the session manually that the record was indeed successfully inserted.
So it seems that where I expect the function to return 2 it is now instead returning 0.
Has anyone verify this behaviour and what did you do about it?
I have upgraded my test server from sp12 to sp20 and also to the porting set 6.1c.07.11. I have now found that the function stpapi.change.view is acting differently than before and also different than the documentation I have (document U8627A US delivered together with the SP solutions). The documentation says that the return values can be 0, 1 or 2. 1 meaning found, 2 meaning another record found (err.msg not filled) and 0 meaning unsuccessful and err.msg filled. This is according to older documentation and how it used to work.
In my example I am now working in session tihra1101m000 and setting the values to year, week and employee and then do a stpapi.change.view into a view where there are no records yet. Before the function would return 2 in this situation but now it suddenly returns 0 BUT the err.msg i not filled.
If I in this situation ignore my error handling and continue with setting data to the different fields and then do the insert I can see that the insert is successful (no error returned) and I can also see in the session manually that the record was indeed successfully inserted.
So it seems that where I expect the function to return 2 it is now instead returning 0.
Has anyone verify this behaviour and what did you do about it?