This is not an issue with a few tables, but when I have a ton of tables on my dbml diagram, I have to pan and zoom to find the table I am looking for. Is there a way to search the dbml diagram so it automatically goes to the table I searched for?
You can also use the dropdown in the properties pane to list all the objects in the dbml. Selecting one from the list jumps you to that object in the diagram.
Not perfect but at least its in alphabetical order!
If you go to the Designer View you can reach your tables through the usual Method name drop down or searching for the partial classes within the designer.cs. But that's pretty much it.
I created an AddIns to provide a Search in Diagram for L2S and Entity Framework (VS2008/2010).
http://ormaddins.codeplex.com/
Related
I have a section that contains a subform ( containing 3 editable fields for the user ).
Then I have an embedded view categorized having two actions: Add and Trash.
What i want to do: After the user complete the 3 fields and then press Add, the first row in the embedded view will appear. ( This easy thing I did ). But then after the first click on Add, I want that all the 3 fields to be refreshed, all of them to have as their value: "".
After, if the user wants to add another row into the embedded view (with different values), in my case it is overwrited on the 1st row. I want to be separate rows in order.
I tried something with #Command(ViewRefreshFields) into the Add action code but I didn't make it to work. Please help, J. U.
Jazir, I'm guessing that you also go by the names "Florin G Mihalache", "Josh Mitchell" and "Yveniss Ltoreau", and I've been following the development of your application along with many other professional Notes developers.
I really think you need to go back to the very first basics, and work out the difference between forms, subforms, documents, views, embedded views, and other important components of Lotus Notes databases.
I strongly suspect that for a couple of weeks you have been trying to use a form to create other documents, via a subform, to be displayed in an embedded view in that form, when what you should be using is just a view, and documents. Perhaps you might need to use pages, outlines and framesets. It is very important that you understand these basic concepts before confusing the people who have tried to help you, to whom you may have lied.
I have voted your question down, not just because you have shown a lack of research, but because you appear to keep switching ID when people lose patience with you. I will undo that vote if I become convinced that you are not Florin.
The documents displayed in an embedded view are controlled by the view's selection formula. You haven't shown that. You haven't shown your code in the Add button. You haven't shown what properties you have set on the embedded view -- e.g., show single category. So you're not giving us quite enough info to diagnose your problem and help you.
But in general, I think that if you want to control the order of insertion of individual documents into an embedded list, perhaps using an embedded folder would be a better idea than an embedded view.
CRM 2011 online. I have a requirement to color code entries that appear in an entity view. On a form for entity A is a field that is a lookup to entity B. Entity B has > 1 views defined for it. The lookup field on form A defines what view of entity B appears when the lookup button is pressed. I have been asked if the view that appears can show the records such that the entries are color coded based on a column value of the view e.g. if a record in the view has a value of X for a particular column, show that record with a green background, else show with a red. The view in question is a "public" view and is unmanaged and customizable.
In effect what I am asking is if it's possible to manipulate the display of that view somehow? If not, is the only other option to override the clicking of the lookup on the form for entity A and display my own custom view window?
What I have found in my searching is this which seems to suggest that I can export a view and manipulate the XML to incorporate some kind of conditional formatting. However, all it tells me is that the value is a string. Anyone have any experience there?
You are going to make it harder on yourself by having unmanaged code in your solution.
That being said, you can easily do this sort of thing in an iFrame or Silverlight control.
A quick google brought up some examples on how to do this.
Is there anyway to make EF navigational properties unidirectional?
In the example below, I would like to remove "Customers" property from the "Orders" table.
Driver behind this is the "circular reference" error I am receiving with Telerik Grid (which tries to serialize my object for Ajax Binding).
I've also run into this. Telerik has an article describing the problem and the solution http://blogs.telerik.com/blogs/posts/10-01-25/resolving_circular_references_when_binding_the_mvc_grid.aspx
Basically instead of deleting the property, as #Akhil suggests, you set it to Private which feels a little less destructive.
If its EF4,
Just Click on "Customers" Navigational Property in the Model View, and Delete (right click & delete).
If Its Earlier Versions,
You cannot do this in the edm-designer. You have to go into the xml-code and look for the navigationproperty you dont want to have and remove it. You will find the navigationiproperty in the CSDL area of your xml-code.
I have a Silverlight 2.0 DataGrid that contains a list of items that needs to be refreshed in an interval to display the up-to-the-minute information. There are items in this grid that may be added and may be removed while the screen is being displayed to the current user. For Example:
If grid looks like the following, then after a minute the data needs to be refreshed because another user has added a 4th entry. (notice the sort is assending by Last Name)
Data Grid http://img16.imageshack.us/img16/1667/datagrid.jpg
Then when I get the new data set and set it to the datagrid's DataSource property, it resorts the array based on my first column like so:
Data Grid2 http://img19.imageshack.us/img19/1294/datagridb.jpg
Is there any way to reapply the sort after the data source has been updated? I'd like to save the fact that the data grid is sorted by last name, then update the data source, and then reapply the sort to the data grid. So, in the end the datagrid would look like the following:
Data Grid3 http://img13.imageshack.us/img13/4636/datagrid2.jpg
These screen shots are of course not a Silverlight data grid, but this is for simplicity in explaining the situation.
Probably the best way to go about it is to use PagedCollectionViews, although I have not tested this out myself, these classes contain a property that stores the different sorting methods applied to them. I believe that you can probably grab the current sorting element from one collection, connect to the new collection, and apply the sorting to the new collection.
For a more in depth discussion on how this all works, you can follow the explanation here
I tried using PagedCollectionViews as well as CollectionViewSources (I used the new collection to overwrite the existing source collection).
My solution isn't the most elegant, but it works. When updating the source of the DataGrid I did my own change detection.
In other words, instead of blindly overwriting the source collection I iterated through the new collection, compared each item to the existing collection, and updated the existing items where possible.
Hope that helps.
After researching how to do this, I have figured it out. I tried to implement what the others said to try, but could not get it to work in Silverlight 2.0. Thus, I searched StackOverflow and Google for more answers. ScottLogic and CodeProject seemed to be what I was looking for but I couldn't get them to work fully. So with a bit of frustration and playing around with code, I finally arrived on the solution.
If the collection that you're using for your DataGrid's ItemsSource is ObservableCollection(Of T), you can get the ability of sorting for the object, plus you can update the collection dynamically at runtime, causing the grid to refresh with the item you insert. I've created a Google Code project that is GPL for you to checkout and download. Please note that I'm using the Microsoft Silverlight 2.0 DataGrid December 2008 Release for this project. I have linked to this download on the project page as well. (The dll's required are referenced from within a lib folder inside the project).
Enjoy!
Silverlight 2.0 DataGrid Sort Project on Google Code
I'm trying to customise the left navigation of a custom entity in CRM, I know I can rename the display areas for the linked entities however, I need the originals PLUS a few extras. Is there any way to do this either by editing the sitemap or ISV.config files or some other method?
I.E. I want to do the following:
Details
Sales
Orders
Opportunities
Service
Marketing
Custom Group 1
Custom Related Entity 1
Custom Related Entity 2
Custom Group 2
I agree with Matt, that in a supported fashion you're not going to be able to do this. The only valid area's are "Info", "Sales", "Service", "Marketing" or blank. If its something you really, really want I would recommend injecting nodes into the DOM to create the effect during the form load event. Look at the source for MSCRM's "Sales" or "Service" NavBarAreas and then inject nodes to match. Note that you can retrieve the NavBarItem's using document.getElementById using the ID attribute from NavBarItem.
I can't speak for KB22's solution, but if you want to stay supported, natively, you can't add new groups to the left nav. About the best you can do in this situation is rename one of the existing groups (Sales, Service, Marketing) if you don't need to use it.
I vaguely remember that customizing CRM is pretty much of a PITA.
AFAIR one has to modify the MS-SQL VIEWS in the backend in order
to achieve such customizing.
Just tryin to point you towards the solution...