QSRules - Transaction.entries.Add No refresh

Hi All,

I am adding items to a sale via a COM Add-in attached to a custom button at POS. The code seems to be working fine but the screen does not refresh after the item is added via QSRules - The only way I can get it to refresh is to add another item to the sale and then my item appears.

I am unable to use PerformAddItem from QSBridge as I am using a COM add-in which does lots of other stuff. Am I missing a call to some sort of refresh event?

Has anyone struck this before? Do you have a workaround?

Kind Regards,

Jason.

Reply to
Jason
Loading thread data ...

Jason,

Use RefreshDisplay

CP.Dinesh

"Jas> Hi All,

Reply to
C.P.Dinesh

I can't seem to find it could you give me the exact command? I've looked through QSRules and was wondering if this was just a QSBridge command?

My problem is slightly different. When I call Session.Transaction.Entries.Add, it adds the item to the screen but doesn't move the cursor down and is slow to perform validation. Also, the validation doesn't interact with the transaction screen (IE. Warning 901 The Item is Out of Stock. Do you wish to Continue? Yes or No. Either Response will just return to the transaction screen). The QSBridge PerformAddItem works the way I want it too, however, I don't know how to call that from a com object.

Thanks,

Jamie

"C.P.D> Jason,

Reply to
Jamie

Hi Jason,

Your add-in probably works, but it is the grid that is problematic. It's in memory already but somehow the grid does not update automatically. If you scroll down to the very bottom of the grid by pressing the down key, and then press the DEL key, your missing line will magically appear. So one workaround you can try doing programmatically is:

  1. Set the current focus to the grid.
  2. Send DOWN keystrokes until the cursor is at the bottom of the grid.
  3. Send the DEL keystroke to force the grid to refresh it's display.

That worked for me...

"Jas> Hi All,

Reply to
Ruel

Ruel, what is the proper syntax in qsrules for setting the focus back to the transaction grid?

Thanks, Kevin

Reply to
kskinne

Hi Kevin..

when you complete the transaction add you can send this command (all custom-forms must be closed!)

SendKeys("{DOWN}")

example:

private refreshDisplay as boolean

Public Function Process(p as qsrules.sessionclass) as boolean if refreshdisplay = true then sendkeys("{DOWN}") end function

Reply to
Antonio Mazzeo

Hi Antonio, thanks for the reply, but that did not work - I placed the reference to the private refreshDisplay as boolean

at the top of my code in my class module, and add the

if refreshdisplay = true then sendkeys("{DOWN}")

after the point in the code where the userform closes, but it is not moving my cursor down. any ideas?

thanks, kevin

"Ant> ksk> > Ruel, what is the proper syntax in qsrules for setting the focus back to the

Reply to
kskinne

Antonio, never mind my previous post - i discovered that I had a message box in my code that was interfering with the sendkeys command - i removed the msgbox, and it worked perfectly - thank you

kevin

"Ant> ksk> > Ruel, what is the proper syntax in qsrules for setting the focus back to the

Reply to
kskinne

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.