I am very new to lotus notes development. Problem is:
In front page i have created one hyperlink as register.
href=""><u><font size="5" color="#0000FF" face="Arial">Register</font></u></a>
when i click this hyperlink it will go to this below url in hotspot.
@URLOpen("/htj.nsf/open")
Now i have two url's one is "/homr.nsf/close"
and another is "/htj.nsf/open"
and we have 2 different roles Admin and normal user .... the task is now that if the role of the particular user is admin then url has to go to
@URLOpen("/htj.nsf/open")
And if it is normal user then the url has to go to @URLOpen("/homr.nsf/close")
i wrote the code in the same hotspot
if(role == "admin")
{
@URLOpen("/htj.nsf/open")
}else
{
@URLOpen("/homr.nsf/close")
}
but it is not leaving me to save as code is different so kindly please help me how can i make the role validation and open the url.
thanks for your help and time