Hide variable on multi row variable set

KaMmILa__
Tera Expert

I have a Multi-row variable set which I am using in a catalog item , how to hide a variable on that , I am not able to hide the Variable Using UI policy as the visible is grayed out

 

find_real_file.pngI also created a onload cS still not working 

find_real_file.png

1 ACCEPTED SOLUTION

hvrdhn88
Giga Patron

Eg: I have location reference variable on my MRVS then I added location table to match it .

Quick Demo

 

 

find_real_file.png

 

Hope it will help you. 

View solution in original post

23 REPLIES 23

Hi,

I am able to hide the field on the MRVS pop-up but the table still shows it is visible. Is it possible to hide/unhide the field in the parent form table as well?

Michael Jones -
Giga Sage

Ok, I went old-school on it - after this, I'm out of tricks! Try something like this in your catalog item onload script: 

function onLoad() {
    //call process
    process();
    
}

function process() {
    setTimeout(function() {
        var vset = 'f0ce3f2b07b1a010c5cff1e08c1ed045';

        //ok, this gets rid of the header row;
        var eles = document.getElementById(vset + '_table').children[0].children;

        for (var i = 0; i <= eles.length - 1; i++) {

            if (eles[i].children != undefined)
                var child = eles[i].children;
            var last = child.length - 1;
            child[last].style.display = 'none';
        }



//And this hides the rows
        eles = document.getElementById(vset + '_table').children[1];

        for (var r = 0; r <= eles.children.length; r++) {

            if (eles.children[r].children.length > 0) {
                 last = eles.children[r].children.length - 1;
                eles.children[r].children[last].style.display = 'none';
            }
        }

    }, 250);
}

Here's to hoping!

I hope this helps!

If this was helpful or correct, please be kind and remember to click appropriately!

Michael Jones - Proud member of the CloudPires team!

hvrdhn88
Giga Patron

Adding my point of view.

If the intent was for reporting point of view then you can built a database view and there you can join those table as well as reference table. 

This way, you can avoid sys_id as well.

hvrdhn88
Giga Patron

Eg: I have location reference variable on my MRVS then I added location table to match it .

Quick Demo

 

 

find_real_file.png

 

Hope it will help you.