November 1, 200223 yr All I am looking for an example of a editable portal in a custom page. I have successfully created a simple non-editable portal on a record detail page but I have found that making this editable is quite tricky. Any suggestions or example code would be greatly appreciated Thanks Chris
November 1, 200223 yr This is the CDML you would use to have editable portals on a page: [FMP-Portal:myportal] <input type="text" name="myportal::myrelfield.[FMP-CurrentPortalRowNumber]" value="[FMP-Field:myportal::myrelfield]"><br> [/FMP-Portal] Hope this helps. Garry
November 4, 200223 yr Author Gary, Thanks for you help. This all works successfully :-) But I now have another question. How do I create new records through this portal? I know this is achieved in FM if you direct the user to the last portal row. Can this be done using CDML? Any help would be greatly appreciated Chris
November 4, 200223 yr You can create a new PortalRow by assiging values to Portal Fields which have a suffix of ".0" like this: <input type="text" name="myportal::myfield.0" value="Enter Data Here"> Hope this helps. Garry
November 4, 200223 yr Author Oh - I see. And I guess you delete records in a similar way? Thanks Chris
November 4, 200223 yr I haven't tried that method for deleting rows. I have used some Javascript and a calculated field which gives me the RecordID of the related record. All the best. Garry
Create an account or sign in to comment