Home Search

DriveWorks Pro 22
How To: Upgrade Linked Items

Send Feedback

How To: Upgrade Linked Items

If you implemented Linked Items prior to DriveWorks 22.0 you will need to make various updates to your Linked Items as per the instructions below.

You should take a backup of your existing Custom Item Project before attempting these changes.

This Help Topic cannot account for every possible customization that you have made to your Project. You may need to adapt some of these instruction to your implementation. If you are unsure, please contact your DriveWorks Reseller for guidance.

  1. You will first need to create a new Project and add in the CPQ-CustomItem Form Template. You will use this Project to copy various functionality into your existing Project.
  2. Delete all Controls on the Linked Items Form of your existing Project (if you have customized this Form, you may need to apply your customization again after this step).
  3. You will then need to copy the Form Controls from the LinkedItems Form in the new Project you created.

    Your Form should look something like the following:

  4. Remove All Variables within the DriveAppData > LinkedItems Category (including Variables contained within sub-folders).
  5. Copy all of the Variables from the DriveAppData > LinkedItems Category in the new Project you created into your Project. You can categorize these in the same way if you wish but this step is not necessary.
  6. Create a new Calculation Table called LinkedItemDataToStore. This Table should have 2 columns and the following Values:
    NameValue
    OrderItemIdDWVariableOrderItemId
    PriceDWVariableCurrencyCorrectedUnitPrice
    QuantityQuantityReturn
    DescriptionDWVariableItemDescription
    DiscountDiscountReturn
  7. Add 2 new Rows to the LinkedItemData Calculation Table:
    OrderIdDWVariableOrderId
    OrderRevisionDWVariableOrderRevision
  8. Update the columns in the LinkedItemsToAdd table to match the table below:
    Column Name
    Id
    ItemId
    LinkedItemId
    PriceId
    Price
    PriceListItemId
    Description
    Quantity
    DiscountAmount
    SpecificationId
    ParentOrderItemId
    OrderItemId
  9. Update the Column Rule for each of the columns listed above by copying it from the new Project you created in step 1.
  10. Delete the Export to Calculation Table Document from your Project and replace it with the 3 Export Documents outlined below:

    Document 1

    • Name (of the Export to Calculation Table document): StoreStandardLinkedItem
    • Table (the data will be exported to): LinkedItemsToAdd
    • Fields: Add the following fields to the export document:
      Field NameField TypeIs Captured
      IdNormalYes
      ItemIdControlYes
      LinkedItemIdNormalYes
      PriceIdNormalNo
      PriceNormalNo
      PriceListItemIdNormalNo
      DescriptionNormalNo
      QuantityNormalYes
      DiscountAmountNormalYes
      SpecificationIdNormalNo
      ParentOrderItemIdNormalNo
      OrderItemIdNormalNo
    • Add one row to the table and create the following rules for the cells.

      ColumnRule
      IdDWVariableStoreStandardLinkedItemIdExisting
      ItemIdDWVariableStoreStandardLinkedItemItemId
      LinkedItemIdDWVariableStoreStandardLinkedItemLinkedItemId
      QuantityDWVariableStoreStandardLinkedItemQuantity
      DiscountAmountDWVariableStoreStandardLinkedItemDiscountAmount

    Document 2

    • Name (of the Export to Calculation Table document): StoreCustomLinkedItem
    • Table (the data will be exported to): LinkedItemsToAdd
    • Fields: Add the following fields to the export document:
      Field NameField TypeIs Captured
      IdControlYes
      ItemIdNormalYes
      LinkedItemIdNormalYes
      PriceIdNormalNo
      PriceNormalYes
      PriceListItemIdNormalNo
      DescriptionNormalYes
      QuantityNormalYes
      DiscountAmountNormalYes
      SpecificationIdNormalYes
      ParentOrderItemIdNormalNo
      OrderItemIdNormalYes
    • Add one row to the table and create the following rules for the cells.

      ColumnRule
      IdDWVariableStoreLinkedCustomItemId
      ItemIdDWVariableStoreLinkedCustomItemItemId
      LinkedItemIdDWVariableStoreLinkedCustomItemLinkedItemId
      PriceDWVariableStoreLinkedCustomItemPrice
      DescriptionDWVariableStoreLinkedCustomItemDescription
      QuantityDWVariableStoreLinkedCustomItemQuantity
      DiscountAmountDWVariableStoreLinkedCustomItemDiscount
      SpecificationIdDWVariableStoreLinkedCustomItemSpecificationId
      OrderItemIdDWVariableStoreLinkedCustomItemOrderItemId

    Document 3

    • Name (of the Export to Calculation Table document): UpdateLinkedOrderItemId
    • Table (the data will be exported to): LinkedItemsToAdd
    • Fields: Add the following fields to the export document:
      Field NameField TypeIs Captured
      IdControlYes
      ItemIdNormalNo
      LinkedItemIdNormalNo
      PriceIdNormalNo
      PriceNormalNo
      PriceListItemIdNormalNo
      DescriptionNormalNo
      QuantityNormalNo
      DiscountAmountNormalNo
      SpecificationIdNormalYes
      ParentOrderItemIdNormalNo
      OrderItemIdNormalYes
    • Add one row to the table and create the following rules for the cells.

      ColumnRule
      IdListGetItem(DWCurrentMacroArgument,1)
      SpecificationIdListGetItem(DWCurrentMacroArgument,2)
      OrderItemIdListGetItem(DWCurrentMacroArgument,3)
  11. Add the following Specification Property depending on the use of the Project:
    • Parent Custom Item

      Name = LinkedItemDataToAdd

      Rule = DWVariableCSVLinkedItemsDataToAdd

    • Linked Custom Item

      Name = LinkedItemDataToStore

      Rule = DWVariableLinkedItemDataToStore

  12. You may also need to Clear your Spec Flow and re-load the CPQ Custom Item Flow, this may depend on how much you have customized the previous template.
  13. In the Complete Macro, change the task below to be a Run Macro in Host Specification (instead of a regular Run Macro Task). The rule for Macro Argument and the Macro Name should not change.
  14. Remove all Macros within the Data>Linked Category (including Macros contained within sub-folders).
  15. Copy all of the Macros from the Data>Linked Category in the new Project you created into your Project. You can categorize these in the same way if you wish but this step is not necessary.

As mentioned at the start of this page, this Help Topic cannot account for every possible customization that you have made to your Project. You may need to adapt some of these instruction to your implementation. If you are unsure, please contact your DriveWorks Reseller for guidance.