---
id: object/page/171
type: object
title: Page 171 "Standard Sales Code Subform"
summary: Page 171 "Standard Sales Code Subform" in Base Application (Microsoft.Sales.Document). 1 public procedures, 1 events. Present since at least BC23, still in BC30, changed in BC24, BC26, BC28.
tier: official
language: en
tags:
  - page
  - base application
versions:
  introduced: null
  last_changed: "28"
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 579fce02acc9299f15a3b8df9235e513d6b097dbff8a536f0c17574f64a701fc
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Sales/Document/StandardSalesCodeSubform.Page.al
    title: src/Layers/W1/BaseApp/Sales/Document/StandardSalesCodeSubform.Page.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: page
object_id: 171
name: Standard Sales Code Subform
caption: Lines
namespace: Microsoft.Sales.Document
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "24"
  - "26"
  - "28"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 4
  events: 1
  subscribers: 0
  controls: 16
  actions: 1
relations:
  out: 1
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 2
  called_by: 0
  implements: 0
---

# Page 171 "Standard Sales Code Subform"

> Page 171 "Standard Sales Code Subform" in Base Application (Microsoft.Sales.Document). 1 public procedures, 1 events. Present since at least BC23, still in BC30, changed in BC24, BC26, BC28.

Base Application · Microsoft.Sales.Document · captioned "Lines" · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Sales/Document/StandardSalesCodeSubform.Page.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Caption | Lines |
| SourceTable | Standard Sales Line |
| PageType | ListPart |

## Fields on this page

Layout controls in source order, grouped by the container they sit in. Shows: the table field a control is bound to (or its expression as written); ToolTip: the control's own, else the bound field's (marked).

| Group | Control | Shows | ToolTip |
|---|---|---|---|
| Control1 | Type | [Type](../table/171.md#fields) | Specifies whether the line is for a general ledger account, item, resource, fixed asset or item charge. <small>from the table field</small> |
|  | Type | `TypeAsText` | Specifies whether the line is for a general ledger account, item, fixed asset or item charge. |
|  | No. | [No.](../table/171.md#fields) | Specifies the number of a general ledger account, item, resource, additional cost, or fixed asset, depending on the contents of the Type field. <small>from the table field</small> |
|  | Variant Code | [Variant Code](../table/171.md#fields) | Specifies the variant of the item on the line. <small>from the table field</small> |
|  | Description | [Description](../table/171.md#fields) | Specifies a description of the entry, which is based on the contents of the Type and No. fields. <small>from the table field</small> |
|  | Quantity | [Quantity](../table/171.md#fields) | Specifies the number of units of the item on the line. <small>from the table field</small> |
|  | Unit of Measure Code | [Unit of Measure Code](../table/171.md#fields) | Specifies how each unit of the item or resource is measured, such as in pieces or hours. By default, the value in the Base Unit of Measure field on the item or resource card is inserted. <small>from the table field</small> |
|  | Amount Excl. VAT | [Amount Excl. VAT](../table/171.md#fields) | Specifies the net amount for the standard sales line. This field only applies to lines of type G/L Account and Charge (Item). <small>from the table field</small> |
|  | Shortcut Dimension 1 Code | [Shortcut Dimension 1 Code](../table/171.md#fields) | Specifies the code for Shortcut Dimension 1, which is one of two global dimension codes that you set up in the General Ledger Setup window. <small>from the table field</small> |
|  | Shortcut Dimension 2 Code | [Shortcut Dimension 2 Code](../table/171.md#fields) | Specifies the code for Shortcut Dimension 2, which is one of two global dimension codes that you set up in the General Ledger Setup window. <small>from the table field</small> |
|  | ShortcutDimCode[3] | `ShortcutDimCode[3]` | — |
|  | ShortcutDimCode[4] | `ShortcutDimCode[4]` | — |
|  | ShortcutDimCode[5] | `ShortcutDimCode[5]` | — |
|  | ShortcutDimCode[6] | `ShortcutDimCode[6]` | — |
|  | ShortcutDimCode[7] | `ShortcutDimCode[7]` | — |
|  | ShortcutDimCode[8] | `ShortcutDimCode[8]` | — |

## Actions

| Group | Action | ToolTip | Runs |
|---|---|---|---|
| Line | Dimensions | View or edit dimensions, such as area, project, or department, that you can assign to sales and purchase documents to distribute costs and analyze transaction history. |  |

## Events published

- `OnValidateDescriptionOnBeforeChangeSalesLineType(var StandardSalesLine: Record "Standard Sales Line"; var IsHandled: Boolean)` (integration)

## Procedures

- `UpdateTypeText()`: Updates the display text for the Type field based on the current record value.

Plus 2 local procedures.

## Triggers

OnAfterGetCurrRecord, OnAfterGetRecord, OnInit, OnNewRecord, OnInsertRecord, OnOpenPage

## Relations

- source table [Table 171 "Standard Sales Line"](../table/171.md)

## Calls

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an `Object::"Name"` argument. Interface dispatch and calls through events are not counted, so the list is not complete.

- [Codeunit 9179 "Application Area Mgmt. Facade"](../codeunit/9179.md) (3 calls: `OnInit → IsFoundationEnabled`, `OnNewRecord → IsAdvancedEnabled`, `OnNewRecord → IsFoundationEnabled`)
- [Codeunit 408 "DimensionManagement"](../codeunit/408.md) (1 call: `SetDimensionsVisibility → UseShortcutDims`)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC24, BC26, BC28

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "page", object_name: "Standard Sales Code Subform")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
