On Update of a specific field in a Grid Control

Posted by Meryk on 14-Jul-2015 06:07

Hi,

Is there any quick way to achieve the above please? Using Rollbase functions or any other work around ..?

Basically, I just need to perform some actions on change of one field in the Grid, but the 'on update' function of the Grid Control is firing for any change, which I want to avoid.

Thank you

Mery

Posted by Vasantha on 14-Jul-2015 06:18

Hi Mery,

Please refer the following community post community.progress.com/.../15178.aspx.

Thanks

Vasantha

All Replies

Posted by Vasantha on 14-Jul-2015 06:18

Hi Mery,

Please refer the following community post community.progress.com/.../15178.aspx.

Thanks

Vasantha

Posted by Santosh Patel on 14-Jul-2015 06:32

Use the event object to find out the changed field and condition your changes accordingly.

// say you want to check only for record name field (integration-name is always 'name')
// event.srcElement.name gives you name attribute of the input field
// 'name_'/'<integration_name>_', make sure to have _ added to the end of integration name to make the check more solid. Note that this will not cover all cases. e.g. another field with integration name 'name_suggestion' will also match. Work it out. :)
if (event.srcElement.name.startsWith('name_')) {
   // Do stuff
}


Posted by Meryk on 15-Jul-2015 09:02

Thank you guys.

This code, from the previous post, did the job for me :

<script>

   $(function() {

       $("#rbi_grid_0_0_password").change(function() {

           alert("Hello!");

       });

   });

</script>

Thanks,

Mery

This thread is closed