Store Xpath infopath value on a sharepoint form
Hello all,
I am very new in SharePoint and InfoPath and I am struggling storing a xpath date value on an "Incident tracker" form.
Basically, the form works in the following way:
An issue/incident occurs
If the incident is new, an incident form is filled up.
If not, an existent incident is opened and updated, which is set up to print the date (Xpath value) on a part of the form.
Is there a way I can store that date value on a list or something so we can delimitate and export what incidents have occurred between two dates?
Any help would be much appreciated.
Thanks in advance.
Hi,
I think thats not related to my question... because that will give me the xpath value of a field once a click a button, but I am not asking for that.
What I would like to achieve is to store the Xpath date value generated every time an existent incident is amended in a variable, such as an array or list, so i can then short the incidents raised on a specific date period (between two dates).
Is that possible?
Similar Messages
-
InfoPath Field Promoted to SharePoint Form Library Cannot Edit
Greetings,
I have an InfoPath 2013 form with a field named "Form Stage". It's purpose is to maintain a process stage that is subsequently used by a SharePoint Designer 2013 workflow.
When the "Form Stage" field is not promoted to the column in the form library, my workflow is able to access and change the field value. However, when I promote the InfoPath field to the SharePoint form library field, the workflow is unable
to change that field's value?
Does this sound correct?
My goal is to create a state machine type process where the form and workflow work together based on the stage it is in. What is the best practice approach for accomplishing this?
Thank you!Hi,
you just have to change your promoted fields in InfoPath to "allow for editing in SharePOint."
Go re-publish the form template, and when you get to the stage where you promote columns, you'll need to click on each field individually and check the box at the bottom that allows them to be edited in SharePoint. Then, your SPD workflows will be able
to update the fields, but be aware that users will also be able to edit the fields without opening the form itself. Because of this, I typically set my columns to be "hidden" in the content type so that they show in the views but not on the
properties page.
Whenever you see a reply and if you think is helpful,Vote As Helpful! And whenever you see a reply being an answer to the question of the thread, click Mark As Answer -
need to run through a list of old to new data (.csv) file and change them in a sharepoint list - can not make it work
here is my base attempt.
$web = Get-SPWeb site url
$list = $web.lists["List Name"]
$item = $list.items.getitembyid(select from the items.csv old)
$modifiedBy = $item["Editor"]
#Editor is the internal name of the Modified By column
$item["old"] = "new from the .csv file parsed by power sehll
$ite.Syste,Update($false);
$web.Dispose()Hi,
According to your description, my understanding is that you want to update SharePoint field value from a CSV file recursively.
We can import CSV file using the Import-CSV –path command, then update the field value in the foreach loop.
Here is a code snippet for your reference:
Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue
$csvVariable= Import-CSV -path "http://sp2010.contoso.com/finance/"
# Destination site collection
$WebURL = "http://sp2010.contoso.com/sites/Utility/"
# Destination list name
$listName = "Inventory"
#Get the SPWeb object and save it to a variable
$web = Get-SPWeb -identity $WebURL
#Get the SPList object to retrieve the list
$list = $web.Lists[$listName]
#Get all items in this list and save them to a variable
$items = $list.items
#loop through csv file
foreach($row in $csvVariable)
#loop through SharePoint list
foreach($item in $items)
$item["ID #"]=$row."ID #"
$item.Update()
$web.Dispose()
Here are some detailed articles for your reference:
http://blogs.technet.com/b/stuffstevesays/archive/2013/06/07/populating-a-sharepoint-list-using-powershell.aspx
http://social.technet.microsoft.com/wiki/contents/articles/25125.sharepoint-2013-powershell-to-copy-or-update-list-items-across-sharepoint-sites-and-farms.aspx
Thanks
Best Regards
Jerry Guo
TechNet Community Support -
InfoPath Cannot Save The Following Form - SharePoint 2013
I've setup my SharePoint 2013 farm to allow to support InfoPath Services, however when I try to publish a form I keep getting the following error:
InfoPath cannot save the following form: https://pathto.com/form/library/file.xsn
Network Problems are preventing this file from being saved. If this problem persists, contact your network administrator.
I've confirmed there's no firewall between my Windows 8.1 workstations (where I'm running InfoPath 2013 from) and the Windows Server 2012 server that's hosting the SharePoint 2013 farm. Any insight would be much appreciated.Hi,
I recommend to verify the things below:
Check if the WebClient service is started. If not, start the WebClient service.
Use another user account to publish the InfoPath form to see how it works.
Check if the form library is a valid library in the browser. If not, publish the form to a valid library.
Check ULS log for detailed error message.
Here is a similar thread for your reference:
https://social.msdn.microsoft.com/Forums/office/en-US/86a2fc0f-d41f-401c-99fa-b2ca5412c9fd/infopath-cannot-save-the-following-form-this-libary-was-either-renamed-or-deleted-or-network?forum=sharepointcustomizationprevious
Best regards.
Thanks
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
WCF Service and Sharepoint Form library : How i can read or access a form libray and query a item from file name and read form xml in WCF service ?
Ahsan RanjhaHi,
In SharePoint 2013, we can take use of REST API or Client Object Model to access the SharePoint objects like Form Library.
SharePoint 2013 REST API
http://msdn.microsoft.com/en-us/library/office/dn450841(v=office.15).aspx
http://blogs.technet.com/b/fromthefield/archive/2013/09/05/working-with-sharepoint-list-data-odata-rest-and-javascript.aspx
SharePoint 2013 Client Object Model
http://msdn.microsoft.com/en-us/library/office/fp179912(v=office.15).aspx
http://msdn.microsoft.com/en-us/library/office/jj193041(v=office.15).aspx
With the retrieved file, we can then use XmlDocument object to parse it and get the values you want:
http://weblogs.asp.net/jimjackson/opening-and-reading-an-xml-file-in-a-document-library
http://stackoverflow.com/questions/1968809/programatically-edit-infopath-form-fields
Best regards
Patrick Liang
TechNet Community Support -
Change the value of a SharePoint List lookup control value using javascript
hi,
could you please help in changing the value of a SharePoint List lookup control value using javascript.
Please note that i have to change the lookup value which is in the form of a drop down from the infopath form.
Thankshttps://stackoverflow.com/questions/5678210/select-dropdown-menu-option-with-javascript
Does that help? -
Hello Everbody,
well, you know it and everybody should avoid it. You have some huge amout of Test Cases and all go well, so you declare a Project to "Production ready" and then you found out something doesnt work, like happen now at my side.
We have a InfoPath Form, which is beeing used as Template in a SharePoint Form Library. We have also a Nintex Workflow which asked different People to "approve" or "reject" a form if a new one was submitted. All that works now like a charm BUT, we have also a Field in the Form where you can Add Attachments. Its the Regular "File Attacment" of the "File and Picture" Design Task Window from InfoPath in Designer Mode. So nothing spezial coded or something like that.
As long a user has Write permissions, he can open those Attachments which are included in the Form (like they should), but in the moment the User has only 'Read' Permissions he CANT Read the Attachment anymore... no iam in a huge mess, its not absolut cirital But the biggest Problem at my ToDo List now so i would be really happy if someone can tell me there is a way out of this situation instead of (and so i think) this isnt a bug/problem - its a feature (you know those sentences...).
We cant give everbody just their Write Permissions back of those file because they are 'finally' approved and should only be archived for later reviews if needed. But therefore its good to let those reviewer read those Attachments to.btw. i've found some information about this isue, and it seems that i am right - its a Feature , not a bug ...
i have to set every Item in my ReadOnly view to "read only", disable all options to the user to edit something and then uncheck the ReadOnly Attribute of the View self. If i also uncheck the permission for the viewing user to add/delete Attachment he can still open the attachments.
BUT, what about Checkboxes ? And Drop Down 's ?
Okay, all drop down windows kann be replaced by normal textboxes with the same Data Source, but what about Check Boxes? There is no option to make it Read Only "in reference" of the current view. Now, i could easly (maybe, only theoretical) create a function which writes into a field the current Viewname and makes all Checkboxes ReadOnly if the View has a proper name. The Problem, in the second the user is opening the form the old value of the "View" Field was (for example) German View, so the function is replacing this text with "ReadOnly" which means the user HAS changed already something on the Form. If he no tries to close the form - he will be asked if he want save those changes (which he cant because he has only ReadOnly permissions on the file) but instead of saving those Changes it generates a NEW submitted Form which is a fallout in this szenario.
So what now ? Any tipps ? -
Publishing a text box to be multiple lines of text in SharePoint Form Library
Hello
I have some text boxes on an InfoPath form which is then published to a SharePoint form library. However, when the form creates columns in the form library, some of the text boxes are being published as Single Line of Text which then cuts off some of the
text as users can type more the 255 characters in the text box.
My question is how can I make sure that the form publishes the field as a multiple line of text instead? Some of the boxes did this by default but there are others that did not and I am missing text on them.
ThanksWhen you add the control to the form, choose the Multi Line of text option instead of the single line of text option, if you are unsure, when you add the control to the form, right click it and select properties, from here you can change the data type
from single line of text to multi line of text.
Regards
Sergio Giusti
http://sergioblogs.blog.co.uk/
Whenever you see a reply and if you think is helpful, click " Vote As Helpful". And whenever you see a reply being an answer to the question of the thread, click "
Mark As Answer". -
Query on InfoPath based solution for SharePoint 2013 O365
We are working on a Lotus Notes to SharePoint 2013 – O365 migration project. In that we have bunch of applications with list forms that requires UI customization using InfoPath to show the large number of columns in a tabular format / various sections /
simple rule validations / cascaded lookups.
Since the InfoPath form based solution are not supported on the next version of O365, we would like to know what is the Microsoft preferred alternative practice for such cases.
Vijayaragavan, MCTSyou can use access
read the following articles to give you an idea
http://zimmergren.net/business/the-future-of-forms-with-sharepoint-and-office-365
http://blogs.office.com/2014/01/31/update-on-infopath-and-sharepoint-forms/
http://technet.microsoft.com/en-us/library/sharepoint-online-service-description.aspx
Kind Regards, John Naguib Technical Consultant/Architect MCITP, MCPD, MCTS, MCT, TOGAF 9 Foundation -
Convert Sharepoint forms to html
Hello
My assign task is to import Sharepoint Forms to Online Forms so for that i need to convert Sharepoint forms into HTML by using any API/SDK/DLL
So I want to know how can i convert Sharepoint forms into HTML Programatically
Thanks in Advance
Manish K. BhalodiHi Paul
Thanks for your such quick reply
We have a Online Form making project like Wufoo & Frevvo,
in that we have a functionality to import forms from Sharepoint List & Infopath, for Infopath i manage to convert it in HTML,
In sharepoint i have no idea, and i never work in sharepoint, but i know sharepoint has designer and whatever we design in sharepoint that i need to convert in HTML, and user can import simple textbox, checkbox, label, multiline textbox template not too
much advance control
We have a requirement of importing SharePoint List Form.
Manish K. Bhalodi -
Multi-Valued Properties in XML Forms
Hello,
Can anyone tell me how to select multiple values for multi-valued properties in an XML Forms. It seems that the combo box only allows you to select one value.
Thanks,
Chris.Hi Chris,
nice to hear, that you're implementing my way of solving this multi value issue. And much nicer to hear, that it seems to work for you, too!
You can not write back your multi value properties from XML form. Thats for sure. You can think of:
1. Synchronize the value of your text field property with the value of the multi value propery whenever you store the document. This could be done using the event "property set".
<a href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5d0ab890-0201-0010-849d-98d70bd1d5f0">See: KM Events</a>
2. Overwrite the content of your multi value property at runtime, depending on the value of the single value property which holds the csv. Do this by using a Repository Filter. <a href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/70ee3a57-0701-0010-3e9a-ddae7e4e0521">See: RepositoryFilter</a>
3. Forget about the multi value property and make the text field property indexable. This should work, too.
All three options should work!
HTH,
Carsten -
Infopath cannot save the following form - this document library was either renamed or deleted
Hi there,
I'm working in InfoPath 2013, using a remote desktop connection to a Windows 7 machine publishing to an on-prem SharePoint 2013 server.
When creating my form, I go to publish it to a form library and get the following error:
InfoPath cannot save the following form http://myformlocationandname This document library was either renamed or deleted, or network problems are preventing the file from being saved. If this problem persists, please contact your network administrator
I've tried updating a library, creating a new library, but neither work. I can however, edit a list and customise the form to then publish back without a problem.
If anyone could offer any advice, I'd be very grateful! :-)
Thanks very much,
AlexStep1: First, the method of control :
Add
Windows Server Feature: User Interfaces and Infrastructure -> Desktop
Experience
Reboot
Start
Windows Services -> Themes service
Step2: I did not answer:
Go to SharePoint and create new Subsite
Created Test Subsite -
Calculation of values in a dunning form (SAP Script)
Hi Experts!
I want to add values to a sum (dunning-amount + dunning-fee + interest) in a dunning form (SAP Script; Z150_DUNN_02).Therefore I'm using a subroutine (Z_FI_KX_DUNN_02_INTEREST) to summarize. Problem is the format of the output-field &Z_FAEBT&. It's not similar to field &MHNK-FAEBT& which was formerly printed (without calculation of interest and dunning-fees.
/: DEFINE &Z_FAEHW& := &MHNK-FAEHW&
/: DEFINE &Z_ZINHW& := &MHNK-ZINHW&
/: DEFINE &Z_MHNGH& := &MHNK-MHNGH&
/: DEFINE &Z_FAEBT& := &MHNK-FAEBT&
/: PERFORM ZFAEBT IN PROGRAM Z_FI_KX_DUNN_02_INTEREST
/: USING &Z_FAEHW&
/: USING &Z_ZINHW&
/: USING &Z_MHNGH&
/: CHANGING &Z_FAEBT&
/: ENDPERFORM
/: ENDIF
A3 &MHNK-WAERS& &Z_FAEBT(C)&
It would be fine to get a hint how to format the field &Z_FAEBT& correctly. Must be done in the subroutine Z_FI_KX_DUNN_02_INTEREST by a special WRITE-command? Is it possible to add these values only in the form?
Thanks for support!
Regards, Berndhi!
I defined the field like you said! After moving this field to a numeric field to add the different amounts the
following error occurred:
Runtime errors CONVT_NO_NUMBER
Exception CX_SY_CONVERSION_NO_NUMBER
Occurred on 16.06.2009 at 15:15:25
Unable to interpret " 1.316,59" as a number.
Definition:
FORM zfaebt TABLES in_par STRUCTURE itcsy
out_par STRUCTURE itcsy.
TABLES: mhnk.
DATA: z_faehw_num LIKE mhnk-faehw,
z_zinhw_num LIKE mhnk-zinhw,
z_mhngh_num LIKE mhnk-mhngh,
z_faebt_num LIKE mhnk-faebt.
DATA: z_faehw TYPE string,
z_zinhw TYPE string,
z_mhngh TYPE string,
z_faebt TYPE string.
statement:
READ TABLE in_par WITH KEY 'Z_FAEHW'.
CHECK sy-subrc = 0.
z_faehw = in_par-value.
z_faehw_num = z_faehw.
I suppose a type-conflict.
Regard, Bernd -
How to get Document Set property values in a SharePoint library in to a CSV file using Powershell
Hi,
How to get Document Set property values in a SharePoint library into a CSV file using Powershell?
Any help would be greatly appreciated.
Thank you.
AA.Hi,
According to your description, my understanding is that you want to you want to get document set property value in a SharePoint library and then export into a CSV file using PowerShell.
I suggest you can get the document sets properties like the PowerShell Command below:
[system.reflection.assembly]::loadwithpartialname("microsoft.sharepoint")
$siteurl="http://sp2013sps/sites/test"
$listname="Documents"
$mysite=new-object microsoft.sharepoint.spsite($siteurl)
$myweb=$mysite.openweb()
$list=$myweb.lists[$listname]
foreach($item in $list.items)
if($item.contenttype.name -eq "Document Set")
if($item.folder.itemcount -eq 0)
write-host $item.title
Then you can use Export-Csv PowerShell Command to export to a CSV file.
More information:
Powershell for document sets
How to export data to CSV in PowerShell?
Using the Export-Csv Cmdlet
Thanks
Best Regards
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
Issue with setting a default value to a Tabular Form field
Hi -
I'm running into an issue setting the default value of a tabular form column. I'm trying to set the default value to the row number (#rownum#). This used to work in previous versions, but now it's returning 0. Is there a was to set this value in the default value attribute of the field with a substitution string?
Thank you in advance for help!Share with us what worked in previous versions.
Jeff
Maybe you are looking for
-
T61 no longer recognizes DVD super-multi drive
My T61 for some reason has stopped recognizing my DVD super-multi drive (GSA-U10N). I do not use the optical drive often, so I am not sure when during the past couple of months this occured. I have tried finding it using Lenovo System Toolbox and D
-
I just got an email receipt from Apple for use of my itunes account. Someone must have hacked by account. Spent all the money in it. How do I contact itunes to get my money back into my account?
-
How do I ZIP compress existing TIFF tiles in Lightroom 3?
I have imported about 1000 .tif files into Lightroom and done some cropping and basic editing to them. They are 8bit uncompressed tiff files in Adobe1998 color space. I am trying to find a way to compress the original tiff files with ZIP compression
-
How do I make New window open maximized the way it used to?
How do I make New window open maximized the way it used to?
-
Change Sale order range number
Hi, I have implemented the number range selection in user exit MV45AFZZ for sale order. Is there any BADI available which provide the same capability as MV45AFZZ ?? Regards, Kit