Hello All,
In my previous post we modified the navigation behavior of Siebel IP 17 to navigate single record at a time,
but there was one miss with this, pointed by one of the reader. The Icons for navigation were always highlighted i.e. irrespective of being on last record next record icon was highlighted.
so to achieve this i have made some change ,
The logic is , we need to disable or enable button based on CanInvoke result of Methods, below code does the trick ,
and the updated PR file can be Taken from the Drive link.
https://drive.google.com/open?id=1R_gOJjjIWhU-8IoTMKm2YxckyD_Xd3Tr
In my previous post we modified the navigation behavior of Siebel IP 17 to navigate single record at a time,
but there was one miss with this, pointed by one of the reader. The Icons for navigation were always highlighted i.e. irrespective of being on last record next record icon was highlighted.
so to achieve this i have made some change ,
The logic is , we need to disable or enable button based on CanInvoke result of Methods, below code does the trick ,
function disableIcons () { if ( pm.ExecuteMethod("CanInvokeMethod", "GotoNext") == false) { $("#" + appletFullId).find($('.ui-icon-seek-next')).addClass('ui-state-disabled'); } else { $("#" + appletFullId).find($('.ui-icon-seek-next')).removeClass('ui-state-disabled'); } if (pm.ExecuteMethod("CanInvokeMethod", "GotoPrevious") == false) { $("#" + appletFullId).find($('.ui-icon-seek-prev')).addClass('ui-state-disabled'); } else { var a = pm.ExecuteMethod("CanInvokeMethod", "GotoPrevious"); $("#" + appletFullId).find($('.ui-icon-seek-prev')).removeClass('ui-state-disabled'); } if (pm.ExecuteMethod("CanInvokeMethod", "GotoPreviousSet")== false) { $("#" + appletFullId).find($('.ui-icon-seek-first')).addClass('ui-state-disabled'); } else { $("#" + appletFullId).find($('.ui-icon-seek-first')).removeClass('ui-state-disabled'); } if (pm.ExecuteMethod("CanInvokeMethod", "GotoNextSet")== false) { $("#" + appletFullId).find($('.ui-icon-seek-end')).addClass('ui-state-disabled'); } else{ $("#" + appletFullId).find($('.ui-icon-seek-end')).removeClass('ui-state-disabled'); } } |
and the updated PR file can be Taken from the Drive link.
https://drive.google.com/open?id=1R_gOJjjIWhU-8IoTMKm2YxckyD_Xd3Tr
No comments:
Post a Comment