How can I delete a view from a Papyrus model? - papyrus

In Papyrus, when I create a new model, I can go to the "Welcome" tab, to the bottom-right corner, and click "Create View" to create a new view (e.g. Use Case, Sequence Diagram, etc.).
But, I did not find any way to remove a view that I created. How can I remove a view?

You can't remove it from the welcom page, you should go in the "Model Explorer" view and simply press Suppr.

Related

Pin a personal view in D365

How to I pin a personal view in D365. It is a child entity to the case entity (not in the left navigation menu).
It is not appearing on the recent items in the main page when I go Advanced find -> Saved views and run the view.
Recent items are appearing for the views and record from the main page which I could pin from.
This should work, add/replace this part in browser address bar - &pagetype=entitylist&etn=YOUR_ENTITY_NAME.
Make sure you’re changing the entity name, then this will land on that main grid page. From there you can change to personal view and pin it.
If you know the view guid - then try similar to this:
Url="/main.aspx?appid=e2bc1066-488f-eb11-b1ac-000d3a56ead9&pagetype=entitylist&etn=account&viewid=%7b<GUID value of view id>%7d"
Read more

How to identify if the quick create form is opened from the top nav bar or from the new button in lookup field

Click on the new button in the project template lookup field of the project entity,this opens a quick create form which will have all the fields
Also click on the new button from the top upper right corner of nav bar and select project entity. This also opens a quick create form with all the fields.
Now I want to distinguish from where the quick create form is opened(from the lookup new button or from the nav bar).
I would like to have a solution for this in UCI not in web client
Literally No way.
The same Quick create form is opened in exact same way from both Lookup (New +) and Top Navigation bar Quick create button (+).
https://abc.crm.dynamics.com/api/data/v9.0/GetClientMetadata(ClientMetadataQuery=#ClientMetadataQuery)?#ClientMetadataQuery={%22MetadataType%22:%22form%22,%22MetadataSubtype%22:%22QuickCreate%22,%22EntityLogicalName%22:%22contact%22,%22MetadataId%22:null,%22MetadataNames%22:[],%22GetDefault%22:true,%22DependencyDepth%22:%22OnDemandWithContext%22,%22ChangedAfter%22:%22777574980%22,%22Exclude%22:[],%22AppId%22:%22edcd61cf-1f0c-e811-a95f-000d3a18032d%22}
Probably can think about workaround, when we understand what you are trying to achieve.
Atleast Quick create form opened from Subgrid will have pre-populated parent lookup to identify the source. This is like dead end.

Add buttons to sub-grid view

On the order form, there is a products section that has uses the default Order Product Inline Edit View. This view is not editable, but you can copy it and save it as a different name.
However, when you copy the view, the new view does not display all of the same buttons when viewing the sub-grid.
default view:
copied view (the lock pricing, move up and move down buttons are missing):
The copied view shows the + button and it's drop down menu correctly. Why hasn't it copied the other buttons, and how can i get them to show on my custom view?
I am happy to edit xml and upload that back to CRM if necessary.
Update:
FYI, this is all a pointless effort as the word template ignores the sequence order. What an utter waste of time.
I'm going to guess it's because the default view on the order of order products is a special one. It has special behaviours that arn't seen in the rest of 365, i.e. you don't get up, down, or lock on other views.
I would assume that the extra buttons only get shown on that default view and arn't really supported outside of that view.
Turns out it is actually quite easy to show these buttons for other views using the ribbon workbench.
Right click on the button in ribbon workbench under the subgrid section and click on customise
Select the command in the "solution elements" pane at the bottom
In the bottom right hand pane, right click on the enable rule "Mscrm.IsInlineEditView" and click "Remove from Command"
Publish
These buttons now show up for all views.

Navigation - SplitView or Pivot

I'd like to ask you, what do you think, which control is better for navigation. What I mean?
Now I have Pivot control with 2 PivotItems. One of them is named Contacts. This PivotItem contains Frame. And the frame makes new navigation on page with contacts (listview). Why Frame? When I click on some contact I need to show details of current contact. But I need to display it inside PivotItem, therefore I use inner frame. So I can still see main view and other pivot items. I think, that pivot is not right control for it. Or I should show contact details for whole screen, not only in pivotitem.
FrameA and FrameB. FrameA has navigated from Main to Page1. Page1 has a Pivot that hosts FrameB in PivotItem1 and FrameB has navigated from View1 to View 2 and from View2 to View 3
I suggest you start reading up on navigation basics for Windows 10 and look at some other apps how they do it.
You could use a navigation pane (which is mostly done using a SplitView), in which you show your contacts grid in the main panel and navigate to a single contact when clicking on it. The other item in your navigation pane would be the title for your 2nd pivot tab.
If you want to keep your contact list visibile at all time and show the details of a single contact next to it, the alternative is using master-detail. Either on a full screen, or by placing the master detail on the main panel of your SpltView.
You can find a master-detail control in the UWP Community Toolkit.

Add record with ID, selecting NAME from another table

Can anyone, please, help me with Libreoffice Base form creation?
I have the following tables:
And I'm trying to add a form to enter new RESOURCES record with the following fields: [RESOURCE_NAME], [CURRENCY_NAME] and [AMOUNT]. But after 10+ tries I have not succeeded. I have tried adding it via wizard, selecting RESOURCES as main form and CURRENCIES as subform and vice versa. I have tried VIEWS and forms based on them. These tries only gave to me or no possibility to enter new record, either creation of the new CURRENCY.
I don't need to create new currency via this form, I only want to enter new Resource (only enter once, not to modify, not to delete). Since I don't want to remember all the ID's I want to select currency name via DropDown list.
Can anyone provide instructions about how to do it, please?
Thanks.
You do not need a subform for this - just create your form document with RESOURCES as the main form (only form).
You will need a listbox to enter the currency item. A listbox has two fields, a display field and a field that is saved in the table. You will set it up to display CURRENCY_NAME and store CURRENCY_ID.
When you create a listbox, the wizard that pops up may get you what you want. If the wizard falls short:
Make sure the form document is open in design mode: on the "Form Controls" toolbar, the leftmost/topmost icon of a pencil with a triangle should be depressed. If this icon is grayed out, close your document, right-click on its name and choose "Edit".
Right-click on the listbox and choose "Control"; this will open the properties window
On the tab "Data" change the "Type of list contents" to "Sql"
In the field "List content" enter SELECT "CURRENCY_NAME", "CURRENCY_ID" FROM "CURRENCIES" ORDER BY "CURRENCY_NAME"
The Bound Field should default to 1. If it isn't 1, change it to 1.
Close the properties window and save your form. It should work as you want now.
If you want a listbox inside a tablegrid: after you create the table, with the form in edit mode, right-click on the column name you want to change and choose "Replace with" and then "listbox".
Edited to include comment by OP about bound field needing to be 1

Resources