Hello everyone 

I'm definitely not a Javascript guy so I think that what I'm going to ask is a piece of cake for those who have the skills.

The thing is, I was asked to modify the Output Group Information report so the users won't appear in the report. At that time what I did was simply to comment those lines involving users such as:

 

// ---------------------------------
// Output of users.
// ---------------------------------
/* function userout(ousers, ocurrentgroup, bUserColored_holder) {
    // Output of users.
    for (var k = 0 ; k < ousers.length ; k++ ){
        var ocurrentuser = ousers[k];
        var ocurrentattribute = ocurrentuser.Attribute(1000, g_nloc);
        
        var currentAccessRights = ocurrentuser.AccessRights(ocurrentgroup);
        var bread = (currentAccessRights & Constants.AR_READ) == Constants.AR_READ;
        var bwrite = (currentAccessRights & Constants.AR_WRITE) == Constants.AR_WRITE;
        var bdelete = (currentAccessRights & Constants.AR_DELETE) == Constants.AR_DELETE;    
        var bsubmit = g_bIsDbVersionable && ((currentAccessRights & Constants.AR_SUBMIT) == Constants.AR_SUBMIT);
        
        g_ooutfile.TableRow();
        g_nRowCount++;
        g_ooutfile.TableCell("", 24, getString("TEXT1"), 10, Constants.C_BLACK, getTableCellColor_AttrBk(bUserColored_holder.value), 0, Constants.FMT_LEFT | Constants.FMT_VTOP, 0);
        g_ooutfile.TableCell("", 20, getString("TEXT1"), 10, Constants.C_BLACK, getTableCellColor_AttrBk(bUserColored_holder.value), 0, Constants.FMT_LEFT | Constants.FMT_VTOP, 0);
        g_ooutfile.TableCell(ocurrentattribute.GetValue(true), 20, getString("TEXT1"), 10, Constants.C_BLACK, getTableCellColor_AttrBk(bUserColored_holder.value), 0, Constants.FMT_LEFT | Constants.FMT_VTOP, 0);
        g_ooutfile.TableCell((bread ? "X" : ""), g_nWidthAR, getString("TEXT1"), 10, Constants.C_BLACK, getTableCellColor_AttrBk(bUserColored_holder.value), 0, Constants.FMT_CENTER | Constants.FMT_VTOP, 0);
        g_ooutfile.TableCell((bwrite ? "X" : ""), g_nWidthAR, getString("TEXT1"), 10, Constants.C_BLACK, getTableCellColor_AttrBk(bUserColored_holder.value), 0, Constants.FMT_CENTER | Constants.FMT_VTOP, 0);
        g_ooutfile.TableCell((bdelete ? "X" : ""), g_nWidthAR, getString("TEXT1"), 10, Constants.C_BLACK, getTableCellColor_AttrBk(bUserColored_holder.value), 0, Constants.FMT_CENTER | Constants.FMT_VTOP, 0);
        if (g_bIsDbVersionable) {
            g_ooutfile.TableCell((bsubmit ? "X" : ""), g_nWidthAR, getString("TEXT1"), 10, Constants.C_BLACK, getTableCellColor_AttrBk(bUserColored_holder.value), 0, Constants.FMT_CENTER | Constants.FMT_VTOP, 0);
        }
        bUserColored_holder.value = !bUserColored_holder.value; // Change background color
    }
} */

Now I'm asked to remove all user groups without any type of access and here's where I'm stuck at right now.

To explain it better, the current outcome is the first image whereas the desired outcome is the second image

In other words, those user groups without access rights should not appear in the report when a particular process is being displayed.

 

The code of this report is attached to this thread in case you want to take a look on it.

As usual, thank you so much for your assistance

Kind regards

Pedro.

 

Attachments:Plain text icon reporte.txt