Need InfoPath 2010 to automatically upgrade to new template - infopath

I have a form that was created in InfoPath 2010, as an InfoPath 2003 compatible form. It has managed code behind it (C#, InfoPath 2003 object model) and it is published directly to a SharePoint 2007 form library. The form is opened from another application using XDocuments2.NewFromSolution.
I want users to automatically get the latest version of the form template, and that is what I have selected in the versioning option. However, those who are using InfoPath 2010 get a message when they open a new form after the template has been updated saying “Update Your Form” along with a button to “Save and Update Form.”
Here is what I have tried while trying to eliminate this:
Publishing as a site content type.
Publishing to a network location instead of to SharePoint.
Publishing to a network location and changing the form name (from this post http://www.infopathdev.com/forums/p/19260/66833.aspx)
Updating the version number to something totally new (like 2.0.0.1).
None of these work. This is a heavily used form and I don’t want anyone to get this Update message, especially because it makes the form not work correctly so it has to be closed and reopened. I need to figure this out before everyone is upgraded to Office 2010. It works fine in earlier versions of Office.
Does anyone have some other ideas I could try?
Thanks,
Beth

I finally contacted Microsoft support and this is what I was told:
Unfortunately there is no way to avoid the InfoPath 2010 users getting that prompt to “Save and Update Form”. Even with code it is not possible.
The users will only get the prompt the initial time to Save and Update Form as you already know, and then any subsequent openings will not prompt the users for any updates. The only way around this option is to have the InfoPath 2010 users clear their InfoPath cache first, before accessing the forms. This will delete the currently saved template information that is in their cache, so it will not prompt them to save and update the form since it doesn’t have any record of there being an open form.
The way to have users empty their InfoPath cache is by doing this:
Have them go to Start then either launch “Run” or in their “Start Search” bar (right above the Start button) have them type the following command:
InfoPath /cache clearall
(this will launch the InfoPath client on the user’s machine and they will now have empty InfoPath cache)
So I am going to make my form browser-enabled in order to avoid the Save and Update Form button.
Beth

Related

Word 16 document is opening in Locked mode

i'm Opening Word File from my Application in HTTP Path
i.e. http:\Server\SiteName\TempFiles\filename.docx
Word File Showing message as "READ ONLY : This Document is Lock for Editing by another user"
because of this my macro didn't work
Protection = ActiveDocument.ProtectionType
If ActiveDocument.ProtectionType = wdAllowOnlyFormFields Then
ActiveDocument.Unprotect "password"
WordBasic.AcceptAllChangesInDoc
ActiveDocument.Protect Protection, False, "password"
Call updateCustomVariables
ActiveDocument.Saved = True
Exit Sub
End If
every thing is working fine
and still working fine on office (Word) 13,10 machines
this problem suddenly start from last 3- 4 days
i'm getting error as Command failed (Run time Error 4198) for office 16 for ActiveDocument.Unprotect "password" line
no office Updates
no windows update
please help..
Check trusted Location Setting of Word i.e. Allow documents from Network to be trusted
disable all Protected View options
I know this isn't an answer but I'm new here and can't comment yet ;)
Got the same problem with one of our customers. Issue appeared in the latest Office 365 monthly rollout (16.0.11901.20264) a few days ago. The semi-annual version (16.0.11328.20362) doesn't have the issue. Our files are served using a URL with parameters. With previous versions of office it displays Read Only in the title bar but allows the user to edit the content.
With the new monthly version there is a read-only message that displays under the ribbon with a link to Save As. User cannot change the document content unless he saves the file locally. Even worse Word makes requests without the parameters so our code abends. I changed the code locally to put the parameter information in the path and I can open the document. But it still says that it's locked and the user can't edit the content.
We open and manage documents them using a VSTO side panel so we don't need to save them using the Save button. The application has it's own Save button that retrieves the updated content, saves it using an AJAX call and closes Word. Nice change of behavior from MS ;)

ADX Portal:The required anti-forgery form field "__RequestVerificationToken" is not present. In ADX Customer portal when displaying Entity List

I have setup ADX Master portal in my local and connecting to Dynamics CRM 365 free subscription.
Problem I am currently facing is am not able to show the list of contacts or any other entities in ADX portals.
I have created an Entity List for Active Contacts,and created a webpage under content as "activecontacts" with Page Template as "Full Page".
When I am trying to browse to the page
http://localhost/MasterPortal/content/activecontacts
it is displaying a Table with header containing all columns from the selected view but not the data.
In place of data it is displaying:
The required anti-forgery form field "__RequestVerificationToken" is not present
I have verified the cookies and the hidden field (__RequestVerificationToken) on the form. This field is present on the form. Still the page is not displaying any contacts.
Please help me to solve this issue which enable me to continue my learning in ADX.
I finally solved this problem, just in case someone else runs into this.
If you upgrade adx studio from a previous version, make sure you update the entity-*.js files. Get them from the sample project of your ADX studio new installation. For my project, I upgrade from version 7.0.0.21 to 7.0.0.24. Hope this helps someone else....
PS: Make sure you added the below in your Default.master page.
<div id="antiforgerytoken"
data-url="<%: Url.Action("GetAntiForgeryToken", "Layout",new { area = "Portal" } ) %>"></div>
I've had the same issue happen to me, to fix it I only had to run VS with elevated privileges

Storing and loading in an SQL server 2008 database to an ASP.NET web page

I'm making a page for a simple shopping website using visual studio 2010 (ASP.NET).
I have an SQL server database with sample products in it. Each product has an associated image I would like to load into a datagrid on a web page. So far I've tried storing the images as URLs and local directories (data type - text) but no joy. Any ideas?
Thanks for asking Manoj, I've actually managed to solve my issue using the following link if anyone should need it: msdn.microsoft.com/en-us/library/aa479350.aspx
My image URL was set as "text" data type in the SQL server database I then followed the instructions in the link. I'm happy to provide further help on the subject to anyone who might need it.

ADFS (CRM 2011) - Authentication Issue in Microsoft Outlook Client for CRM (Response.Redirect(...) & Window.Open(...))

Before I start, our customers have to connect through AFDS to be able to go on the CRM 2011. So we are talking about an “IFD”-environment.
I’m having a problem when using the “CRM 2011 Outlook Client” and the “Window.Open(…)”-JS function. When they hit a button in the CRM 2011 an ASPX-page fires up and does some stuff with an attachment in the e-mail. It then creates successfully a contact and then afterwards it should redirect to that “Contact”-page. But each time I do a redirect to a “CRM 2011”-page, the user is prompt for his credentials. That’s because the “Window.Open(…)” opens the screen in an new “Browser”-screen and the authentication is lost (because we come from the outlook client).
The above scenario works fine when using the “Web”-based CRM 2011, because you need first to login via ADFS.
Have some of you encountered the above problem and have a great solution to this?
Is there a way to do a “Window.Open(…)” and stay in an “Outlook”-screen? The same as you should double-click a contact in the “CRM 2011 Outlook Client”?
Is there a way while doing a “Redirect”, I can automatically give the credentials to the page, so that it will page will be opened without that the user himself need to enter his credentials? I’ve read something about SignInRequestMessage and FederatedAuthentication, but no clear examples were shown to do this.
I’m hoping that you guys can help me out. At my side, if I find any resolution, I will come back here!
Kind Regards,
Frederic
OK. This is from one of the MS presenters from the ExtremeCRM conference.
The CRM function call is: openObj(entityId, type).
I am a team leads and I had one of my team execute the implementation, but my understanding is that the call would be something like...
openObj('GuidGoesHere', 'account');
One thing to consider is that this will work in your standard client script scenario, however if you require this functionality from within a custom dialog / html resource you may need to add a reference to the appropriate JS reference depending on where in the baseline JS libraries that function resides.
I can dig deeper if you cannot get it working right away. Youd can use various browser dev tools to explore pages and see which JS resources are loaded on the page as well as debug.
Hope this helps!
This issue is related to a cache and performance problem with ADFS and a TMG server. The ability to cache must be turned on both the TMG and inside IIS. Once this issue, also deemed a performance issue went away, users then received the normal popups when performing actions like convert lead to opportunity, or email to case.
Also make sure you are on UR 6..
https://community.dynamics.com/product/crm/crmtechnical/b/cognettacloud/default.aspx

Infopaht forms display in browser and for printing them

I have two questions that in sharepoint 2007 with infopath 2007,
1)"infopath form library forms(.xml) are not opening in browser" though i have made the option to "open in browser".
2)Another question is how to "retrieve the forms stored in the infopath libraries to show in aspx pages and to print" it directly.
Please reply me if any one knows the answer.
1) Within the form options, make sure that the compatibility is set to Web Browser Form. If you are publishing the form to a document library within SharePoint be sure to check that the form is going to be opened in the browser. Last, make sure that under the advanced options in your document library settings that the browser is set to "Display as a Web page".
If your form has full trust permission you will need administrator approval to complete the publish. This requires that the form is saved in a location that can be accessed by STSADM.
2) If the above steps work you will be able to view and print your form from within the browser.
Good Luck!

Resources