I modified the sample newapp so that when an entry is inserted 
from the page generated by the Insert.vm macro the resulting page
displays all the entries as well as a link to add an entry to a table
that contains a foreign key reference to the original RDF table.  How
do I get the RDF_ID key from the original table so I can insert it
into the new table as a foreign key?  When I use the macro below the 
foreign key is null:

$page.setTitle("InsertTask")

meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"
/head

body bgcolor="#ffffff" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"
form method="post" action="$link.setPage("IndexTask.vm").setAction("SQLTask")"
  div align="left"
    table bgcolor="#ffffff" cellpadding="5"
      tr
        #formCell ("Description" "description" "")
      /tr
      tr
        #formCell ("StartDate" "startdate" "")
      /tr
      tr
        #formCell ("EndDate" "enddate" "")
      /tr
      tr
        #formCell ("StatusId" "statusid" "")
      /tr
      tr
        #formCell ("Implementor" "implementor" "")
      /tr
    /table
    input type="submit" name="eventSubmit_doInsert" value="Insert"/
  /div
/form

Reply via email to