1. Systeembeheer SFR
  2. PowerBuilder
  3. Tuesday, 10 September 2019 08:33 AM UTC

Hi

Just build an app for our chainway. I turned off the automatic switch for portraid/landschape on the smartphone

But the app (within the appeon workspace) still turns.

How can I prefent this?

 

See pic

Attachments (1)
Marco Meoni Accepted Answer Pending Moderation
  1. Tuesday, 10 September 2019 09:50 AM UTC
  2. PowerBuilder
  3. # 1

 

Hello,

use of_setAppOrientation() + of_setAppRorationLock() from eon_mobile_awsex.

https://www.appeon.com/support/documents/appeon_online_help/ps2019/workarounds_and_api_guide/ch01s04s02.html#of_setapprotationlock

Best,

.m

Comment
  1. Systeembeheer SFR
  2. Tuesday, 10 September 2019 11:30 AM UTC
Hello, thnaks for your quick reply. Trying but not working for me yet



What does : eon_mobile_awsex mean ?



I tryed to make an event (i think thats what I have to do). See attachement but cleary I do something wrong. Can you help





  1. Helpful
  1. Chris Pollach @Appeon
  2. Tuesday, 10 September 2019 16:45 PM UTC
FYI: "eon_mobile_awsex" is an object class located in the "Workarounds.pbl" library that is supplied with the PowerServer installation.
  1. Helpful
There are no comments made yet.
Systeembeheer SFR Accepted Answer Pending Moderation
  1. Tuesday, 10 September 2019 11:31 AM UTC
  2. PowerBuilder
  3. # 2

printscreen event

Attachments (1)
Comment
There are no comments made yet.
Marco Meoni Accepted Answer Pending Moderation
  1. Tuesday, 10 September 2019 11:48 AM UTC
  2. PowerBuilder
  3. # 3

Hello,

eon_mobile_awsex is PowerServer API for mobile app's workspace.

https://www.appeon.com/support/documents/appeon_online_help/ps2019/workarounds_and_api_guide/ch01s01.html

  1. include the workaround pbl into your PB project
  2. create an instance of the object (eg, lnv_aws = CREATE eon_mobile_awsex).
  3. use the methods to lock rotation (eg, lnv_aws.of_setAppRotationLock(1))

Best,

.m

 

Comment
  1. Systeembeheer SFR
  2. Tuesday, 10 September 2019 12:51 PM UTC
Ah never knew that...getting there. Loaded the workaround in my libary list. Check

At creating an intance i get the follwing error: illegal data type : inv_aws.

I tryped in global variables tab to create it with lnv_aws=create eon_mobile_awsex

This is new for me so I tryed : OleObject lnv_aws

But this does not work.



  1. Helpful
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.