在工作站上自动更新前端 [英] auto updating front-end on workstations

查看:53
本文介绍了在工作站上自动更新前端的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在阅读名为Re:拆分数据库的线程,我该如何部署前端? Denburt提到了我对我的数据库感兴趣的事情,那就是为每个用户前端创建一种方法,以便在我对服务器上的前端副本进行修改时进行识别。我想我想要一种推的方法。工作站的更新版本,或者他们的FE副本的方式,看看有更新的版本,并给他们一个选项来更新他们的副本。


Denburt给了他所做的简要说明,引用了主菜单。这样的东西(会像Switchboard一样吗?)但是我希望看到更具体的建议,编码等给我一些合作的东西。不必去每个工作站并手动复制/替换每个人的前端一定会很好。


谢谢!

I was reading the thread called "Re: Split the DB, how do I deploy the "Front-end"?" and Denburt mentioned something that I''ve been interested in doing with my database, and that is to create a way for each users front-end to recognize when I have made a modification to the copy of the front-end on the server. I guess I''d like a way to "push" the updated version to the workstations, or a way for their copy of the FE to see that there is a newer one, and to give them an option to update their copy.

Denburt gave a brief explanation of what he does, referencing a "main menu" and stuff like that (would that be like the Switchboard?) but I would like to see more specific suggestions, coding, etc to give me something to work with. It would sure be nice to not have to go to each work station and copy/replace everyone''s front end manually.

Thanks!

推荐答案

在我的头脑中,我这样做的方法是更改​​文件的名称以包含版本号。然后你可以使用代码检查更大的版本号,然后复制它,如果有更新的版本号。
Off the top of my head, the way I would do it is to change the name of the file to include a version number. Then you could use code to check for a larger version number and then copy it if there''s a more recent one.



关闭我最喜欢的方法是更改​​文件名以包含版本号。然后,您可以使用代码检查更大的版本号,然后复制它,如果有更新的版本号。
Off the top of my head, the way I would do it is to change the name of the file to include a version number. Then you could use code to check for a larger version number and then copy it if there''s a more recent one.



有道理。那么是否有代码关闭db文件并重新打开新文件?例如,如果我每次打开文件时编写代码以查找更新的版本,那么该文件中的代码是否可以重新启动更新的版本?

Makes sense. Then is there code to close the db file and reopen the new one? For example, if I write the code to look for a newer version each time the file is opened, can code within that file relaunch the updated one?


我有一个系统设置到哪里每次用户启动FE时,他们实际上都在调用批处理文件,将当前版本复制到本地驱动器,然后启动它。这样我知道他们每天都在使用最新版本。这是我在该过程中所做的帖子:
http://www.thescripts .com / forum / thread760986.html


但是,我也使用了版本,带有一个小的表单,在加载时启动,显示他们的版本#以及该修订版中发生变化的信息。这个表单上有一个简单的确定按钮,它只是让它变得不可见。在此表单上设置了一个计时器,因此每5分钟检查一次BE版本#(存储在版本控制表中),并将此数字与前端版本#(存储在容纳FE常量的模块中)进行比较。如果我进行更新,我会在新FE和BE表中更改版本#。过时的FE'上的隐藏表单将检测新的当前版本#,并提醒用户新版本可用,将表单设置为可见,然后显示有关新可用版本的任何信息想。这允许他们决定是否要重新启动并获得新版本,或者继续使用他们拥有的版本。一旦收到警报,表格计时器将重置为零,然后再次隐藏,否则他们每隔5分钟就会因更新通知而烦恼。


背后的编码非常简单,但如果你想让我发布我所做的事情,请告诉我。
I have a system set up to where every time a user starts the FE, they are actually calling a batch file that copies the current version to their local drive, and then starts it. This way I know they''re using the most current revision every day. Here''s the post I did on that process:
http://www.thescripts.com/forum/thread760986.html

But, I''ve also employed versioning as well, with a small form that starts on load, showing them their version # and information on what has changed in that revision. This form has a simple ''ok'' button on it, which just turns it invisible. There''s a timer set on this form, so that every 5 minutes it checks the BE version # (stored in a versioning table), and compares this number against the front end version # (stored in a module which houses the FE constants). If I make an update, I change the version # in the new FE, and in the BE table. The hidden form on the outdated FE''s will detect the new ''current'' version #, and alert the user that a new version is available, set the form to visible, and then show whatever information about the new available version I want. This allows them to decide if they want to restart and gain the new version, or to keep working with the one they have. Once alerted, the form timer resets to zero, and goes hidden again, else they''ll be annoyed every 5 minutes with the update notice.

The coding behind it was very simple, but if you want me to post what I did just let me know.


这篇关于在工作站上自动更新前端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆