We have one Document Library with some set of columns like Type, Name, Active.
We have already configured the SharePoint Fast Search to search the content in the site.
When I am searching with any particular keyword that showing the result as expected.
We got requirement that need to exclude the content form the doc library when the column “Active” is set to ”No”.
Could you please suggest me how can I add crawl rule for the particular doc library.
You are asking to fulfill this requirement using crawl rule. But crawl rule is generic for the content source and it will effect all the content source which is not recommended(and also not possible) for excluding some result depending on item values. So I like to solve this using scope which is described below.
For excluding that, first of all you need to add new managed property for the column "Active".
For that go to search service application-> Managed Property-> New managed property. Give property name and map it to the field "Active". Also select the type of the field "Active". Tick the box for allow this property to be used in scopes.
Then go to corresponding scope-> new rule-> choose property query
then choose from "Add property restriction" corresponding managed property name(property name given by you during managed property creation) and "=" "No"(please use exact field value of the document library), then choose Exclude and click "ok".
Add this scope in the search page and run full crawl in the central admin.
I hope this will fulfill your requirement.
Related
I have a stats table on a dashboard in Splunk.
How can I implement a drilldown that works on a single column? Ideally, it will open another search in target window.
There are several ways to do drilldowns in Splunk, but to highlight the value of the clicked field (which is how your question sounds to me), set the following using the Drilldown Editor:
Change the "On Click" action
Choose the right App & Dashboard name. Under Advanced, set the target Dashboard's token(s) to the relevant value(s) from your starting point. Note the potions to select various elements from the starting panel on your dashboard. In your specific case, you'll want to assign $click.value2$ to a target token. You may also need to pass other values (either tokens you've created, or inbuilt ones from Splunk). For every additional (or hard-coded value) you need to pass to the target, click the "➕Add New", and repeat the process.
Here's an example final format (be sure to use the correct target and source token names)
I'm completely new to VBA.
Is it possible to write some code that would search for emails from a specific sender and search inside that email for a specific line in a table, which it would then put into an already existing excel form?
Any advice on where to get started learning this or if it's even possible would be greatly appreciated.
it is possible to make that. You have three types to search something like that.
You have the View, AdvancedSearch and the Explorer.Search.
The View is only for one folder.
The Filter for the View is called Distributed Authoring Search and Location (DASL). Here is a good link for that filter type: https://msdn.microsoft.com/en-us/library/ms874577(v=exchg.65).aspx
The AdvancedSearch is like the View, but you can search over all folders and all nameboxes. BUT there is problem! When you use AdvancedSearch you have to create an folder and in this folder are your results. The filter of the folder is unchangebel, so after creading you cant change anything. The folder will update Automaticly if there are new Mail or something else. The AdvancedSearch uses the same filter as View.
The last one is the Explorer.Search. With that search you can search like the AdvancedSearch, but you have not to create an folder. This one uses the Advanced Query Syntax (AQS). Here is a good link for that filter type: https://msdn.microsoft.com/en-us/library/cc513841(v=office.12).aspx Each of the searches can filter for all typs of objects. So you can Search for things in Mails.
Text in mails is Called in..
- DASL textdescription.
- AQS contents.
I hope I could help you by starting.
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!
I am working on an add-on for the new google sheets and seem to have hit a problem. I am dynamically generating x number of checkboxes for a user to select. When the user selects some boxes and submits, I am submitting this data to a server handler. However, I can't find a way to get out which checkboxes were selected as I don't know their names. The names are dynamically generated and represent of the ID of the content to retrieve for the user.
Is there any way to find out which checkboxes have been checked on the server side when the name of the checkboxes isn't known?
When you are setting the element's name, set the id to the same as the name and ensure each checkBox has a click handler. Then use:
var source = e.parameter.source;
which returns the id of the clicked element.
The examples given by Srik and Serge insas in response to this question should hopefully help you. There are a few similar posts. Just search for "e.parameter.source"
You'll also find info in the docs here.
I have an URL that points to a Lotus Domino database, for example:
http://domino853.example.com/db.nsf/wcms/BEC4D26AD7A56823C1257B4B003427A8?OpenDocument
How is that URL mapped to the Domino form?
My first thought was the UNID is looked up in the database, and that the rest depends on the Form item of that document. But that's not the case. The actual form that gets resolved is neither wcms (like in the URL), nor document (like in document.Form), but it is wcms_createdoc. So where could that come from?
After some research, I found it:
wcms is an alias for another view.
That view has #Text(#DocumentUniqueID) as its first sorted column.
And, to select the proper form, it has a Form Formula set.
So this is how it all happens:
The view wcms is resolved. Since the URL continues after the view name, the rest of the URL is the key into that view.
The first document of the view that matches the key is selected. Obviously, for the DocumentUniqueID there can be only one document.
Since the view has the Form Formula set, it is evaluated and maps to the form wcms_createdoc.
This form is rendered.
References:
http://www.ibm.com/developerworks/lotus/library/ls-Domino_URL_cheat_sheet/