Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

Form points to one record all the time!

(1) ShareShare
ReportReport
Posted on by 114
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 6,493 Super User 2024 Season 2 on at
    Form points to one record all the time!
    Hi,

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

    Thanks
    Waed Ayyad
  • Waed Ayyad Profile Picture
    Waed Ayyad 6,493 Super User 2024 Season 2 on at
    Form points to one record all the time!
    Hi,

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

    Thanks
    Waed Ayyad
  • Suggested answer
    Waed Ayyad Profile Picture
    Waed Ayyad 6,493 Super User 2024 Season 2 on at
    Form points to one record all the time!
    Hi,
     
    It seems your issue on the code that you added on the execute query method, try to trace the code when you select another row in the main grid and see what the current buffer is of Quotation Table. 
     
    Trace the code and tell me the result.
     
    Thanks,
    Waed Ayyad
    If this helped, please mark it as "Verified" for others facing the same issue
     
     
     
     
     
  • Abdullah_Ahmed Profile Picture
    Abdullah_Ahmed 114 on at
    Form points to one record all the time!
    The dialog form adds a record and opens the details (Lines and header) of the newly added record automatically, The QuotationId of that record is written beside the label "Quotation".
    When I go back to the main grid and click on another record it should show the lines related to that record.. well, it doesn't show anything.. it only shows the lines of the last added record when I click it, any other record there are no lines for it!
     
  • Waed Ayyad Profile Picture
    Waed Ayyad 6,493 Super User 2024 Season 2 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 114 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 6,493 Super User 2024 Season 2 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
     

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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,642 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,371 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans