Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Background code

Chaitanyat
Participant
0 Likes
285

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

1 REPLY 1
Read only

raja_thangamani
Active Contributor
0 Likes
259

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