Results 1 to 5 of 5
  1. #1

    Add Items in subgrid automatically

    I'd like to add Items in my subgrid automatically.
    Ex: I have account entity and payment entity and i have already established the 1:N Relationship
    I want to appear the payment lines automatically in the contact subgrid when they are entered in the payment entity
    Thanks a lot.

  2. #2

    Add Items in subgrid automatically

    Hi ,
    If you add items in the payment entity with selected account lookup it will come automatically in subgrid of related account record.
    Do you want to refresh subgrid automatically?
    In that case you need to refresh manually or you can write a code to refresh your grid . Here is the sample javascript code to refresh subgrid. Just call the function in Onload event it will refresh ever 2 seconds.

  3. #3

    Add Items in subgrid automatically

    function RefreshSubGrid()
    var isGridRefresh =false;
    var intervalId = window.setInterval(
    function () {
    var grid = Xrm.Page.getControl("gridName");
    if (grid != null && isGridRefresh == false) {
    isGridRefresh = true;
    }, 2000);

  4. #4
    Junior Member
    Join Date
    Feb 2016

    Add Items in subgrid automatically

  5. #5

    Add Items in subgrid automatically

    Hi Goutam Das,
    Thanks for your feedback.
    When i add items in the payment entity, I can not find the information in contact's subgrid.
    I need to click in (+) and search for the item and add it manually
    PS:I have a lookup field in payment entity for the account, where i mention the account name


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts