Skip to content

FlowFilter not working properly with the pageScripting #8299

Description

1. Describe the bug

when doing page scripting with the FlowFilter field, it cannot create valid page scripting script which can be replayed. Furthermore the whole component is not working so even poping up the search window on this field is not working. We tried even different combination of the direct editation of tha page script but nothing worked and no test is passing through.

2. To Reproduce

Video demonstrating the issue: https://youtu.be/Rv55YDd83ag

Steps to reproduce the behavior:

  1. Start page script recording
  2. Go to 'Requisition Worksheets'
  3. Go to calculate Plan
  4. In location filter type VLASTDOP.
  5. Stop recording
  6. Close everything, make sure to start from the same starting point
  7. Play recording
  8. The recording fails at the inserting input to the location filter.
Image

Page scripting file:

name: location-filter-1
description: Test recording
telemetryId: a375dcdd-16a0-409b-9fae-353d4c087457
start:
  profile: ORDER PROCESSOR
steps:
  - type: navigate
    target:
      - page: Req. Worksheet
    description: Navigate to Requisition Worksheets
  - type: page-shown
    source:
      page: Req. Worksheet
    modal: false
    runtimeId: b7a
    description: Page <caption>Requisition Worksheets</caption> was shown.
  - type: focus
    target:
      - page: Req. Worksheet
        runtimeRef: b7a
      - repeater: Control1
      - field: Type
    description: Focus <caption>Type</caption>
  - type: focus
    target:
      - page: Req. Worksheet
        runtimeRef: b7a
      - field: null
        automationId: fb8cccf3-54ac-4d77-9ad8-136cec25583a
        caption: null
    description: Focus <caption>null</caption>
  - type: invoke
    target:
      - page: Req. Worksheet
        runtimeRef: b7a
      - action: CalculatePlan
    parameters: {}
    description: Invoke <caption>Calculate Plan...</caption>
  - type: page-shown
    source:
      page: Calculate Plan - Req. Wksh.
    modal: true
    runtimeId: bfj
    description: Page <caption>Calculate Plan - Req. Wksh.</caption> was shown.
  - type: input
    target:
      - page: Calculate Plan - Req. Wksh.
        runtimeRef: bfj
      - part: null
      - page: null
      - scope: filter
        field: null
    value: VLASTDOP.
    isFilterAsYouType: true
    description: Input <value>VLASTDOP.</value> into <caption>Location Filter</caption>
  1. Start page script recording
  2. Go to 'Requisition Worksheets'
  3. Go to calculate Plan
  4. In location filter click on triangle to show the search window
  5. Click select from full list
  6. In the searchbard ot search type VLASTDOP
  7. Click ok to apply filter
  8. Stop recording
  9. Close everything, make sure to start from the same starting point
  10. Play recording
  11. The recording fails at the opening the search window for the location filter.
Image

Page scripting file:

name: location-filter-2
description: Test recording
telemetryId: 72f9b0c1-6953-429b-ac95-acee0d5a51b3
start:
  profile: ORDER PROCESSOR
steps:
  - type: navigate
    target:
      - page: Req. Worksheet
    description: Navigate to Requisition Worksheets
  - type: page-shown
    source:
      page: Req. Worksheet
    modal: false
    runtimeId: bt6
    description: Page <caption>Requisition Worksheets</caption> was shown.
  - type: focus
    target:
      - page: Req. Worksheet
        runtimeRef: bt6
      - repeater: Control1
      - field: Type
    description: Focus <caption>Type</caption>
  - type: focus
    target:
      - page: Req. Worksheet
        runtimeRef: bt6
      - field: null
        automationId: fb8cccf3-54ac-4d77-9ad8-136cec25583a
        caption: null
    description: Focus <caption>null</caption>
  - type: invoke
    target:
      - page: Req. Worksheet
        runtimeRef: bt6
      - action: CalculatePlan
    parameters: {}
    description: Invoke <caption>Calculate Plan...</caption>
  - type: page-shown
    source:
      page: Calculate Plan - Req. Wksh.
    modal: true
    runtimeId: b11f
    description: Page <caption>Calculate Plan - Req. Wksh.</caption> was shown.
  - type: invoke
    target:
      - page: Calculate Plan - Req. Wksh.
        runtimeRef: b11f
      - part: null
      - page: null
      - scope: filter
        field: null
    invokeType: Lookup
    description: Invoke Lookup on <caption>Location Filter</caption>
  - type: page-shown
    source:
      page: "lookup:"
    modal: false
    runtimeId: b12a
    description: Page <caption>Select</caption> was shown.
  - type: invoke
    target:
      - page: "lookup:"
        runtimeRef: b12a
      - action: system:fulllist
    description: Invoke <caption>Select from full list</caption>
  - type: page-closed
    source:
      page: "lookup:"
    runtimeId: b12a
    description: Page <caption>Select</caption> was closed.
  - type: page-shown
    source:
      page: Location List
    modal: false
    runtimeId: b12r
    description: Page <caption>Select - Locations</caption> was shown.
  - type: input
    target:
      - page: Location List
        runtimeRef: b12r
      - scope: filter
        field: filter:system:search
    value: VLASTDOP
    isFilterAsYouType: true
    description: Input <value>VLASTDOP</value> into <caption>Search</caption>
  - type: invoke
    target:
      - page: Location List
        runtimeRef: b12r
    invokeType: LookupOk
    description: Invoke LookupOk on <caption>Select - Locations</caption>
  - type: page-closed
    source:
      page: Location List
    runtimeId: b12r
    description: Page <caption>Select - Locations</caption> was closed.

Note: We are doing big migration project from older version of BC, we have 2 MSFT partners working with us, and noone knows how to go around this issue. We want to have automated tests to ensure the QA, but a lot of processes we have are failing on this inability to go through FlowFilter fields.

3. Expected behavior
The recorded pagescript will be able to be played without the error.

Or we expect to be able to modify the pagescript file with some automationId or anything that could continue processing the tests.

4. Actual behavior
The page script fails on replay of recorded pagescript.

https://youtu.be/Rv55YDd83ag

5. Versions:

  • AL Language: latest
  • Visual Studio Code: 1.129.1
  • Business Central: 28.2
  • List of Visual Studio Code extensions that you have installed: AL Language extension for Microsoft Dynamics 365 Business Central
  • Operating System:
    • Windows

Final Checklist

Please remember to do the following:

  • Search the issue repository to ensure you are reporting a new issue

  • Reproduce the issue after disabling all extensions except the AL Language extension

  • Simplify your code around the issue to better isolate the problem

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions