InfoPath 2013 unable to change table to repeating table - sharepoint

I'm trying to create a table with a repeating row in InfoPath 2013 (editing a Sharepoint 2013 custom list in case that matters). I'm unable to post a screenshot of the table to show you, but it is a 2-row, 2-column table with text in the first row, a Date/Time field in the 1st column of the 2nd row, and a text field in the 2nd column.
When trying to create this repeating table, I'm getting a prompt that says "InfoPath cannot automatically create a field or group in the section containing this control. To set the binding, select a field or group in which to store the control's data:" (I would post a screenshot of this too, but reputation is too low)
Any ideas as to why this is happening? I'm having trouble finding out exactly how repeating controls work in InfoPath and how to create them.

Related

Hidden Column in Sharepoint 2013 shows up in excel download

I have a SharePoint 2013 list where I hide a column "Incremental Number" on the list view but when I download the list it shows up in the excel download. I checked the modified view setting and the hidden column is checked off. How can I NOT show it in excel download? This Column-"Incremental Number" is used to create another column which is an ID column.
Thank!
The “Export to Excel” function is used to export all items in the current view. It means, the columns and items in the exported table are determined by the current list view. So make sure you have selected the correct view before exporting the list.

SharePoint 2013 Calculated Field not working all the time

I have a form where I need to include a calculated field. I made a very simple test using a calculated field where the formula is "=ID". I just want to confirm that the value I'm getting in the view is the same as the ID of the record in the list.
I press NEW and create a new record. Then when I see the new record in the view, the first column is the ID (let's say 11), then some proper fields form the form and finally the calculated field that instead of showing me the value 11, it shows 0.
Then I follow the following steps:
I go to Settings, List Settings
Click on the calculated field to edit it (only edit it with no modifications) and press on OK (no modifications to the calculated field at all)
Go back to the list of records and now the calculated value shows me the value 11
I google it but no solution.. there is someone say that this issue is from the column ID, it mean 'when you initially save the item is that there is no value for "ID" yet' !
and this isn't my state, the column id is incremented normally when add new item.
Anyone can help me to identify with the calculated field does not shows 11 automatically after the record is saved?
or by follow another solution like using a workflow 2013..
Thanks a lot
You can not use [ID] in a Calculated Column formula.
I won't bother with the long technical explanation...
If it was possible, Microsoft would have added it to the list of Fields you can select when writing a Formula.
Workaround is to make a simple SharePoint Designer Workflow which kicks off on Item creation and saves the ID value to another Column.
You can then use that Column in your Calculated Formulas
If you're doing anything front-end.. jQuery.. CSR/JSlink.. the ID value is available in the attribute id of the Item TableRow (TR) as x,id,y
so you can get the id with
var ID={element}.getAttribute('id')[1]
Update #1 - example code used:
="<a href='/sites/ru1/Lists/ao26c/DispForm.aspx?ID='
target='_blank'><img src= '_layouts/images/blank.gif'
onload= ""var row=this;
while(row.tagName!='TR'){row=row.parentNode};
this.parentNode.href+=row.‌​getAttribute('id').split(',')[1];
"">Открыть</a>"

Show All Sharepoint List Items in Infopath Form

I was wondering how I can pull the sharepoint list items data and display it in the Infopath form. I have a feeling I will have to use the repeating table but can't seem to figure it out/find tutorial. I'd like to display columns, ex. "Book Title", "Author", "Notes" and have it just pull data and make rows automatically. Thanks
Figured it out, once you make a data connection to your sharepoint list library, you just set it as the repeating table properties.
Double click on "Repeating Table"
Change Binding
Select the data source then select the FOLDER that contains the columns data, then next
Add the columns you want to display and your done.
Preview to double check

How to Auto-number Repeating sections in InfoPath 2010

I have several rows in my InfoPath form initially arranged in a table. Afterwhich, I've a repeating section consisting of a single row for the user to enter data row-wise in a repeated fashion. Each row needs indexing, the index starting from the index of the last row in the previous table.
There is no "Expression box" control available in InfoPath 2010 for auto-incrementing as stated by multiple other sources on the web.
I do not need the form to be numbered after submission. I want the ROWS to be auto-numbered while the user enters values under the repeating section while filling the form in the browser.
Is there a way or any work around to this problem? Or, is there any formula that can be used?
I can be done using the count function, example:
count(../preceding-sibling::*) + 1
You will need to have a field in your repeating group for the ID, then go to that field's properties and set it's default value to that function using the formula button. You'll then have to edit xpath values to set the value to that function call.
Note: I am using InfoPath 2007, so I am not 100% sure this applies to InfoPath 2010
I was looking for something simlilar, except I simply wanted my repeating sections to show a number.
The answer from #firestream almost worked for me, except for some reason, the first section was not being set. They were numbered as "blank, 2, 3, 4, ..." Also, I didn't need the number to be persistent in the data source, and didn't want the extra field.
I simply created an Expression Box control, and set the XPath to count(preceding-sibling::*)+1

Filling rows of a repeating table on opening the form

In my Infopath form I use a repeating table. On opening this form on sharepoint I would like to have some rows of the repeating table filled out using information from an other list. I use content types.
What i am working on is a Timesheet system where the user can register how many hours a week he worked on different projects.
I would like that by creation of a timesheet some predefined projects will be already inserted, meaning that the repeating table will have for example 5 rows already with 5 favourite or most used projects selected based on a separate PetProject list.
When I looked at the workflow in the list where the timesheet is being created I couldn’t find the column projectname in the dropdown so I cant give it a value. When I went to look in the Form settings of TimeSheets I saw that projectname cant be selected/edited, its in plain black whereas the other columns are blue and clickable. I thought its probably because the value of projectname is merged from the different rows in the repeating table.
Is there any way I can work around this problem and assign a value to projectname by creation of the timesheet?
Thank you so much!
I think that you will need to write some code to query the data that you are after and add the data to new rows in the repeating table.
There is a loading event that you can hook into to then query a secondary data source and then
add the row to the repeating table.
Will this run with in infopath as a thick client or will it run as a browser based form using infopath form service?

Resources