Skip to main content
Nintex Community Menu Bar
Solved

Unable to find smartobject references in K2 Five workflow

  • Jul 24, 2018 8:26 PM UTC
  • 12 replies
  • 95 views
  • Translate All

Forum|alt.badge.img+6

New to K2 Five workflow:

I have created a smarobject and smartform in the K2 designer. Then i was created K2 Five workflow in designer.

 

while creating K2 five workflow i am unable to find the smartobject reference under referece category.

 

Note : I have created SQL table in the SQL server and created smartobject using the SQK service instance.

 

Kindly correct if was missed any steps

 

14563iEF639BCDCFD390B5.png

 

 

 

 


14168i6542B91FEA3B92EF.png
11621i8F92A5AAC7425FFA.png

Best answer by khanh1

Hi,


 


Could you try with a new SmartObject created from below SQL table?


 


CREATE TABLE [dbo].[Table_2](
 [id_column] [int] IDENTITY(1,1) NOT NULL,
 [name_column] [nvarchar](50) NULL,
 [description_column] [nvarchar](max) NULL,
 CONSTRAINT [PK_Table_2] PRIMARY KEY CLUSTERED
(
 [id_column] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

View original

12 replies

Forum|alt.badge.img+16
  • Jul 24, 2018 8:37 PM UTC

Forum|alt.badge.img+6
  • Author
  • Jul 24, 2018 8:52 PM UTC

Thanks Khanh for the quick reply. i was doing exactly samething.

 

But For my workflow i didnt found any datasource in the start event after select the smartform.

 



Translate

Forum|alt.badge.img+16
  • Jul 24, 2018 9:05 PM UTC

Hi,


 


Is there a data source in your view?


Translate

Forum|alt.badge.img+6
  • Author
  • Jul 24, 2018 9:11 PM UTC

Yes Khanh. In the view i have added datasource.

Translate

Forum|alt.badge.img+6
  • Author
  • Jul 24, 2018 9:16 PM UTC


Translate

Forum|alt.badge.img+16
  • Jul 24, 2018 9:22 PM UTC

Hi,


 


I'm able to reproduce similar issue if the SmartObject is based on a stored procedure (no CRUD methods). 


Can you confirm the SmartObject has the default methods similar to the one below?


Translate

Forum|alt.badge.img+6
  • Author
  • Jul 24, 2018 9:37 PM UTC

Below is my smartobject Properties and methods. Note i have set primary key for my table.

 


Translate

Forum|alt.badge.img+6
  • Author
  • Jul 24, 2018 10:16 PM UTC
Hi Khanh Also I tried for the table without primary key setting. Same issue I am facing. But this smart object doesn't have create , update , delete and read methods. Smart object only having getlist method.
Translate

Forum|alt.badge.img+16
  • Jul 24, 2018 11:20 PM UTC

Hi Rameshbabu,


 


As long as the form's views have the corrected data source (CRUD methods), it should work.


If you create a new workflow, then does it show up when going throuth Smartforms start event?


 

Translate

Forum|alt.badge.img+6
  • Author
  • Jul 24, 2018 11:27 PM UTC
For new workflows also reference is not showing in the smartform start event.
Translate

Forum|alt.badge.img+16
  • Answer
  • Jul 24, 2018 11:39 PM UTC

Hi,


 


Could you try with a new SmartObject created from below SQL table?


 


CREATE TABLE [dbo].[Table_2](
 [id_column] [int] IDENTITY(1,1) NOT NULL,
 [name_column] [nvarchar](50) NULL,
 [description_column] [nvarchar](max) NULL,
 CONSTRAINT [PK_Table_2] PRIMARY KEY CLUSTERED
(
 [id_column] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

Translate

Forum|alt.badge.img+6
  • Author
  • Jul 26, 2018 6:48 PM UTC

Thanks Khanh.

 

what is difference between creating table using below query and normal create table query.

Translate