AXForum  
Вернуться   AXForum > Microsoft Dynamics AX > DAX Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 25.03.2016, 12:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
organicax: Using sound as feedback on the warehouse mobile device
Источник: http://organicax.com/2016/03/25/usin...mobile-device/
==============

In a post the other day we had a look at adding some color to the warehouse mobile device portal. If you are trying to make the user interface more useful you could also add sound. Usually a scanner will produce a beep when it successfully reads a barcode or a warning sound if it can’t. However you might want to have the application give a sound if the user scans or enters the wrong data.

You can add this with a little bit of modification to the HTML pages that run the mobile device portal. The choice of the type of sound is up to your creativity but you probably want to use something that is short and relevant to the issue that you want the operator to focus on. While you could play the latest Miley Cyrus song it’s probably not that productive for someone in the warehouse to hear. As you can see in this example I just used short sounds, in fact the file I found was called alarm that was on my windows machine which I thought was relevant indicating an error or a warning.

Here is a quick walk overview.

AX2012 R3 CU9. While I was using CU9 here this could be done on any R3 release.



If you want to copy the code from the video you can see it below. The sounds I got by searching my windows machine and found some files and converted them to mp3 file so you don’t have to do anything special other than use mp3 file if you are doing to test with IE. If you are using a differnet browser this might not play because of the different HTML standards each brower supports. So you will want to test on the devices you plan to use.

—————————————————————————————-

//Added test for label display to add the sound.

if (document.getElementById(“errorLbl”))

{

var labelDisplayText = document.getElementById(“errorLbl”).innerHTML;



//Check for Work Complete. This isn’t a good check because the text could be different on localization.

if (labelDisplayText == ‘Work Completed’)

{

//Play a success sound if it is work complete

document.getElementById(“errorLbl”).innerHTML = document.getElementById(“errorLbl”).innerHTML +

/Sounds/WHOOSH.mp3“;

}

else

{

//Play  alarm sounds if the label is error or warning.

document.getElementById(“errorLbl”).innerHTML = document.getElementById(“errorLbl”).innerHTML +

/Sounds/Alarm.mp3“;

}

}

—————————————————————————————-

I need to shout out to Zach from our team for some pointers on using the errorlbl as something to hook off.

I’d be interested in feedback to see if people see some value or if you were able to get it to work on specific devices.

Cheers

Lachlan


Filed under: Warehouse management

Источник: http://organicax.com/2016/03/25/usin...mobile-device/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
organicax: Warehouse mobile device text colors some additional notes on setup Blog bot DAX Blogs 0 25.03.2016 12:11
organicax: Overview of editing the CSS style sheet for the warehouse mobile device Blog bot DAX Blogs 0 24.03.2016 22:12
DynamicsAxSCM: Creating Custom Solutions with the Warehouse Mobile Device Portal Blog bot DAX Blogs 0 13.03.2015 16:11
DynamicsAxSCM: Warehouse Mobile Device Portal Architecture Blog bot DAX Blogs 0 03.03.2015 19:11
DynamicsAxSCM: Warehouse Mobile Device Portal Blog bot DAX Blogs 0 23.02.2015 22:12

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 19:18.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.