I have a project that I made in Asp.net with Entity Framework.
Now I want to add one or more tables in the database and one or more stored procedures.
But entities not shows the new table.
How to show this?
Open edmx file, right click anywhere in the modal and select "Update Model from Database" and follow the instructions and choose the desired tables and SPs.
Sometimes even after following these steps, your model will not get updated, close Visual Studio and restart it again. This has happened many times for me.
Sharique's answer is the good one. But I noticed a thing: when the Mapping Details window is active(near Error List, Output) and if you are trying to add a new Entity (right click the design surface, Add -> Entity), the popup dialog, "Add Entity" it won't show.
Related
I have below requirement but not sure how to proceed.
I have a page where I have two sections
Left section: Having list of report templates which user has saved previously by creating the .repx files, on select of this(left) section, right section will update.
Right Section: DevExpress designer to view/edit the repx.
Also I don't want to get individual .repx file from backed on click of each section, instead is it possible that I get all the section list with .repx file at a time and when user select the section then designer will load the selected repx file. ?
Thanks in advance.
So I have two databases (Database A and Database B), with a ONE to MANY relationship.
I have a page (that used to work) where I had an Accordion Widget for Database A and one for Database B on the same page.
So if I highlighted an entry in Accordion A (Database A), then I would see all the associated entries for Database B displayed in Accordion B.
When I clicked the next entry in Accordion A, Accordion B would update appropriately. I was able to achieve this by setting the Datasource for Accordion B as Database B (relation).
This doesn't seem to be an option any more.
Is there a way to achieve the same thing via a different method?
Here are our docs on this: https://developers.google.com/appmaker/models/datasources#relation_datasources
I think the reason you aren't seeing the Database B (relation) option anymore is we only show that if the inherited data source is Database A. As all relation data sources need a parent data source to be based on (that's how they know to which item to show relations for). So for your case, the solution is probably to set the data source of the entire page to Database A, then go to set the relation accordion's data source, now you should see Database B(relation).
Sometimes you really just want to specify the relation datasource directly rather than have it be based on the parent, in this case you can click "advanced" in the data source chooser, and choose the relation specifically. I think the path in this case is something like:
datasources.databaseA.relations.databaseB
To be able to select "Database B (relation)" as datasource "Accordion B"'s parent widget datasource should be set to "Database A".
Please select "Accordion B", use breadcrumbs above the visual page editor to find parent widget, select it and verify that datasource is set to "Database A".
I have a solution that contains 32 projects, one of which is a Windows form and the others are console applications. In the Windows form I have a combo box that its items are the names of the console application projects with a button.
Now, my problem is that how can I start the console application, which name is selected in the combo box by pushing the button, in a new instance? (if it is possible).
In your button click event, add the following lines, assuming cmbConsoleApps contains the file names of the console applications.
System.Diagnostics.Process.Start(cmbConsoleApps.Text);
More information about executing applications:
https://msdn.microsoft.com/en-us/library/h6ak8zt5(v=vs.110).aspx
On Tridion 2011 SP1 HR1 publishing queue, I see user list is not sorted.
Is there a way to sort the user list or should I raise a ticket for a hot-fix?
Update:
To be more clear.
On Filter Publishing Task options --> User Dropdown, currently sorting is done based on User Title by default.
As a user, it's not appearing as sorted.
So, I'm looking for sorting the User Dropdown based on User Description.
Please suggest How can I achieve this.
Sort users in User dropdown on Publishing Queue popup could be achieved by creating new custom extension.
You add new js file to Publishing Queue popup group where you can overwrite Tridion.Cme.Views.PublishQueue.USER_DROPDOWN_HEAD_PATH property. It should point to Dropdown xml definition file. You'll need to create your own Dropdown xml definition file (by copying existing WebUI/Editors/CME/Xml/ListDefinitions/PublishQueueUserDropdown-head.xml) and add new node /list:listDefinition/list:rows/list:defaultSortField with value #Description.
On 2011 SP1 the user dropdown in the Filter Publishing Tasks options is sorted alphabetically by the username (User Title). And if you select "all", then in the Publishing Tasks list you can sort the task by username by clicking on the column heading. There is also a little funnel icon where you can filter further.
I am pretty sure this is by-design, so there will most likely not be a hotfix for this. You can submit an idea to have this feature implemented in one of the next releases via the Ideas site on sdltridionworld, or build a custom gui extension to do specifically what you need.
I followed the instructions in this link
but I face a strange problem which is when the lookup is populated with the new filtered view the add button is getting disabled when I select a record from the new view !!
I debugged the code in the lookupinfo.aspx page and I found this line of code that controls whether the add button is enabled or disabled
btnAdd.disabled = (crmGrid.InnerGrid.SelectedRecords.length == 0);
and this line of code always return true despite there is a selected record !!
Can anyone help me ?
Thank you.
I followed the instructions in this link
Which link? I can't see one referenced in your question. I'll make some assumptions about what you are trying to do. I will assume that you are trying to hide an "Add Existing" button linked to a form's sub-grid. I'll also assuem you're trying to edit XML files by hand (which is the hard way!).
The easiest way to apply rules to buttons in CRM 2011 is to use Erik Pool's brilliant tool "Visual Ribbon Editor" (available here)).
To hide an "Add Existing" button based on selected records, you would:
Connect the tool to your CRM environment
Open the "parent" entity (i.e. the record type that shows the "Add Existing xxxx" button
Select the Ribbon Type to be "Sub-Grid"
Select the button you wish to manipulate
Add or edit the Enable Rules for that button
If I'm not describing a solution to your problem, maybe enhance your question - it's hard to understand what you are trying to acheive.