Records

Certified Associate Developer

So, I'm building a record where i have all the items in the store, then i can drill down to 1 item and update ir, but when i click on update item related action i get this error: 

An error occurred while applying the context for the AS Items In Store related action [identifier=21]. Details: No process parameter found corresponding to override [name=pv!item]. Non-parameter process variables cannot be overridden.

Any help?

  Discussion posts and replies are publicly visible

Parents Reply Children
  • 0
    Certified Associate Developer
    in reply to pedrob0002

    It displayed blue to the end node through de write to database but in the details doesnt show anything in the write to database node

  • 0
    Certified Lead Developer
    in reply to pedrob0002

    OK ... is the DB being updated?

  • 0
    Certified Associate Developer
    in reply to pedrob0002

    as for the "assignment of PVs to rule inputs of the interface" I have this:

    a!localVariables(
      local!name: null,
      local!price: null,
      local!qty: null,
      local!description: null,
      local!category: null,
      local!imageid: {null},
      a!formLayout(
      label: "Add Item to the Store",
      contents: {
        a!columnsLayout(
          columns: {
            a!columnLayout(
              contents: {
                a!textField(
                  label: "Item's Name",
                  labelPosition: if(
                    ri!readOnly,
                    "ADJACENT",
                    "ABOVE"
                  ),
                  value: local!name,
                  saveInto: local!name,
                  characterLimit: 255,
                  required: true,
                  readOnly: ri!readOnly
                ),
                a!floatingPointField(
                  label: "Price ($)",
                  labelPosition: if(
                    ri!readOnly,
                    "ADJACENT",
                    "ABOVE"
                  ),
                  value: local!price,
                  saveInto: local!price,
                  required: true,
                  readOnly: ri!readOnly
                ),
                a!integerField(
                  label: "Quantity",
                  labelPosition: if(
                    ri!readOnly,
                    "ADJACENT",
                    "ABOVE"
                  ),
                  value: local!qty,
                  saveInto: local!qty,
                  required: true,
                  readOnly: ri!readOnly
                ),
                a!paragraphField(
                  label: "Description",
                  labelPosition: if(
                    ri!readOnly,
                    "ADJACENT",
                    "ABOVE"
                  ),
                  value: local!description,
                  saveInto: local!description,
                  characterLimit: 1000,
                  readOnly: ri!readOnly
                )
              }
            ),
            a!columnLayout(
              contents: {
                a!dropdownField(
                  label: "Category",
                  labelPosition: "ABOVE",
                  placeholder: "--- Choose what type of item it is ---",
                  choiceLabels: cons!AS_categories,
                  choiceValues: cons!AS_categories,
                  value: local!category,
                  saveInto: local!category,
                  searchDisplay: "AUTO",
                  required: true,
                  validations: {}
                ),
                a!fileUploadField(
                  label: "Add pictures",
                  labelPosition: "ABOVE",
                  target: cons!AS_Documents_Pointer,
                  maxSelections: 5,
                  value: local!imageid,
                  saveInto: local!imageid,
                  required: true
                )
              }
            )
          }
        )
      },
      buttons: a!buttonLayout(
        primaryButtons: {
          a!buttonWidget(
            label: "validate",
            saveInto: {
              a!save(ri!product.owner,loggedInUser()),
              a!save(ri!product.dateAdded,today()),
              a!save(ri!product.category,local!category),
              a!save(ri!product.description,local!description),
              a!save(ri!product.imageId,local!imageid),
              a!save(ri!product.name,local!name),
              a!save(ri!product.price,local!price),
              a!save(ri!product.quantity,local!qty)
            },
            submit: true,
            style: "PRIMARY"
          )
        },
        secondaryButtons: {
          a!buttonWidget(
            label: "Cancel",
            value: true,
            saveInto: ri!cancel,
            submit: true,
            style: "NORMAL",
            validate: false
          )
        },
        showWhen: or(
          isnull(
            ri!readOnly
          ),
          not(
            ri!readOnly
          )
        )
      )
    )
    )

  • 0
    Certified Associate Developer
    in reply to pedrob0002

    fixed it, thanks for the trouble