Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Answered

To add comments in fields with comma seprator

Posted on by 1,457
hi ,
I am having custom field on my form , i want to add comments after previous comments with comma seprator , how can i get this done can anyone help me on this .
 
 
thanks ,Dinesh
  • Dineshkarlekar Profile Picture
    Dineshkarlekar 1,457 on at
    To add comments in fields with comma seprator
    hi , martin 
     thanks for help , 
     
    i have set the allow edit property on table to no , and allow edit on create to yes, now it is working as expected. 
    thanks,
    Regards,
    Dinesh 
  • Martin Dráb Profile Picture
    Martin Dráb 229,993 Most Valuable Professional on at
    To add comments in fields with comma seprator
    AllowEdit controls whether existing records can be changed. Whether you can create new records is controlled by AllowCreate.
     
    Your problem must be caused by something else.
  • Dineshkarlekar Profile Picture
    Dineshkarlekar 1,457 on at
    To add comments in fields with comma seprator
    hi , 
    martin , 
    i set the allow edit property to no but this make grid uneditable when i add new line , when i create new line grid should be editable ,it only should be uneditable for previous comments .
  • Martin Dráb Profile Picture
    Martin Dráb 229,993 Most Valuable Professional on at
    To add comments in fields with comma seprator
    Let's keep the question of user name and time in the thread you've created for it (To save the comments in field with curuser name and date and time). Note that I already gave you the answer (using CreatedBy and CreatedDateTime properties) there last week. If you have questions about it, ask them there.
     
    The way how you can prevent editing of saved records is setting AllowEdit property of the form data source to No.
  • Dineshkarlekar Profile Picture
    Dineshkarlekar 1,457 on at
    To add comments in fields with comma seprator
    hi ,
    i have created new table , added comments , user name and date and time field add created new grid on form which is having relation to header table , now plz can you guide me how can i get comments uneditable after saving and pass current user name date and time when ever someone save comment . 
     
    thanks , regards, 
    Dinesh  
  • Dineshkarlekar Profile Picture
    Dineshkarlekar 1,457 on at
    To add comments in fields with comma seprator
    hi ,
    Martin thanks for reply,
    i will just check for requirements and let you know , then i will process as you suggested 
     
    thanks ,
    regards ,
    dinesh 
  • Verified answer
    Martin Dráb Profile Picture
    Martin Dráb 229,993 Most Valuable Professional on at
    To add comments in fields with comma seprator
    These are the options I would consider:
    • Have a separate table for comments. When a user adds a new comment, you'll simply add a new record. This allows you to track other information, such as who added the comment and when. (Of course, I can't know whether this would be useful for your business scenarios or not). Another benefit is that you won't bloat up size of the original record and you may even get rid of the memo field and support filtering.
      When/if needed, you can concatenate the comments and show them to use a user together.
    • Simply let users to edit the comment field.
    • Give users a dialog (e.g. a drop dialog) to add a comment (instead of editing the field directly) and add attach the new comment to existing comments in code.
    Update: I've just found another thread of yours, To save the comments in field with curuser name and date and time, which clarifies that your current design doesn't meet your requirements and you need to follow the first of my suggestions.
  • Dineshkarlekar Profile Picture
    Dineshkarlekar 1,457 on at
    To add comments in fields with comma seprator
     is it  possible to do in 1 field because i have only on field on form .
     
    Also can you please update us and verify answers if the link/answers we provided here helped you in creating the dialog and uploading the file?
    https://community.dynamics.com/forums/thread/details/?threadid=30cbd07b-2873-ee11-9ae7-00224827e8f9
     
     i have tried verifying this link , but is is not continuesly loding since i click on verify .i will update u soon on it 
  • Layan Jwei Profile Picture
    Layan Jwei 7,328 Super User 2024 Season 2 on at
    To add comments in fields with comma seprator
    Hi Dinesh,
     
    Just so that I understand. So the new user will open the form and will see the comment of the previous user? And you don't want the user to delete the previous comment? But just add to it?
    Are we talking about 1 field or 2 fields?
     
    Also can you please update us and verify answers if the link/answers we provided here helped you in creating the dialog and uploading the file?
    https://community.dynamics.com/forums/thread/details/?threadid=30cbd07b-2873-ee11-9ae7-00224827e8f9
     
    Thanks,
    Layan Jweihan
  • Dineshkarlekar Profile Picture
    Dineshkarlekar 1,457 on at
    To add comments in fields with comma seprator
    hi ,
    thanks for reply ,
    comment field is memo field on custom table, which is displayed on custom form  
    when ever the user add the entries in form , he will fill comments . so every time someone will be adding the comments so i want it to after adding any record in form , so i want previous comments , and new comments with comma seperator . 
    can you plz guide me which table method i should use .
     
    thanks ,
    Regards,
    Dinesh 

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 229,993 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans