Hello Im trying to add a new custom tab that conta...
# suitescript
i
Hello Im trying to add a new custom tab that contains fields from a custom record but I cant get it to work, this is what I’m doing. I want this tab to appear on the
Item Fulfillment
record. Create the custom tab in
Customizations -> Forms -> Subtabs
and under
Transaction
create the it, then I go to the custom record and create a custom field but when I go to
display -> subtab
nothing appears. Is there something that I’m missing or I should do?
i
Are you trying to add a custom field on a customer record and make it appear on a transaction? You are missing some steps here. You can't add custom fields and make them show on the transaction. Does the transaction has a relation to this customer record? Meaning, is there a field on a transaction that holds a link to the customer record? If so, you can create non stored formula fields on the transaction and source them from the custom record through the fields mentioned above.
i
It does, but what I want is that when I create the IF this triggers the creation of the custom record, so I dont know if that last part is possible knowing this. I get that you need to have some kind of relation to the custom record, but how to achieve that when the cudtom record doesnt even exist when creating the IF?
What we have right now is some hackish way (I think haha), create the custom tab through a script, we have multiple searches with the fields we want to appear on the tab per section, meaning if I want two sections on the tab, we create two searches with said fields, then on a user event’ before load load the search and append the fields to the tab with
form.addField
i
Why not to create the custom record on the IF afterSubmit event, and then to populate the custom record id back to the IF to the dedicated field?
i
Actually thats what Im doing, but with all the fields! This to let the user edit them on the custom tab in the IF 🤔
I need to think about this, but for now I need to do the laundry haha, Thanks! @igorp
i
Ohh, so all the fields of the custom records are being set on the IF tab? So You are looking for a way to allow editing a custom record inside the IF? You will have to add the same fields on the IF and then update the custom record on every IF save. There are other ways, but those are risky and not recommended and might break with future releases, things like using an iFrame.
i
Yeah, exactly, they want to create the custom record from the info in the IF
b
you can try using a parent child relationship
it should allow you to create child records from the parent record