How to Store a File in SQL using a SmartObject and Smartform

  • 15 February 2022
  • 0 replies
  • 129 views

Topic

There may be a need to store files outside of K2 Smartbox SmartObjects. In this example SQL will be used to store the File and Smartforms will display metadata and the file.

Instructions

1. Create a SQL Table with a varchar(max) property. Make sure that there is a Primary Key column on the table to allow for CRUD methods.

2. Create a SmartObject from the SQL Table. Change the varchar(max) property to be a File property instead of text in K2 Designer. 

 

18387i55085768E9B677A6.png

 

3. Create an Item View from the SQL Table SmartObject. 

 

18388i6AF45BDBAF70F543.png

 

4. Test the View and ensure files can be uploaded and downloaded. 

 

18389i70AFE113368D76A3.png

Related Links


0 replies

Be the first to reply!

Reply