Hi
I want to retrieve GUID of record selected from an editable subgrid using javascript.
*This post is locked for comments
Hi Sathish,
Check this article, to get GUID of selected records :
Basically you have to bind a function to OnRecordSelect of your grid (it's available on the list of events when you go on the "Events" tab for your grid). This function can look like this:
function OnRowSelected(e){ var id = e.getFormContext().data.entity.getId() console.log(id); }
Hi Sathish,
You can refer the below MSDN article about all the supported JavaScript methods available. For your requirement, you may need getSelectedRows, getId but the article explains all the available methods.
Editable subgrid is very restrictive in nature - so you wont be able to run JS and get GUID etc.
You need to rely on event like Update/create to populate some field and then work with that using JS.
Can you please brief about what exact functionality are you trying to implemment?
Refer this. But this for CRM 2011 any way once look you have an idea:
lakshmanindian.wordpress.com/.../update-selected-records-in-home-page-entity-grid-in-crm-2011
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156