The Purchase Request Create Screen
Key Lesson: In this step, you learn how to create the Purchase Request Create screen, initialize a new PurchaseRequest object, and pass it into the reusable PurchaseRequestInclude screen.
Create the PurchaseRequestCreate screen used to start a new purchase request in the Purchasing app.
Build the screen
Section titled “Build the screen”- Go to Design → Screens and click +.
- Name the screen
PurchaseRequestCreate. - Click OK.
- Confirm that the screen’s Layout is set to
Screen.Purchasing.Mainlayout.
1. Define the screen variable
Section titled “1. Define the screen variable”Create a request variable for the new Purchase Request.
- Open the Variables tab.
- Click + Add new variable.
- Configure the variable as follows:
| Property | Value |
|---|---|
| Name | request |
| Context | Local |
| Type | |
| Default expression | |
-
Save your changes before continuing.
Note
For more information about screen variable contexts, see Screen Variables in the Platform Concepts section.
2. Update the screen text
Section titled “2. Update the screen text”- Return to the Layout tab.
- Select the screen Text component.
- Set:
| Property | Value |
|---|---|
| Text | Please enter the information for the new purchase request below: |
-
Leave all other properties at their default values.
-
Save your changes before continuing.
3. Embed the PurchaseRequestInclude screen
Section titled “3. Embed the PurchaseRequestInclude screen”- From Screen Structure, drag a Screen component into the main content area below the Text component.
Editor Help
When dragging a component or variable onto a screen, Lowgile displays a green placeholder indicating where the element can be dropped.
- Select the new Screen component.
- Use the Properties and Inputs tabs in the Properties panel to configure the component as follows:
| Tab | Property | Value |
|---|---|---|
| Properties | Screen | |
| Inputs | request | |
-
Leave all other properties at their default values.
-
Save your changes before continuing.
4. Add the Submit Request button
Section titled “4. Add the Submit Request button”Add the primary action that will later start the Purchase Request Process.
- Add a Button component below the embedded PurchaseRequestInclude screen.
- Configure the button:
| Tab | Property | Value |
|---|---|---|
| Properties | Prefix icon | send |
| Text | Submit Request | |
| Appearance | Color | Primary |
-
Leave all other properties at their default values.
-
Save your changes before continuing.
The button’s click action is configured later when you finalize the Purchase Request Process.