Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Example 1: Opening the “By Order Type” report – PB Docs 2019 – PowerBuilder Library

Example 1: Opening the “By Order Type” report – PB Docs 2019

Example 1: Opening the “By Order Type” report

In the original application, the “By Order Type” report is
opened from Report > Sales Reports > By Order Type menu
item.

image5.png

The new application uses the Report > Sales Reports > By
Order Type RibbonBar item to open the report.

image6.png

PowerScript in the previous menu item
m_report1.m_salesreports.m_byordertype:

PowerScript in the event
ue_rep_ordertype of the RibbonBar:

Key points covered in the PowerScript
change:

  • As the report item is placed in the RibbonBar panel, the
    parent object for this item is changed; therefore, the
    mdiframe argument of
    OpenSheetWithParm must be changed from
    parentwindow to
    parent. The Tag
    value is migrated into this RibbonBar item. You can find more
    information for Tag migration in the next
    example.

  • The original toolbar items are migrated as RibbonBar items
    (small buttons), e.g. 2D Pie, 3D Column, 2D BarStacked/Line and
    Grid Data items. The items may be enabled or disabled depending
    on the activation of the sheet window. Here we add each opened
    window into a buffer to track the activation status, so that it
    can control the status for the RibbonBar items.

  • Identify if the report supports 2D BarStacked or 2D Line
    style. In this example, the small button “2D Bar” is displayed
    when this report is actively opened.


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x