Field updates only if I update browser in dynamics crm -


i wrote plugin crm. update field of entity a when create new entity b. have form entity a , in form have tab entity b. when create new entity b tab plugin change field in entity a. can't see change until reload browser page.

adding entity b tab

saving entity b

filed doesnt change until page reloaded

you're somehow losing sight of fact plugin running on server, , updates data in database on server. there no built in method of having database update trigger notification on particular client (or all). have 2 options:

  1. trigger xrm.page.data.refresh (or save work well, since pull down new values) within context of entity a, after performing save of entity b.
  2. use polling , crmwebapi or odata endpoint query crm value updating on server side, , updating on client well.

your question little difficult understand, #1 may difficult if don't have way of knowing in context of entity a user should have created entity b. #2 work, not scale if have hundreds of users sitting there polling.


Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -