[4.2.0.0] - Custom Attach click functionality - Forum - Rollbase - Progress Community

[4.2.0.0] - Custom Attach click functionality

 Forum

[4.2.0.0] - Custom Attach click functionality

This question is not answered

Hello,

In version 4.0.4.0, I had some code that would change the src of an attach button for a related objects list view. The code is given below.

<script>
  function onClick(e){
    console.log($("#dialogId > iframe").length); // returns 0 in 4.2 but works fine (returns 1) in 4.0.4.0
}

$(document).ready(function(){

  var myButton= $($('section[name="Attach Button Section"]').find('a')[4]);
  
  myButton.kendoButton({
    click: onClick
  });
});

However, this doesn't work the same anymore in 4.2.0.0. May I know what has changed as I don't get the iframe anymore with the same code. Looking forward to your reply.

Cheers.

All Replies