Solved

Stock items - description tab: ability to set a default value for text style

  • 21 December 2020
  • 1 reply
  • 214 views

In Stock items - Description tab, is an option to have a default value for the style ? By default, the default value is ”Paragraph”, but I want to be ”Preformatted” for each new item.

Thank you!

icon

Best answer by Gabriel Michaud 21 December 2020, 16:16

Dear @mihai,

There’s no setting or option you can set directly, however you can use the Customization tools to achieve what you need. The description basically needs to default to the same HTML content that Acumatica inserts behind the scenes when you pick “Preformatted”:

 

I had to put a single space as default description for this to work. If you leave an empty string in the HTML it overwrites with default styling. It might be better to default the description to “<Replace Me>” or something similar. Here’s a video demo: https://recordit.co/UPpwOCwvPc

Note that this only applies to new items you create. If you want to update existing items to set them to “Preformatted”, you can use SQL:

UPDATE InventoryItem SET Body='<the default HTML code goes here>' WHERE Body IS NULL

The customization project I built to test this is attached to my reply. Feel free to use it on your site!

 

View original

1 reply

Userlevel 4
Badge +2

Dear @mihai,

There’s no setting or option you can set directly, however you can use the Customization tools to achieve what you need. The description basically needs to default to the same HTML content that Acumatica inserts behind the scenes when you pick “Preformatted”:

 

I had to put a single space as default description for this to work. If you leave an empty string in the HTML it overwrites with default styling. It might be better to default the description to “<Replace Me>” or something similar. Here’s a video demo: https://recordit.co/UPpwOCwvPc

Note that this only applies to new items you create. If you want to update existing items to set them to “Preformatted”, you can use SQL:

UPDATE InventoryItem SET Body='<the default HTML code goes here>' WHERE Body IS NULL

The customization project I built to test this is attached to my reply. Feel free to use it on your site!

 

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2020  Acumatica, Inc. All rights reserved