RAMP TSAD05 Step 3 Creating your own SHARED properties

RAMP-TS

RAMP-TSAD05 Step 3.  Creating your own SHARED properties

1.   Modify file uf_sy420_rts.js using Notepad by defining a new property named MessageLineNumber:

 

 

   messageLineNumber : 22, 

 

 

 

Your code will look like this:

 

2.   Save and restart the Framework.

3.   Now in the vHandle_ARRIVE function of the DisplayEmployee screen's script, remove the code you added in the preceding steps and add this line of code:

 

     alert(SHARED.messageLineNumber);

 

  

4.   Execute the DisplayEmployee screen. You will see a message box like this appear.

  

SHARED properties like this are useful for centralizing definitions, making them easy to change. For example, when using the RAMP function to extract details from your screen, using SHARED.messageLineNumber would be better than using the literal 22 (say).