PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WEBDEV 2024 → Automatic refresh data in table window
Automatic refresh data in table window
Started by Wim, May, 28 2013 9:09 AM - 4 replies
Posted on May, 28 2013 - 9:09 AM
Hello,

Newby,
How to refresh data from tablein window.

We update a table with other application and we need the updated table automaticly display in a other
web application continue.

Regards,

Wim.
Registered member
45 messages
Posted on May, 28 2013 - 9:38 AM
Your questions is not completely clear to me, but maybr you can try this first:

Check out the command
HExecuteQuery
This will refresh your table, assuming your table gets its data from an underlying query and not purely by programming.
Posted on May, 28 2013 - 2:19 PM
Hi Wim

it seems to me that you are using the word table both for a file and for
a control... In webdev, a table is a control, and we call files elements
of a DB.

So if I understand correctly, you have another application
adding/modifying information in a FILE of a DB, and you hae a web page
on which this information should be displayed when it is added/modified...

In order to do that , you need to add a timer to your page, and in the
procedure called by timer (every 30 seconds, by example), you do a call
with ajaxeecute to check if something has been changed in the file. The
server code should use hversion to check if the file has been modified
and return true or false

If the file has been modified, the browser code should then proceed to
run the table control init code again, in order to refresh its content

Best regards

--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

New web site (EXPERIMENTAL) http://www.fabriceharari.eu
(More information on http://www.fabriceharari.com)


On 5/28/2013 1:09 AM, Wim wrote:
Hello,

Newby,
How to refresh data from tablein window.

We update a table with other application and we need the updated table
automaticly display in a other web application continue.

Regards,

Wim.
Posted on May, 28 2013 - 6:42 PM
Yes.
Modifying DB table (Mysql) with a Windev Application.

Continuing automatic displaying the modifyed DB(Mysql) Table in webpage developed WebDev page appl.

So a timer who refresh every 30 Seconds with a query the data in the webpage?.

Maby some small code sample.
Regards,

Wim.
Posted on May, 29 2013 - 7:53 PM
:)
Question

Modifying a DB table (Mysql-database) with a Windev Application.

With web application WebDev automatic displaying the modifyed DB(Mysql) with refresh rate 15 Seconds .

I think use a timer on the page for refresh the data.

Maby somebody have a very simple piece of code for me to begin.

Regards,
Workingwim.