Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Basic Dialog Form fields

(1) ShareShare
ReportReport
Posted on by 114
I have a form (QuotationTask) that has a pattern Details Transactions that has header and line and I made a dialog form with pattern Basic-Dialog that opens when I click new in the QuotationTaskForm..
 
The problem is: The fields of the dialog form always read the first record!
I have tried to override the initValue of the datasource but it doesn't help.. 
 
 
This is the dialog form.
 
  • Abdullah_Ahmed Profile Picture
    114 on at
    Basic Dialog Form fields
    The 3rd and 4th replies answer the main question.. thank you all
  • Anton Venter Profile Picture
    19,610 Super User 2025 Season 1 on at
    Basic Dialog Form fields
    Which answer was the solution? I can mark it as the correct answer (hopefully it will reflect correctly).
  • Abdullah_Ahmed Profile Picture
    114 on at
    Basic Dialog Form fields
    It's resolved.. I'm marking the answers but I don't know why it isn't reflecting on the system!
     
    thank you guys so much for your help
  • Waed Ayyad Profile Picture
    8,287 Super User 2025 Season 1 on at
    Basic Dialog Form fields
    Hi,

    Is your issue resolved?  If yes, mark the answers that helped you as verified.

    Thanks
    Waed Ayyad
  • Verified answer
    Martin Dráb Profile Picture
    232,996 Most Valuable Professional on at
    Basic Dialog Form fields
    It seems that you want to create a new record. You have two options:
    1. Either don't use any data source at all. Use unbound dialog fields and create a record in code when closing the dialog.
    2. Or, if you want to use a data source, create a new record (myDataSource.create()). The default behavior of data sources is that they load existing records (according to the form query) and you need to create a new record (e.g. by pressing Ctrl+N) top create a new record. Here you'll do it in code.
  • Verified answer
    Waed Ayyad Profile Picture
    8,287 Super User 2025 Season 1 on at
    Basic Dialog Form fields
    Hi,
     
    Do you mean you want the function of the form to create new records? If yes, then set copy caller query to No and modify the Open mode property on the menu item to New.
     
    Thanks,
    Waed Ayyad
    If this helped, please mark it as "Verified" for others facing the same issue
  • Abdullah_Ahmed Profile Picture
    114 on at
    Basic Dialog Form fields
    I'm sorry but how setting Copy Caller Query property to yes helps? because it now opens the cursor record in the QuotaionTask form.. I wanna set a new QuotationId and different values for other fields!
  • Waed Ayyad Profile Picture
    8,287 Super User 2025 Season 1 on at
    Basic Dialog Form fields
    Hi,
     
    In the menu item of the dialog form set the Copy Caller Query property to yes.
     
    Thanks,
    Waed Ayyad
    If this helped, please mark it as "Verified" for others facing the same issue
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,261 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,996 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans