We are currently upgrading to R6 but I need to maintain compatability between R5 and R6 without using R6 functionality. I have a shared action the allows the user to preview their work in the browser which works fine with an R5 client on an R5 server. But using an R6 client on an R5 server produces a 404 as the url is encoded differently.
R6 client on R5 server produces: http://web2.mydomain.com/db/content.nsf/Preview?OpenForm&Section+Breadcrumb~Subsection+Breadcrumbv7DB1CD63B7E73C58525700A004DCCB0?OpenDocument&login
What is the easiest way to rectify this without any R6 functionality and have it work on both clients?
Here is the code in the button:
db:=@Subset(@DbName;-1);
server:=@Name([CN];@DbName);
@If(Form=“SecPage”;@URLOpen(“http://”+server+“.mydomain.com/db/content.nsf/Pages/”+@Text(@DocumentUniqueID)+“?OpenDocument”);
Form=“ccSpotlight”;@URLOpen(“http://”+server+“.mydomain.com/db/content.nsf/Pages/”+@Text(@DocumentUniqueID)+“?OpenDocument”);Form=“SHP” & Status=3;
@URLOpen(“http://”+server+“.mydomain.com/db/content.nsf/Preview?OpenForm&”+@ReplaceSubstring(Site;" “;”+“)+”~Home?OpenDocument&login");
Form=“SHP” & Status!=3;
@URLOpen(“http://”+server+“.mydomain.com/db/content.nsf/Preview?OpenForm&”+@ReplaceSubstring(Site;" “;”+“)+”~Home|“+@Text(@DocumentUniqueID)+”?OpenDocument&login");
@URLOpen(“http://”+server+“.mydomain.com/db/content.nsf/Preview?OpenForm&Section+Breadcrumb~Subsection+Breadcrumb|”+@Text(@DocumentUniqueID)+“?OpenDocument&login”))