Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Answered

Get attributes from Associated View

Posted on by 5
Hello,
 
Is there a way to get the field attributes of the selected Records in a /Subgrid/ that is not a real subgrid, but Associated View? 
I have a button in the Ribbon of the View /Associated View Invoice Line Details/ that should show only if all selected Lines have field /Correction/ = false. 
 
my JS manages to show me the Name and Guid of the View, but the GetControl does not work => Debugger:  formContext.GetControl is not a function
 
vView = /{59AB5957-0408-465A-83F8-A134E7B1F3A5}/  /Invoice Line Detail Associated View/
 
is there a way to retrieve the attributes in a similar way as for subgrids?   
 
like formContext.getControl(arg).getGrid().getRows().getAll()[n].data.entity.attributes.getAll();
 
 
thank you for any advise
Ullli
  • Verified answer
    Dengliang Li Profile Picture
    Dengliang Li Microsoft Employee on at
    Get attributes from Associated View
    Hi,
     
    It is afraid that this cannot be implemented.
     
    There is no api for getting the associated view in the official documentation.
     
    I found a similar question.
    javascript - dynamics crm get name of subgrid on associated view - Stack Overflow
    However, based on the answer to this question, I was unable to find the corresponding IFrame control to get the associated view.
     
    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 Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans