Do flowfields trigger onModify event ? NAV - events

Do flowfields on a page triggers the on modify of a table ? As to what I have noticed, it doesn't ?
How can i trigger an any event(on validate, on modify) if a flowfield is changed on a page ?

No.
You can’t. Flowfields are calculated on sql server side and fetched only when you do get/find/calcfields.

Related

Vaadin 10 TreeGrid.refreshItem refrehes only after mouse click

I use a TreeGrid in Vaadin 10.
This is the way I set the data for the treeGrid:
treeGrid.setItems( customers, Dataline::getChildren );
When data is changed, I call
treeGrid.getDataProvider().refreshItem( line );
This updates the table only when I do a click a different element in the table.
If I do not click a different element, nothing happens.
What's the proper way to update data ?
Thanks for any help!
Thorsten
How does update happen? Is it from background thread?
If it so, you should use push Server push configuration to update the UI when new data is available.
Because it looks like update is happening only on the next server request (when you perform some action)
At least, the code you are using looks good and should work otherwise.

Update the newly added added data from database to gridview without reload and ajax

I have a gridview which is displaying list of transaction, now i am using ajax to fetch the top 100 records every 1 minute, my requirement is to update the grid view either by adding the updated record to the gridview or total gridview load.
when ever a new record is added to the grid view or update one record it should be reflected in the gridview, how is it possible without using ajax.
You can use Signal R and SQL dependency to update table when database change happens. SQL dependency will notify server about change in database and SignalR can pass data to client side to update the table
Link for SQl dependency
https://learn.microsoft.com/en-us/dotnet/framework/data/adonet/sql/detecting-changes-with-sqldependency
Link for signalR
https://www.asp.net/signalr

how to change the block status to insert in 10g using a button trigger

how to change the block or form status to 'insert' in oracle forms 10g using when-button-pressed trigger. I want to do the same thing like the 'insert record' button in the default tool bar but using a custom button
any ideas?
Call do_key('create_record'); in your when-button-pressed trigger. This will insert a new record in the current block with all, what state changes accordingly.
Changing the state with set_record_property(:system.cursor_record, :system.cursor_block, state, 'INSERT'); will not bring the exact same result. But give it a try!

Is there a way to force a single row refresh with SlickGrid?

I have the amazing SlickGrid configured to access data asynchronously and post user changes back to the server asynchronously. In general terms, the server may modify a few fields of a row based on the user's changes. As such, after the row is updated I would like SlickGrid to refresh only that row without changing the rest of the view.
Does anyone know how to do this?
In my case, the field that changes on the server is a timestamp associated with the record that is updated by a database trigger. If the timestamp is out of date, the user has an old copy of data, and if they submit changes, they may overwrite a new copy. Since I can't find a way to trigger a refresh, the user cannot modify their own changes without refreshing the browser window (forcing a complete refresh).
You should be able to do this using grid.invalidateRow() and grid.render(). SlickGrid will re-render the affceted rows (assuming they are displayed in the currently visible viewport) without refreshing the entire page.
// Mark row 42 as changed and re-render the display
grid.invalidateRow(42);
grid.render();
For an example check out SlickGrid Example 14. (Click the Start Simulation button to see it in action)
function updateSlickgrid() {
dataView.setItems(tableName);
grid.invalidate();
}
Note : tableName could be the array or id etc.
I prefer storing all the slickgrid data in the array ex tableName = [];
Keep using the above function when it comes to displaying the data in slickgrid

Creation of Multiple Actions on Onclick APEX

I am working in Oracle APEX .i want to create multiple actions onclick on one button.I want to insert the Table values and also want to redirect page in the same data base.
Regards,
If the button is submitting the page then you can create any number of processes, calculations, validations and branches that can be run conditionally for that specific button.
Your table insert would be a Process and your redirect will be a Branch.

Resources