02-09-2020, 10:16 AM
If I had a trouble like this, I would use the simplest code I could.
What you need, as I see, is to choose the starting form depending also on the user, so you could just use another param to detect the user. Maybe there is another simpler way, but if something works for me, I use the code without looking for another solution.
Code:
procedure TIWServerController.IWServerControllerBaseGetMainForm(
var vMainForm: TIWBaseForm);
begin
if WebApplication.RunParams.Count>0
then
begin
if WebApplication.RunParams[0]='steg'
then
vmainForm:=TIWForm9.Create(WebApplication)
else
vmainForm:=TIWForm2.Create(WebApplication) //main form
end
else
vmainForm:=TIWForm2.Create(WebApplication) //main form
end;