cmury Posted November 1, 2002 Posted November 1, 2002 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
Garry Claridge Posted November 1, 2002 Posted November 1, 2002 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
cmury Posted November 4, 2002 Author Posted November 4, 2002 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
Garry Claridge Posted November 4, 2002 Posted November 4, 2002 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
cmury Posted November 4, 2002 Author Posted November 4, 2002 Oh - I see. And I guess you delete records in a similar way? Thanks Chris
Garry Claridge Posted November 4, 2002 Posted November 4, 2002 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
Recommended Posts
This topic is 8124 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now