You need to sign in to do that
Don't have an account?
Omer
Data Grid and Table
Hi
I wanted to know that is there any control through which we can show data in form of a grid in our applications? I am talking about a editable data grid like in MS Excel. Similarly, I like to make a table into which user can enter data (in different cells). How can this be done?
Thank you.
I wanted to know that is there any control through which we can show data in form of a grid in our applications? I am talking about a editable data grid like in MS Excel. Similarly, I like to make a table into which user can enter data (in different cells). How can this be done?
Thank you.
The best way to implement a datagrid in an scontrol is to create a vb user control and use it as an embedded object in you s-control. You can certainly do something similar using dhtml and ajax but it takes a fair amount of work ( an existing framework would likely help out jackbe or something similar).
I think the best framework is openrico.org something like two js to embed and you are done
Regards
Not yet I am bit busy with the acquistion the company I work for has just made but I have some little things in the pipe
REgards
Openrico assumes that you have control over both what is being returned from the server as well as the client side stuff. I had to override 4 or 5 functions so that the data could be retrieved via another javascript function (sforceClient.query) and parse the results differently. I'll blog and post a sample, (sorting doesn't work) but I think this is not the right framework.
I'll continue to look for a better grid for use with the toolkit.
Thanks to have had a look at openrico.
BTW Do you think is it possible to get acces to the javascript event manager of salesforce.com. I would like to make a kind of ORg Chart with drag and Drop without the plugin from Dream Factory software and it will be cool to be able to make some drag and drops without havin to code all the event manager
REgards
So the first task is to query the data and construct a linked list of the dyanbeans. I've done this for our call scripting demo and it's quite simple. If you are trying to map the role hierarchy, then you will want to query for all roles using no criteria. Just gobble up all the data async and while that data is being retrieved and parsed, punch up a progress indicator.
Select Id, Name, ParentRoleId from UserRole.
With these records, you can now create a linked list of dynabeans setting childBeans, nextSibling, prevSibling, parentBean, hasChildren etc. What ever you need to keep the list ordered. Then, you walk your list and create ui elements. In the sample I'm creating a bunch of divs. I assume there is a library out there that can make a div drag and droppable, so this might be useful. For each div that is created, you give the div a new bean property that contains a reference to the bean it's displaying. Likewise you can give the bean a reciprocal div property so that you can get the div that is displaying it from the bean itself. The sample I'm including shows how to attach events to the html elements.
Hope this helps. Let me know how it goes.
Save the attachment and change the extension to html to run.
Dave.
Thanks a zillion time for this
Regards
Any help is greatly appreciated.