I have a requirement where i should display the details(values) of the custom record in the suitelet sublist.
Now i have to create a custom Record with two fields. One field would be bill payment and other field will have list of bills related to bill payment.
When i create a custom record what should be my field vaues's type?
Appreciate any help.
I would suggest to keep one field of type List/Record and Record option to "Transaction", and second field of type Multiple Select with record option to "Transaction".
Since, the fields can hold reference to any transactions I would recommend writing a user event script which would fire on create/edit and validate that the fields value are always correct.
Related
I have a tab that i would like to show ONLY on purchase orders and not other transaction types. That tab essentially has an associated custom record's fields on it.
First I made a custom TRANSACTION subtab called "PO Acknowledgement Tab".
Next I have a custom record that I would like to be related to purchase orders only. I made a custom record (call it PO Acknoledgement) that has a number of fields (one of which is a field that is a 'parent transaction' ("record is parent" setting on the field is checked) field that points to the transaction. and of this parent field on the bottom is select that new tab I created. The rest of the fields have no tab set.
This shows just as I would like but the issue is I see it on ANY transaction since the "parent" record field is a Transaction and I cant figure how to filter to only show this tab on PO screens. How would this need to be done to accomplish that?
First is a screen shot of the field inside the custom PO Ack record
And below is the full PO Acknowledgment Record
WS Was correct it seems. "In your custom field, in the Sourcing & Filtering, can you add a filter Filter Using = Type with Compare Type = equal to Value Is = Purchase Order and see if that restrict it to only the PO form? –
W.S"
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.
I have two custom records. They share parent-child record relationship. Child record is shown as sublist view. On Child record, there is a field called Delivery Order. It is a list/record field, But not having hyperlink to open that record. This field is list of a custom record of same name.
There is also a field called Sales Order#, it is a list/record field of Transaction. But it is shown as link which is right.
I want to have hyperlink for Delivery Order. I know that if I use a custom view, I can give a formula(text) field to show that field as a hyperlink, But I want to go with Default View only. I think because of Delivery Order is a custom record, they are not giving hyperlink.
In my customer record, I have a field called Membership Status. So the membership will change from Regular member to Prime member once a member purchase a particular item. Is there any way to update the field after the Invoice creation?
Thanks in advance!
Yes. Use an afterSubmit() event on a User Event script deployed on the invoice record. Search the invoice item lines for the item, and if found use record.submitFields(options) to update the field on the customer record.
If you are making other changes to the customer, you could use record.load(options) to load the whole record instead and then use the Record Object Methods to modify and save the record.
For updating a small number of body fields, submitFields() will usually be more performant, but if you need to manipulate sublists or subrecords, you need to load the record.
I need the end user to select which field he wants updated. Is there an option to have a lookup input parameter that let's the user select a field of the current entity?
I need it to perform operations on the value of the selected field.
As far as I know there isn't a custom type to handle a list of fields (or a list of strings) as InputParameter for a Custom Workflow Activity.
The (ugly) alternative is to use a string parameter where the user enters the field name.
If the list of fields isn't very big, you could add an optionset to the form with those field names and then your workflow could have If conditions based on that optionset.
I strongly suggest you to use a dialog to complete this. You can set the stage, the parameter and based on the situation the values to insert. Also you can execute workflows from the dialog itself.
If the record already exists, consider registering a plug-in on the update message. When in update the request InputParameter["Target"] contains only dirty fields changed by the user.
Instead of creating a list of fields you can create another (role) form to limit the fields the user can edit on the form.