Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Finance forum / Form points to one rec...
Finance forum
Unanswered

Form points to one record all the time!

Posted on by 90
This is my Dialog Form
 
 
 
 
and this is the code in clicked method of Ok Button... I want to open the details(Header and Lines) of the newly created record :
 
 
 
It opens the details but the cursor still pointing to the new record.. and whenever I open another record the lines of this record don't appear... When I click add line in another record it adds it to the last record created that the arrow points at! 
 
 
I thought there's an error with my ExecuteQuery() but it's working fine:
 
  • Waed Ayyad Profile Picture
    Waed Ayyad 3,872 on at
    Form points to one record all the time!
    Hi,
     
    I got confused a little bit. What do you want to achieve? Do you want to open the form in the new mode? 
     
     
     
     
  • Abdullah_Ahmed Profile Picture
    Abdullah_Ahmed 90 on at
    Form points to one record all the time!
    The problem is.. when I open the QuotationTask form from the dialog, it filters the records by the record sent in args.
    I don't know how to disable this filter... in the executeQuery() of QuotationTable and QuotationLine I make sure that I clear ranges of the datasource before adding a new range!

    I removed the code in executeQuery() of​​​​​​​ QuotationLine and the records still filtered by the record passed in Args!
  • Waed Ayyad Profile Picture
    Waed Ayyad 3,872 on at
    Form points to one record all the time!
    Hi,
     
    First try to comment the code on the executeQuery and check how the form will open.
     
    Thanks,
    Waed Ayyad
    If this helped, please mark it as "Verified" for others facing the same issue
     

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 288,513 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,862 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans