Nerissa,
Are these views updating the same table? If so, what you're proposing is considered best practice: Create a new data environment and swap the two using kBizObj.LoadDataEnvironment(). By definition, the first view added to the DE is the InitialSelectedAlias and that is the one typically considered acceptable for updating.
If the second view will be used to update a different table, my suggestion would be to use a different BizObj along with a different environment.
Hope that helps,
---J
>I need to define 2 views for my parent bizobj. However, I cannot define it as 2 data elements in one data environment because I know that the second view is for reading only and cannot be updated. I am now thinking of using two data environments instead and load them dynamically. But I just want to know if I can update the view in the second data environment.
>
>Thank you very much for any help that you can give.
>
>Nerissa