Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How not refresh parameter
#1
If directly (first) write URL http://localhost/details?number=1  then read details
and then change URL http://localhost/details?number=2 and then not read details! I have to close browser it work.

Where/How do I need to read the URL parameter again? What wrong in my code?

My code:

IWServerControllerBaseConfig ->

with THandlers.Add('', '/Details', TContentForm.Create(TDetailsForm)) do
begin
    CanStartSession := true;
    RequiresSessionStart := false;
end;

IWServerControllerBaseGetMainForm ->

if WebApplication.RunParams.Count>0 then
begin

    if UserSession.param= 'number' then
        vMainForm:=TDetailsForm.Create(WebApplication)
    else
        vMainForm:=TDetailsForm.Create(WebApplication);

end else
      vMainForm:=TMainForm.Create(WebApplication);

TDetailsForm.IWAppFormShow ->

if (WebApplication.RunParams.IndexOfName('number') <> -1) then
      UserSession.param := WebApplication.RunParams.Values['number'];
Reply


Messages In This Thread
How not refresh parameter - by matija - 03-28-2023, 07:45 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)