Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

[CLOSED] try to add comments 12 Nov 2018 18:58 #15623

  • Nicolas
  • Nicolas's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 83
  • Thank you received: 12
Hello everyone.
As explained in the title I'm trying to add comments on my component.

I am on a helpdesk project and I would like to add a discussion system in the tickets.
i think the easiest way is make a comments system by adding a form in the ticket page, but I can't add a text box "comments" with the FK to it added in the right table.

Existing comments are well displayed, but not user names. I am a little lost if someone can help me.

you can find attached my database

Thank you very much in advance
Attachments:

Please Log in or Create an account to join the conversation.

Last edit: by Nicolas.

try to add comments 14 Nov 2018 22:42 #15624

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
You need to achieve that manually, using N:m

One leg (FK) to the item (article)
One leg (FK) to the user

The value of the text field should NOT be stored in the article. The form values must be catched BEFORE saving and creating a new N:m record
It would be long to explain in details, but that's the basic idea
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

try to add comments 26 Nov 2018 18:23 #15628

  • Nicolas
  • Nicolas's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 83
  • Thank you received: 12
Salut l'admin !

would not it be simpler to create a brick form in the layout and modify the toolbar to record the written comment ?

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.074 seconds

  I found "cook" two days ago. Played around with it for a day and then within a day got rid of two legacy applications in IBM Lotus Domino Notes and replaced them with "cook". It was really easy. A piece of cake. Actually it was even easier than cooking. Cooking involves more work than developing with "cook". What can I say about "cook"? Great application great price for what it delivers great forum with a lot of information and fast responses active and friendly community fast forward moving development cycle So what should I say "Monsieur Le Cook"? Keep the good work going it will lead to success. Having become a paying member in the words of Edith Piaf may I say ..... non rien de rien ... je ne regrette rien. Vive La France.
FK (JED)
         

Get Started