Drsin
Scholar

K2 Double click a list view to display its content.

Jump to solution

Hello,

I am new to K2. I have my list view called 'Requests List'.

I want to double-click on any row in the 'Requests List', so I can display the complete details  of that record as read only to the users:

 

  • When REQUEST LIST executed List item double click

 

I want the specific ROW doubled clicked to be loaded into the read only detailed view in another form.

Labels: (2)
0 Kudos
6 Replies
tbyrne777
Contributor

Re: K2 Double click a list view to display its content.

Jump to solution
First create the new form that will display the details, and create an ID parameter that it used to display the right row. Then, on the request list when list item doubleclicked event, open your new form as a sub form and pass as a parameter the request Id from the SmartObject context on the right. I can provide a screenshot if that doesn't make sense
0 Kudos
Drsin
Scholar

Re: K2 Double click a list view to display its content.

Jump to solution

@tbyrne777 

Thanks for your quick response.

I did as you said but the details did not populate in the subform that opens.

 

The rule is below:

  • When Requestlist executed List item double click
  • then open ReadOnly-Form as a subform
     (configure)

In the configure, I picked the ID from the smartobject and put as ID to useas parameter

 

You can send me your screenshots.

 

Thanks a lot.

0 Kudos
tbyrne777
Contributor

Re: K2 Double click a list view to display its content.

Jump to solution
In your sub form, on initialize, put a message box that shows what the value is of the parameter. Just to see if it is getting there or not. Also put a message box on the double click showing the value of the ID from the smartobject again just to see what the form *thinks* it is
0 Kudos
Drsin
Scholar

Re: K2 Double click a list view to display its content.

Jump to solution

Hello, yep, I got the message: The following fields are required: -ID

Attache is screen of my configuration. I must be missing something.

Can you send me yours?

0 Kudos
tbyrne777
Contributor

Re: K2 Double click a list view to display its content.

Jump to solution
I was thinking you could put the message box before the read on your sub form and before opening the subform just to display what the ID value is that you are trying to pass and what actually ended up in the sub form
0 Kudos
Drsin
Scholar

Re: K2 Double click a list view to display its content.

Jump to solution

@tbyrne777 

I could get it to work. Many thanks for your support.

I used below rule:

--When Requestlist VIEW executed List item double click
--then navigate to ReadOnly-Form Form (configure)

In the configure, ID from my smartobject table is used as parameter .

 

0 Kudos