Oracle APEX: Update Table based on changes in an Interactive Grid - sql

currently i am facing a problem on how to update a single row in an interactive grid. am trying to update the table (Interactive Grid) based on the changes the user has made. I followed the guide from APEX 5.1.
Unfortunately the rowid function didn't work.
My code:
update poc_sofortmassnahme
set BESCHREIBUNG_SOFORT = :BESCHREIBUNG_SOFORT,
BEARBEITER_SOFORT = :BEARBEITER_SOFORT,
ZIELDATUM_SOFORT = :ZIELDATUM_SOFORT,
WIRKSAMKEIT = :WIRKSAMKEIT
where rowid = :ROWID; // doesn't update the row.
Any help is appreciated.

Interactive Grid can be editable (as tabular forms used to be in previous versions), so I'd suggest you to use that functionality instead of reinventing the wheel. Because, it seems that you're trying to do your own row processing while there's no need to do that.

Related

Race condition in Google Appsheet when updating row after created

It seems I'm experiencing a race condition in Google Appsheet:
I've configured a Behavior in my form view: Once the form is saved -> run 'Data: set the values of some columns in this row' (edit one of the fields). Looking in the chrome developer tools, I see two calls are sent to AppSheet API - one to create the row and another to edit it:
The update is working correctly. Still, then there is a screen flickering, and the original value before the set data action overrides the edited value again. Eventually, the initial value is saved to the DB, not the new one.
My app is working against Postgres (RDS) DB
https://www.appsheet.com/api/template/<row_id>/table/<table_name>/row
https://www.appsheet.com/api/template/<row_id>/table/<table_name>/row/update

BigQuery - Reference Nested Data In Single Column?

I'm new to SQL, so I'm not even sure I'm asking the question correctly.
I connected my Google Analytics 4 to BQ to save all the data. When I open up the preview, I'm seeing multiple rows nested in a single column.
See image
Since I'm new, I'm not even sure I'm using the right language to describe this, so any corrections are welcome.
If I wanted to add a WHERE to only bring up certain page_location, how would I do that? The typical 'WHERE page_location = https://blahblahblah' doesn't work.

PowerApps - How to Edit a Form from a Gallery list result in one screen

In One screen, I have a gallery list with a button along each rows. Upon hitting the button it will display the details in a form. This form should be editable. Is it possible to do it?
My source is a SQL table.
Here's my code
Form:
Item Property
Gallery2.Selected
Edit button: OnSelect
EditForm(Form1);Navigate(Form1, ScreenTransition.None)
Thanks for the usual help.
For use case I used D365 as database and Account Table as data.
In first image you will see Acccount name and phone number and so on.
Now as you wished when clicked on arrow it shall show data of that particular record but in edit mode. Now in 2nd image you will get data in edit mode.
How do you achive this? Below code will help achive this.
EditForm(EditForm1);Navigate(EditScreen1, ScreenTransition.None)
The answer is yes for editable.
I have used Azure SQL database.
Pre:
Spin up the Azure SQL database ( Free of cost up to some limit)
Create a table with some data
In Powerapps:
Assuming once you have created connection to Azure SQL database
Then insert > Edit form.
Add the SQL Data connection > select the fields
Add a button > in the screen > change the forumula to SubmitForm
The following is the most imp bit.
Note : Edit Text field will not appear if the table doesn’t have Primary key assigned
Once the record is edited. You can send the Success Notification using formulas. Sample below
To Notify Success:
Notify("Data Successfully
Updated",Success);SubmitForm(Form1);Navigate(HomeScreen,ScreenTransition.Cover)
For Clarity
Hope it helps

delphi create sql select statement at runtime

I am attempting to create a sql statement in XE8 at runtime to search an oracle database based on the value in a textbox. I find multiple different ways that attempt to explain this online, but I am not understanding what it is asking.
I want to search a server based on a select statement and populate TDB components (labels only) based on the data. The furthest I have gotten is to get data populated, but the where
' ... somevalue = ' + textbox.text;
seems to have no effect.
What components do I need to make this happen? I am connected to the database, and it appears that I can get some kinda data out of it, but I can't seem to figure out how to filter the results. Obviously, I cannot create this sql statement at design time as the value of textbox.text will change depending on the user's input.
My error was in how to dynamically change what the data aware components got data as it would not always be the same. I had to manually go in and modify their datafield properties. Once I did this, my query functioned correctly.

How to automatically retrieve data when new data detected and show on datagridview?

Currently I have a public retrieve class, and a timer to execute this retrieve class every 3 seconds. But I realized that there is a problem when more and more data comes in. I cannot drag up or down when I'm trying to view each row because every 3 second it continuously retrieve data from table and the datagridview keep repopulate.
(window form)
I got another solution and just wanted to ask expert(s) or guru(s) whether it is workable or not? Or maybe some one can guide me to another solution?
My second solution:
1. Retrieve count() [current rows in table] and paste it to label.
2. Use data reader to read the count() table every 3 seconds, if has row then perform no action, if has row = false then execute retrieve class.
Have you tried Data Binding your data to your visual elements? Also here. This would be the standard approach for hooking up your UI layer and backend, and is event driven rather than requiring, for example, polling.