Home
TeamSite
TeamSite, LiveSite and OpenDeploy
Navigation, autonaming & prevent overwrite
Andy Knipp
OK, so I am trying to figure the best way to handle this.
I have a navigation menu, that creates top nav, left nav and bread crumbs.
So I create it with menu/Item -> /some/dir/index.html
In my detail page DCR, I have a select list that the user chooses menu-Item (and thus I know the generated page and can determine the DCR name). All well and good.
So I use IWDCRInfo.setDCRName(myDcrName); to set the name. But if I create a new DCR and one is already there it overwrites and does not ask if you want to or not. OK, between locking and versioning that is not horrible but not perfect.
I have call server code to see if there is a conflict. So I can popup and reject the name. Maybe a better solution. I suppose I could write a popup that asks if it should overwrite, yes or no.
Anyone try any other options ? Is there a way to use setName without overwrite set ?
Andy
Find more posts tagged with
Comments
There are no comments yet