Currently I have a custom field on User Stories and Defects for our developer to tag what system was affected with their code change. Currently I only see a drop down, which is a single selection. Is there any way to give them the chance to multi-select options in the drop down? Or is there another object that would work better? Thanks in advance for all the great help I always get on here :-)
Your best bet to emulate a multi-select custom field is to use Tags. If you are managing these stories and defects with a custom App you could restrict which Tags you show or allow them to choose from in that App.
As Charles indicated, you probably want to try to use the MultiObjectPicker or the TagPicker, that extends it. If you want to stick with the ComboBox, then you can enable multi-selection by setting the "multiSelect" config field to "true".
Related
When deleting records within the platform, this action is not reversible via the front end. Is there a way to allow users to remove a record from their view without actually deleting the record?
You can simulate recycle bin functionality within Archer GRC by adding a record permission field that grants read access to "Everyone". If read access is no longer required then an editor of the record can go in and change "Everyone" to a group called "Recycle Bin."
Please note that if there are other record permission fields in the application, users or groups may still have access if they are selected in those fields. Perhaps You can set up a dropdown status field for the user to select "Recycle Bin" and use this condition for automatic record permissions to revoke permission to the record depending on the requirements or workflow of the application.
Solution shared by Igritte might be somewhat confusing for end users.
End user will see greyed out "Delete" button in the top toolbar, but he has to select "Recycle Bin" in the form. This solution was not accepted by my business owner at some point.
As a work around for "Soft delete", I wrote a custom object overriding "Delete" button functionality.
1. User doesn't have delete access to the record, so JavaScript code will make "Delete" button look like active and available.
2. Once the button is clicked, custom object will populate value in the
hidden value list and simulate the click on the "Save" button.
Update: Note that Custom object needs to hide the value list first once the page is loaded. Here you will need to use a JavaScript and do the following: [a] locate the value list DOM object and [b] set display attribute to none. I used jQuery library to do both. This way your value list is not displayed, but you still can use it to control data driven events.
3. With hidden value populated and submitted, record permission will hide this record from the end user.
Note that custom object hides one value list on the layout as well.
If for some reason JavaScript doesn't load properly, user simply will not be able to click on the grayed out "Delete" button.
Update: Hidden value list can be populated by custom object using JavaScript code as well. You need to identify the form tag "input" in HTML code of the page and set attribute "value" to the desired state. I used jQuery library to do this as well.
I have this solution in production working fine with IE11, FF and Chrome.
I can't share the code, but with WC3Schools JavaScript guides and 4 hours you can write and test it yourself with very little JavaScript skills.
Sometimes you have to use custom objects when you want to get a user-friendly solution of not available functionality.
Good luck!
In my master page along with the search box I have label "Search". Now it is hard coded and
is working fine. But when I change language the text should change to "Rechercher". This should happen in master-page, how can I achieve this. There few mote other texts which also needs to be changed based on the language change.
Thanks in advance for the help
I would recommend using an EncodedLiteral control with an out of the box Resource string. If your master page was based on an out of the box master page like v4.master, you should be able to see many examples of this control in use.
To include a language aware label for search, I might use the following:
<SharePoint:EncodedLiteral runat="server"
text="<%$Resources:wss,mobile_navigation_search_text%>"
EncodeMethod="HtmlEncode"/>
I am trying to remove the hover effect that brings up the checkbox next to the row item in SharePoint 2010 list item rows. Is there any settings that can make this happen? I would like to keep away from having to tinker with the CSS and javascripts. Please see illustration below. Thank you.
There are no settings for that sort of thing - the selection check box is a default behavior. You are going to have to modify the CSS, for that.
Use SharePoint Designer (Available Here]1) to help determine whitch CSS elements control that behavior, and make a custom style sheet to override it.
You can accomplish this by going to the Modify View option of your list and unchecking the Allow Individual Item Checkboxes under Tabular View options.
Note: If you are using a Web Part to view it you might have to set the view again for the changes to reflect.
I have a gridview that I would like to be able to bind to several sqldatasources, but still use template fields. Each datasource is different and would have different columns so I'm not sure how to go about this. Is it possible to define a set of template fields or overlying template per datasource?
The one way I can think of to do this would be to populate the GridView with rows dynamically from you datasources and then use the OnRowCreated event to switch the fields you want into template fields.
You can either extend the ITemplate interface or you can use a custom ascx control to load into the field like so.
TemplateColumn bc = new TemplateColumn();
bc.HeaderText = "Template Column";
bc.ItemTemplate = Page.LoadTemplate(TEMPLATEFILE);
grid.Columns.Add(bc);
Here are a few good links to help you out if you decide to take this road, really you may get better performance (and less maintainability headaches) from separating them out. Even update panels based on user input would be fine.
Link 1
Link 2
If you want to change your approach and your not sure about which option will suit you best try posting a bit more background about your project and we can go from there.
Happy Coding!
Personally with this it would sound more appropriate to have a separate datagrid control for each one.
I will explain my question with an example. Lets consider TFS "Bug" work item type. In the bug work item type there is a "Developer" and "Tester" dropdown. Using the inbuilt rule types we can only assign "VALIDUSER" to each drop down. This displays all the windows user in the drop down. I want to be able to create a custom subteam under "TeamMembers" node and assign members to the sub team. For example as shown in the below snapshot:
alt text http://www.imagechicken.com/uploads/1267041644094323600.png
The "Developer" drop down should display users from the new "Developer" subteam and not all the VALIDUSER. Similarly "Tester" drop down should display users from the new "Tester" subteam.
alt text http://www.imagechicken.com/uploads/1267042457029195500.png
I am thinking of creating a custom work item control and then call the TFS API to fetch the custom subteam members.
If anyone has worked on this before or have any better (and simple :)) ideas to achieve the above please suggest.
Update
I just created a custom work item control and called TFS API to get the list of members in the custom group. So this is done. But I would still like to know if there is a better way to achieve same results.
Well..There is a better way to do the same.. Thanks to Marcel !!
how-to-assign-a-work-item-to-a-group-and-actually-have-it-show-a-list-of-values