Skip to Main Content

Java and JavaScript in the Database

Announcement

Testing banner

APEX interactive grid, change column format mask with javascript

User_89PK9Jan 13 2023 — edited Jan 13 2023

Hi All,
is it possible to change the format mask for a column using javascript?
I tried the following but it didn't help:
var fields = apex.region("test").call("getViews").grid.model.getOption("fields");
for(k in fields){

    fields\[k\].formatMask = "999G999G999G999G990D0000";  
 }  
  
apex.region("test").widget().interactiveGrid("getViews", "grid").view$.grid("refreshColumns");  
apex.region("test").widget().interactiveGrid("getViews", "grid").view$.grid("refresh");  

thanks
image.png

Comments
Post Details
Added on Jan 13 2023
0 comments
37 views