Forums

Forums / Developing Portals / Grid on a Form- Submit Creates a new Row with Null values

Grid on a Form- Submit Creates a new Row with Null values

Thread is closed for posting
6 posts, 1 answered
  1. Krishna Hari
    Krishna Hari avatar
    65 posts
    Registered:
    05 Dec 2019
    17 Jan 2020
    Link to this post
    Is there a way yo Make sure the Grid records are not created when Submitted
  2. Alex
    Alex avatar
    19 posts
    Registered:
    27 Sep 2018
    21 Jan 2020 in reply to Krishna Hari
    Link to this post
    Hello Krishna, 
    I am not so sure I understand your use case scenario, why would you be accessing a record from a grid if you are not trying to edit or create it. You could have a cancel or Go Back button, is that what you are trying to create? 
    Please let me know.  
  3. Krishna Hari
    Krishna Hari avatar
    65 posts
    Registered:
    05 Dec 2019
    21 Jan 2020 in reply to Alex
    Link to this post
    We have two scenarios where this is happening

    Using the subgrid  to display data May be a list of speakers for an event -we may add / edit but in case we do not want to add any new user and would like to submit the form there is a null row created

    second scenario is on a form flow. same case here too we have a grid to display info (has edit and add functionalities on it) the next button creates a new row with nulls

  4. Alex
    Alex avatar
    19 posts
    Registered:
    27 Sep 2018
    21 Jan 2020 in reply to Krishna Hari
    Link to this post
    Hello Krishna, 
    Could you please let me know what version of TPC and SF you are on. 
  5. Krishna Hari
    Krishna Hari avatar
    65 posts
    Registered:
    05 Dec 2019
    21 Jan 2020 in reply to Alex
    Link to this post
    The Portal Connector v5.1.6650.140
    Sitefinity 10.2.6650.0 and we are not in a position to upgrade at this time
  6. Alex
    Alex avatar
    19 posts
    Registered:
    27 Sep 2018
    Answered
    22 Jan 2020 in reply to Krishna Hari
    Link to this post
    Krishna,
    As discussed on the call the reason why you had row's with null value is because you were using a form to display your information on a sub grid and submitting the record, it ended up adding a null value to the sub-grid, if you want to display a grid without adding a nul lrecord you would need to use a list view or grid.
6 posts, 1 answered