Options

OnScreen numeric pad on Classic Client

Hi, I need to set quantities (one active field => global variable) on touch-screen device. I've try it with Windows Scripting Host & SendKeys, but it doesn't work for me (only when pressed once). Do you have some idea how to solve it?

thank you

wrihly0ni61d.png
Regards
xStepa

Answers

  • Options
    Slawek_GuzekSlawek_Guzek Member Posts: 1,690
    Do you need to emulate a user typing the numbers? Or do you need to build and code a from looking as on the screenshot to enable the user to type a number on a touchscreen device?

    Slawek Guzek
    Dynamics NAV, MS SQL Server, Wherescape RED;
    PRINCE2 Practitioner - License GR657010572SG
    GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
  • Options
    xStepaxStepa Member Posts: 106
    Hi Slawek, I have already the form with WSH.SendKeys() on each button, but this doesn't work.

    So to answer your question - Yes, I need to emulate a user typing the numbers for the touch-only device. Users will type Quantities to an active field (1 + 2 + 3 => 123 pcs)
    Regards
    xStepa
  • Options
    Slawek_GuzekSlawek_Guzek Member Posts: 1,690
    So it is a NAV Classic Client running on a PC/laptop (Windows-powered device) which has a touchscreen only, if I understand correctly your setup.

    Can you check if you have any virtual keyboard driver installed on it?
    Slawek Guzek
    Dynamics NAV, MS SQL Server, Wherescape RED;
    PRINCE2 Practitioner - License GR657010572SG
    GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
  • Options
    xStepaxStepa Member Posts: 106
    Yes, NAV Classic Client running on Windows Server 2016 terminal services (the device itself has an Android + MS Remote Desktop app).

    No additional keyboard driver except the default one.
    Regards
    xStepa
  • Options
    Slawek_GuzekSlawek_Guzek Member Posts: 1,690
    I'm thinking that if a user is 'typing' numbers in your form then the NAV Client is the active application. So you are effectively sending keystrokes to yourself..
    Slawek Guzek
    Dynamics NAV, MS SQL Server, Wherescape RED;
    PRINCE2 Practitioner - License GR657010572SG
    GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
  • Options
    xStepaxStepa Member Posts: 106
    yes - and it works, but only with the first number. If I try to press more buttons then one (2 + 4 + 6 => 246pcs), than it calls validation somehow and only the first digit is passed to the function (2 in our example).

    Thx
    Regards
    xStepa
  • Options
    Slawek_GuzekSlawek_Guzek Member Posts: 1,690
    It is a bit confusing to me I must say. What application is suposed to handle keystrokes? Is it NAV ? Are you trying to send keystrokes from NAV back to NAV ?

    Can you post the form code here?
    Slawek Guzek
    Dynamics NAV, MS SQL Server, Wherescape RED;
    PRINCE2 Practitioner - License GR657010572SG
    GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
Sign In or Register to comment.