Saving Infopath data to multiple list in SharePoint Online - sharepoint

I am exploring options to build a form that allows to save InfoPath form data to multiple lists , i tried to do achive this using "Webservice Submit/ UpdateListItems" option explained in this blog(and other similar blogs) http://jaliyaudagedara.blogspot.co.uk/2011/03/submitting-data-to-sharepoint-2010-list.html
I can save the data that's simple but when trying to save data that involves lookup columns or other controls it was difficult to find the correct CAML syntax to update the lookup columns or showing dropdown controls, below XML template by default creates textbox control on the form.
<?xml version="1.0" encoding="UTF-8" >?
<Batch>
<Method ID="1" Cmd="New">
<Field Name='Title' />
<Field Name="EmployeeAddress" />
<Field Name="EmployeeNo" />
<Field Name="EmployeeEmail" />
</Method>
</Batch>
I cannot use code behind because Infopath with code is no supported by SharePoint online. And this template always creates textbox on the form, is there a way to choose the controls like Employee Address as textbox but Employee Number as dropdown? And how we enforce validation on the controls created by XML template?
Lastly which one is better option to go when building forms for SharePOint online
POwer Apps (Convoluted procedure to replicate repeated section/
tables).
InfoPath Forms ( convoluted procedure to save data on
multiple lists).
Custom forms (using SPX) - has anyone tried this
for complex list form?
Apologies for the length of the question.

We can create a custom form using HTML+jQuery Plugin+Bootstrap, then submit data into SharePoint list using REST API. The following articles for your reference:
sp-forms
CRUD Operation On List Items Using REST API Services In SharePoint 2013

Related

how create a custom ribbon button to work for both document library and list in share point 2013

As I am very new to SharePoint technology. I have been trying to create a ribbon button to work both in Document library and list. But I am able to create it only in document library it's not displaying in the list. Can anyone please help me to resolve it? I am using following custom action to create the ribbon
<CustomAction
Description="CustomActionDescription"
Id="NBAD.Ribbon.Library.Actions.MoveFilenetButtonAction"
RegistrationType="ContentType"
RegistrationId="0x01"
Location="CommandUI.Ribbon">
You can try to put "0x" in RegistrationId in order to get your custom action in lists and documents library.

Ms Dynamics CRM custom workflow get visible attributes from form using c#

How to get visible attributes from entity form using c# in custom workflow?
Any idea please share!
It's a PITA but it's doable.
retrieve the form you want to process from the systemform entity (you want the formxml attribute)
the formxml attribute contains the form definition, it's encoded (< is written as < and so on) xml format.
Inside the formxml contents, a field looks like this:
<cell id="(guid)" labelid="(guid)" showlabel="true" locklevel="0" visible="false">
<labels>
<label description="(field label)" languagecode="1033" />
</labels>
<control id="(field name)" classid="(guid)" datafieldname="(field name)" disabled="false">
parse the xml, looking for cell elements which do not have visible attribute (it's only there if the field is hidden)
you might have to narrow the list down through further searches in xml (not 100% positive about what i.e. a subgrid would look like) but I have no direct experience with this kind of logic so I can't pinpoint each and every corner case
Pain point: You won't be able to tell if a field visibility has been toggled through javascript
What do you mean visible attributes? You mean attributes with a value or attributes showed in the form? If it's the second the only way that you have to keep track of that is use a text field and use some code to identify what is active.
ex. create a text field
and write in it all the fields that are visible ex name and surname:
"name","surname"
You can manipulate this with javascript and business rules to keep the list of fields updated at every time for each record. In the code behind you just need to read for the text field and manipulate the magic string.
It's not a really nice operation, but is the only way i can see to keep track of what fields are shown on the form.

Content Query Web Part and Deleted Occurrences of Events

I have a content query web part showing 3 events for todays date on our Intranet homepage. However, when a user deletes an event from a recurring series, SP changes the title of that event to "Deleted: [original title]". My content query web part still shows these and I don't see a way to filter them out.
For my list views I get around it with a field and a formula in that field of the following.
=IF(ISNUMBER(FIND("Deleted:",Title)),"Yes","No").
However, that field isn't available to me within the CQWP filter drop-down.
how does one prevent these deleted occurrences from showing in a CQWP?
UPDATE: This is a publishing page BTW.
While you can perform the filter via XSLT, it may be preferable to do so in the CAML query itself. This article from Microsoft, How to: Customize the Content Query Web Part by using Custom Properties, shows how the CAML Where clause is constructed (and may be modified). Good luck!
Have you tried the DataFormWebPart (DFWP) before? It is basically the most basic of databound webparts, but strangely the most customizable as well.
To try it out, open SharePoint designer and create a dummy aspx page to work on / play around with. Then open the datasources pane and find the list you want to use. then click on that list and select "view data". Drag the appropriate fields onto the aspx page. You now have a (very) basic grid displaying your data.
The cool thing is though, all layout is xsl driven, so completely customizable. You can even make the xsl reusable by switching to source view and cut and paste the xs,l into a separate xsl file. To then use this file instead of the inline xsl, after moving the inline xsl, change the DFWP property xsl (that contained the inline xsl) from
<xsl><!-- .... this is where the moved inline xsl used to be... --></xsl>
to
<xsllink>/server relative url to xsl file</xsllink>
The only remaining problem is that the DFWP's datasource is now bound a single list. To do roll-ups cross site collection (if you have say multiple event lists you want to include), you need to change the DFWP's SPDataSource's select query and datasourcemode. How to do that is explained here.
Now to address your actual question: (after my blatant plug of the underappreciated DFWP :-D) The DFWP's SPDataSource basically uses either an SPQuery or an SPSiteDataQuery (depending on the datasourcemode) to retrieve the data, and you can do way more filtering wise. Either in the CAML query itself or by just filter out the unneeded rows using something like the following:
<xsl:if test="not(contains(#Title, 'Deleted:'))">
<xsl:apply-templates />
</xsl:if>

Issue accessing SharePoint list data using SSRS 2008

I'm trying to access list data using SSRS 2008.
I have created an XML data source with the following connection string:
"http://[Your_Site_Name]/_vti_bin/lists.asmx".
I then created a dataset with the following query:
<Query>
<SoapAction>http://schemas.microsoft.com/sharepoint/soap/GetListItems</SoapAction>
<Method Namespace="http://schemas.microsoft.com/sharepoint/soap/" Name="GetListItems">
<Parameters>
<Parameter Name="listName">
<DefaultValue>Your_List_Name</DefaultValue>
</Parameter>
</Parameters>
</Method>
<ElementPath IgnoreNamespaces="True">*</ElementPath>
</Query>
Now the problem:
I'm having issues reading column values that have html markup/tags(specifically "Mulitple lines of text" field type). Reporting Services creates a field called “row” in the Dataset when it encounters one such column.
I tried deleting this “row” field and created the actual field manually. I then set the column value as HTML in the placeholder properties (a new feature in SSRS 2008 where HTML markup is treated as styles) but did not work.
For e.g. Comments column in "Issue Tracking List" is stored as a "div"
Executing the same query in CAMLBuilder works perfectly, showing up all columns.
How do I get over this issue. Any help?
Thanks in advance
PS: I have posted the same query on MSDN SQL Server Reporting Service Forum. Here is the Link.
I posted the same query on MSDN SQL Server Reporting Service Forum. Here is the Link. MSFT moderator has found a solution for this issue.

Sharepoint - A feature creating a list with a workflow : Possible?

I've exported a list definition with Sharepoint Solution Generator.
This list is associated with a workflow. If I search for the name of my workflow in the generated "schema.xml" file, I find XML that looks like this :
<Field DisplayName="publicationWorkflow" Type="WorkflowStatus" Required="FALSE" ID="{2a2504e5-5ad0-4a9f-8bf4-15ca29e49e02}" SourceID="{4ee14f93-1f9b-4dcf-8e50-dd046dfe0905}" StaticName="publicat" Name="publicat" ColName="nvarchar1" RowOrdinal="0" Version="2" WorkflowStatusURL="_layouts/WrkStat.aspx" ReadOnly="TRUE">
<CHOICES>
<CHOICE>Starting</CHOICE>
<CHOICE>Failed on Start</CHOICE>
<CHOICE>In Progress</CHOICE>
<CHOICE>Error Occurred</CHOICE>
<CHOICE>Canceled</CHOICE>
<CHOICE>Completed</CHOICE>
<CHOICE>Failed on Start (retrying)</CHOICE>
<CHOICE>Error Occurred (retrying)</CHOICE>
<CHOICE />
</CHOICES>
</Field>
Then I use a feature to regenerate the list with it's definition from SSG, but the workflow is never made, I have to go to the settings of the list and associate the workflow manually...
So my 1st question is : Is this possible to create a list associated with a workflow using a feature?
And my 2nd : if yes, how?
There is no default way to associate a Workflow to the List Definition, If you want to do you have to follow one of the following option
Write a Feature Receiver and write code to associate the Workflow to the List.
Another option is to create a content type and you can associate a workflow to that content Type using feature.

Resources