Skip to main content

Button: Codeunit execution

Execute proprietary code

Properties

User interface

Field in show mode

image.png

Due to its nature this field has no special editing mode.

Configuration

image.png

[Description of configs]

Ajax subforms

The following code changes subform behavior to call the codeunit silently and reload the page when done

$(function() {
  $('#VB_DATA_SUBFORM a.codeunitButton').click( function(e) { 
    e.preventDefault(); 
    $.get( $(this).attr("href") );
    //$(this).parent().parent().hide();
    location.reload();
    return false; 
  });
});

Developer info

  • FeltTypeID: 750
  • SQL datatype: N/A
  • Class name: FieldCodeunitPage