Data is not refreshed when passing from parent interface to child.

I have a parent Interface calling 2 child interfaces. Both the child interfaces are grids.  The first grid shows previously added data and has capability to select a row and add it to the bottom grid using Select button. The second grid has search fields to search for an item and add it to the grid.

I'm passing these 2 different data as 2 different variables to the Grid 2. (Though I tried passing as single didn't work).

Here is my scenario: 

  •  I select first item from Grid1 it gets added to the Grid 2
  • Then I search functionality and add data to Grid 2
  • Now I select another item from Grid1 and try to add.

Problem: This time when I select my second item from Grid 1, I don't see the newly added item in Grid 2. I see the newly added item is seen in local!submissionSubstance_HTTP but not in the Gri 2

This is the local for my Grid 1 selection 
 
  local!submissionSubstance_HTTP: a!refreshVariable(
    value:rule!DCC_castSubmissionSubstanceData(
    submissionSubstance: local!selectedSubstance_HTTP,
    submissionNumber_text: ri!submissionNumber_text,
    submissionType_text: ri!submissionType_text,
    documentId_int: ri!documentInfo_Map.id,
    folderId_int: ri!documentInfo_Map.folderId,
    indexingType_text:ri!indexingType_text
    ),
    refreshOnVarChange: local!selectedSubstance_HTTP
  ),
This is the code for overall data seen in grid

  local!indexSubstances: a!refreshVariable(
  value:if(
    and(
      rule!FARM_isNullOrEmpty(ri!substanceAdded_cdt),/*ri! for items added via Add Substance button*/
      rule!FARM_isNullOrEmpty(ri!selectedSubstance_HTTP) /*ri!for items via Grid 1 */
    ),
    {},
    if(
      rule!FARM_isNullOrEmpty(ri!substanceAdded_cdt),
      ri!selectedSubstance_HTTP,
      if(
        rule!FARM_isNullOrEmpty(ri!selectedSubstance_HTTP),
        ri!substanceAdded_cdt,
        union(ri!substanceAdded_cdt,ri!selectedSubstance_HTTP)
      )
    )
  ),
  refreshOnVarChange: ri!selectedSubstance_HTTP
  ),
  
  /*Initial data for grid*/  
  local!data1: if(                   
    rule!FARM_isNullOrEmpty(ri!documentId_int),  
    local!submissionSubstances,   
    local!documentSubstances
  ),
   

  /*Final Data to display - both Submission & Document substances*/
  local!data: a!refreshVariable(
    value: if(
      and(
        rule!FARM_isNullOrEmpty(local!data1),
        rule!FARM_isNullOrEmpty(  local!indexSubstances)
      ),
      {},
      if(
        rule!FARM_isNullOrEmpty(local!data1),
        local!indexSubstances,
        if(
          rule!FARM_isNullOrEmpty(local!indexSubstances),
          local!data1,
          union(local!data1, local!indexSubstances)
        )
      )
    ),
   
  refreshOnReferencedVarChange: not(local!refresh)
  ),

Any help is highly appreciated.

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data