Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi!
How can I get a RecordField value when iterating records like this? (Error when accessing this field)
@foreach (dynamic record in Library.GetApprovedRecordsFromFormOnPage(@CurrentPage.Id, "f0170d32-0c46-4648-a0a4-105ca5c26c0e").OrderBy("Created"))
{ @record.Comment}
The example commes from this page:http://our.umbraco.org/projects/umbraco-pro/contour/documentation/developer/Working-with-Contour-data-in-Razor/
Comment author was deleted
Hey Jonas,
What is the error you are getting?
Solved, had mixed up the form id's.
The example works fine when using the corrent field names...
/Jonas
Ok glad it's working :)
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
GetApprovedRecordsFromFormOnPage + Razor
Hi!
How can I get a RecordField value when iterating records like this? (Error when accessing this field)
@foreach (dynamic record in Library.GetApprovedRecordsFromFormOnPage(@CurrentPage.Id, "f0170d32-0c46-4648-a0a4-105ca5c26c0e").OrderBy("Created"))
{
@record.Comment
}
The example commes from this page:
http://our.umbraco.org/projects/umbraco-pro/contour/documentation/developer/Working-with-Contour-data-in-Razor/
Comment author was deleted
Hey Jonas,
What is the error you are getting?
Solved, had mixed up the form id's.
The example works fine when using the corrent field names...
/Jonas
Comment author was deleted
Ok glad it's working :)
is working on a reply...