【问题标题】:Acumatica mobile app allocations not workingAcumatica移动应用程序分配不起作用
【发布时间】:2021-10-18 12:10:04
【问题描述】:

我正在尝试为 Acumatica 移动应用程序编写 Shipments 小部件,以便它可以更像网络浏览器一样使用。
具体来说,我希望能够将序列号和库位添加到行库存项目。 我遇到的问题是,如果行项目的数量为 2 或更多,我无法弹出分配屏幕,以便您可以为该运输行项目选择并输入多个 SN。我最常收到的错误是“服务器错误:404”。这显然意味着它没有找到/生成用于移动应用显示的网页。

谁能指出我做错了什么的正确方向?

代码如下:

  add container "ShipmentSummary" {
    formActionsToExpand = 5
    add layout "ShipmentHeader" {
      displayName = "ShipmentHeader"
      layout = "HeaderSimple"
      add layout "ShipmentHeaderNbrRow" {
        displayName = "ShipmentHeaderNbrRow"
        layout = "Inline"
        add field "ShipmentNbr"
        add field "Status"
      }
      add layout "ShipmentQtyRow" {
        displayName = "ShipmentQtyRow"
        layout = "Inline"
        add field "Operation"
        add field "ShippedQuantity"
      }
      add layout "ShipmentCustomerRow" {
        displayName = "ShipmentCustomerRow"
        layout = "Inline"
        add field "Customer"
      }
      add layout "ShipmentWarehouseID" {
        displayName = "ShipmentWarehouseID"
        layout = "Inline"
        add field "WarehouseID"
      }
      add layout "ShipmentLocation" {
        displayName = "ShipmentLocation"
        layout = "Inline"
        add field "Location"
      }
    }

    add field "ShipmentDate" {
      selectorDisplayFormat = Key
      pickerType = Detached
    }
    add field "Workgroup" {
      pickerType = Detached
    }
    add field "Owner" {
      pickerType = Detached
    }
    add field "Description"

    add group "OrderInfoGroup" {
      displayName = "Orders"
      collapsable = True
      collapsed = True
      add layout "OrdersLineInfo" {
        displayName = "OrdersLineInfo"
        layout = "Inline"
        add field "Orders#OrderType"
        add field "Orders#OrderNbr"
      }
      add layout "LineInvoiceInfo" {
        displayName = "LineInvoiceInfo"
        layout = "Inline"
        add field "Orders#InvoiceType"
        add field "Orders#InvoiceNbr"
      }
      add field "Orders#NoteText" {
        displayName = "Order Notes"
        textType = PlainMultiLine
      }    
    }
    
    add layout "DetailsTab" {
      displayName = "Details"
      layout = "DataTab"
      add containerLink "DocumentDetails"
    }  
    add recordAction "Save" {
      behavior = Save
    }
    add recordAction "Cancel" {
      behavior = Cancel
    }
    add containerAction "Insert" {
      icon = "system://Plus"
      behavior = Create
      redirect = True
    }
    add recordAction "PutOnHoldAction" {
      behavior = Record
    }
    add recordAction "ReleaseFromHoldAction" {
      behavior = Record
    }
    add recordAction "ConfirmShipmentActionAction" {
      behavior = Record
    }      
    attachments {
    }
  }
    
  add container "DocumentDetails" {
    fieldsToShow = 2
    listActionsToExpand = 1
    formActionsToExpand = 2
    containerActionsToExpand = 1
    add group "LineInventoryIdGroup" {
      displayName = "LineInventoryIdGroup"
      collapsed = True
      template = ExpansionPanel
        add field "InventoryID" {
          listPriority = 100
          selectorDisplayFormat = Key
          pickerType = Searchable
        }
        add field "Description" {
          listPriority = 90
        }
    }
    add field "Location"
    add field "LotSerialNbr"
    add layout "LineQuantityRow" {
      displayName = "LineQuantityRow"
      layout = "Inline"
      add field "ShippedQty"
      add field "UOM"
    }
    
    add layout "AllocationsTab" {
      displayName = "Allocations"
      layout = "DataTab"
      add containerLink "Allocations"
    }
    
    add containerAction "Insert" {
      icon = "system://Plus"
      behavior = Create
    }
    add selectionAction "Delete" {
      icon = "system://Trash"
      behavior = Delete
    }
    add recordAction "Delete" {
      icon = "system://Trash"
      behavior = Delete
      after = Close
    }
    add recordAction "Insert" {
      displayName = "Add Another"
      icon = "system://Plus"
      behavior = Create
    }
    attachments {
    }
  }
  add container "Allocations" {
    visible = False
    fieldsToShow = 3
    listActionsToExpand = 2
    formActionsToExpand = 3
    containerActionsToExpand = 2
    add field "InventoryID" {
      selectorDisplayFormat = KeyDescription
      listPriority = 100
    }
    add field "Location" {
      pickerType = Attached
    }
    add field "LotSerialNbr" {
      pickerType = Attached
    }
    add layout "AllocQtyRow"{
      displayName = "AllocQtyRow"
      layout = "Inline"
      add field "Quantity" {
        selectorDisplayFormat = KeyDescription
        listPriority = 90
      }
      add field "UOM" {
        selectorDisplayFormat = Key
        listPriority = 80
      }
    }
    add field "Description"
    
    add containerAction "Insert" {
      icon = "system://Plus"
      behavior = Create
      redirect = True
    }   
    attachments {
    }
  }
}

【问题讨论】:

    标签: mobile customization acumatica


    【解决方案1】:

    我能够找出问题所在。
    首先,移动应用程序的 Acumatica 文档信息量不是很大。所以,很多事情只能是“试错”。

    对于这个问题,我需要做的是将重定向作为“$List”指令传递给“Allocations”容器,并且在“Insert”的“Insert”中添加一个 containerAction 和 recordAction 到 Allocations 容器中一个新条目。 (下面是代码)

      add container "DocumentDetails" {
        fieldsToShow = 2
        listActionsToExpand = 1
        formActionsToExpand = 2
        containerActionsToExpand = 1
        add group "LineInventoryIdGroup" {
          displayName = "LineInventoryIdGroup"
          collapsed = True
          template = ExpansionPanel
            add field "InventoryID" {
              listPriority = 100
              selectorDisplayFormat = Key
              pickerType = Searchable
            }
            add field "Description" {
              listPriority = 90
            }
        }
        add field "Location"
        add field "LotSerialNbr"
        add layout "LineQuantityRow" {
          displayName = "LineQuantityRow"
          layout = "Inline"
          add field "ShippedQty"
          add field "UOM"
        }
        
        add containerAction "Insert" {
          icon = "system://Plus"
          behavior = Create
        }
        add selectionAction "Delete" {
          icon = "system://Trash"
          behavior = Delete
        }
        add recordAction "Delete" {
          icon = "system://Trash"
          behavior = Delete
          after = Close
        }
        add recordAction "Insert" {
          displayName = "Add Another"
          icon = "system://Plus"
          behavior = Create
        }
        add recordAction "LSSOShipLineBinLotSerial" {
          behavior = Void
          redirect = True
          redirectToContainer = "Allocations$List"
        }
        attachments {
        }
      }
      add container "Allocations" {
        visible = False
        fieldsToShow = 3
        listActionsToExpand = 2
        formActionsToExpand = 3
        containerActionsToExpand = 2
        add field "InventoryID" {
          selectorDisplayFormat = KeyDescription
          listPriority = 100
        }
        add field "Location" {
          pickerType = Attached
        }
        add field "LotSerialNbr" {
          pickerType = Attached
        }
        add layout "AllocQtyRow"{
          displayName = "AllocQtyRow"
          layout = "Inline"
          add field "Quantity" {
            selectorDisplayFormat = KeyDescription
            listPriority = 90
          }
          add field "UOM" {
            selectorDisplayFormat = Key
            listPriority = 80
          }    
        }
        add field "ExpirationDate"
        add field "Description"
    
        add containerAction "Insert" {
          icon = "system://Plus"
          behavior = Create
        }    
        add recordAction "Insert" {
          displayName = "Add Another"
          icon = "system://Plus"
          behavior = Create
        }    
        attachments {
        }
      }
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-07-18
      • 2021-12-14
      • 1970-01-01
      • 2013-12-22
      • 1970-01-01
      • 1970-01-01
      • 2012-11-08
      相关资源
      最近更新 更多