Hi All, could someone please suggest, is there any...
# suitescript
c
Hi All, could someone please suggest, is there any way to add button/link at Item receipt line level and clicking on it should open popup with suitelet Url? I tried for transaction line item there I dont see any button type, tried inline html but it is not rendering somehow. Your suggestions are highly appreciated.
b
inline html should be the way to go
share how you setup the field
m
Inline html won't show in edit mode. The only way I've found to create a button on line level (short of DOM manipulation) is using a checkbox and watch for field changes
c
Thanks @battk, this is how field is set. I have added default value in single quote and tried as well
Thanks @michoel, If it is of type checkbox and when only selected store value it is displaying on form. Any sample how you used this?
The origin for this requirement came from the restriction to extend Inventory assignment sublist in Inventory detail form.
So plan to to create similar suitelet which holds all the inventory fields and additional, show them on clicking new button created on line fields
Please suggest if there is any better approach.
b
@michoel right, you get a single hidden field on edits
you may just want to make your client script deployed to the inventory detail record
c
Yeah but we are not able to add new columns to inventory assignment sublist, and also adding any logic to inventory details is getting applied on all applicable places like Sales order, purchase order, item fulfillment, item receipt, inventory adjustment
b
you can access the parent window from the item receipt using window.parent
you can use suitescript 2 modules using window.parent.require
i dont think you will be able to add fields to the inventory assignment sublist, certainly not any that could be easily saved
c
Thanks @battk, due to this restriction we thought to add a new suitelet which mimics inventory details screen along with additional columns we needed, and it will be shown on clicking on new button/ link clicked at line level.
Adding new columns is "must" for us, so we can't go with existing screen
b
id be very weary on that point
subrecord support on client script is not very reliable, you will have problems saving anything to the inventory detail