Page 1 of 1

Adding actions

PostPosted: Tue Apr 25, 2017 5:07 pm
by carlos torres
Dear NB Team

TIA

Is it possible to add some actions to the navigation bar when I show data using a grid (dbpSetGridProperties)?
i.e. to initialize some variable or doing any subroutine when it is added a new record?

I will appreciate any help.

regards
carlost

Re: Adding actions

PostPosted: Wed Apr 26, 2017 9:20 am
by Danito
Al abrir una tabla te permite ejecutar una subrutina que tu elijas y que se activa cuando navegas entre los registros, tu tarea es crear esa subrutina que verifique si el cambio se debe a un nuevo registro.

Code: Select all
dbpOpenTable "DB1" "sales" "OnChangeSub"

Re: Adding actions

PostPosted: Wed Apr 26, 2017 7:31 pm
by Neosoft Support
It's not possible to add anything to the grid's built-in navigation bar. However, you can hide the navigation bar (dbpSetGridProperties) and create your own custom nav bar using NeoBook objects and DBPro actions.