how to assign data to fluent ui detailsList - dynamics-crm

i am new in PCF Control, i need to create a PCF Control Subgrid using react detailslist . the pcf should use the webAPI to make a webAPI.retrieveMultipleRecords request and then to assign the result in the Subgrid.
maybe someone has an example for me?
Thanx

Use PCF Builder for XrmToolBox and create the PCF Control with Dataset Template.
This will allow you to replace any sub grid with the PCF control and the data for the sub gird will be passed in the parameters in the context.
You also have access to the paging on the dataset.

Related

How to have a real-time updated kendo grid?

I have a kendo data grid which is bind with ASP.NET ajax binding.
When ever I press grid refresh icon, or do a sort or filtering it will update the grid with current values from database.
But I want it get updated automatically when the database get updated or in other words (when the related datasource updated, but I don't know how to trigger that change in datasource).
Also, I don't want to have a timer and refresh the grid based on some time intervals, I just want it get updated when the related data changed.
Thanks in advance!
The grid will update automatically when the underlying dataSource is updated.
The problem is updating the underlying dataSource without any client-side action to trigger a re-read from the server.
Since this is the web, the dataSource is not directly connected to the server and any changes on the server will not be reflected in the dataSource as the server has no access to the client-side dataSource.
So, you need to use an additional technology/technique that provides this type of connection.
Take a look at Kendo's SignalR integration demo to see if it serves your needs.
http://demos.telerik.com/aspnet-mvc/grid/signalr
Otherwise, you can research "long polling" and/or websockets to see if they meets your needs better.

Execute custom code in CRM

Is there a way I can execute custom code in c# when a user clicks a button in the CRM application? I would like it a synchronous and asynchronous approach.
Actually something like when putting a button on a webform with a wired code behind click event handler.
And how can I add a button?
I want to display a list of report views the customer has assembled and access the report data in the CRM database.
It seems so complicated with CRM!
Here's an example of a custom workflow with a bunch of XAML. I dont know where they got it from.
Sample: Create a workflow in code
One way to go about it:
Use Ribbon WorkBench add add a button to the form. Only supported way of adding buttons to CRM is by editing ribbon XML.
Add an on click JavaScript Event Handler.
Call an Action which can be used to call a custom workflow where you can perform business logic.

How to configure an Extension Library Rest Service so I can delete documents from a KendoUI Grid

My KendoUI grid gets data from a viewJsonService Rest service in an Xpages. I would like to write another Rest Service to be able to delete documents from the grid, but cannot figure it out.
How do you do a delete using Rest Services in Xpages?
Use the xe:documentJsonService with
HTTP method DELETE or
HTTP method POST and X-HTTP-Method-Override header DELETE
Have a look here for more information.

Kendo ui datagrid

I am just trying to use keno ui into my project. But Kendo is new to me. So I am not sure how to proper use it. Some of the widgets like dialog window, datepicker, timepicker etc. are easy to use but I am having problem with datagird. Could anybody let me know how can we use datagrid widget server databound and xml as datatype. Please give me little bit give me an example. If possible. Let me know how xml file will look. How can we get page number, number of rows on the server side. I am using asp.net with c# as server side language.
Is there a reason why you want to bind to an xml file? Generally speaking you should be using JSON for the dataSource. For an example of using an xml datasource have you looked at this:
Binding to xml DataSource
If you haven't used these before and have access to the MVC Wrappers then I would suggest looking at this demo as a good starting place for the Grid:
Kendo Grid bound to local data
Kendo Grid bound to remote data
If you use the demo from the first example and apply it to the "local data" example this should get you going. If you get stuck please provide some code showing what you have tried and any issues you are faced with.

Image button inside a Data table

I'm facing a scenario that i need to add image button inside a datatable. Is it possible to add an image button control inside a datatable.
I'm using Framework 3.5 and C# language.
Thanks In Advance!
Regards,
Ranga
I think you are trying to work with a user interface control like a DataGrid or DataGridView. DataTable is an ADO.NET class for holding data from a database. It doesn't present data in a user interface, so adding an image button maes no sense.
I presume you're working with a grid of some sort, but in order to get a sensible answer you need to tell us which one. Is your user interface WPF, Windows Forms, or ASP.NET? Specifically, which grid class are you trying to use?

Resources