Solved

K2 Double click a list view to display its content.

  • 10 August 2021
  • 6 replies
  • 177 views

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.

icon

Best answer by Drsin 12 August 2021, 10:34

View original

6 replies

Userlevel 5
Badge +13
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

@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.

Userlevel 5
Badge +13
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

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?

Userlevel 5
Badge +13
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

@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 .


 

Reply