Condizioni di notifica
Questo evento viene notificato da un pannello con il controllo di visibilità dei campi in lista attivo (vedi nota di rilascio) quando l'utente mostra o nasconde un campo.
Utilizzo consigliato
Questo evento è consigliato per salvare lo stato di visibilità dei campi di pannello usando le funzioni GetPanelConfiguration o SaveRTCPanelConfiguration.
Argomenti
Field Index | E' un numero intero che rappresenta il campo del pannello. Deve essere confrontato con la proprietà Me del campo di pannello. Questo parametro vale -1 per la chiamata Final. |
Visible | Il nuovo valore di visibilità del campo. |
Final | Questo evento viene chiamato per ogni campo per cui cambia la visibilità, più una volta al termine dell'operazione. Durante quest'ultima chiamata il parametro Final vale True. |
Esempio di codice
// **********************************************************************************************************
// Event raised by the panel when the user chenges the visibility of a list field by using the client control
// **********************************************************************************************************
event Employees.Employees.OnFieldListVisibilityChanged(
int FieldIndex // An integer representing the panel field that has been shown/hidden.
int Visible // The new value of the 'show in list' flag
int Final // This event is raised for each field whose visibility changes, plus once more at the end of the operation. During this final call, the value of the Final parameter is True.
)
{
if (Final == true)
{
// Get the configuration of the panel
string s = Employees.getPanelConfiguration()
//
// Save the new configuration
MyApplicatioon.SavedConfig = s
}
}
// Event raised by the panel when the user chenges the visibility of a list field by using the client control
// **********************************************************************************************************
event Employees.Employees.OnFieldListVisibilityChanged(
int FieldIndex // An integer representing the panel field that has been shown/hidden.
int Visible // The new value of the 'show in list' flag
int Final // This event is raised for each field whose visibility changes, plus once more at the end of the operation. During this final call, the value of the Final parameter is True.
)
{
if (Final == true)
{
// Get the configuration of the panel
string s = Employees.getPanelConfiguration()
//
// Save the new configuration
MyApplicatioon.SavedConfig = s
}
}
Ultima modifica: 11/10/2019 / Validità: da 19.5.7600