Publishing a private default view, but not as public default
Posted: Wed Apr 16, 2014 5:55 pm
Hi All,
I have a user with a private default view that he'd like to periodically publish for others to use, preferably by launching a TI process. However, we don't want the view to become the public default view when published - we'd like to give it a different name, such as "John's Default View" which others can then open.
My first attempt at this was to launch a batch script from TI which copied the user's private "Default.vue" as "John's Default View.vue" into the cube's public view folder. However, the temporary subsets being used in the user's private default view did not appear when "John's Default View" was opened by anyone else. It seems that those details aren't carried over when simply copying a .vue file into the public view folder, as they are when actually using the PublishView() function in TI. These are not saved subsets by John that I can find in a "*-subs" folder in his directory to copy - just the selections he made in his default view when he saved it.
Next, I tried an approach where I made a copy of the user's private default view named "John's Default View.vue" in his own view folder, then did a PublishView() on that view file, since I know PublishView() does carry over those selections. This would work, but only if the view were created, the user logged out and back in to make it appear, then the PublishView() command was ran. Otherwise, the TI process would say the view could not be found, despite the .vue file existing in John's directory. This prevents the process from doing what we want in one run. We could have two processes and tell the user to run one, log out, then log back in and run the other... but that's not the most elegant sounding solution.
Does anyone have a solution for this? Thanks in advance for any help.
I have a user with a private default view that he'd like to periodically publish for others to use, preferably by launching a TI process. However, we don't want the view to become the public default view when published - we'd like to give it a different name, such as "John's Default View" which others can then open.
My first attempt at this was to launch a batch script from TI which copied the user's private "Default.vue" as "John's Default View.vue" into the cube's public view folder. However, the temporary subsets being used in the user's private default view did not appear when "John's Default View" was opened by anyone else. It seems that those details aren't carried over when simply copying a .vue file into the public view folder, as they are when actually using the PublishView() function in TI. These are not saved subsets by John that I can find in a "*-subs" folder in his directory to copy - just the selections he made in his default view when he saved it.
Next, I tried an approach where I made a copy of the user's private default view named "John's Default View.vue" in his own view folder, then did a PublishView() on that view file, since I know PublishView() does carry over those selections. This would work, but only if the view were created, the user logged out and back in to make it appear, then the PublishView() command was ran. Otherwise, the TI process would say the view could not be found, despite the .vue file existing in John's directory. This prevents the process from doing what we want in one run. We could have two processes and tell the user to run one, log out, then log back in and run the other... but that's not the most elegant sounding solution.
Does anyone have a solution for this? Thanks in advance for any help.