Difference between pages "Developing codeunits" and "FieldCodeunitPage"
(Difference between pages)
Jump to navigation
Jump to search
old>Admin |
m (3 revisions imported) |
||
Line 1: | Line 1: | ||
== | = Button: Codeunit execution = | ||
Execute proprietary code | |||
Properties | |||
# | * Type: [[Field type reference#Action button|Action button]] | ||
* Groupable: No | |||
* Show in lists: No | |||
* Searchable: No | |||
== | == User interface == | ||
Field in show mode | |||
[[File:FieldTokenMailto_show.png]] | |||
Due to its nature this field has no special editing mode. | |||
User interface as displayed in picture | |||
== Configuration | == Configuration == | ||
This field requires configuration before deployment. | |||
[[File:FieldCodeunitPage_BE.png]] | |||
Required: | |||
* ''As shown above'' | |||
Options: | |||
* ''As shown above'' | |||
== 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: Special | ||
* Class name: FieldCodeunitPage | |||
* | |||
* | |||
* | |||
Latest revision as of 12:51, 10 December 2021
Button: Codeunit execution
Execute proprietary code
Properties
- Type: Action button
- Groupable: No
- Show in lists: No
- Searchable: No
User interface
Field in show mode
Due to its nature this field has no special editing mode.
User interface as displayed in picture
Configuration
This field requires configuration before deployment.
Required:
- As shown above
Options:
- As shown above
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: Special
- Class name: FieldCodeunitPage