Home Page link  

SetCustomer internal command error for Custom POS Button

 

Point-Of-Sale Software - - MS Point Of Sale software discussed here

 Post an article  get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content  add this group's latest topics to your Google content  YahooMyWeb Yahoo!  Google Google  Windows Live Favorites Windows Live  del.icio.us del.icio.us  digg digg  Add to Netscape Netscape
Subject Author Date
SetCustomer internal command error for Custom POS Button Ariø âv+ºË"¢{&‰Ê貇ír‰ 07-12-2005
Posted by Ariø âv+ºË"¢{&‰Ê貇ír‰ on July 12, 2005, 8:56 pm
Please log in for more thread options
For the Custom POS button, I have one of the buttons to set my customer. I
use the Internal Command for the style and my command is "SetCustomer".
However, when I try it in my POS screen, I get this error message:

"BridgeReceiptor::OnFireEvent
An Error occured in the event 'SetCustomer'.
Error 5: Invalid procedure call or argument"

How can I fix this?
Thanks for your help.




Posted by Rizza on July 13, 2005, 11:03 am
Please log in for more thread options
Ari,

If you wanted to select a customer and use the custom POS buttons, the
command should be SelectCustomer and not SetCustomer :)



Posted by Ariø âv+ºË"¢{&‰Ê貇ír‰ on July 14, 2005, 8:00 am
Please log in for more thread options
I want to put the customer's info in my work order. The SelectCustomer does
not do this.

"Rizza" wrote:

> Ari,
>
> If you wanted to select a customer and use the custom POS buttons, the
> command should be SelectCustomer and not SetCustomer :)
>
>


Posted by stevepet on July 15, 2005, 6:03 am
Please log in for more thread options
This is, in my opinion a pretty big limitation in RMS. You will need to
do both a SelectCustomer and then a SetCustomer to the one selected.
You can do this with javascript within an HTML file attached to a
custom button. Once you do that you will see a BUG in RMS that causes
the screen to not refresh properly.

This drove me crazy for about a year. I have a solution that works
around the BUG and I have included the code for the custom button
below.

It will probably be unreadable as I post it in this group, but do your
best to pick out the code. Copy it to a file and call it
getCustomer.html, put the file in your "Store Operations" HTML
directory, then attach it to a custom POS button and make the style
"HTML Window".

It is a hack, but it works. If anyone has a better solution, please
post it.

Regards,
Steve P.

<html>
        <head>
                <meta http-equiv="Content-Language" content="en-us">
                <link rel="stylesheet" type="text/css" href="style.css">
                        <script type="text/javascript" language="javascript"
src="global.js"></script>
                        <title>Taskpad</title>
                        <OBJECT classid="clsid:44C4C3AC-D0F1-11D2-919D-006008C88FC3"
height="0" id="qsBridge" style="LEFT: 0px; TOP: 0px" width="0">
                                <PARAM NAME="_ExtentX" VALUE="26">

                                <PARAM NAME="_ExtentY" VALUE="26">
                        </OBJECT>

<script language="javascript">
<!--
function getCustomer()
{
var custid;

setTimeout("custid = qsBridge.FireEvent('SelectCustomer');
if (custid != 0)
{
qsBridge.FireEvent('SetCustomer', custid);
}
qsBridge.FireEvent('ShowTransaction');", 10);
}
//-->
</script>
</head>

        <body onload="getCustomer()" scroll="no" STYLE="position:absolute;
top:0px; left:0px; width:100%; height:100%; padding:10px; font:bold
13pt verdana; color:white;
filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=1,
StartColorStr='#8eb6d9', EndColorStr='#000000')">
<font size=7>Any Info you like</font><br>
<font size=4>can be put here.</font>
        </body>
</html>



Posted by Rizza on July 15, 2005, 3:05 am
Please log in for more thread options
Like what info?

You can put the customer info in the receipt. You just need to edit
the .xml file.



Similar ThreadsPosted
How to execute internal command with a custom POS button? November 27, 2007, 10:41 am
Custom Buttons and Internal Command questions June 20, 2006, 10:50 am
Custom button for Internal html window July 20, 2006, 2:03 am
Discount Internal Command June 18, 2006, 11:10 am
Internal Command list June 19, 2006, 11:50 am
Internal Command variables December 1, 2007, 5:18 pm
Internal Command to increase quantity March 20, 2008, 8:19 pm
Open/Close internal command October 29, 2008, 12:38 pm
custom button error February 22, 2006, 1:56 pm
Internal Commands for Custom POS Buttons March 16, 2006, 1:59 pm

Contact Us | Privacy Policy
This site is not affiliated with Intuit - makers of Quickbooks and Quicken software
This site is not affiliated with Sage Software - makers of Peachtree accounting software
XML SitemapXML Sitemap