Commit 849bb726 authored by Carsten  Rose's avatar Carsten Rose

Report.rst: udpate doc

parent 22586593
Pipeline #3773 passed with stages
in 4 minutes and 6 seconds
......@@ -1609,12 +1609,12 @@ API Call QFQ Report (e.g. AJAX)
.. note::
QFQ Report functionality protected by SIP offered to simple API calls: ``typo3conf/ext/qfq/Api/dataReport.php``
QFQ Report functionality protected by SIP offered to simple API calls: ``typo3conf/ext/qfq/Api/dataReport.php?s=....``
General use API call to fire a specific QFQ tt-content record. Useful for e.g. AJAX calls. No Typo3 is involved.
*No FE-Group access control*.
Example::
Example QFQ record JS::
# Register SIP with given arguments.
10.sql = SELECT 'U:uid=12345&arg1=Hello&arg2=World|s|r:8' AS '_link|col1'
......@@ -1622,8 +1622,8 @@ Example::
10.tail = <script>
function writeYourOwnAjax(){
$.ajax({
url: 'typo3conf/ext/qfq/Api/dataReport.php',
data: {s:{{col1:RE}}, arg3:45678},
url: 'typo3conf/ext/qfq/Api/dataReport.php?s={{col1:RE}}',
data: {arg3:456, arg4:567},
method: 'POST',
dataType: 'JSON',
success: function(response) {ajaxSuccess(response);},
......@@ -1632,10 +1632,12 @@ Example::
}
</script>
Example QFQ record called by above AJAX::
# Create a dedicated tt-content record (on any T3 page, might be on the same page as the JS code).
# The example above assumes that this record has the tt_content.uid=12345.
render = api
10.sql = SELECT '{{arg1:S}} {{arg2:S}} {{arg3:C}}', NOW()
10.sql = SELECT '{{arg1:S}} {{arg2:S}} {{arg3:C}} {{arg4:C}}', NOW()
.. _special-sql-functions:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment