DerStephan
Programmer
Hi all
I have a FORM for the WEB.
There is a Button "Publish"
here is what this button does.
So all works fine but I have one problem:
Wen i click on this button, the page refreshes and apears as it looks befor i pushed the button, when i click this button again it works and displays the right page....
So the only question i have is: Why?
Maybee it'scaused by the call of the agent!?
when I short this to:
It works fine, too
but why?
Thanks in advance...
Stephan
I have a FORM for the WEB.
There is a Button "Publish"
here is what this button does.
Code:
FIELD agentCall := @UserName;
@If(Categories="" | Subject = "";
@Do(@SetTargetFrame("main");
@Command([OpenPage] ; "error" ));
@Do(@Command([FileSave]);
@Command([ToolsRunMacro];"SetPublish");
@SetTargetFrame("main");
@Command([OpenPage] ; "submit" )))
So all works fine but I have one problem:
Wen i click on this button, the page refreshes and apears as it looks befor i pushed the button, when i click this button again it works and displays the right page....
So the only question i have is: Why?
Maybee it'scaused by the call of the agent!?
when I short this to:
Code:
FIELD agentCall := @UserName;
@Command([FileSave]);
@Command([ToolsRunMacro];"SetPublish");
@SetTargetFrame("main");
@Command([OpenPage] ; "submit" )))
It works fine, too
but why?
Thanks in advance...
Stephan