Uploaded image for project: 'Beehive'
  1. Beehive
  2. BEEHIVE-276

Can we update Trees without round trip to the server?

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • NetUI
    • None
    • Browser

    Description

      I have a page called Record Product Delivery that contains a tree and a form. The tree lists products currently in the system. When the user clicks on a product in the tree, the SKU field in the form is updated with the product SKU. The user then enters the quantity delivered and saves the update to inventory.

      In the case that a product was delivered that is not yet in inventory, the user may click on 'Add new product'. That causes a popup that records the new product details. When the popup exits, I would like the tree refreshed and the SKU field updated with the new SKU.

      <netui:anchor action="beginNewProduct" popup="true">
      Add New Product
      <netui:configurePopup height="200" width="200">
      <netui:retrievePopupOutput tagIdRef="productTree"
      dataSource="pageFlow.productTree"/>
      <netui:retrievePopupOutput tagIdRef="sku"
      dataSource="outputFormBean.sku"/>
      </netui:configurePopup>

      If I attempt to use that code, my page dies with JavaScript error. It would be my preference that the tree actually update. Right now, this is not intended to work because retrievePopupOutput is only intended to update fields that contain simple values.

      Please consider tying async tree updates in with this retrievePopupOutput tag.

      • jeremiah

      Attachments

        Activity

          People

            Unassigned Unassigned
            jerjohns Jeremiah Johnson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: