Professional Documents
Culture Documents
Calling External App Course PDF
Calling External App Course PDF
App Interactions
Hands On Exercises
Disclaimer
This document is for informational purposes only and is subject to change without notice. This document and
its contents, including the viewpoints, dates and functional content expressed herein are believed to be
accurate as of its date of publication. However, Epicor Software Corporation makes no guarantee,
representations or warranties with regard to the enclosed information and specifically disclaims any
applicable implied warranties, such as fitness for a particular purpose, merchantability, satisfactory quality or
reasonable skill and care. As each user of Epicor software is likely to be unique in their requirements in the use
of such software and their business processes, users of this document are always advised to discuss the
content of this document with their Epicor account manager. All information contained herein is subject to
change without notice and changes to this document since printing and other important information about the
software product are made or published in release notes, and you are urged to obtain the current release
notes for the software product. We welcome user comments and reserve the right to revise this publication
and/or make improvements or changes to the products or programs described in this publication at any time,
without notice.
The usage of any Epicor software shall be pursuant to an Epicor end user license agreement and the
performance of any consulting services by Epicor personnel shall be pursuant to Epicor's standard services
terms and conditions. Usage of the solution(s) described in this document with other Epicor software or third
party products may require the purchase of licenses for such other products. Where any software is expressed
to be compliant with local laws or requirements in this document, such compliance is not a warranty and is
based solely on Epicor's current understanding of such laws and requirements. All laws and requirements are
subject to varying interpretations as well as to change and accordingly Epicor cannot guarantee that the
software will be compliant and up to date with such changes. All statements of platform and product
compatibility in this document shall be considered individually in relation to the products referred to in the
relevant statement, i.e., where any Epicor software is stated to be compatible with one product and also
stated to be compatible with another product, it should not be interpreted that such Epicor software is
compatible with both of the products running at the same time on the same platform or environment.
Additionally platform or product compatibility may require the application of Epicor or third-party updates,
patches and/or service packs and Epicor has no responsibility for compatibility issues which may be caused by
updates, patches and/or service packs released by third parties after the date of publication of this document.
Epicor ® is a registered trademark and/or trademark of Epicor Software Corporation in the United States,
certain other countries and/or the EU. All other trademarks mentioned are the property of their respective
owners.
All rights reserved. No part of this publication may be reproduced in any form without the prior written consent
of Epicor Software Corporation.
Setting Up App-to-App Interactions
Table of Contents
3 December, 2021
Setting Up App-to-App Interactions
Imagine that we need to print a label for a part produced in a job. That label can include details on
part, job, customer, etc. In this example, we will just print current job part number and description.
To do this, we will first create a custom query and BAQ report - Print Part Label, generate a Kinetic UI
for it, and design its style. Then we will modify Job Entry (the parent application) by adding a control
that would call Print Part Label and pass the current part number to it. Finally, we will modify the
report to receive the value sent from Job Entry and automatically set the appropriate filter.
Learning Objectives
After completing this course, you will be able to:
Remember! What you see, you remember, but what you do, you understand.
Prerequisites
l Product version 2021.2.
l Designing report style requires Microsoft Report Builder installed on your device.
l Your user account must have:
o SSRS Report Designer option enabled to design report layout
o Security Manager rights to add new menus
l The following tools programs are available in smart client only:
o Business Activity Query Designer
o BAQ Report Designer
4 December, 2021
Setting Up App-to-App Interactions
o Report Style
o Menu Maintenance
l Whether you are interested in a particular field, check box, or program, use the Application Help
that you launch from within the system.
l Work with fully expanded programs. This enhances visual experience and prevents incorrect
selections.
l Properly read the workshop descriptions so you know what follows.
l Take your time and do not rush.
Environment Setup
Accessing Kinetic
While you can use a web (browser) or smart (desktop) client to access Kinetic interchangeably, some
system management programs are only available in Classic UI. The course instructions will guide you to
launch the desktop client whenever you need to use such program.
In all other cases for the best user experience, we recommend using a Kinetic browser client. Choose
any of the two options below to open Kinetic in a browser:
l In the smart (desktop) client from the Home Page, go to the User menu and select the Open
Kinetic in Browser option.
The system automatically launches the Home Page in your web browser. Note that you may be
required to re-enter your user password to log in.
l In the web browser, directly enter the URL of your Home Page using the following format:
5 December, 2021
Setting Up App-to-App Interactions
Supported browsers
Make sure you use the latest version of any browser from the list below:
l Microsoft Edge®
l Mozilla Firefox®
l Google™ Chrome
Logging in
l Log in to the training environment using the epicor/epicor credentials.
l Make sure you are logged into the Epicor Education Company/Main Plant.
l If you are a cloud-based Kinetic customer, then note the following about your Epicor-hosted
education company. All logins referenced in the course (such as manager, or epicor) should be
prefixed with the <site ID>-. For example, if your site ID is 98315, then wherever you are
instructed to use the login epicor, instead use 98315-epicor. The password is 'Train18!'.
6 December, 2021
Setting Up App-to-App Interactions
4. Add a Description - for example, Part details for printing labels from job.
5. Select Shared and All Companies.
7 December, 2021
Setting Up App-to-App Interactions
6. Next, go to the Query Builder tab and on the Tables panel, select Erp.Part.
7. Double-click on Erp.Part to add it to the design canvas:
9. Finally, go to the Analyze tab and press Test to verify the query results:
8 December, 2021
Setting Up App-to-App Interactions
10. Save the query and exit Business Activity Query Designer.
9 December, 2021
Setting Up App-to-App Interactions
10 December, 2021
Setting Up App-to-App Interactions
1. Go to the Filter tab, then from the New drop-down in the Toolbar, select New Filter:
2. From the drop-down in the Filter column, select Part_PartNum and press Tab.
11 December, 2021
Setting Up App-to-App Interactions
This action automatically generates files for the report application on the server.
The application ID that you will need to specify for the menu, as well as for app-
open action in Job Entry, generates in the following format: Ice.UIRpt.
[ReportDefinitionID] - in this example, Ice.UIRpt.XXPrintLabel.
12 December, 2021
Setting Up App-to-App Interactions
13 December, 2021
Setting Up App-to-App Interactions
l For the Menu ID, enter UDXXPPL where XX are your initials.
l For the Name, type in Print Part Label. This name displays on the menu.
l Keep the default Order Sequence (0), this way it will be on top of the report list.
7. To verify it's in the menu, on the Home Page, search for 'xx print' where xx are your initials:
14 December, 2021
Setting Up App-to-App Interactions
15 December, 2021
Setting Up App-to-App Interactions
On the Report Copy Location dialog that pops up, select Copy again.
16 December, 2021
Setting Up App-to-App Interactions
9. Select a location on your machine and save the report layout file.
When you download a report to a target folder, the system creates additional
folders under it - \reports\CustomReports\. For example, if you choose to save
the report file to your C:\ drive, the path for the report will be
C:\reports\CustomReports\.
This optional step is not required to demonstrate how the two applications interact.
Complete it for the full scenario experience.
2. Remove Page Footer and Page Header by right-clicking each element and selecting the Remove
option:
17 December, 2021
Setting Up App-to-App Interactions
3. Reduce page width; then in the Main menu, go to Insert > Table > Insert Table:
4. Click anywhere on the page layout; this adds a default table to the layout.
If you don't see the Properties panel, you may need to go to View in the Main
menu and select the Properties check box.
18 December, 2021
Setting Up App-to-App Interactions
7. In the first Data column, right-click the blue icon to bring up the available fields and choose
Part_PartNum.
12. Return to Report Style. From the Actions menu, select Upload SSRS Report.
13. Select the same location you previously chose for file download - for example C:\.
14. Once the report successfully uploads, save the style and exit the program.
We are now done with setting up the child application. Move on to Exercise 3 where we will start
working in Application Studio.
19 December, 2021
Setting Up App-to-App Interactions
1. From Home Page, launch Job Entry and open Application Studio.
2. In the top-right corner of the screen, press the <NewLayer> link and create a new layer:
3. Open the Details page layout and select the Job panel card.
4. From the Toolbox > Components tab, select a Button and add it to the header of the Job panel
card.
20 December, 2021
Setting Up App-to-App Interactions
l Expand the Behavior property group and press On Click to generate a new event linked to
this button.
21 December, 2021
Setting Up App-to-App Interactions
6. Go to Toolbox > Actions, select the app-open action and add it to the flow.
7. On its Properties panel, drill down to Basic > Parameters and configure the button like this:
22 December, 2021
Setting Up App-to-App Interactions
l In the Print Part Label report, we will create a separate layer that interacts with Job Entry.
Call it XX_PrintFromJob where XX are your initials. Enter this ID into the Layer field.
l Select the Slide Out option. This will open the report in a sliding panel. If you don't select
this option, the report will open in a separate window.
l In the Who Launched field, enter the ID of the parent application - in this case,
Erp.UI.JobEntry.
l Press Edit in the Value In field to define what data passes into the child application.
In the JSON EDITOR that pops up, enter the following code:
{"Filter1" : "{JobHead.PartNum}"}
Instead of Filter1, you can name this parameter anything you want - for
example, PartFilter. You will need to specify this ID in the report-side
logic.
23 December, 2021
Setting Up App-to-App Interactions
l Type - Event
l Hook - Before
l Target - initialize.
Whenever the base initialize event is called in the application, the SetPartFilter event will
automatically run first.
6. Now, on the Toolbox > Actions panel, select condition and add it to the flow.
7. On the condition properties, go to Advanced > Param and enter the following expression to
initialize the context:
8. Press the True option; from the Select an Action panel, select the row-update action.
24 December, 2021
Setting Up App-to-App Interactions
9. Select the row-update action on the canvas and edit its properties:
l In the Ep Binding field, select ReportParam.Filter1. This is the field on the ReportParam
view that we will update with an incoming value.
25 December, 2021
Setting Up App-to-App Interactions
l In the Value field, press Edit (the pencil icon) and enter the following line into the
JSON EDITOR:
"%session.context.initialValueIn.ValueIn.Filter1%"
This code uses the specified context to pass the Filter1 value from Job Entry. We will
define this context in the next steps.
Publish the layer to make it available for calls - in this example, from Job Entry.
Apply the layer to the menu if you wish to use this configuration when you
open the report as a standalone application.
1. Open Job Entry and from the Overflow Menu, select Application Studio.
2. Press <NewLayer> and select Change Layer.
3. Open the XX_PrintPartLabel layer where XX are your initials.
4. Select Preview.
5. Open any job record.
6. On the Job details page, press Print Part Label.
7. Note the Print Part Label report displays in a sliding panel. In the Filter card, the part number
from the current job record is selected.
26 December, 2021
Setting Up App-to-App Interactions
8. Use Print Preview to download the report PDF or use Client Print to directly send the report to a
client printer.
l To make your layer available to all users in your company, from the
Application Studio Overflow menu, select Publish. Then, go to Menu
27 December, 2021
Setting Up App-to-App Interactions
Maintenance, and select the Job Entry menu item. Press Customization
and move the Print part label from job layer to the list of Selected
customizations. Save and restart Kinetic.
l To print directly from a browser, install Epicor Edge Agent. Learn more
about that in Application Help.
28 December, 2021
Setting Up App-to-App Interactions
Summary
In this course, you learned how to:
29 December, 2021