Saved Search - NetSuite Application - html

How can I combine categories in Saved Search Filter, Where I want to combine the key words begin with "INV" and RMA for Document Number/ID.
I am intend to fill this column with criteria for Document Number start with INV and RMA.
Thank you very much for you support.
Regards,
Nedi - Indonesia
enter image description here
enter image description here
To Combine 2 categories in a column, where I want to put the Prefix of Sales Order begin or starts with "INV" and "RMA".

Related

Search for a value on a database column splitting the value where there is a blank space

I have a table on my database named leads. Inside that table there are several columns containing the name, telephone, address, postal code etc, etc... of the leads.
The column that contains the name of the leads is called clientName. As an example we have Loyalty Logistics.
I have an input type text inside a form where users search for a specific client name and shows the results on a Popup. Right now I am using a WHERE clause
....WHERE leads.clientName LIKE "%'.$_POST["keyword"].'%"
The way it is right now it will only show up the client Loyalty Logistics
if the user type Loyalty or Logistics or Loyalty Logistics, but in the case the user made a mistake and typed Loyalti Logistics I would also like to be able to show on the results all the clients that contained Logistics on its name.
You can make the split with your server side language (PHP, Python, JS ...) and obtain a list of keywords and make your sql request with it.
keywords = split(keyword)
for key in keywords
....WHERE leads.clientName LIKE "%'.$_POST["key"].'%"
I hope it will be helpful.

SQL replace any number

I am in MySql. I have the table named blog and the column photo. I want to make some changes for instance. All the values in that column have that schema:
nunber/text.svg
For instance: 1/marketing.svg
I want to delete the number/
In the example, I want to have: text.svg.
But I want it work with any number, one, two or three digits.
This is what I tried
UPDATE blog
SET photo = REPLACE(photo, '%/', '')
If the string format is consistent, i.e. a number followed by a / and then the text, you can use a combination of substring and locate to update the column.
UPDATE blog
SET photo = SUBSTRING(photo, LOCATE('/',photo)+1)
WHERE LOCATE('/',photo) > 0

How to set a Filter for the ComboBox List Items Edit Form?

Short form of the question:
How can I set a filter for the form which is used by the "List Items Edit Form" property of a ComboBox?
Long description of the environment:
In my database, there is a growing number of structurally similar values which describe something. I collated all of these in one table named ComboTexts, and added a second table ComboTextTypes to customize the field names on the user side. Example:
ComboTexts table:
ID s1 s2 s3 TypeID
1 1 First Floor Ground Floor 2
2 2 Second Floor Null 2
3 AOX DIN 1485 determination of organic components 3
ComboTextTypes table:
ID formtitle ch1 ch2 ch3
2 Floor Floor Number Floor Name Alternate Name
3 Process Process name Standard Description
In order to edit entries in ComboTexts, I provide two forms: The form CoreData displays the list of formtitles from ComboTextTypes and an "edit" button. When the user selects a fomtitle and clicks "edit", the form EditComboTexts is called with a filter for TypeID set. EditComboTexts extracts the TypeID from its filter and modifies itself with the information from ComboTextTypes.
So far there exist 14 ComboTextTypes in the database, and that number is growing. I simply didn't want to have 14 or more tables and forms, which basically all do the exact same thing. Instead I just have two tables and forms, although a little more complicated ones.
The above mechanic is all set up and works fine.
Description of the problem:
The users want to be able to modify the 14th ComboTextType from inside the combobox. The detour through CoreData is three clicks too many, they know that ComboBoxes can offer an edit button for their value list, and want to use it at that point.
Access offers the "List Items Edit Form" for this purpose. When I enter the EditComboTexts form there, it's working in principle, but (of course) the filter is wrong.
How can I set a filter for that form?
You can filter the rowsource using SQL and simply change the rowsource value of the combo box
Me.Combo0.RowSource = "SELECT myfield FROM Table2 WHERE Table2.myfilter = 'value' ; "

Fields interactions in Access

Okay, I got a Access database with 1 table (lets call it sectorDescriptions) who contain two column, one who contain the code of all the sectors of activity and the other who contain the name of the sector of activity. Then I got another table (lets call it... ClientInfo) who contain MUCH MORE column but one of those column which is a dropdown list who contain the code of the sector of activity from the table of sectorDescriptions. Now heres my question, I made a form out of the table ClientInfo and now I want that when the user pick a new sector code from the dropdown list, the box named sector name change to the matching sector name based on the sector code! LOL worst question's formulation ever! Sorry for that but I am tired and I'm not really good in english!
Your combo box (cboFilter in this example) should have recordset property something like this:
SELECT [sector code], sectorDescriptions FROM sectorDescriptions ORDER BY [sector code];
If you don't want people to see the Description, just set the column width to 0"
On the after update event of your combo box, put something like this:
Me.txtDescription = Me.cboFilter.Column(1)

MySQL - Populate a field based on part of another field

I have a table where one column, named Description, has a variety of information all crammed together. Part of that information is an abbreviation for a vehicle maker. For example, the Description column could read "6cylM.Benz32zy,.026L"
I want to populate a new Vehicle column with Mercedes Benz wherever the Description column contains M.Benz somewhere inside. The key word there is "somewhere"; the abbreviated vehicle name could be anywhere in the description field.
So far I have the following code. However, MySQL tells me it can't find the %M.Benz% column. I'm not trying to look for a column named %M.Benz%, I'm trying to find TEXT that is %M.Benz%.
UPDATE tbl_arcore_repuestos
SET Vehicle = `Mercedes Benz`
WHERE Description LIKE `%M.Benz%`;
Any ideas? Most of the other solutions on StackOverflow to similar questions rely on the sought-after text being in a fixed position (like at the beginning of the string or separated by a consistent character). The text I'm looking for could be ANYWHERE in the Description column.
Have you missed the quotes or used backticks instead of quotes?
UPDATE tbl_arcore_repuestos SET Vehicle = 'Mercedes Benz' WHERE Description LIKE '%M.Benz%';