1 Reply Latest reply on Apr 10, 2012 7:41 AM by GuyStevens

    notes system add new notes

    shronk

      Title

      notes system add new notes

      Post

      Hi there,

      I'm looking to create a notes system for my solution.

      I've created a table NOTES and linked it to my main table. It shows the related notes trough a portal - all fine so far.

       

      Now I'd like to add a button that will take me to a layout where I can add the note and submit the note trough a "submit button".

      How would that script have to look like? I'd need to get the ID of the entry I came from and put it inot a filed.

       

      Or is there a better way to add/show notes?

       

      thanks in advance!

        • 1. Re: notes system add new notes
          GuyStevens

          You could go to your relationship dialog "File" - "Manage" - "Database" and click the third tab "Relationships".

          Then doube click the relationship between your Main and your notes. In the new dialogue box select "Allow creation of records via this relationshop" on the side of the notes table.

          This way you can add notes directly from within the portal.

           

          The other way would be to make a script where you:

          - Set variable [$MainID; Main::ID]
          - Go to Layout (Notes)
          - Create New Record
          - Set Field [Notes::MaiIdFk; $MainId]

          Then you manually type your note after wich you might need a button to go back to the main layout.

          But I would go woth the first option.