English
Instant Developer Foundation Documentazione
  • Reference Librerie
  • Document Orientation
  • ID Document
  • Proprietà

Set Named Property Value

procedura link

Scopo

Questa procedura permette di impostare il valore di una proprietà calcolata (named property) del documento.

Sintassi

IDDocument Doc = new() // Il documento in cui impostare la proprietà
// 
Doc.SetNamedPropertyValue(nome proprietà, valore)

Argomenti

Nome Proprietà E' il nome della proprietà calcolata da impostare
Valore E' il valore a cui deve essere impostata la proprietà calcolata

Esempio di codice

// *******************************************************
// Called when a field in a row has been changed by a user
// *******************************************************

event Ispettore.ProprietàOggetto.OnUpdatingRow(
  int Column // Column that has been changed. Use the Me function of the panel field object ...
  boolean FieldModified    // This parameter is TRUE if the field has been actually modified
  boolean FieldWasModified // This parameter is TRUE if the field has been modified in the l...
  boolean RowWasModified   // This parameter is TRUE if the row was already modified. It is ...
  boolean Inserting        // This parameter is TRUE if the row is a new row
  inout boolean Cancel     // Set to TRUE to let the user correct an error condition
)
{
  // Se l'utente ha aggiunto una named property all'ispettore...
  if Column = ProprietàOggetto.NomeProprietà.Me()
    ...
  // 
  // Se sto modificando il valore di una named property

  if Column = ProprietàOggetto.ValoreProprietà.Me()
  {
    // Se è una named proprerty
    if IsNull(ProprietàOggetto.IndiceProprietàOggetto)
    {
      IDDocument doc = null // 
      // 
      doc := Struttura.ActiveDocument
      // 
      // La imposto nel documento

      doc.SetNamedPropertyValue(ProprietàOggetto.NomeProprietàOggetto, ProprietàOgget-
         to.ValoreProprietàOggetto)
    }
  }
}
  • Se il documento non riconosce la proprietà non accade nulla.
  • Per reagire all'impostazione di una Named Property il documento deve implementare l'evento OnSetNamedPropertyValue.

Ultima modifica: 25/10/2016 / Validità: da 6.5.2680

Vedi Anche

  • On Set Named Property Value (evento)

Hai trovato utile l'articolo?

Grazie per il feedback!

Ti serve altro aiuto?

Consulta il Forum