Forums

Forums / Developing Portals / Subgrid Column Heading

Subgrid Column Heading

8 posts, 1 answered
  1. Mason Ambery
    Mason Ambery avatar
    67 posts
    Registered:
    19 Nov 2021
    18 Aug 2022
    Link to this post
    The Portal Connector v6.1.141.128
    Build version:    14.1.7824.0

    I'm trying to override the column heading name in the subgrib but I can't figure out where to enter the information.  The grid is displaying the name directly from CRM and I need to override the name/label.  
  2. Tariq Salim
    Tariq Salim avatar
    11 posts
    Registered:
    04 Jul 2022
    29 Aug 2022
    Link to this post
    Greetings Mason,

    Thank you for reaching out.

    In order to change the name in the sub heading, the first step is to go to edit on the sub-grid, click on the columns tab, click the edit icon in the columns table, and change the column header to a name of choice. Once that is done click on update, then click on save, and finally click on publish.

    I hope this information helps.


    Best Regards,

    Tariq
    TPC Web Developer
  3. Mason Ambery
    Mason Ambery avatar
    67 posts
    Registered:
    19 Nov 2021
    29 Aug 2022 in reply to Tariq Salim
    Link to this post
    This isn't working in my environment.  If I change the column heading from within the edit dialog, the column no longer displays in the Sub Grid.  When I go back to the edit dialog, the original name from CRM still displays rather than the value I provided.  When I click save again and publish the column reapers within the Sub Grid with whatever label I have defined in CRM.  I ended up just modifying the label in CRM to get the label I wanted within the Sub Grid column heading.  The only thing I haven't tried is giving the column an alias in the fetch XML and then trying a customer column heading but either way, what you described doesn't work.
  4. Tariq Salim
    Tariq Salim avatar
    11 posts
    Registered:
    04 Jul 2022
    29 Aug 2022
    Link to this post
    Hello Mason,

    Try giving the alias in the fetch XML the same name as in the Column Header.


    Regards,

    Tariq
    TPC Web Developer
    Last modified on 30 Aug 2022 20:08 by Tariq Salim
  5. Mason Ambery
    Mason Ambery avatar
    67 posts
    Registered:
    19 Nov 2021
    29 Aug 2022 in reply to Tariq Salim
    Link to this post
    I tried that too but no luck.  Assigning an alias in the FetchXML changes the value in the Column Heading under the Column tab but the actual grid still shows the label from CRM.  If I change the Column Heading value to something different than the alias within the FetchXML, the column disappears from the grip so the result is the exact same regardless if I use an alias.  It's worth notating that the behavior is the same for the Grid and Subgrid widgets.
  6. Tariq Salim
    Tariq Salim avatar
    11 posts
    Registered:
    04 Jul 2022
    30 Aug 2022 in reply to Mason Ambery
    Link to this post
    Hello Mason,

    I recommend that you delete the grid and recreate a new one from scratch. Without adding any additional columns, go to the column editor and add a custom title to the column heading. Publish the page and see if the header title changes.

    If the problem persists, please join a live Q&A session. 


    Regards,

    Tariq
    TPC Web Developer
    Last modified on 30 Aug 2022 20:08 by Tariq Salim
  7. Mason Ambery
    Mason Ambery avatar
    67 posts
    Registered:
    19 Nov 2021
    30 Aug 2022 in reply to Tariq Salim
    Link to this post
    I'll try that now although this is on all my pages that contain a grid.  When I build the fetchXML, I am copying and pasting the information directly from CRM so maybe that is causing the issue.  I'll try building it manually rather than copying and pasting in the fetchXML as maybe that is causing the issue.
  8. Mason Ambery
    Mason Ambery avatar
    67 posts
    Registered:
    19 Nov 2021
    Answered
    30 Aug 2022
    Link to this post
    Problem solved!  I guess it would help if I modify the Column Heading field value that shows a default value of 'automatic' and not the actual Column Name value.  Sorry for wasting your time.
8 posts, 1 answered