ļ»æ Java Script – BDS experts
Save and publish one click

Save and publish one click

Save and publish one click – what is it for If you are customizing loads of entities forms here is a solution that can speed it up a bit – save and publish one click. When I customize form, the most often repeated operations are: save publish close customization form reload entity record form Solution […]

Entity name by object type code JavaScript

Entity name by object type code JavaScript

Entity name by object type code – what is the issue RecentlyĀ I found myself in a situation where there was no Xrm.Page.data.entity object so getEnityName() could not be used. Yes, there are form where it’s not available šŸ™‚ I thought, phi, piece of cake. I remembered that there is FormEditorWebService.asmx which has a GetEnityId() so […]

How to publish enity form in javascript

How to publish enity form in javascript

What for? Some time ago I had to create and customize ~20 entities. After editing form, saving, publishing and reloading over and over again I thought about creating custom button for publishing. Yeah – why not. But this functionality already exists Yes, that’s true. If anyone hasn’t check how does the built-in publish button works […]

Field flag getIsDirty() == false, why ?

Field flag getIsDirty() == false, why ?

Recently, I’ve came accross situation, that despite the fact that certain field has been change on CRM form, a javascrift flag getIsDirty() == false. I’veĀ  noticed that just after changing field value user is clicking ribbon button and that was the reason. Flag getIsDirty() is beeing set when form control loose focus – operating on […]

Javascript SOAP or REST ?

Javascript SOAP or REST ?

  While writing javascript code it is the most fundamental question. Both ways are capable of CRUD operations, so what is the difference? Recently I’ve written some code to retrieve only one flag from opportunity entity at JS. Beside that JS entity had registered plugin atĀ PreRetrieve.Ā  Of course in plugin code I was checking if […]

How to use REST endpoint?

How to use REST endpoint?

REST endpoint is one way of retrieving data on client side. REST operations are using datasets, which Ā are treated as entity item collections. Personally the easiest way of using REST endpoint is to use XrmServiceTooltkit.REST library. Where to find datasets? http://servername:port/OrganizationName/XRMServices/2011/OrganizationData.svc/ … – <collection href=”new_errorSet“> Ā  <atom:title>new_errorSet</atom:title> Ā  </collection> … Where to find fieldnames used […]

Get user personal settings: date & time format, date separator, number separator, decimal symbol, currency presision

Get user personal settings: date & time format, date separator, number separator, decimal symbol, currency presision

Info: If you have ever, I assume you must have, been annoyed with JS: reading date/time format reading date/time separator reading currency precision reading decimal symbol reading decimal separator don’t worry. You’re not alone. Recently I’ve came across a problem of different date formats on grid view for users. Base setting has been overridden by […]