Interface is not showing the values in the underlying local variable

I have an interface that will be used by parish managers to fill out a Parish Profile.  We have some of the Parish Profiles set up from last year and some of the Parish Managers fill out the profile for more than one parish.

So the interface takes in the logged in user and retrieves the Parish Profiles for the user.  This can return null, one or more parish profiles depending upon the User.   

  1. If they have no parish profiles, I need to display a form that would allow them to select a Parish and create a profile.
  2. If they have one parish profile, then I need to display a form for them to review and update the parish profile as needed.
  3. If they have more than one profile, then I need for the User to select one of the profiles from a grid, then review and update the profile.

1 and 2 work great. My problem is with number 3.

I have two local variables; selectedParishProfile and updatedParishProfile.  The selectedParishProfile is set when the user selects a row from the grid.  The updatedParishProfile is used in the form interface as the values for the fields.  The following is the initiation of the variables.

local!selectedParishProfile: cast(
    'recordType!PMSO Parish Profile',
    null
  ),
  local!updatedParishProfile: if(
    local!parishCount > 1,
    local!selectedParishProfile,
    if(
      local!parishCount = 1,
      local!parishProfiles[1],
      cast(
        'recordType!PMSO Parish Profile',
        null
      )
    )
  ),

When I select the Parish from the grid, I can see that both of these variables have data.

Here are the variables prior to the selection.

Here are the variables after the selection.

My problem is that the interface does not show any data.  All of the fields are blank even though the variable updatedParishProfile has data.

Is this a refresh issue?

  Discussion posts and replies are publicly visible