why I am getting strike marks on imported objects after importing through csv file and how to remove it
I'm going to add some screenshots to #GNi33 's comment.
Method one is to right-click on an object and choose Publish from the context menu:
Method two is using the batch functionality. This is very helpful when publishing several objects. Just left-click on the object folder and select all objects:
Then click on that little arrow in the head of the Published-column and choose Batch change selected:
Finally just click the Published-checkbox in the modal and hit Save:
E voila, all objects inside that folder are published.
Related
In app maker I have created a drive picker to add project files to a project tracking app. I have everything working the way I want to (thanks to some app maker samples & videos) except for the icon of the document. When I use the picker to select a file, or multiple files, the selected files are then shown in a list above the picker. File name, url link both work but icon will not show up. Any ideas? I've been working on this seemingly minor thing for hours with zero luch.
I have a model, called Files, set up. In it I have Name, Url, and Icon. In the properties for the picker, I have name and url bound to the appropriate datasource items and I have the following code bound to onDocumentSelect. I got that code from a video where a guy was doing basically what I'm doing except it worked on his. I've watched the video a hundred times probably to see if there's anything I did different.
widget.datasource.item.icon = result.docs[0].iconUrl;
widget.datasource.createItem();
This should retrieve the icon of the selected docs, after they're selected, and create the icon item in the datasource. What am I doing wrong? Or is there another or better way to do this?
I have a Problem with Catel, ViewModels are instantiated multiple times.
This is a duplicate of my own question, but the old question is a big wall of text (which didnt help), and now I decided to rather include a demo-Project.
The demo-Project can be downloaded from here:
Demo-Project (VS2013)
Here is the Problem:
Run Project,
Open one Customer (double click or select then "Edit")
Observe: the Nested Controls for the Orders: "OrderViewModelID" is 11...20 (actually you cannot see 16...20, forgot the scrollviewer)
--> it should be "1...10" cause it's the first 10 ViewModel of type Order created.
--> reason: OrderViewModel is instantiated MULTIPLE TIMES per Model
Click on "New Shipper" (any order)
"Cancel" the new Window
Observe: the "OrderViewModelID" is now 21...30 (they were instantiated yet again!!!)
I put lots of time in this Problem already, and I just cannot find the reason.
Any help / insights?
Johannes Colmsee
This was a bug. It has been fixed, see the issue report for the latest information.
btw. I really recommend that you use Catel.Fody, it will result in much cleaner view models.
I have to inform you, that the Bug is only fixed partly.
I will Highlight the steps which still are broken:
Run Project,
Open one Customer (double click or select then "Edit")
Observe: the Nested Controls for the Orders: "OrderViewModelID" is 11...20 (actually you cannot see 16...20, forgot the scrollviewer)
--> it should be "1...10" cause it's the first 10 ViewModel of type Order created.
--> reason: OrderViewModel is instantiated MULTIPLE TIMES per Model
- Click on "New Shipper" (any order)
- "Cancel" the new Window
- Observe: the "OrderViewModelID" is now 21...30 (they were instantiated yet again!!!)
Update:
It was a bug in Catel 4.4 which has been fixed. Link to the Catel Issue Tracker Item
I know you can export one GI at a time to xml, I'm wondering you can select all user GI and export to XML as a backup.
Thanks
You can do this by creating a customization project and include all the generic inquiries you need in one package. The project can be exported and imported which includes all of your attached GIs. We do this already and works great. Do not forget to update from database when making changes before re-exporting.
Simple list of steps if you have not created a project before: (using 5.30)
System > Customization > Customization Projects > create a new project (save)
Click on the hyper-link for your project name to open the customization project window.
Click on Generic Inquiries
Click the add (plus symbol) and check/select all of your GIs and click save. Note the 'RELOAD FROM DATABASE' option. Do this step when you make changes to your GI that you need to update into your package as this does not happen automatically when saving changes to your GIs.
You should see the list of Generic Inquiries include all that you selected
In the upper right under File (still in the Customization project window) select 'Export Project Package'. A zip file will be downloaded from the site which includes all of your XML for each GI
This is a rather strange one I think, and I'm sure I made a mistake here myself:
in one of my applications I'm showing a fileDownload control bound to a Richtext field in my underlying NotesDocument. The control's properties a are set to Hide if no attachments, show size, type and created as well as allow delete. The control itself sits inside a custom control, being part of another custom control, similar to this:
Xpage.xsp
- ccContainer
- - ccInnerDoc
Document datasources for both the container and the "inner" doc are defined at the root of ccContainer and passed into the inner doc.
The inner doc's datasource is comnputed based on a document selection, and it's igenoreRequestParams property is set to false so that I can display the contents of the selected datasource in a given panel etc.
The selected doc is first opened in read mode, and I can set it to edit mode using a button.
Problem now is that my file download control always is showing the delete icon (trashcan) no matter which mode the doc is opened in. And it's not only the icon showing, it also pretends to work by asking me whether I really want to delete and then really removes the file attachment. Only that this change of course cannot be stored into the datasource because it's only open in read mode.
I'm sure that this behaviour is some side-effect of something else in my application (to a certain extent I rebuilt this in a plain new db and until now cannot reproduce it), but I'm at the end of my knowledge of what this could be.
Any hint of what could be causing this is more than welcome.
In place of #Frantisek Kossuth I answer this myself: see compute dynamically the allowDelete property of file download xpages
Thanks again, Frantisek!
I have my account entity linked to a custom entity called inspections, I only want these inspections to be created for accounts of a certain type. So when it isn't that type I want the left hand navigation to this entity to be hidden away. I've seen some code that says will hide it away, as long as you have the navID of the item.
I've had a crack at hiding it using what i thought could be the ID but it hasn't worked, so I'm wondering if anyone knows how to get this ID, or if there is another way to do this?
The code I'm using to hide the navigation is below:
var navitem = Xrm.Page.ui.navigation.items.get("nav_ts_inspection");
if (navitem != null)
{
navitem.setVisible(false);
}
Load the form
Press F12 to show IE Developer's Toolbar
From here you can use CTRL+F to search for the display name of the item you'd like to hide. This will give you a link that is generated. The Id of this element is what you need to use to show/hide the link.
As an example, you can see results of searching for 'Sub Accounts' on the Account screen for an installation I am working on at the moment. The Id can be seen and is 'navSubAct'
Changes by traversing DOM and manually hide an area is not officially supported.
Luckily if you are on CRM 2011, you can go to
Settings > Customization Or open the solution.
Select the entity > Forms. Inside the Form editor window, open the Form Properties of the entity.
Go to Display Tab and untick "Show navigation items" checkbox.
Finally do not forget to Publish your changes.
Use the relationshipname to hide folder in navigation like this:
If you have folder with the relationship name: ts_inspection
Use this for ID: navts_inspection
So otherwise the same as above, but lose the extra underscore (_) between nav and ts.
var navitem = Xrm.Page.ui.navigation.items.get("navts_inspection");
If you want to hide particular navigation section from the FORM then remove all the links from that section and publish it. That section will not be visible anymore.
If you want to just remove Navigation Pane from FORM, then go to 'Display' tab of form and mark as 'Do Not Show' and then publish it.