Ver Mensaje Individual
  #9  
Antiguo 06-08-2003
__cadetill __cadetill is offline
Miembro
 
Registrado: may 2003
Posts: 3.387
Reputación: 25
__cadetill Va por buen camino
Cita:
Posteado originalmente por Giniromero
1) ¿Cual es la diferencia, entre el ON POST, y el ON SERVER dentro de las propiedades del IBDataSet, generatorField, Apply Event?
Sacado de la ayuda de Delphi

Cita:
Indicates when the TIBGeneratorField instance calls the server to generate a value for the associated field.

type TIBGeneratorApplyEvent = (gamOnNewRecord, gamOnPost, gamOnServer);
property ApplyEvent : TIBGeneratorApplyEvent;

Description

Set TIBGeneratorApplyEvent to indicate when the server generates field values using this generator. ApplyEvent has one of the following values:

Value Meaning

gamOnNewRecord The dataset calls the server to generate the field value immediately after it inserts or appends a new record (before the OnNewRecord event).
gamOnPost The dataset calls the server to generate the field value immediately before it posts a record to the server (before the BeforePost event).
gamOnServer The dataset does not need to call the server to generate field values: the server generates these values automatically. When ApplyEvent is gamOnServer, TIBGeneratorField serves primarily to ensure that the user is not required to enter a value in the field.

Note: Regardless of the value of ApplyEvent, applications can generate the field value at any time by calling the Apply method.
Si utilizas el gamOnServer, no veras los cambios hasta que no comfirmes la transaccion con un commit o un commitretaining

Cita:
Posteado originalmente por Giniromero
2) Tengo una "Tabla" en la aplicación, que sólo quiero usar para insertar nuevos registros. ¿es necesario que me muestre todos los registros o hay alguna manera de acotar los registros que muestra al mínimo posible?
No entiendo lo que quieres hacer. Podrias mirar de explicarlo algo mas?

Cita:
Posteado originalmente por Giniromero
3) en uno de los campos que tengo, en uno de mis form, necesito que sólo figure la hora, pero me aparece la fecha y la hora, lo cual es un problema para mi aplicación. ¿Hay alguna manera de que sólo me muestre, en el TDBEdit, lo que pido?

He probado con EditMask de las propiedades del propio campo, dentro de la tabla, pero no sirve de nada, sigue saliendo día y hora.
Utiliza el DisplayFormat con algo como hh:nn

Espero te sirva
Responder Con Cita