Note: This page includes content based on the F1 documentation for Centura development. It may be partially converted to support APF development, but should be regarded to be of uncertain actuality. It is provided as is. Eventually, it should be replaced by documentation available from within Visual Studio.
Note: This page includes content based on the F1 documentation for Centura development. It may be partially converted to support APF development, but should be regarded to be of uncertain actuality. It is provided as is. Eventually, it should be replaced by documentation available from within Visual Studio.
SalNumber EditDataItemFlagSet(SalNumber nFlags, SalBoolean bSet)
The EditDataItemFlagSet method set's or clears one or more data item field flags.
Name | Description |
---|---|
SalNumber nFlags | Flags to set or clear. Specify any Const.FIELD_* constant. You can combine several flags with the or (|) operator. |
SalBoolean bSet | Specify true to set the data item flag, false to clear it. |
This method does not return a value.
Data Field: dfdScheduledDate Message Actions On SAM_Create Call SalSendClassMessage( SAM_Create, wParam, lParam ) ! Field is disabled due to not having a editable data source. Set item to editable. Call EditDataItemFlagSet( FIELD_Update, TRUE )Following is the way to implement the above Centura example in the application Formsthis.dfdScheduledDate.MessageActions += new SalMessageHandler(this.dfdScheduledDate_MessageActions);private void dfdScheduledDate_MessageActions(ref SalMessage message) { #region Actions switch (message.Code) { case Sys.SAM_Create: this.dfdScheduledDate_OnSAM_Create(ref message); break; } #endregion }private void dfdScheduledDate_OnSAM_Create(ref SalMessage message) { #region Actions message.Handled = true; Sal.SendClassMessage(Sys.SAM_Create, Sys.wParam, Sys.lParam); // Field is disabled due to not having a editable data source. Set item to editable. this.dfdScheduledDate.EditDataItemFlagSet(Const.FIELD_Update, true); #endregion }