Skip to main content

Notifications

Announcements

No record found.

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 7
Hi experts,
 
In the subgrid which containing product lookup, when hovering over the field it does not display the data in it.
 
  • Dengliang Li Profile Picture
    Dengliang Li 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
     
  • Arthi G Profile Picture
    Arthi G 7 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
    Dengliang Li 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
     

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,431 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,503 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans