cancel
Showing results for 
Search instead for 
Did you mean: 

Integer to Binary and Binary to Hexadecimal

Former Member
0 Kudos

Hello everyone,

is there a funtion to convert from integer or decimal to binary and a binary to hexadecimal.

Thank you for your help

Accepted Solutions (1)

Accepted Solutions (1)

former_member185280
Active Contributor
0 Kudos

Samuel,
As Swaroop noted there is nothing built in that I am aware of. Here are some ideas you can also try:

  • Use an SQL query to do the conversion.
  • Use an xsl transform, possibly calling some static java methods.
  • Develop a custom action

What is your use case?

Regards,
Christian

swaroop_anasane
Active Contributor
0 Kudos

Brilliant suggestion Chris!! I personally liked SQL one.

Thanks!!

-Swaroop

Former Member
0 Kudos

Thanks for the reply.

Though technically that may work but I would never call SQL to do some Business logic there.

I find that writing a custom Action block in Java is the most convenient.

I also tried XSLT and it is working

Anyway that is bad that there is no such an Action block to do such a conversions.

Hopefully that will come in future release.

Thanks for the forum

Sam

former_member185280
Active Contributor
0 Kudos

Samuel Harr wrote:

....Though technically that may work but I would never call SQL to do some Business logic there. ....

It may not be the best solution for your particular issue but in general I would never say never.


Samuel Harr wrote:

... Anyway that is bad that there is no such an Action block to do such a conversions.

Hopefully that will come in future release. ...

You could always share your custom Action with the forum.

Regards,
Christian

Answers (1)

Answers (1)

swaroop_anasane
Active Contributor
0 Kudos

Hi Sam,

We do not have a built in function to help you in your case. You may have a look on JS based conversions or some api that you can integrate.

Regards,

Swaroop