🚀 Welcome to MDriven Learn –  MDriven is now on Discord!  Don’t miss the latest Release Notes.
Bootcamp:Chapter 6
This page was created by Hans.karlsen on 2022-10-08. Last edited by Edgar on 2025-06-22.

Here is the revised version with corrected spelling and improved clarity and fluency:

---


This is **Chapter 6** of the training program.

If you want to start from the beginning: Chapter 1, or see Chapter 5 (the previous chapter).

      1. **Video 6: Picking Values**

To enhance your experience, we have added the main tags mentioned in the video to the right bar menu of this mini-player. Select an interesting subtitle from the list to jump directly to the relevant section in the video. This allows you to choose any topic for instruction without watching the entire video.

Steps 183 - 214 Introduction Creating Actions Modal Actions ViewModels Functionality in the Web Application Fixing a Problem Changing Cardinality Association Class

    1. Chapter 6: Modal Dialog to Pick Values and Return to Caller to Use Picked Values
    • NOTE:** Click on the step/number to access the corresponding images.
    • [183]**. The **Person** ViewModel - the button **CarsIUsedToOwn** - does not function and can be removed. Let me explain its origin.

When we adopted the AutoPersonForm and named it Person, it initially worked as it pointed to the AutoFormPersonCarsIUsedToOwnMultiLink, which displayed the content of CarsIUsedToOwnMultiLink. Since then, we have regenerated the AutoForms, causing this action to lose its form, and a new form was created that the previous action is not connected to. Remove the button and the ViewModel action **MultiLinkCarsIUsedToOwn**.

    • [184]**. Add a ViewModelColumn and mark it as **Is Action**. Notice that it turns into a button.
    • [185]**. Name it `AddACarIUsedToOwn`.
    • [186]**. Create a ViewModelAction. Name it `AddACarIUsedToOwnAction`.
    • [187]**. Connect the button **AddACarIUsedToOwn** to the action **AddACarIUsedToOwnAction** by selecting it in the picker next to the Is Action checkbox.
    • [188]**. Press the NewEditor button at the top of the ViewModelEditor. In the new window, find the **AutoFormCarSeeker**.
    • [189]**. Adopt the **AutoFormCarSeeker** to make it your own and name it **CarSeeker**.
    • [190]**. Return to the **AddACarIUsedToOwnAction**, set **BringUpViewModel** to **CarSeeker**. Save and test the web.
    • 191**. When on the web, trying to add a new car I have owned, the Seeker for cars appears, but we want it displayed on top of the Person form.
    • [192]**. Go back to the **AddACarIUsedToOwnAction**, find the checkbox **Is Modal**, check it, and save. Test the web.
    • [193]**. A modal dialog OK button