Mathias Uebelacker
Posts: 0
Joined: Mon Sep 15, 2014 1:42 pm

change request parameter based on user login

Hello,

is there a way to to change the request parameter based on the user login?

So here is what i want oto do:

i have some additional values in my user collection like vin for example. I create a REST service which connects to a parse.com database where filtering by a parameter is possible. Now if a user login into the app the requestparameter vin should be set to the vin code which is in the user collection related to this user. . So something like.

  1. user login

  2. login successful navigate to result page

  3. on page loding invoke REST service with a change parameter to the vin which is in the user table according to the active user.

    kr
    Mathias

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

change request parameter based on user login

Hi Mathias,

It's up to your app logic, yes - you can implement this logic and sequence of services.

Mathias Uebelacker
Posts: 0
Joined: Mon Sep 15, 2014 1:42 pm

change request parameter based on user login

Hei Illa,

so do you have any examples or workflow for that. I have at the moment not really a step in. Maybe:

  1. after successful login invoke the service and create a local variable which will mapped to the users vin.

  2. after navigation to the result page create the "on page show" event with invoke of services manual in the js area by create a on page show event with action running js

    But how will be a service invoke in js area?

    br
    Mathias

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

change request parameter based on user login

Mathias,

To invoke service with JavaScript please check our documentation here:
:: http://devcenter.appery.io/documentat...

Everything else is your custom app logic, if you're facing some specific difficulties with your implementation, please give detailed information. And we will try to help you.

Return to “Issues”