隱藏目錄

Creating Dynamically-controlled Card Lists

You can make the values of one list control determine what appears in a second list control when both are used in a file or item card. This is done by creating card lists with related list values.

In this example, you create three card lists:
  • A controlling card list, with two values
  • Two dependent card lists that correspond to the values in the controlling list

When you create the data card, you add one list control to let users select a value from the controlling card list. You add a second list control and make the options that users can select depend on their selection in the first list control.

To use card lists dynamically in a data card:

  1. Right-click Lists (for cards) and select Add New.
  2. In the dialog box, create the controlling card list using the following values:

    List name

    Material

    Data type

    Text

    Data

    Metal

    Plastic

  3. Click Save .
  4. Repeat steps 1 through 3 to create two dependent card lists that correspond to the data values Metal and Plastic in the controlling list:

     

    for Metal

    for Plastic

    List name

    Metal types

    Plastic types

    Data type

    Text

    Text

    Data

    Copper

    Stainless Steel

    Zinc

    Polyethylene

    Polypropylene

    Polystyrene

    Although these list names match the values in the controlling card list Data field, you can assign any name you want for List name. It is not until you add controls to the data card that you create the actual relationship between the lists.

  5. Create a data card and add a list control (List box, Combobox, Droplist, or Combolist).
  6. In the control's properties pane, under Items, select Special value and select the controlling card list, Material.
  7. Under Value, select a Variable name to store the value.
  8. Add a second list control.
  9. To make the list values in this list control depend on what the user selects in the first list control, select Controlled by variable and click Details.
  10. In the Controlled by variable dialog box, for Variable, select the variable connected to the controlling list control, in this case, Material.
  11. Click under Variable Value and type a variable value, for example, Metal.
  12. Under CardList, select the list to show if the variable value matches the user's selection.
  13. To add another variable value, repeat steps 9 and 10.
  14. Under Value, link the second list control to a variable, for example Type.
  15. Click File > Save to save the data card.
When a user completes the data card, the value selected in the first list (Material) controls the list values available in the second list (Type).


提供對此主題的意見反應

SOLIDWORKS 歡迎您提供有關於文件呈現方式、正確性、及完整性的意見反應。請使用下方的表格直接將您對此主題的意見與建議傳送給我們的文件團隊。文件團隊並無法回答關於技術支援的問題。按一下此處來獲得關於技術支援的資訊

* 必要的

 
*電子郵件:  
主旨:   說明主題的意見反應
頁面:   Creating Dynamically-controlled Card Lists
*意見:  
*   我承認已閱讀且僅此接受隱私權政策,Dassault Systèmes 將遵循此政策之規定使用我的個人資料

列印主題

選擇要列印的內容範圍:

x

偵測到您使用的瀏覽器版本是舊於 Internet Explorer 7。要獲得最佳的顯示,建議您升級瀏覽器到 Internet Explorer 7 或更新的版本。

 不要再次顯示此訊息
x

Web 式說明內容版本:SOLIDWORKS PDM 2014 SP05

要從 SOLIDWORKS 中停用 Web 式的說明並改用本機說明,請按一下說明 > 使用 SOLIDWORKS Web 式說明

要報告在 Web 式說明介面及搜尋中遇到的問題,請聯絡您當地的技術支援代表。要針對個別說明主題提供意見反應,請使用個別主題頁面中的「提供對此主題的意見反應」連結。