how to remove a belongs_to field link in index - activeadmin

Active Admin by default seems to create links for fields that are belongs_to fields (in the index of the model).
I've looked everywhere in the docs to find a way to remove this, but no luck!
Any ideas on how to do this ?
Thanks Dave

I don't think ActiveAdmin allows you to remove specific fields from its default behavior, however you can display all the fields you need on your Index page like this:
index do
column :first_name
column :last_name
column :email
column :gender
#..any fields you wish to add
default_actions
end
Of course you can customize the feel and look even more by using your own partials. Also, ActiveAdmin offers more docs concerning the index page here: http://www.activeadmin.info/docs/3-index-pages.html

Related

How to find out what fields are referring to a NetSuite custom field

I have a problem deleting a custom field from a vendor in NetSuite. When I try to delete it I get the following error message.
This custom field cannot be deleted because it is referred to by other custom fields
I've looked at many of my other custom fields and columns but I can't find any that are referencing this one. Is there a way to find all fields that refer to a particular custom field?
This is because you might be using this custom field value some where else. I'm not sure if there is any inbuilt functionality to identify the other fields which are being referred by your custom field. I had a similar issue but I solved it using mass update. I set that field value for all the vendor as blank then I was able to delete the custom field.
In case it is a custom list field then follow the steps bellow :
First delete the list from Setup > Customization > Transaction Item Options, then from the Custom Item Fields and then finally from the Custom Lists
To narrow down the list of fields to check, go to Customization->Lists, Records & Fields->Entity Fields. Sort that list by the Vendor column. That is the list that needs to be checked. Open each of these fields, and check that the 'Field' under the 'Validation and Defaulting' tab is not your custom field that you want to delete. Then check the values on the 'Sourcing and Filtering' tab as well.
Good luck, and hopefully there is not too many vendor fields to check this way!

Lotus Notes - Find similar Fields (SELECTION)

I'm trying to make a view that will display possible duplicate documents. So a selection formula that compares one field over all the documents and only diplays those that are similar.
I ahve been playing arond with #Like and #Matches, but can't seem to get it to work. Is this possible?
Thanks
You can't reference from a view selection formula to other documents. The selection formula works only for the current document and decides if this document shall be visible in view.
You can write an agent which compares all documents with all the other documents and sets a flag (=item/field) to a document if it has similar fields with the other documents. You can then select all those flagged documents in your view.
You can create a view where the first (sorted) column contains the field you want to check against. Then use #SetViewInfo to filter the view to only show documents matching a specific value.

Depending fields in Document Library?

I would like to know if it's possible and how to do something like this in SharePoint 2010:
I want to add to a document library some custom columns; 2 of them will be of type choice.
I want one of them to be populated after the first has been selected and it will be populated based on the valued chosen by the user in the first drop down list.
Is that possible? How?
Thanks a lot, bye!
you are talking about a master-detail field. There are lots of ways to solve those problem and they all involve creating a custom field. Here's a write up of my offered approach, with links to various alternatives.
http://www.turimsaint.com/turimBlog/Lists/Posts/Post.aspx?ID=2

Sharepoint Multiple Values Column?

I want to create a custom field with multiple values like it may store array variables.
also this field is not a lookup field.
what can be the field type that I should inherit from to achieve this ?
thanks
SPFieldMultiColumn may well be the class you're looking for. Here is the relevant MSDN article:
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfieldmulticolumn.aspx
Good luck with it though, custom fields can be a pain in the ears at the best of times.

Performing join between document library and list

I have a document library where i have columns called Title and Category(is a lookup field) and User.Also,I have a list where i am just storing categories. I would like to join both document library and list so that i can dispaly all categories and the documents associated with it. once i get everything i would like to perform filtering so that it dispalys only selected user's documents.The displaying of the documents is working fine but not filtering. My questions is CAn we perform join between doc library and list? Plesae help me.
Thanks
The content query web part (CQWP)is probably the easiest way to do this without code. Since you only have one field in your lookup (categories) you don't need to do a join as SharePoint stores the lookup value in the Document Library. You will need to edit your CQWP to add this field, there is a good tutorial on doing this here. It also explains how to filter your CQWP.
Finally you will need to clean up your lookup field as SharePoint will store the value like this: 1;#Category1.
The CQWP uses XSLT to display the results so in your case you probably don't want to show 1;#Category1 you probably only want to show Category1. You can use the following XSLT to accomplish this:
<xsl:value-of select="substring-after(#Name_Of_Your_Lookup,'#')"></xsl:value-of>

Resources