I am trying to implement Full Text Search in a SQL View which is supporting Multi Tenancy Implementation using TenantID Filter to retrieve data from the underlying table.
Eg: Table Name - BOOKS which is having a TENANT_ID Column
View Name - VUE_BOOKS which makes use of SUSERSID() function to filter the TENANT_ID column from table.
In order to set up Full Text Search that view must have Full Text Index.
To set up Full Text Index that view must be an Indexed view.
But unfortunately I am not able to create Index for the view because of non deterministic value from the inbuilt function SUSERSID().
How will I implement Multitenancy and Full Text Search in this scenario without exposing Table Name ?
Any Suggestions ?
Related
I'm new to laravel. I have UI design of search box. When I search search-term it will show data under the search box as a table. Initially it's only shows search box. How can I handle that kind of situation with laravel? Example Image
As #xNoJustice already said you can include a search package.
If you want to do it by yourself you are able to query each field of your Model for the search word.
For example you can search the Models like:
Model::where('xxx','LIKE','%'.$search_word.'%')
->orWhere('yyy','LIKE','%'.$search_word.'%')->get();
You will need to do this for each Model you want to be searched tḧrough and then pass all the results to your view.
In service now for reference, there's a field type called 'reference'. Now I need to create a multi-reference field. But I don't see any field type for it. Can we achieve the same using field type 'List'? If yes, How to achieve it in the UI and REST API?
Multi-reference means to search through multiple objects
FYI, I'm using Madrid version and Customer Service Plugin.
No, there is no such thing as multiple table reference Field. How should the system react, if you write eg. Incidents and Catalog Items in the same Field?
I would advice you to just make two Fields, each with it's own reference table.
If you really want multiple types of references to pick, you would have to create a new table, import eg. Incident and Catalog Item references into that table and create a reference Field to that table.
Currently we use Mysql as database for our multi-tenant web application, in order to improve our search we decided to move to ElasticSearch. We have an Entity in Mysql with some base fields and every tenant can define his own custom fields(can be of any data type) for that entity. What are the best practices for designing index in elastic search for above problems?
Will dynamic mapping work fine in the above case.
Elasticsearch is great tool to define custom fields, you simply can index data without define nothing.
In some cases you have to define fields mapping, for example in date field or Geo point field, if you don't mapping this field, elastic will not treat this field as you wish.
So if your custom fields is not date or Geo point you can allow tenant define custom fields.
Let me describe my problem:
I have a table for all my IT-Services. I reference to this table more than once, for different purposes. Most of the time I need to reference to the name of the service. That's why I keep the name as displayed value.
One Column of that table is a service_id (custom field) which is for example "Service_004". Now in a catalog request Item the User has to fill in the service_id in a reference field.
But since I have the name as displayed value, and I need it in other forms, I am unable to reference to the service_id.
Using the variable attributes field I managed to let the service be found using the autocomplete function. But in the reference field I still get the servicename. I know that I can change the display value in the dictionary, but this breaks other functions. So what I need is to change the display value just for one reference field.
Also I tried to create a new table called IT-Services2 with reference to my table IT-Services. Then I switched the display to true in the new table for my service_id, but this will even change it in the parent table.
Perhaps an onChange client script utilizing g_form.setLabelOf() ?
http://wiki.servicenow.com/index.php?title=GlideForm_(g_form)#setLabelOf
Maybe I'm not fully understanding your question...
I ran into this issue before, what you can do is create select box variable and use an on load client script to populate the list with the service_id(s) from the table you are referencing.
I would write a script include to pull the data from the table and call it from the client script via GlideAjax.
I'm new to Oracle WCC.
In Oracle WCC/UCM( Universal content management), I have one table named CreateStudent has 2 columns StudentID and StudentName.
One metadata custom field XXStudent_Info for which user will pass the value on Checkin page.
We need to validate the value of XXStudent_Info to database column StudentID, if it matches then checkin possible otherwise restrict on checkin itself.
How can i do this in WCC via out of the box functionality or will i have to create a custom service/query for this DB validation. Please give steps in detail
Is the custom metadata field XXStudent_Info based on an option list which uses a view which is based on the table? If so, you should be able to restrict it to only valid values.