Skip to main content

Notifications

Dynamics 365 Community / Forums / Finance forum / Basic Dialog Form fields
Finance forum
Answered

Basic Dialog Form fields

Posted on by 110
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
    Abdullah_Ahmed 110 on at
    Basic Dialog Form fields
    The 3rd and 4th replies answer the main question.. thank you all
  • Anton Venter Profile Picture
    Anton Venter 18,631 Super User 2024 Season 2 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
    Abdullah_Ahmed 110 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
    Waed Ayyad 5,884 Super User 2024 Season 2 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
    Martin Dráb 229,133 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
    Waed Ayyad 5,884 Super User 2024 Season 2 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
    Abdullah_Ahmed 110 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
    Waed Ayyad 5,884 Super User 2024 Season 2 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

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,802 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,133 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,154

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans