Total Pageviews

Deferred & Interactive modes


Deferred Processing : Its reduces trips between Application  server and database
Interactive  Mode : When we select Interactive mode a trip will be made immediately when we exit from a particular field on page

These settings we can configure at three levels they are

1) Component Level
Open Component --> Go to Component properties --> Internet Tab --> processing Mode



 2) Page Level
Open Page --> Go to Page properties --> Use Tab --> Under Popup Menu




3)Page Field Level
Open Page --> Double Click on field --> Go to Use tab -->Under Popup Menu



  


























 >By default all the modes i.e. component , Page , Page field will be in Deferred processing modes only
  > If a component is using Deferred-Processing mode , Pages & fields with in that component can be made interactive on an Individual basis

Resulting Behavior  :

> Result will be Deferred processing only when all the 3 modes are set to Deferred processing

> Resultant behavior will be Interactive even though one mode is set to Interactive 


Example:

To check practically let’s consider the following scenario , Consider the following simple PeopleCode for validation purpose of the name field in a page .If I give  star (*) as the first character then PeopleCode will fire with relevant Error Message .

Sample Code

&XYZ = COUN_TBL.COUN_NAME.Value;
&STAR = Find("*", &XYZ);
If &STAR = 1 Then
   Error MsgGetText(22222, 1, "");
End-If;

Scenario 1 :

  >  Here Initially I put all the modes in Deferred Mode (i.e Default Mode), Written Code in the FieldEdit  event.
  > But when ever I Tab out of the field in the page , PeopleCode wont fire as all the modes are in Deferred processing modes i.e. Trip wont be done in between Application server and DB . So that PeopleCode wont fire when tab out of the field .
  >Finally when ever clicking on SAVE Button Error Message is displayed like below i.e when ever data entry is over then only PeopleCode will fire .This reduces flickering or continuous refresh of the page .














Scenario 2:

> Now Opposite to above Scenario If you select any of the one mode as Interactive the resultant behavior will be changed to Interactive Mode 

> Now I will write the same code in Record field , FieldEdit event .As Component In Interactive Mode



> This time when I come out of the field in page automatically PeopleCode will fire and error message will get displayed seen in above scenario 
> Interactive in one mode makes the entire result as Interactive ,Same scenario is applicable even in Page and Page field modes.





1 comment:

  1. Thanks for the elaborate and appropriate explanation. Helped me a lot.

    ReplyDelete