MRVS detect when a row is removed or deleted

Tadz
Tera Guru
Tera Guru

Hi Everyone,

Is it possible to detect deletion or removal of a record in MRVS?

Thanks,

Tadz

1 ACCEPTED SOLUTION

Aldwin
Tera Contributor

You can try this one :

$scope.$watch(function() {
    return $scope.page.g_form.getValue('variabl_name');
    }, function(value) {
        sessionStorage.setItem('ITEM_NAME',value);
});
 
 
You can create a macro inside your Catalog with a widget (containing the code above)

this will "watch" the MRVS value every time MRVS record changes. May it be delete or add.

View solution in original post

13 REPLIES 13

Aldwin
Tera Contributor

You can try this one :

$scope.$watch(function() {
    return $scope.page.g_form.getValue('variabl_name');
    }, function(value) {
        sessionStorage.setItem('ITEM_NAME',value);
});
 
 
You can create a macro inside your Catalog with a widget (containing the code above)

this will "watch" the MRVS value every time MRVS record changes. May it be delete or add.

Hi Aldwin, thanks!!

This works like magic

wang_fuxing
Tera Contributor

Hello, can you give me a more complete example, I tried it to no avail

Hi @Aldwin ,

 

What is variabl_name ? Variable set internal name or variable on that MRVS?

ITEM_Name is name of catalog item?

@Tadz 

Thanks,
Ashutosh Munot

@Ashutosh Munot this would be the variable set name