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
I've recently found myself as the developer for a previously developed Contour application where I work. Currently, if a form has been partially submitted, it is not possible for the user to resume it. It would be possible for our users to start and not complete a few forms at a time, so what I'd like to do is when they log in, list their incomplete forms and allow them to resume them.
I can get it to list any forms that are not complete. My question is, how do I then take that information and direct them to complete the form?
I've looked through the developer documentation but I can't find anything of use in there. I've search Google and also can't find anything there!
Any pointers in a general direction would be much appreciated! My installed version of Contour is 3.0.4 and my site is MVC.
Thanks in advance.
If it's of any importance, this is how I'm getting my list:
var allEntries = Library.GetRecordsFromForm("MY-GUID");
var memberKey = Membership.GetUser().ProviderUserKey.ToString();
var entries = allEntries.Items.Where(i => i.MemberKey.ToString() == memberKey).ToList();
@foreach (var record in entries)
<span>@record.Id - @record.State</span>
Comment author was deleted
In the current WIP version 3.0.8 you can provide a record id to the form and then edit the record
So you could upgade to http://nightly.umbraco.org/Umbraco%20Contour/3.0.8%20WIP/
And then simply pass the record id to the page containing the form ?recordGuid=GUID
Thanks Tim, will that version of Contour work with my version of Umbraco? I'm on 4.11.1 currently.
Hmm might work with assembly redirecting , will give it a test and let you know
Can't get it to work on v4 so only option is to update umbraco
Ok, I thought that might be the case! Thanks for trying anyway :) I'll try updating to 6 and installing the 3.0.8 update.
I've updated to v6 now and I'm trying to install the UmbracoContour_3.0.8 WIP_update.zip but I'm getting the following error when trying to load the package. Any ideas why I'm getting this?
Could not upload fileSystem.Exception: Error unpacking extension... ---> System.IO.FileNotFoundException: Could not find file 'C:\TFS\WebsitesCMS\VibrantSurvey\Website\App_Data\04b960a9-4dea-4b76-be50-ec827d8f4b43\package.xml'. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize) at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy) at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn) at System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver) at System.Threading.CompressedStack.runTryCode(Object userData) at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) at System.Threading.CompressedStack.Run(CompressedStack compressedStack, ContextCallback callback, Object state) at System.Xml.XmlTextReaderImpl.OpenUrl() at System.Xml.XmlTextReaderImpl.Read() at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) at System.Xml.XmlDocument.Load(XmlReader reader) at System.Xml.XmlDocument.Load(String filename) at umbraco.cms.businesslogic.packager.Installer.LoadConfig(String tempDir) at umbraco.cms.businesslogic.packager.Installer.Import(String InputFile) --- End of inner exception stack trace --- at umbraco.cms.businesslogic.packager.Installer.Import(String InputFile) at umbraco.presentation.developer.packages.Installer.uploadFile(Object sender, EventArgs e)
Yeah that's because it's not a package, just an archive follow upgrade instructions here: http://our.umbraco.org/projects/umbraco-pro/contour/documentation/Installation/Upgrade (basically just an xcopy)
Yep that did it and I can confirm the ?recordGuid= is working for me now. Thanks for your help Tim.
is there a way to get the recordGuid parameter to work with umbraco v4? I'm using contour v3.0.6, and I need to include the form rendering razor macro in my templates because I've to implement conditional logic between fields (the usercontrol macro doesn't support conditional logic if I'm not wrong) and at the same time I need to resume partially submitted forms.
Any help will be appreciated.
Will look into making a 3.0.9 tomorrow that works on both v4 and v6, more details then
3.0.9 is out today and it works on v4 (from 4.10) and v6 http://our.umbraco.org//forum/umbraco-pro/contour/39069-Contour-309-changes
Great! Record resuming works now with razor macro.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted