web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

The data in the field does not appear when we hover over it

(0) ShareShare
ReportReport
Posted on by 13
Hi experts,
 
In the subgrid which containing product lookup, when hovering over the field it does not display the data in it.
 
I have the same question (0)
  • Dengliang Li Profile Picture
    Microsoft Employee on at
    The data in the field does not appear when we hover over it
    Hi,
     
    In my testing, when I hover over the field, a URL link to the associated product record appears at the bottom of the screen.
     
    Therefore, the data information not shown refers to this?
     
    Best Regards,
    Dengliang Li
     
  • Arthi G Profile Picture
    13 on at
    The data in the field does not appear when we hover over it
    Hi Dengliang,
     
    Yes. Now, instead of  displaying the data when hovering, it only suggests a new window URL to visit. However, we want the data in the field to be displayed whenever we hover it. We can simply expand the column and verify, but hovering is the quickest way to check. Can you please suggest your comments on this. Thank you!
     
  • Dengliang Li Profile Picture
    Microsoft Employee on at
    The data in the field does not appear when we hover over it
    Hi,
     
    There is no OOTB feature that implements this.
    Tooltips can be added using JavaScript.
     
    function onload(executionContext) {
        var formContext = executionContext.getFormContext();
     
        //Set a delay of 3 seconds to wait for the form to finish loading.
        setTimeout(() => {
       
        var gridContext = formContext.getControl("Subgrid_new_1"); // Fill in the parentheses with the name of your subgrid.
        var gridRows = gridContext.getGrid().getRows().get();
     
        var nameArr = []; //Claims an empty array to store the value of the Full Name field.
        for(var item of gridRows){
            nameArr.push(item.getAttribute("name").getValue()); // Fill the array with the value of the Full Name field for each row.
        }
       
        //Get the HTML elements of the subgrid via the query selector.
        var subgridControl = parent.parent.window.document.querySelector("div[data-control-name='Subgrid_new_1']");
          
        //Gets a collection of subgrid rows.
        var rowsList = subgridControl.querySelector("div.ag-center-cols-container").children;
     
       
        for(let i=0;i<rowsList.length;i++){
            var nameField = rowsList[i].children[1];
     
            //Set the tooltip for the Name column.
            nameField.title = `name:${nameArr[i]}`;
        }
       
        }, 3000);
    }
     
    The way the above code gets the parameters is shown below.
     
    The final result is shown below.
     
    Best Regards,
    Dengliang Li
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 241

#2
Tom_Gioielli Profile Picture

Tom_Gioielli 164 Super User 2025 Season 2

#3
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 153

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans