Skip to content

Page parameter not wired in nanoflow argument when button is inside a dataview bound to a different parameter CE1571 #1140

Description

@acarum

When a PANEL_ page has two page parameters ($Dto and $Entity), and the Save button is inside a dataview whose DataSource is $Dto, mxcli exec fails to correctly bind $Entity in the nanoflow call on the button. Studio Pro shows CE1571 after exec; mxcli check --references and mxcli lint are both silent.


Reproduction

MDL input:

CREATE OR REPLACE PAGE "CustomModule"."PANEL_BufferDefinition_Edit" (
Params: { $Dto: CustomModule.UpdateBufferDefinition, $BufferDefinition: CustomModule.BufferDefinition }
) {
placeholder Main {
dataview dvEdit (DataSource: $Dto, FormOrientation: Vertical) {
footer footer1 {
actionbutton btnSave (
Caption: 'Save',
Action: nanoflow CustomModule.ACT_BufferDefinition_SaveEdit_NF(
$Dto = $Dto,
$BufferDefinition = $BufferDefinition
)
)
}
}
}
};

After ./mxcli exec script.mdl -p OC EX System.mpr:

  • $Dto = $Dto → correctly wired (it is the dataview's DataSource, $currentObject)
  • $BufferDefinition = $BufferDefinition → NOT wired — Studio Pro shows CE1571: "No argument has been selected for parameter 'BufferDefinition' and no default is available. Please select an argument manually."

Expected behavior

Both arguments wired correctly. $BufferDefinition is a valid page parameter in scope and should be bindable as nanoflow argument regardless of which parameter is the dataview's DataSource.


Actual behavior

The BSON written by mxcli exec for the $BufferDefinition argument is empty or missing. Studio Pro cannot resolve it automatically and raises CE1571.


Additional context

  • mxcli check --references → no errors
  • mxcli lint → no errors
  • CE1571 appears only after opening the project in Studio Pro
  • Workaround: open the page in Studio Pro, double-click the Save button, manually select $BufferDefinition from the page parameter picker in the nanoflow argument mapping
  • Mendix version: 11.12.4
  • mxcli version: (0.22.0)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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