Skip to main content

Hi. 

 

We have a listview in a K2 application where the source is a Sharepoint list smartobject. 

The column is of type File, when we save the row the attachment is not added and also dont show in the sharepointlist. 

 

We are using a list instead of a library because it´s optional to add a attachment to the row. 

 

Does anyone know how to do this?

Thanks!

Good day johanholmstroem

 

Will you please see the following?

Create the Expense Claim Line Item SmartBox SmartObject: https://help.k2.com/onlinehelp/k2five/userguide/current/default.htm#Tutorials/K2ForSP/ExpenseClaim/02Data/05CreateSmartBox.htm%3FTocPath%3DTutorials%7CK2%2520for%2520SharePoint%2520Tutorials%7CExpense%2520Claim%2520Application%7CData%7C_____3,

Create an Editable List View: https://help.k2.com/onlinehelp/k2five/userguide/current/default.htm#Tutorials/K2ForSP/ExpenseClaim/03Forms/11CreateEditList.htm,

K2 for Sharepoint Tutorials: Expense Claim Approval Build Part 3: https://www.youtube.com/watch?v=y9uBxcZhVH8,

K2 Five for SharePoint: Expense Claim Tutorial: https://help.k2.com/onlinehelp/k2five/userguide/current/default.htm#Tutorials/K2ForSP/ExpenseClaim/ExpenseClaimOverview.htm.

 

Best,

Sunrise


Hi Johanholmstroem,


 


This is probably due to a misconfiguration on your rules when an item is added/edited on the row of your list view. Please see and compare my rules when a certain event occurs below:


 


For Adding a record:


 


 





 


 


 


 


 


Same rules apply for Save/Update but you will just call the "Update List Item" method instead when the event "View executed List Item changed" occurs.


 


If this does not help, please could you provide some visuals of your configurations or rules to see if I can identify any issues there.


 


Thanks,


Katleho


@johanholmstroem ,

 

On the Save button click rule, call the "Update List Item" method directly after the "Create List Item" method, pass in the ID value from the "Create List Item" method call output, and populate the input parameters with the values from the controls from the custom views.

This process should be repeated for the Edit view. Additionally, changes will be necessary to update the "Initialize" rule on both the Edit and Display views to properly populate the controls when the form is loaded on an existing line item for the list.


Reply