Skip to main content

Notifications

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

How should I remove the previous form record on child form?

(0) ShareShare
ReportReport
Posted on by 162
Hi ,
I have one form where I click the button and when I go to child form, the previous form's record comes in form caption. I can't figure out how to remove it. 
When I click on the menu item button on the Users form, the form shows the following caption which is coming from previous form record. Please help me in removing it.
 
//
 
 
 
  • Suggested answer
    How should I remove the previous form record on child form?
    Hi Harshal,
     
    Try to override parentTitleFields method on that datasource and return null.
     
    Example:-
     
    Public TitleFields parentTitleFields(common _record)
    {
          Return " ";
    }
     
    Hope this will work for you. It's working fine for me.
     
    Thanks
  • Suggested answer
    Arunraj Rajasekar Profile Picture
    Arunraj Rajasekar 1,731 on at
    How should I remove the previous form record on child form?
    Hi Harshal,
     
    Please check the table joins on this form. There is chance that form is displaying the first record in the table since query is not properly executed.
     
  • GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 on at
    How should I remove the previous form record on child form?
    Do you set the title field1 and title field 2 property on the table? - Try removing that and check
    What form patter are you using?
     
    Thanks,
    Girish S.
  • Harshal Jain Profile Picture
    Harshal Jain 162 on at
    How should I remove the previous form record on child form?
    Hey Girish,
    the Title datasource is already blank. I also tried 2nd and 3rd method suggested by you, but it did not give the desired result. I can still see the record from the previous form.
  • Suggested answer
    GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 on at
    How should I remove the previous form record on child form?
    Hi Harshal,
     
    Normally this field values will come from the title field properties set on the table.
    First try to remove the "title DataSource" on the design property and see if it works.
    Second try adding the code in the init method like "element.design().titleDataSource(false)".
    Third option will be setting the caption to empty in the init method "element.design.caption("")".
     
    Thanks,
    Girish S.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,965 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,817 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans