Skip to content

Get_Status

Retrieves a record attribute status.

FUNCTION Get_Status (   
   record_  IN type_record_,  
   name_    IN type_name_ ) RETURN type_status_  

FUNCTION Get_Status (   
   attr_   IN type_item_record_ ) RETURN type_status_

Parameters

record_
Foundation1 record.

name_
    Attribute name.

attr_
    Attribute item record.

Return

Returns '*' if the record attribute is dirty.

Example

DECLARE  
   status_ Plsqlap_Record_API.type_status_;  
BEGIN  
   ...  
   if ( Plsqlap_Record_API.Get_Status(AM, 'APPLICATION_MESSAGE_ID') = '*' ) then  
      -- record attribute is dirty (record attribute value is changed)  
   else  
      -- record attribute is not dirty (record attribute value is not changed)  
   end if;  
   --  
   -- This would be equivalent to  
   -- ---------------------------  
   if ( Plsqlap_Record_API.Is_Dirty(AM, 'APPLICATION_MESSAGE_ID') ) then  
      -- record attribute is dirty (record attribute value is changed)  
   else  
      -- record attribute is not dirty (record attribute value is not changed )  
   end if;  
   ...  
END;