building a toolbar with icons , like delete, save , clear ... and want to be flexible when having more then one datasource. When pressing the DeleteIcon i call a action that calls PKG.Proc (api_datasource.deleterowbyid) The Parameter "in_datasourcename_tx" needs to be flexible.
I don't found an API Call the return the currentDataSourceName (but current DataSourceSchema) ? Can i pass datasourcename via an action to a plsql procedure ? What would be the best way ?
I want to use that toolbar in many application.
Thanks Uwe K
asked 29 Aug '12, 04:31
The thing to understand with Formspider is that the moment you click on a button (or any other component), the 'cursor' (ie the focus) is at the component that you clicked on. When there are multiple grids on a screen, there is no way for Formspider to know the previous focused component/grid. So if you need one toolbar to handle actions for multiple grids/datasources, you will have to set the datasource name at the moment you enter the grid (or other component).
In a grid you can user the focusGain event. On this event you could set the grid datasource name to a session variable.
The toolbar button can look at the session variable datasource name.
Best regards, Michiel A.
answered 22 Feb '13, 03:13
In Formspider, there is not a "current datasource" concept. Instead there is a "current object" concept where the object can be either a panel, a dialog or a component (grid, textField, button...etc). But since some of these Formspider objects can not be bound to a datasource (like the button component for example), the "current datasource" concept is not applicable for Formspider.
You can retrieve the name of the current Formspider component through the
To achieve your request, you can use a session variable holding the name of the screen which is currently displaying in your application. Just set this session variable when you open a screen. So that in the action code of your toolbar button, you can get the current datasource according to the value of your session variable, which is the name of your current screen.
answered 29 Aug '12, 07:07
Ibrahim Sand... ♦♦