Forums

Forums / General Discussions / Display contents of current on screen record in a list view widget

Display contents of current on screen record in a list view widget

3 posts, 1 answered
  1. Mike Cohen
    Mike Cohen avatar
    31 posts
    Registered:
    10 Aug 2021
    18 Nov 2021
    Link to this post
    Is there a command to feed to a list view widget that captures the ID of the current on screen record? 

    For example , if I have a read only form that is displaying a number of fields from a custom entity, is there a way to display a single record listview of the same content on this read only form? 

    I cannot figure out how to use a listview to ONLY show content from the record on screen, I don't know how to get the record id of the on screen record to be a filter for the listview the same way contact ID can be used to filter .

    Is there any variable that stores the on screen record's guid to use to filter a list view? 





     
  2. Rawdon Edghill
    Rawdon Edghill avatar
    76 posts
    Registered:
    16 Dec 2020
    Answered
    19 Nov 2021
    Link to this post
    Hello Mike,


    How are you currently populating the read-only form on the page?


    My suggestion would be to use a query string to populate your listview, and depending on how you are accomplishing the above, it may be a very simple solution (if you are editing a record to go to the read-only form, there is likely already an ID in the URL as a query string). If not, we need to retrieve the ID from somewhere on the page and manually set the query string.


    All the best,
    Rawdon
    TPC Application Consultant
  3. Mike Cohen
    Mike Cohen avatar
    31 posts
    Registered:
    10 Aug 2021
    19 Nov 2021 in reply to Rawdon Edghill
    Link to this post
    Querystring worked, thank you Rawdon. 
3 posts, 1 answered