InfoPath Form in SharePoint - sharepoint

I have used several infopath forms with great success in Sharepoint.
I am running into a strange problem on one form I'm working on right now.
Basically, I have a status report form. One of the fields is asking whether a project is Green, Yellow, or Red.
What I want is for this selection to appear in a column in sharepoint, but not as text, as an image.
To do this, I created a column in the form SharePoint library called Status. I used the hyperlink/picture column for this. And yes, I did turn on "display url as image" for that column.. I then created a rule in InfoPath which took the result from my form field, and set another field's value (in this case, set the sharepoint status column field to a url link to a green indicator i want to have displayed). As an example, if you open my form and tel me your project is GREEN, the rule should write "http://www.schooldashboard.org/tths205/images/IndicatorGreen.png" to the status column in SharePoint for that file.
However, no matter what i do, nothing gets written to this column from InfoPath. My hunch is that there is a data connection or something missing to submit that specific field value to sharepoint but I can't figure out how to do that.
I also tried actually hosting the indicator image on my sharepoint server to see if it was being blocked somehow, but that didn't change anything.
Thanks.

Related

Percentage calculation from infopath to sharepoint

I am a newbie in sharepoint/infopath.
I am trying to edit an existing field in sharepoint which seems to be loaded from infopath.
The flow of the program is as follows:
I open a form (which is integrated using infopath) from sharepoint. The form has some multiple choice questions and at the end there is a submit button. After clicking "submit", I am transferred to a list view which displays the "number of correct answers" and "your percentage" columns (I can have multiple attempts and they are displayed in the list).
I am trying to edit the calculations of the percentage. When I open the infopath form, I can see that there is a field called "Your percentage". I displayed the setting and there is no formula.
Where can I edit that field?
Thanks!
Use the button Rule Inspector to check all the rules cotained on the form, the button is located on the data ribbon:
There you can see all the rules, just look up for the one that calculates the percentage.
Hope this helps.

SharePoint Webpart dropdownlist autopostback isn't functioning correctly

I have built a webpart that basically displays all the items in a SharePoint list based on a set of criteria.
One of these criteria's is a date, a year specifically. The user is supposed to select the date from a dropdown list in the web part and the view area below will populate with all the items from that specific year.
That part works. The SPQuery grabs the data just fine and displays it in the format desired. The issue I am having is with the autopostback option on the dropdownlist.
It doesn't remember the current selectedindex, it remembers the PREVIOUS selected index. If I chooes 2014, the page loads but nothing changes, if I then choose 2013, the 2014 stuff appears, if I then choose 2010, the 2013 items appear, if I go back and then select the 2014, the 2010 stuff appears. It's always 1 behind and I have no idea why.
I've tried assigning a ViewState variable in the SelectedIndexChange to remember what was selected, but that too always seems to be one step behind. I can't seem to get the CURRENT selected index.
Does anyone know what's going on here?
Your question is more ASP.NET problem than SharePoint. Check MSDN to see page life-cycle. New values of controls are available after the onLoad event of Page. So just move your code to e.ge. onPrerender event.

Sharepoint Custom List Preview Pane not displaying information past Title and Date

My preview pane has all the items down the left side as it should, and it has all of my column selections as rows down the right side.
However, when hovering over the titles, only Date and Title are being filled out on the right side.
If I change the view style to boxed or anything then it displays all the information.
It just appears that preview pane is having some weird difficulty correlating the hovered over item to the information on the right, Any suggestions?
Using Sharepoint 2013. I don't have Sharepoint Designer though. There's roughly 15 columns of information that needs to be displayed in rows because there's not enough room along the columns bar otherwise. Boxed style worked for a moment but then I realized there was no way to make it 1 box wide instead of default 2 boxes wide.
EDIT: I created a calendar view to add onto my page and chose to display Title. This might be where the problem is coming from. It says the title of all of my items are (no title).
I figured out that in InfoPath in the Fields pane on the right, you have to go to 'Show Advanced View'. Then there is a group called queryFields. The title inside queryFields was never being injected with same information as dataField. I saw later in the view option that my sort by setting was [Title]. I don't know if it's relevant, but putting it out there for future readers.
Solution: If you have an email user/group field that is not completed, it will not display any details beyond that field for each record. Either remove that email column, or ensure they are filled out.

excel spreadsheet data to web form

I'm looking to place my company's trailer inventory on a few free classified ad sites. Our inventory database (filemaker) can export data into an excel spreadsheet (column A-Make, B-Model, C-Year, etc.) including the URLs of the photos of each trailer.
Our dealer sites allow for bulk uploading through XML and that works great.
My problem is on the smaller free classified ad sites that have a web form that needs filled out (the example I'm using here has text fields and drop-down menus, but other sites have check boxes and radio buttons) then submitted for each individual trailer (about 90 trailers). I'm wondering how I can use the data in my spreadsheet to auto-fill the form with the information in row 1, submit it, re-navigate back to the form and repeat the process with the info in row 2 and so on. I know that I'm going to have to tailor my data and columns to fit each site (match column names to field names and change relevant data to match drop down options, etc.).
**edit Also (although not necessary) it would be nice if it was possible to have my photo URLs entered as well (if at all possible).
I've created a "test" account on http://www.horseclicks.com. Once logged in you have to click on "My Trailers" on the left and then the "add" button
user: excelhelp
pass: excel
Any takers??
This doesn't completely answer your question, but would save you some time entering the forms manually. If you know the names of input tags on the form you want to fill out, you can write a Javascript that will fill out the form for you: i.e., document.getElementById('your_name').value=Name[x]; etc.
In that example, Name would be an array that would contain a list of the names you wanted to put in the input field "your_name". You can easily turn an Excel sheet into a Javascript array by exporting to CSV and cut/paste into your code. Make it so that the value of x increases by 1 each time the script is ran.
Take your whole javascript, and turn it into one line that starts with "javascript:" and place this as a bookmark in your toolbar. Now you can go to the form, hit the your bookmark button and it will fill out the form. Hit submit, go back to the form, hit the button again...

troubleshoot display SharePoint columns from Infopath calculated fields

I have/had a problem with field values from existing InfoPath forms not displaying in Sharepoint form library columns (columns are checked as visible). I fixed the error which was caused by a mis-calculation in the errant field/column. The form fields value now appears but only in a newly created form, the old forms corrected value does not appear after the fix.
Is there a way to re-calculate or refresh the old forms so they recognize the correct values and display them correctly in the SharePoint column? I have a form library with hundreds of forms that I would like to get this one particular column to display correctly.
The solution is to open each of the old existing forms and save it again (i.e. refresh) the form so it recalculates the values, then the new values will be displayed in its corresponding column in the form library. Tedious job, but it works!

Resources