Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Mask a column in Interactive Grid

M.Sathish6 days ago — edited 6 days ago

Hi ,

I have created an Interactive Grid based on a Fusion REST Data Source. I have a requirement to mask certain mandatory columns on the front end. For example, if my API is based on suppliers, I want to mask mandatory columns such as Supplier Name, DUNS Number, and Supplier Number.

can anyone help me with this.

I attempted the following approach by adding the code under the Column Initialization JavaScript Function section.

function(options) {
var val = options.value || '';
if (options.mode === "view") {
return val.length > 3 ? val.substring(0, 3) + '****' : '***';
}
return val;
}

With this approach, column is getting hidden, but it is not getting masked.

Can someone help me with this.

Thank you!

Comments
Post Details
Added 6 days ago
6 comments
96 views