locked
Retrive the fields on tab expansion RRS feed

  • General discussion

  • I have some data which are not stored in CRM. When i expand the tab i have to make a service call via js and retreive data and show on UI .
    Tuesday, May 6, 2014 7:31 AM

All replies

  • I don't Understand what you are trying to do.
    If you collapse the Tab all fields are hidden,and when you expand It all fields are shown.

    With this code

    Xrm.Page.ui.controls.get("fieldname").setVisible(true/false);

    You can show /hide any field.

    If you want to show/hide a Tab use this

    Xrm.Page.ui.tabs.get("TabName").sections.get("SectionName").setVisible(false);

    Hope this Helps


    Tuesday, May 6, 2014 7:55 AM
  • Actually I am trying to find a way for lazy loading.I have some fields which are not stored in CRM, when i expand the tab i need to make a service call via js and retreive data and display. looking for some code samples.


    Tuesday, May 6, 2014 8:30 AM
  • Oh,
    You can add a TabSateChange Trigger event on your Form Tab

    With this you can Trigger your code to run on expand

    Tuesday, May 6, 2014 9:51 AM