About

Link Ajax is one of the most powerful component in Neptune Application Designer. It will give the possibility to update a container on your screen from another application/container. Our server is optimized for Link Ajax, using XHR and sending only the container content back to the client. Developing complex application with many components and bigger screen, using Link Ajax is a game changer.


If you need a processing event after the Link Ajax is done, please use the Ajax Success event in the attribute tab.


General


Label

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


Source App

Source application the source container is read from. Default is blank and the current application.


Only Serialize this form

To prevent the AJAX call to serialize all forms inside the application. Checking this will make the client only sending data from the FORM where the Link Ajax is a child.


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.


AJAX ID

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


Example in the Application Class


method /neptune/if_nad_server~handle_on_ajax.


case ajax_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.


AJAX Value

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


Script Before

Javascript function triggered before the ajax call to the server. Like: somethingBefore();


Script After

Javascript function triggered after the ajax call to the server. Like: somethingAfter();


Source ID

The container ID for the source. Must be aligned with source application.


Target ID

The container ID for the target.


Target in Data Loop

Enable this if you need to update a container in a dataloop. Then the correct row number should be updated correctly. The link ajax component must then exist inside the dataloop.


Hide Link

Enable this if you don’t need a link/button to trigger the Link Ajax. The trigger must then be with javascript.