Created role based view - dynamics-crm

Views appear to not have 'Security role' settings as forms do. How can we create views with specific requirement of a business unit?
For example, I want to create a view with the column that all users in 'Sales department' business unit want to see.
Thanks,

Related

create and update field to other model backpack laravel

I am trying to create a dashboard to display a specific table and create/update the lines for this table via backpack laravel.
For example I want to display a table of area and this table has a relationship with the cities table.
my problem is when I want to add a specific area and the city associated with it is not added !!.
That I do not want to go to add the city then back to add the area.
This is a very small example of what I'm really dealing with ,
since I want to add a line in a table and this line contains relationships with other tables I want to create on the same page.
I searched and did not find a direct answer. Does it make sense that a new view should be created?
Does the Backpack Laravel not provide a solution to this problem?
If the answer is no and this is what I saw, what is the best solution to this problem ?
Image to summarizes the problem as I want to create the city on the same page as creating the area
I think what you’re looking for is what we call the InlineCreate Operation in Backpack. It adds a “+ Add” button next to the relationship field, so that the admin can add a related item right there, in a modal.
Check out its docs here.

Modify Contact Associated View to include prospects

We have Contact Associated View that displays all customers. These are people who have bought one or more item from the high street shop or online. But we also have a set of customers who goes to the shop and signup for news letters and offers. In our setup these are called PROSPECTs.
My current view (Contact Associated View) only displays customers but not prospect and I was wondering what is the best way to include them in this view? I don't want to create another cusom view as I don't know what the criterias are.
Also, if there is any way to find out what criteria is used to create Contact Associated View and if it is practicle to make changes in it.
Any guidance or tutorial link would be much appreciated.
Many thanks
EDIT: I manage to create a custom view under CONTACT which SUPPOSE to list all customers who purchased or didn't purchase item from that shop.
Simple check like Customer equal y;n
but when I view contacts from this view, it only list customers with purchase. Is there any master condition that is overwriting this condition or am I missing some thing? (forgive me if I sound stupid but I am from SharePoint world where master CSS rules takes over local CSS rules)

Magento, hidden products /store view

i have to insert in my store some new products, and i'd like to keep them hidden for users until i have uploaded them all and checked that is all ok.
I think that a hidden store view could be a good solution, but i don't know how to do it. Is possible ? any other solutions ?
thanks!
You can create a new store view by going to System -> Manage Stores. However, you will need to create a new Store Name to be able to assign a different top level category.
Alternatively, create your different Store View and add the new category to the existing structure, setting Is Active to No in Manage Categories. Then choose the new Store View from the dropdown in the top left on the category page, choose the new view, and change Is Active to Yes for that view only.
Does that give you enough of what you need?
Remember, different views and names can be given the same theme too.

Do I need a model or view model? MVC 3

I have a pretty standard scenario where I have a model which in this case is a product.
The product model has a load of properties such as price, desc etc which I want to display on a view.
I have this working fine.
The product has a list of accessories objects which get displayed on the view and gives the user the ability to enter a qty for that accessory.
When the user clicks add to basket I only actually need the list of accessories and the id of the parent product.
Should I be creating a view model that contains all the product info I need or do I just pass my view the product and then on submit just get a view model for the few fields that I need in the signature of the function?
I'm new to mvc in case you hadn't guessed!! and I am using MVC 3.
Using a separate view model is better practice as it means you can add extra information outside of the Product which may be relevant such as Basket and User info. If you have many fields on the product then you can use Automapper to take the relevant fields and map them to the view model. Also you can flatten the model if necessary and make serverside queries which fecth all of the model's related items such as Category info etc.
Take a look at Automapper here:
http://lostechies.com/jimmybogard/2009/01/23/automapper-the-object-object-mapper/
once you start using it you won't look back.
The academic way would be to crete a separate ViewModel class with just the data you need in the view.
But when you are comfortable with ignoring the extra fields in your class i think its absolutely ok to use your Product model class in the view.

custom menus based on roles in a pivot page application

There is a menu that has all the options. But that needs to be customised based on the role of the use.
Like:
Student will have access only to the student related stuff
Prof will have access to stuff related to him
Student + Prof will have access to both of them put together.
Is there some way like I can hide a specific grid item and display the rest of them in windows phone 7 pivot pages.
In Silverlight, you can hide elements (such as the contents fo a grid) by setting Visibility to Collapsed.

Resources