Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

one client app makes changes in a table in mysql and refresh the information in a tableview of anoth

e424e367-62fc-45da-975e-ccc16145d491May 31 2016 — edited May 31 2016

Crossposted:

I got an JavaFX aplication that usally makes CRUD operations in to a MySQL data base, there are many users at the same time its rare but they could be working in the same type of object.


when the user makes changes to the data base table the view refresh with the changes and there is no problem, but the problem i have is when other user makes changes in the same table i dont know how to tell to the app that is time for a new conection to the data base and fetch the new data.

i could create a schedule service that make the data fetch every X time, but this is less than optimal i hope for a better solution.

so here is my question: how to tell the app a change is make in the data base and needs to get the new data? or there is better approach for share changes between clients apps ?

Comments

user12947051
Answer

Seems that when I use strings directly, something foes wrong. I have to use different notation, like

&formulaUse4=code

&col4="bla-bla3"."Year%20Month"

&op4=bet

&val4="[Dim bla-bla3].[<Year%20Month Decriptor ID>].&[201501]"+"[Dim bla-bla3].[<Year%20Month Decriptor ID>].&[201504]"

In this case not strings are being compared, but string IDs. In my case "Jan 2015" < "Apr 2015", so no data returned. After putting data into fields and manual press on Apply button OBIEE already uses IDs instead of strings. Wow.

Marked as Answer by user12947051 · Sep 27 2020
1 - 1
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jun 28 2016
Added on May 31 2016
0 comments
397 views