HTML Status Bar


J

Josh

It there a way for me to customize the status bar to show the item picture
after a item is scanned?
 
Ad

Advertisements

R

Rob

Copy and past the code below into Notepad or Frontpage and save it as an .htm
file.
If you use Notepad be sure to change the File Type to All Files. Or just
piece the code that you need from this example into your file.
I modified this to display the image of the last item added to the
transaction or the currenlty highlighted item. If the item does not have an
image assiged then it displays a generic 'no image available' pic.

Rob


<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<title>Default Status Screen</title>
<style>

..LineHeader {
font-family: Arial;
font-size: 16;
color: white;
background-color: black;
}

..LineDivider {
color: white;
background-color: gray;
}

..LineData {
font-family: Arial;
font-size: 36;
color: #00FF00;
background-color: black;
}

</style>
<!--
// ------------------------------------
// external opjects used by JScript
// ------------------------------------
-->
<!--
// QSBridge exposes internal QSC objects and allows scripting language to
access information on the current
// transaction.
-->
<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="VBScript">
<!--

Dim TimerID


' ------------------------------------
' displayVariables
' ------------------------------------

Function displayVariables
On Error Resume Next

Dim QSRules
Dim Entry
Dim TransasctionItem
Dim txtItemLookupCode
Dim txtDescription
Dim txtPrice
Dim txtQuantity
Dim txtExtended
Dim PictureFileName

Dim RS
Dim SQL
Dim Conn

Set QSRules = qsBridge.RequestQSRules()

txtDescription = " "
txtQuantity = " "
txtPrice = " "
txtExtended = " "
txtPicture = "noimage.jpg"
PictureFileName = ""
SQL = ""

Set RS = Nothing

Set Entry = Nothing
Set TransactionItem = Nothing

If Not QSRules Is Nothing Then

' This line is valid after version 1.07
Set Entry =
QSRules.Transaction.Entries(QSRules.Transaction.CurrentEntryKey)


If Entry Is Nothing then
Set Entry =
QSRules.Transaction.Entries(QSRules.Transaction.Entries.Count)
End IF

If Not Entry Is Nothing Then
txtDescription = Entry.Description
txtQuantity = Entry.Quantity
txtPrice = FormatCurrency(Entry.Price)
txtExtended = FormatCurrency(Entry.ExtendedPrice)
SQL = "SELECT PictureName FROM Item WHERE ItemLookupCode = '" +
Entry.Item.ItemLookupcode + "'"
Set Rs = QSRules.OpenRecordSet((SQL),(-1))
If Not Rs.EOF Then
PictureFileName = Rs("PictureName")
End If
End If
End If

If Description.innerText <> txtDescription Then
Description.innerText = txtDescription
End If

If Quantity.innerText <> txtQuantity Then
Quantity.innerText = txtQuantity
End If

If Price.innerText <> txtPrice Then
Price.innerText = txtPrice
End If

If Extended.innerText <> txtExtended Then
Extended.innerText = txtExtended
End If

If PictureFileName <> "" Then
PictureFile.src = "C:\Program Files\Microsoft Retail Management
System\Store Operations\Pictures\" & PictureFileName
Else
PictureFile.src = "C:\Program Files\Microsoft Retail Management
System\Store Operations\Pictures\" & txtPicture
End If

End Function


Function doStartup

' use a timer to run displayVariables() periodically every second
TimerID = window.setInterval("displayVariables()", 500)

End Function

//-->
</script>
</head>
<body bgcolor="black" topmargin="0" leftmargin="0" onload="doStartup()"
scroll="yes">
<table border="0" width="100%" cellspacing="1" cellpadding="0">
<tr class="LineHeader" valign="top">
<td width="40%" align="left">
Description
</td>
<td width="10%" align="right">
Quantity
</td>
<td width="20%" align="right">
Price
</td>
<td width="20%" align="right">
Extended
</td>
<td width="10%" align="right">
Picture
</td>
</tr>
<tr class="LineDivider" width="100%" valign="top" height="1">
<td colspan="5">
</td>
</tr>
<tr class="LineData" valign="top">
<td width="10%" align="left" id="Description">

</td>
<td width="10%" align="right" id="Quantity">

</td>
<td width="20%" align="right" id="Price">

</td>
<td width="20%" align="right" id="Extended">

</td>
<td width="40%" align="right">
<img id = "PictureFile" height="100" width="110">

</td>
</tr>
</table>
</body>
</html>
 
V

Vince

Just wanted to say that was very very nice of you to write that code for the
person who needs it. Personally this is why this message group rocks :)
 
R

Rob

Thanks Vince but to be honest I customized that almost a year ago just had it
sitting around collecting dust.

Rob
 
J

Josh

Thank you so much rob for the code. I tryed the code and I get 2 errors the
first one says:
line: 87
char: 19
error: syntax error
code: 0
The second one says:
line: 147
char: 1
error: type mismatch 'dostartup'
code: 0

Any help would be helpfull. Not sure what the errors mean.

Thanks,
Joshua Wenger
 
E

Evan Culver

Josh,

Try the attached file. It just looks like some lines got wrapped.

-
Evan Culver
New West Technologies
 
Ad

Advertisements

J

Josh

I dont see how or where there is an attachment. Can you email it to me?
(e-mail address removed)

Thanks
Josh
 
R

Rob

Josh,

Sent you email.

Rob

Josh said:
I dont see how or where there is an attachment. Can you email it to me?
(e-mail address removed)

Thanks
Josh
 
J

Jeff

Josh,

Being as will probably using this newsgroup in the future, you may as well
get setup correctly.

To see and download files, you must be using a newsgroup reader like Outlook
Express or there are others.

For Outlook Express, click on the link below. Click on "Open with
newsreader" under the MS Retail Management System section on the right. It
will configure Outlook Express for you and will bring you back to this
newsgroup in Outlook Express.

http://tinyurl.com/75bgz


--
*
I dont see how or where there is an attachment. Can you email it to me?
(e-mail address removed)

Thanks
Josh
 
J

Josh

Thank you very much it works fine now. One other question it there a way to
get the picture place holder to keep the ratio of the orignal picture not
stretch it to fit?? I have pictures of books that are squares and rectangles
it warps the pictures I have currently. I know I can reformat each picture
to fit a set size. If I can just plug the picture in asis it will save alot
of time.

Thanks again,
Josh
 
R

Rob

<td width="40%" align="right"><img id = "PictureFile" height="100" width="110">
Remove Height and Width from this line of code.

<td width="40%" align="right"><img id = "PictureFile">

Rob
 
Ad

Advertisements

R

Rafael Solorzano

Can you send it to me as well.

My e-mail is (e-mail address removed)
 
J

Jamal

Could you please send me a copy of this file too.

url is not working and outlook can't see messages before jan 2006.

Thanks

Jamal
(e-mail address removed)
 
T

Tyrone

Good evening this is Tyrone Potter with Bolo & Brothers Ltd and we are recent
uses of the Microsoft Retail Store Operations Management and I will like to
find out a little about the Html code you have written that allows the
picture to be displayed while entering product in the Rms Pos, can you email
a copy of the html file to '(e-mail address removed)', it seems to be a very
useful utility. Thank You.
 
J

Jeff @ Check Point Software

Tyrone,

I don't understand.

If you wish to use Outlook Express for reading the newsgroup, follow the instructions below in my tagline.

If you are asking how to see all of the messages in the newsgroup using OE, go to Tools | Options | Read tab | uncheck Get x number headers at a time | Tools | Get new headers and it will download all 2679 (at this posting time) messages.

--

Jeff
Check Point Software

=====================================================

You must be using Outlook Express/Windows Mail or some other type of newsgroup reader to
see and download the file attachment(s). If you are not using a reader, follow
the link below to setup Outlook Express. Click on "Open with newsreader"
under the MS Retail Management System on the right.

http://tinyurl.com/75bgz
=====================================================

How do I add this conversation in the outlook express newsgroup
 
Ad

Advertisements

T

Tyrone

Please resubmit a copy of the POS html status bar which includes the
capability to view item pictures. Thank You
 
Ad

Advertisements

M

Mark

I have copied the code into a file and it loads partial. I get the errors
the others in the thread are getting. Could you please shed some light on
which lines are wrapped or even better send me the file? I have been working
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top