How to convert text data to hexadecimal data in ODC ?
I have created an example in O11 Reactive for the client side. You can do something similar in ODC.
Demo url: https://vyadav.outsystemscloud.com/FrontEnd/TextToHexadecimal
Hi @Kritikz use below java script to convert String into Hexadecimal format
function stringToHex(str) {
let hexString = '';
for (let i = 0; i < str.length; i++) {
hexString += str.charCodeAt(i).toString(16);
}
return hexString.toUpperCase();
Regards,
Rajat
Hi @Kritikz,
To convert a string to hexadecimal on the server side, you need to develop an extension.
// C# Server-Side Hexadecimal Conversion
public string ConvertToHex(string input) {
string hex = "";
foreach (char c in input) {
hex += ((int)c).ToString("X2");
return hex;
Thanks,
Vipin Yadav
Thanks @Vipin Yadav will try to implement it in ODC