display information at html Status Bar

I am working with a com add-in. I created a custom button which allow user to enter information and then save to database. After it is saved, I would like to display that information in Status Bar. I have created the html page to display the data. It works fine when pos is first loaded.

Now the problem is: how to refresh the data after user enter information? Is something like fireevent I can use for this?

Another problem, when the form pop up, how to make sure it is always focused? That is, user can not click pos while the form stays open?

Many thanks

Leanne

Reply to
Leanne
Loading thread data ...

Hi Leanne,

You can have the status page call a refresh function every certain amount of seconds -- the default RMS status screen does this through Window.SetInterval(...).

To keep the form focused in c#/vb.net call form.ShowDialog(), in VB try form.Show vbModal

- Evan Culver New West Technologies

Reply to
Evan Culver

Thanks Evan. I have a temporary variable which I stored at Sessionclass.Variable(1) and I would like to refresh that as well. Window.SetInterval() doesn't work for that. any more suggestions?

Leanne

Evan Culver wrote:

Reply to
Leanne

Leanne,

Once you have a QSRules object (see RMS default), you can get/set the session variable via QSRules.Session.Variable(1).

- Evan Culver New West Technologies

Reply to
Evan Culver

BeanSmart website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.