‎2006 Dec 03 6:36 PM
Hi all,
In a scenario where in there is a start up screen which asks for a username and password..is there any way that we can run a background code to validate the user and at the same time make the code that runs on background not available for the enduser. That is if the user trys to debug the code for the start screen, the validation code should not be visible in the debuging mode. Is there any way that we can do this ?
thanks and regards,
chaitanya
‎2006 Dec 03 6:51 PM
Hi,
You can create the <b>Macro</b> which has the validation what ever you want & call the Macro in your Report. WHile debugging, the Debugger will not go inside the Macro. This way will help, Appart of that there is no way you can hide the code.
Here is the sample code:
DEFINE VALIDATION.
MOVE &1 TO PAR1.
MOVE &2 TO PAR2.
* Write the Validation Logic here. While Debugging, Control will not come inside Macro.
END-OF-DEFINITION.
* Calling Macro
VALIDATION 'Parameter1' 'Parameter2'.Here the Macro name is "Validation". I also mentioned how to pass the value to the Macro at runtime.
Hope this will help you.
Raja T
Message was edited by:
Raja T