Netsuite Custom Sublist Saved Search Filtered by Free-Form Text Field? - netsuite

I am familiar with creating custom sublists on NetSuite forms by creating a Saved Search and on the Available Filters subtab, adding at least one available filter from a List/Record type field. If you don't use a List/Record type field as the first Available Filter, the saved search is not available to assign as a sublist.
Is there a workaround to add a save search as a custom sublist filtered by a Free-Form text field? Is there a way to achieve this using SuiteScrpt? Specifically, I want to use the otherrefnum field on sales transactions to filter a search that shows all other transactions with that otherrefnum. Any help is very much appreciated!

Saved search as custom list can be added to a form only with a List/Record field, since this is the Primary/Foreign key that the join is based on.
I think that the only way to add a saved search sublist that will be filtered by a free-form text is via a script.
You can do it by manually performing the search and generating the sublist on the beforeLoad of the relevant user event.
Just keep in mind that performing searches that are filtered by free text are very heavy and might have significant impact on performance and the loading time of the form.

I can create a saved search and make it a sublist and search on OtherRefNum
In the search definition add criteria to filter to the mainline.
For the available filters select PO/Check ID
go to a customer and select that search for the sublist view.
here's the bug: Now refresh the page and your filter is available.
The results are automatically filtered to transactions for that customer.
If you are trying to make a general search for OtherRefNum do you know that you can just enter it into Netsuite's global search (top of the page) and all transactions that have that value will be returned?
There is no speed penalty for doing a free text search on otherrefnum. It is an indexed field and searches on it are very fast.

Related

sorting list of items with specific field on sales order item sublist NetSuite

I like to sort the list of items in the dropdown in the standard NetSuite sublist item. Let's say items are sorted with the name when clicked on >> to open the dropdown list.
Is this possible to sort this list with any other fields, maybe a custom field on items record. let's say I add a custom field on the item record (every item), which is some numbers.
displaying that list with the order by that field.
I have seen a way around to create a custom sublist of my own requirement and then hide the standard and show the custom on a specific record by customizing the form.
I had a similar issue once, I did the following:
You can create a new body field or sublist field based on your business using userevent script(before load).
Create a search with the required order(you can do any operation to prepare your data) after that you filled the result manually to the new custom field.
Whenever the user selects a value in the custom field you set the original one to be the same as the custom one. For this one, you will need a client script.
Note: you can show your custom field and hide or disable the original field only not the whole list since the client script will be responsible to set the value to it. using this approach will not require you to add or edit any of your records which will be helpful if you have a complex process and a lot of dependencies. This approach worked for my issue I hope to be helpful to you too.

Link Netsuite Saved Search to Custom Field on Sales Order

I am trying to create 2 custom fields on a Sales Order; to show the total number of items that are unfulfilled, and the total combined $ amount of those items.
I have been searching for awhile and the only help I could find is that this should be possible with a saved search.
So, I have created a saved search;
And I have created a custom transaction field (see below) which I believe is referencing my saved search, but how do I select which value it refers to? The field underneath where I selected my saved search BACKORDERS SUMMARY, doesn't appear to be related at all.
The Field dropdown below the Search is not for selecting from the search results field. Summary Searches provide 1 summary value only. If you want 2 different values, you need 2 different searches.
The Field dropdown is used to select the field from the current record to use as the filter for the saved search. Assuming your custom fields are placed on the Sales Order, you'll want to set your Available Filters criteria to Internal ID and leave the Field dropdown on the custom summary search field blank. (ie: just select your search from the Search dropdown. NS will pass in the internal id when the record is loaded.)
Try splitting your Backorders Summary search into 2 different searches, each with a single summary result type, update the filters, and set the Search drop downs to the appropriate values. Should work just fine.

NetSuite Site Category Count

Does anyone know how I can retrieve the NUMBER OF ITEMS in a category in netsuite?
I'm hoping for a getAttribute tag of some sort. I need the count of total items in order to create a pagination string url.
The simple method is to create a saved search with the criteria/filters you need.
You can create saved search either programmatically or by using the tools available in netsuite.
The length of the result of saved search will show the total NUMBER OF ITEMS.
NOTE : If you want, you can retrieve the entire details of each product from saved search results.

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.

Mapping Infopath fields to Sharepoint columns

Any one has any idea how to map an infopath field to a sharepoint column of type choice? The infopath field is a repeating field, so the user can select multiple options, I want to be able to map those to the choice field in sharepoint. Any ideas?
update:
What I'm trying to do is the following. I have a choice column in sharepoint which allows user entered values. In infopath, I have a repeating field. I'm binding the field to a dropdownlist. The dropdownlist gets filled by a webservice. This dropdownlist is in a repeating section, so the user can choose to select from multiple dropdownlists. So lets say the user adds 2 dropdownlists, and selects an option from each dropdownlist. I want to be able to add those selections as choices in the sharepoint choice column.
SharePoint list is a flat structure, and because of that Infopath does not allow you map repeating sections to list columns.
You might wanna consider the following workaround:
Store Infopath form to one library
(along with non-repeating fields)
Use one of these custom activities to extract data from
repeating table and copy it to
another list
Create a custom data view or a web part to display these items (if
necessary)
This approach can be useful if you need to do some additional tasks with the repeating data.
When you are promoting fields within a repeated section into SharePoint columns, the options available are to promote the column as:
first (i.e. only the first selection is promoted)
last
count
merge (I believe this merges all the selected values together into a single entry)
screenshot http://img4.imageshack.us/img4/5539/repeatinggrouptr3.png
Is it not similar to Create a Repeating Cascading List from:
a Flat Data Source or
a Hierarchical Data Source ?
If it is, may be those two articles may give you some pointers.
Depends on the type of choice field it is.
If it is a Multiple Select (checkboxes) Choice field, you can set the field through the object model (from the sharepoint site) or through the web service, by using ";#" for each item that you want to check mark, where is the value which is listed by the checkbox. I don't remember what the option is for single choice only, but it is something of the same nature. If you are talking about lookup fields, it has to do with the index number of the field from the list you are looking it up from. Also, there is additional steps if the choice field allows users to input or specify their own options.

Resources