Quantcast
Channel: SCN : All Content - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 2935

Appeon Mobile/Web and OpenUserObject on UserObject

$
0
0

Hi All,

 

I am currently having trouble getting the OpenUserObject function to work when it is called from within a User Object on a Window

i.e. a user object on a user object.

 

The object specified inside the OpenUserObject simply does not display at runtime.

There are no Powerbuilder or Appeon errors after the build or at runtime.

 

Contrived Example:

 

Screenshots

 

When deployed as PowerBuilder exe

PB_UO_on_UO.png

 

When Deployed as Appeon Web or Appeon Mobile

PB_UO_on_UO_appeon.png

 

Sample Code:

 

Control: w_win (open event)

 

// Control placed on window and method called on it (this works in Appeon without issue)

uo_simple.uof_set_title('Placed User Object')

 

// Dynamically created user object and placed on window (this works in Appeon without issue)

uo_header luo_header_dynamic

luo_header_dynamic = create uo_header

luo_header_dynamic.uof_set_title('UO on Window (dynamic)')

this.OpenUserObject(luo_header_dynamic, 0, uo_simple.height + uo_simple.Y + li_margin)

 

_____________________________________________________________________________

 

Control: uo_menu(open event) - uo_menu is placed on w_win

 

// Control placed on user object and method called on it (this works in Appeon without issue)

uo_simple.uof_set_title('UO on UO')

 

//Create dynamic control on a user object which in turn is on a window - This does not work in Appeon

uo_header luo_header_dynamic_two

luo_header_dynamic_two = create uo_header

luo_header_dynamic_two.uof_set_title('UO on UO (dynamic)')

this.OpenUserObject(luo_header_dynamic_two, 0, 300)

 

Current Setup:

  • Windows 7
  • Powerbuilder 12.1
  • Appeon for PowerBuilder 2015 Build 0328.00


I hope the above makes sense. Any help in relation to this would be greatly appreciated.


Thanks,

Alan.


Viewing all articles
Browse latest Browse all 2935

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>