Solved

create a new column type

  • 16 November 2021
  • 3 replies
  • 111 views

Userlevel 1
Badge +7

how to create a new column type on Lobby Data Source Designer  in IFS10. we have default types that Text,Decimal,Number ,Currency. We need to new one because we want to present numbers espacially currencies like 30,000,000 (thirty million) we have decimal but it presenct 30.000.000,00. is it possible Could you help me.

Note : 30,000,000 or 30.000.000 bot of them is acceptable.

 

Thanks lot. 

icon

Best answer by alpamuk 17 November 2021, 07:05

View original

This topic has been closed for comments

3 replies

Userlevel 6
Badge +12

I believe the data types in Oracle are what they are. For example, there isn’t even a “boolean” type available. So, when you need something else, a string is probably your best option (and is what IFS uses to model boolean fields with “TRUE” and “FALSE” in the FndBoolean enumeration).

The TO_CHAR() function should be able to translate a Number field into anything you wish and present it as text. Here is a decent look-up page of all the formatting masks you can use, so it should be a good start:

 

https://www.oradev.com/oracle_number_format.html

 

And Oracle’s more “official” page on TO_CHAR():

 

https://docs.oracle.com/cd/B19306_01/server.102/b14200/functions181.htm

 

Good luck!

Joe Kaufman

Userlevel 1
Badge +7

Thank you @sutekh137 ,

 

I solved my case using to_char(30000000,'FM999G999G999G999') ;

 

 

Userlevel 6
Badge +12

Thank you @sutekh137 ,

 

I solved my case using to_char(30000000,'FM999G999G999G999') ;

 

 

 

That looks great! Nice work!

 

Thanks,

Joe Kaufman