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

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) ...@@ -1609,12 +1609,12 @@ API Call QFQ Report (e.g. AJAX)
.. note:: .. 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. 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*. *No FE-Group access control*.
Example:: Example QFQ record JS::
# Register SIP with given arguments. # Register SIP with given arguments.
10.sql = SELECT 'U:uid=12345&arg1=Hello&arg2=World|s|r:8' AS '_link|col1' 10.sql = SELECT 'U:uid=12345&arg1=Hello&arg2=World|s|r:8' AS '_link|col1'
...@@ -1622,8 +1622,8 @@ Example:: ...@@ -1622,8 +1622,8 @@ Example::
10.tail = <script> 10.tail = <script>
function writeYourOwnAjax(){ function writeYourOwnAjax(){
$.ajax({ $.ajax({
url: 'typo3conf/ext/qfq/Api/dataReport.php', url: 'typo3conf/ext/qfq/Api/dataReport.php?s={{col1:RE}}',
data: {s:{{col1:RE}}, arg3:45678}, data: {arg3:456, arg4:567},
method: 'POST', method: 'POST',
dataType: 'JSON', dataType: 'JSON',
success: function(response) {ajaxSuccess(response);}, success: function(response) {ajaxSuccess(response);},
...@@ -1632,10 +1632,12 @@ Example:: ...@@ -1632,10 +1632,12 @@ Example::
} }
</script> </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). # 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. # The example above assumes that this record has the tt_content.uid=12345.
render = api 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: .. _special-sql-functions:
......
Supports Markdown
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