I have the following scenario which is not working.

View B (ReceiptView) is opened through a menu and a record is selected or created.
View A creates a record that is the Main_DD of View B (ViewB is a deferred view).

I am trying to show the new record in ViewB by using a property and the OnContsrain event in ViewB. I am seeing that the receipt number is being passed correctly and the the OnConstrain procedure is called however the record is not refreshed in the view.

Code:
        //View A ---
        If (sReceiptNo <>"") Begin 
            Set psReceiptNumber of oCashReceipt to sReceiptNo
            Send Activate_oCashReceipt(Self)
        End


   //View B ---
        Procedure OnConstrain
            String sReceiptNo


            Get psReceiptNumber to sReceiptNo


            If (sReceiptNo <> '') Begin
                Set Constrain_File to CASHPAYHEAD.File_number                
                Constrain CASHPAYHEAD.Receipt_Number eq sReceiptNo
            End
            
            Forward Send OnConstrain  
        End_Procedure

    Procedure Entering_Scope Returns Integer
        Integer iRetVal 
        String sReceiptNo


         //some other code

         Get psReceiptNumber to sReceiptNo
          If (sReceiptNo <> '') Begin
                Send Rebuild_Constraints of oCASHPAYHEAD_DD    
                Send Refind_Records of oCASHPAYHEAD_DD
                //Send Refresh of oCASHPAYHEAD_DD 
                Send Refresh of oCashReceipt
          End    
        Forward Get msg_Entering_Scope to iRetVal
   End_Procedure

Any ideas?