Fórum Duvida em DBNavigator! #218643
05/03/2004
0
Atenciosamente
Luiz Claudio V. Santos
Luiz.claudio.vieira
Curtir tópico
+ 0Posts
05/03/2004
Andremuller
DBNavigator1.VisibleButtons := DBNavigator1.VisibleButtons - [nbInsert]
else
DBNavigator1.VisibleButtons := DBNavigator1.VisibleButtons + [nbInsert]
É isso que tu quer fazer?
Gostei + 0
05/03/2004
Andrey
if Button = nbInsert then
if then
Abort;
Gostei + 0
05/03/2004
Andrey
if Button = nbInsert then if <usuario não pode inserir> then Abort;
Gostei + 0
05/03/2004
Luiz.claudio.vieira
Gostei + 0
05/03/2004
Andremuller
Não entendi direito a tua pergunta.
Gostei + 0
05/03/2004
Luiz.claudio.vieira
Gostei + 0
05/03/2004
Andremuller
O fato de navegar nos registros não faz o botão voltar. Tem alguma coisa errada aí.
Um forma bem simples de cancelar a inserção para alguns usuários é no evento AfterInsert do ClientDataSet. Põe lá um:
if UsuarioNaoPodeInserir then
ClientDataSet.Cancel;
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)