Maximo: How to enable search in list tab in application where main object is view - view

Suggestions are appreciated.
I created DB view ABC_VW in maximo database.
Created object with name ABC_VW in maximo.
Created power application with name ABC with main object ABC_VW in maximo.
On list tab the search is disabled.
How can I enable the search?
Note: I tried updating search type to WILDCARD from backend in both tables MAXATTRIBUTE and MAXATTRIBUTECFG but no luck.
Please suggest.

Whenever a view is created in DB and object is created on the view, a primary column has to be updated in MAXATTRIBUTECFG table as
update maxattributecfg set changed='Y', searchtype='WILDCARD', primarykeycolseq='1', defaultvalue=null, maxtype='ALN', length=22 where objectname='ABC_VW' and attributename='XXXXXX';
update maxobjectcfg set CHANGED='A' where objectname in ('ABC_VW');
Then apply configuration changes from the Database Configuration.
This is how the field from view can made searchable.

Related

How to drop a class (table) in Back4app Dashboard

I'm new to parse and back4app. While I'm trying to delete a class (table) in the dashboard, I can't find any menu item that allows me to do it. Can anybody point me to the right direction?
Also related, is it possible to change a column's name after it is added, and is it possible to bulk update rows for certain fields, all within the dashboard?
Well, actually I just found part of the answer. The "Delete this class" menu item is in the top right Edit menu, as shown in this screenshot:
In order to delete the class, it must be empty, so you firstly need to delete all rows before deleting the class.
It's not possible to edit the column's name from the dashboard, so, what you may do is exporting the data and import your JSON file with the right name.
Another option that is not recommended if you're not sure about it, is updating the column's name through Mongo commands.
You'll need to update it in the collection (the class) and in the SCHEMAS too.
The connection string to help you with the mongo commands is available at Server Settings > Core Settings > Settings > MongoDB Database URI.

Create a view that exists even if session ends in Redshift?

I am trying to create a view in Redshift.But when I close the session and again reopen it then given view is not present.How can I create a view that exists even if my session expires?
Views are not session dependent. They'll exist in storage like any other table.
Are you prefixing your create view [] statement with a schema name i.e. create view schemaname.viewname? If not, the view will either get created in your public schema or the default schema search path.
A way to troubleshoot is to go through the different schema listed and then find out where your view has been created.
If you find your view in public schema, you'll get to know that if no default search path is set and schemaname is not mentioned while creating tables/views, it gets created in the public schema by default.
If you find your view in any other schema, you'll get to know what your search path is.
Views are persistent.
Some possible reasons why you can't see the view:
You are connecting as a different user who has a different Schema search path
You are connecting to a different database
You created the view in a different schema and when you reconnected you went to a default schema
Adding to previous answers, the view dependencies (tables that are used in the view definition) might be dropped and view is dropped consequently.

Servicenow - Service Catalog Reference Field - Insert different column than the display value

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.

Automatically assign entities created by workflows to fields

We've got a workflow which creates 3 entities:
SourceAssessment
SourceLegal
SourcePartnershipValidation
each entity have got 1 lookup field under Business Process Flow:
And the same workflow is configured to update the above 3 lookup fields with newly created entities:
However, the creation part seems to be working fine but not the assigning part.
Have tried implementing the Automatic Record Creation and Update Rules from Service Management & Business Management Settings
How to fix it?
You wanted to assign the 'Source Legal' record value to the Project record. For that, You have to map the created records from 'Local Values' group in 'Look for' dropdown from 'Set Properties' window.
See the slug (yellow placeholder text) for difference. This will work.

Database validation for a user input text field in oracle UCM | WCC

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.

Resources