I have developed a client based application using Framesets. The left most frame is for navigation. The right most frame is for viewing of documents, views and forms to create a document. From the left navigation frame you can click a link that issues a @Command([Compose];“Activity”). The form appears in the right most from as expected. To save the form I have an action that uses @Command([FileSave]);@Command([FileCloseWindow]; Everything works except the entire database is closed. I was expecting the previous window in the right most frame to appear. What is wrong?
Subject: Using FileSave and FileCloseWindow in Framesets
If you only have one window open and use @Command([FileCloseWindow]) It will of course close down the Frameset and exit the database. Usually views are displayed in the Frameset and we allow Forms to open in a new window so that we don’t have to do anything fancy to send the user back to where they came from. Also, users (who are familiar with Notes apps) tend to jump back and forth between tabs allowing them to look and the view and the form simply. I don’t reccommend avoiding this functionality but if you must then you should trap (use a temporary field on the form) where the user came from and on the save or exit of the form send the user back to where they started. You will need to likely open your form from actions in your navigation that do more than simply @command([compose]) as these actions will now need to also set the temp variable.
HTH.
Mark