SetDBFieldAuxFlag function
Syntax
SetDBFieldAuxFlag(Field.FieldName, FlagNumber, Setting)
Description
Use the SetDBFieldAuxFlag function to set the auxiliary flag mask (AuxFlagMask) property for the specified field. This field indicates properties about the field.
Currently, only one flag comes preset from PeopleSoft: a 1 indicates a ChartField. If you want to associate a property with a field, you must coordinate with other developers to make certain that no one else is setting a property using the same flag number.
Use the GetAuxFlag Field method to read the current setting of the property.
If you use this function, the change is made to the database field, but it doesn't require a rebuild of the database. However, the change is not reflected in the component buffer. You must reload the component for the new setting to take place.
Parameters
| Parameter | Description |
|---|---|
|
Fieldname |
Specify the name of the field that you want the AuxMaskFlag property changed. This name must be prefixed by the reserved word Field. |
|
FlagNumber |
Specify the flag value, a number between 1 and 16. 1 is a ChartField. |
|
Setting |
Specify whether this flag should be on (True) or off (False). |
Returns
A constant value. The values are:
| Value | Description |
|---|---|
|
%MDA_Success |
Bulk operation completed successfully. |
|
%MDA_Failure |
Bulk operation did not complete successfully. |
|
%MDA_FieldNotFound |
The specified field was not found in the database. |
Example
&ret = SetDBFieldAuxFlag(Field.OrgId, 1, True);
If (&ret = %MDA_Success) Then
MessageBox(0, "Metadata Fn Status", 0, 0, "SetDBFieldAuxFlag succeeded");
Else
MessageBox(0, "Metadata Fn Status", 0, 0, "SetDBFieldAuxFlag failed");
End-If;
Considerations Using this Function
This function is intended for use during configuration time only, before active runtime usage is initiated. Using this function during active runtime is not supported. Changes to data definitions are not recognized on currently loaded component. In general, changes aren't recognized until the component is reloaded.
WARNING:
These operations take place in a separate transaction from the page's save status: the initiation of any of these operations immediately changes the definitions, even if the page is subsequently cancelled.
Related Topics