1. Pinkesh Gupta
  2. PowerServer 2020 or older (Obsolete)
  3. Wednesday, 29 May 2019 13:07 PM UTC

How to restrict a powerserver web Application not to be  launched from Windows 10 tablet ?

Do we have some API to identify device type and restrict application launch on server side /

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 30 May 2019 20:15 PM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 1

Hi Shenn;

   Great tip!

  That works 100% in both PowerServer web browser and IWA applications ...

Regards .. .Chris

Comment
There are no comments made yet.
Shenn Sellers Accepted Answer Pending Moderation
  1. Thursday, 30 May 2019 16:25 PM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 2

I use this function below to determine whether the user is running on a Tablet.  It works great for PB.  I haven't used PowerServer so I don't know if it will work with that.

 

//Global External Function

function int GetSystemMetrics(int nIndex) library 'User32.dll'

//f_isTabletPC()

//Determines if the computer is a Tablet PC
int SM_TABLETPC = 86

IF (GetSystemMetrics(SM_TABLETPC) <> 0) THEN
return true
else
return false
END IF

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 29 May 2019 20:19 PM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 3

Hi Pinkesh;

    I am not sure how to detect a "tablet" vs a "PC" but I suspect that you might be able to figure this out by analyzing the "hardware" signature (just a guess).

   A quick test suggestion: Download my STD Framework's OrderEntry App and run the EXE on the tablet. Reviewing the log might be a key to what the framework detected under the "End User / Machine / Environment" section. For example ...

 

FYI:  https://sourceforge.net/projects/stdfndclass/files/Applications/PowerBuilder/OrderEntry

HTH

Regards ... Chris

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.