DbComBox, DbRadioMenu, DataSet
Publicado: Mié Feb 05, 2025 4:14 pm
Hi Team
To simplify a part of the development (extremely important), please:
Can I send all the code to your email?
To simplify a part of the development (extremely important), please:
- a small adjustment in DBComboBox (bound), start empty (index=0) when in addNew mode, like other nDataTypes.
- is it possible to implement the onLoaded event for DataSet? to be triggered after we call :edit() or :addNew().
After these methods are called, we cannot make adjustments to controls, etc. from within the Form coding (only from the outside) - is it possible to implement aItemsBound for DBRadioMenu?
Can I send all the code to your email?
- I made the adjustment (DBComboBox).
- I made a simple adaptation (DataSet/dbfDataSet). I added DATA bLoaded, etc...
- I made the implementation (partial/DBRadioMenu). It only works when adding/changing, but when browsing records the control is not updated.
Código: Seleccionar todo
METHOD FormInitialize( oSender ) CLASS TFrmCliente
::oRSMain:bLoaded:={|o|::ModeAppend(o)} // Initializing here (while there is no event)
::oRMTipoPessoa:aItemsBound:={'J', 'F'}
::oFpPrincipal:Select()
RETURN Nil
METHOD ModeAppend(oDs) CLASS TFrmCliente
if oDs:lOnAppend
::oRMTipoPessoa:nIndex:=1 // 1-JURIDICA, 2-FISICA
::oRMTipoPessoa:OnChange()
else //if oDs:lOnEdit
::oRMTipoPessoa:Disable()
::oRMTipoPessoa:OnChange()
endif
RETURN NIL