lotusscript - Lotus notes validation for role -


i new lotus notes development. problem is:

in front page have created 1 hyperlink register.

href=""><u><font size="5" color="#0000ff" face="arial">register</font></u></a> 

when click hyperlink go below url in hotspot.

@urlopen("/htj.nsf/open")  

now have 2 url's 1 "/homr.nsf/close" , "/htj.nsf/open" , have 2 different roles admin , normal user .... task if role of particular user admin url has go

@urlopen("/htj.nsf/open") 

and if normal user url has go @urlopen("/homr.nsf/close") wrote code in same hotspot

if(role == "admin") { @urlopen("/htj.nsf/open") }else { @urlopen("/homr.nsf/close") } 

but not leaving me save code different kindly please me how can make role validation , open url.

thanks , time

change formula to

@urlopen(@if(@userroles = "[admin]"; "/htj.nsf/open"; "/homr.nsf/close")) 

Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -