Quantcast
Channel: DreamFactory Forum - Latest topics
Viewing all articles
Browse latest Browse all 1523

Changes in response doesn't stick

$
0
0

@Elvis_Fernandes wrote:

I'm having some difficulties trying to change the response from a GET request. In the get.post_proccess for a given table I'm modifying the event.response object but the changes doesn't stick!

Here is a simple example to illustrate what is happening. If I use this script in the get.post_process of a table, it has no effect:

event.response = ""; OR event.response = {}

(By "no effect" I mean I get all the records as if the response were not changed)

This script has the same result (no effect to the response):

return "";

In the thread Server-side filter returns SQL error when using "contains" or "starts with" clauses @toddappleton told about a similar problem that would be fixed in release 2.1. Today I upgraded to the latest version and I believe I'm running 2.1, although the version differs in the Admin Panel:

When I check the CHANGELOG.md file in htdocs/vendor/dreamfactory/df-core it shows information about version 0.2.3, which makes me believe I'm running DF 2.1.

I know the script has been run because I add some print commands and I see the messages in the logs.

Why am I not being able to change the response? Any help will be much appreciated.

P.S.: I forgot to mention that I'm running a Bitnami image at AWS.

Thanks,

Elvis

Posts: 3

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 1523

Trending Articles