{hero}

ajax.replacements

Since: Editor 2.0

Specify replacement parameters for the URL per submission.
Please note - this property requires the Editor extension for DataTables.

The full Editor reference documentation is available to registered users of Editor - the information shown below is a summary only. If you already have an Editor license please , alternatively an Editor license can be purchased on this site, or sign up for the free trial.

Description

You may need to dynamically modify the URL used for form submission based on the content of the data being edited. This is particularly common in REST APIs where you might need to modify the URL to contain certain keys.

This option provides the ability to list a set of keys and their replacement functions. The value returns for each key is the value that will be used in place of the key in the URL string.

Please note that in the URL the key should be denoted surrounded by braces - e.g.: {person}.

Comments (0)

No comments posted for this page yet. Be the first to contribute!

Post new comment

Contributions in the form of tips, code snippets and suggestions for the above material are very welcome. To post a comment, please use the form below. Text is formatted by Markdown.

To post comments, please sign in to your DataTables account, or register:

Any questions posted here will be deleted without being published.
Please post questions in the Forums. Comments are moderated.