You are not allowed to modify environment variables

Hi All,

I am getting the following error When I click the button “Show”

Button Code is:

num := @Left(Choice;1);

@SetEnvironment(“Report”;Num);

@If(Num = “1”:“2”:“3”:“4”;@Command([ToolsRunMacro];“(Agent Type)”);Num = “5”:“6”:“7”:“8”;@Command([ToolsRunMacro];“(Agent Groups)”);“”)

Error 500

HTTP Web Server: Lotus Notes Exception - You are not allowed to modify environment variables.

Can anyone help me in this regard.

Is it any access related issue to the server?

Or any code restriction?

Please help me

Thanks in advance,

Kamal

Subject: You are not allowed to modify environment variables.

From Designer Help:

You cannot use this function in Web applications. However, in Web applications, you can use predefined field names to gather information about the Web user’s environment by requesting Common Gateway Interface (CGI) environment variables.