Skip to main content
Solved

How to convert customized field type int to decimal using frontend


darshanaabeyrathne63
Freshman I

Hi All,

Please note I need to find way to change customized field type int to decimal. Int type doesn’t allow to enter decimal values. I have tried by changing original attribute but it’s not saving either.

 

Best answer by Naveen Boga

Here is an example @darshanaabeyrathne63 

 

ALTER TABLE table_name
ADD column_name datatype;

 

Ex: 

ALTER TABLE SOOrder
ADD UsrTestFiele decimal(19,6);

View original
Did this topic help you find an answer to your question?

5 replies

Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3393 replies
  • July 5, 2024

@darshanaabeyrathne63  Please delete this DAC field and create the DAC field again with the same name with Decimal from the DATA ACCESS section.

If this package is already deployed in any instance then again you need to write a Alter script to modify the Type in the database in the Database scripts section.

 


darshanaabeyrathne63
Freshman I

@Naveen Boga  Thank you for update! But after changing the field type below error message occurs? I have publish this project using option publish with cleanup as well.

 

 


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3393 replies
  • July 8, 2024

Have you deployed the script to change the data type in the database? @darshanaabeyrathne63 


darshanaabeyrathne63
Freshman I

@Naveen Boga Thank you for the response. For the time being i have managed that with different method. For future reference is it possible to get alter script for this?


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3393 replies
  • Answer
  • July 9, 2024

Here is an example @darshanaabeyrathne63 

 

ALTER TABLE table_name
ADD column_name datatype;

 

Ex: 

ALTER TABLE SOOrder
ADD UsrTestFiele decimal(19,6);


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings