Subject: Howto restrict client replication if version < 190
The following will bounce those clients that are not at version 6.
BE-AWARE that adding the following formula to the database postopen event will make some users angry. Why? Lets say that
the said formula has been added; John who’s running notes Client v57a launches (attempts to open) the database on Server,
he is presented with the prompt and that session is closed, that’s ok but then John decides to replicate and proceeds to open his
replica but canNOT (he’s informed to upgrade his client). … This will indeed force those running less-than v6 clients to upgrade.
Database Resources → Database Script → PostOpen
@If(@TextToNumber(@Version) < 190; @Prompt([OK];“Upgrade Notes Client to latest version”;“Your Notes Client must be upgraded to the latest version before access to this is granted. Contact the Administrator if you have questions.”):@Command([FileCloseWindow]) ;“” )
We may not want to be so brutal (locking the user out of their replica), made a minor modification to the formula. So that when user running client less-than v6 and the database
is on server to notify the user that they must upgrade and lock them out, and if database is on local do nothing.
@If(@Subset(@DbName;1) !=“” & @TextToNumber(@Version) < 190; @Prompt([Ok];“Upgrade Notes Client to latest version”;“Your Notes Client must be upgraded to the latest version before access to this is granted. Contact Aministrater if you have questions.”):@Command([FileCloseWindow]) ;“” )
Maybe, we want to notify the user accessing their local replica that they need to upgrade but don’t lock them out.
@If(@Subset(@DbName;1) !=“” & @TextToNumber(@Version) < 190;
@Prompt([Ok];“Upgrade Notes Client to latest version”;“Your Notes Client must be upgraded to the latest version before access to this is granted. Contact Administrator if you have questions.”):@Command([FileCloseWindow]) ;@Subset(@DbName;1) =“” & @TextToNumber(@Version) < 190;
@Prompt([Ok];“Upgrade Notes Client to latest version”;“Your Notes Client needs to be upgraded to the latest version. Contact Administrator if you have questions.”) ;“” )