Hi Morten,
So your stored process is working exactly as programmed. However,having read your first message I think you actually want to call your %PUTMENU macro when your PREVIOUS_PAGE condition is met?
%If %Upcase(&Valg) = PREVIOUS_PAGE %Then %do;
%PUTMENU; %End;
The HTML you're currently outputting when the PREVIOUS_PAGE condition occurs does not display any visible elements, which is why you're seeing a blank page. There is no submit action to the form, so it just sits there, hidden. If you change your code to the above does your program work as you expected?
Otherwise, if you're actually wanting to reload the initial stored process screen on that PREVIOUS_PAGE condition (and I don't know why you would want to), consider something like this code:
%If %Upcase(&Valg) = PREVIOUS_PAGE %Then %do;
data _null_;
file _webout encoding='UTF-8';
put "<meta http-equiv="refresh" content="0; url=&_URL&_action= form,properties,execute,nobanner,newwindow&_ _program=/Landkreditt Bank Informasjonsplattform/Rapportering/Marked og IKT/Forretningsutvikling/Stored Process/StP-maler/Til SAS Community/Mal for xlsx_StP_P1>"; Run; %End;
This should force a clean refresh of your initial STP screen when the user hits the back button. However, again, I don't see why your program needs to call itself twice if the front screen drawing can be done inside the existing handler.
Nik
... View more