PDA

View Full Version : Variable logos on a form



Alan Smith
22 Sep 2008, 5:36 AM
I need to create a form with different logos based on the compaany division.

We are on V7. I am new to Domino and have a knowledge of LotusScript but not Java or JavaScript.

Any direction (the more detailed the better) would be very much appreciated.

Thanks

galdaka
22 Sep 2008, 6:04 AM
http://extjs.com/learn/Extension:Domino_authentication

Greetings,

mdm-adph
23 Sep 2008, 7:10 AM
My advice would be to learn a little JavaScript first (no need to learn Java, unless you're a masochist). I think you'll find that everyone agrees that the w3schools (http://www.w3schools.com/js/js_examples.asp) site is a good one.

mth96a
26 Sep 2008, 7:21 AM
the syntax and structure is a little different, but the concepts are the same as lotus script. Search the lotus forums, lots of great js examples. Download firefox and install firebug, it is the best tool i have found for debugging these apps and browing the object model. Notes 8.5 beta you can create a js library and has some type ahead functionality in it.

jratcliff
26 Sep 2008, 2:23 PM
I need to create a form with different logos based on the compaany division.

We are on V7. I am new to Domino and have a knowledge of LotusScript but not Java or JavaScript.

Any direction (the more detailed the better) would be very much appreciated.

Thanks

The way we handle this is to include a subform in the domcfg.nsf database for each "custom login" we have. Then, on the $LoginUserForm we include a computed subform with the formula of:



sServerName := @LowerCase(Server_Name);

@If(
sServerName = "host1.companyA.com"; "sfCompanyA1";
sServerName = "host2.companyA.com"; "sfCompanyA2";
sServerName = "companyB.com"; "sfCompanyB";
"sfDefault")


Server_Name is a field on the $LoginUserForm form which is set to be hidden. It returns the server's hostname.

Let me know if this helps.