About

The tag defines a push button. Type submit for FORM submit sending data back to the server or type button for performing javascript function.


General


Label

Button label. Possible to enter static text and translate to different languages if needed. Use the translate button to translate to desired language. The label can also be binded to an public attribute from the application class.


Attribute

Binds value for attributes to the object. All valid attributes can be binded.


Format from Application Class:


id="demo" width="100px"


Style

Binds value for styles to the object. All valid styles can be binded.


Format from Application Class:


width: 100px; length: 200px


Disable

If the binded value for this field contains a value, the object will not be rendered from the server to the client. The disable function will also disable all child objects.


Event ID

The Event ID is passed to the method OnSubmit in the Application Class to be able to handle different methods depending on the Event ID.


Example in the Application Class


method /neptune/if_nad_server~handle_on_submit.


case event_id.


when 'SAVE_REPLENISH'.

call method save_replenish( ).


when 'SEARCH_ORDER'.

call method search_order( ).


when 'GET_ORDERS'.

call method get_orders( ).


when 'SAVE_PRICE'.

call method save_price( ).


when 'SAVE_USER'.

call method save_user( ).


endcase.


endmethod.


Event Value

A value passed to OnSubmit method in the application class. Must be binded to a public field from the application class


External Reference

http://www.w3schools.com/tags/tag_button.asp