1. Systeembeheer SFR
  2. PowerBuilder
  3. Tuesday, 10 September 2019

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
0
Votes
Undo

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
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. Systeembeheer SFR
  2. Tuesday, 10 September 2019
There are no comments made yet.
  1. Tuesday, 10 September 2019
  2. PowerBuilder
  3. # 1
Systeembeheer SFR Accepted Answer Pending Moderation
0
Votes
Undo

printscreen event

Attachments (1)
Comment
There are no comments made yet.
  1. Tuesday, 10 September 2019
  2. PowerBuilder
  3. # 2
Marco Meoni Accepted Answer Pending Moderation
0
Votes
Undo

 

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
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. Systeembeheer SFR
  2. Tuesday, 10 September 2019
FYI: "eon_mobile_awsex" is an object class located in the "Workarounds.pbl" library that is supplied with the PowerServer installation.
  1. Chris Pollach @Appeon
  2. Tuesday, 10 September 2019
There are no comments made yet.
  1. Tuesday, 10 September 2019
  2. PowerBuilder
  3. # 3
  • Page :
  • 1


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