Archive: Call a function on Next button click of a page


Call a function on Next button click of a page
Hi
i have a custom page
Page custom SelectDatabaseDialog ValidateDatabaseDialog ""

i need to call a function on Next button click of the page.
i should use the function ValidateDatabaseDialog for that purpose.

any ways to do that?


Create a function ValidateDatabaseDialog, that's all:

Function ValidateDatabaseDialog
; Validation code
FunctionEnd

hi thanks for reply
sorry i was wrong
my actual question was
i have a custom page
Page custom SelectDatabaseDialog ValidateDatabaseDialog ""

i need to call a function on Next button click of the page.
i should NOT use the function ValidateDatabaseDialog for that purpose.

i need to use ValidateDatabaseDialog function only for validation not for Next Button functionality because if i use the same function for Validation/Nextbutton functionality there are many problems with Tab Button on key board


any ways to do that?


OK, then why not simply use another functionname, like
Page custom SelectDatabaseDialog SelectDatabaseDialogLeave ""


u mean SelectDatabaseDialogLeave function for Data validation of the page , then how can i call some other function on Next button click?
sorry if i am immature ,please elaborate
i dont know way to use different functions for Page data validation and Next Button functionality


Maybe you better summarize what you want to achieve, because I don't understand what the problem is...


I have 2 radio bottons on custom page
on change of state of the radio buttons i have to enable disable some other elements. i used NOTIFY flag and
i have done so using the function ValidateDatabaseDialog.

Page custom SelectDatabaseDialog ValidateDatabaseDialog ""

now i want to use another functon which is supposed to be inveoked on Next button click of the Custom Page


either u can tell me how to avoid tab shifting (control/focus shifting using the Tab button on key board) even after setting the Radio button Notify flag