Menu

Support for relations?

LordV
2004-12-01
2013-04-17
  • LordV

    LordV - 2004-12-01

    One point has always been in my mind regarding web programming and databases.

    When I have two tables. For example one table 'employee' and another table 'division'. There is a relation between both. Now I want to Edit 'employee'.
    There is a textfield for name etc ... and then I want to have a selection field where I can choose the division this employee works for.
    But not the name of the Division is stored in the employees table, but the index (primary key) of it. The name is only displayed for the user.

    Is this possible with pcg?

    Thanks

     
    • Darrel O\\\'Pry

      Darrel O\\\'Pry - 2005-02-10

      I don't know, but foreign key constraint support would be very nice. I'm just starting to figure out object oriented programming, so I'm not sure of my ability to implement it well in the generated code.

      for a ui I can see extending the right table selection box on the 'PCG Framework Generate All Code'  to include the fields of each table, and a drop down box containing the name of all fields from other tables with a matching/compatible type.

      Table
          <checkbox>  tablename
                 <checkbox> fieldname constrain to <dropdown>

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.