DMXzone App Connect Support Product Page


how to work with globals across pages?

Asked 23 Feb 2017 15:41:39
has this question
23 Feb 2017 15:41:39 aaron clark posted:

Using app connect do you have any info on how to pass variables from links on a dynamic table to another page to filter info from another table. eg setting a session variable from the ID column in a repeat region?


Replied 24 Feb 2017 08:18:58
24 Feb 2017 08:18:58 Teodor Kuduschiev replied:
Hello Aaron,
We are going to create video tutorials explaining this.
Replied 27 Feb 2017 10:40:10
27 Feb 2017 10:40:10 aaron clark replied:
Any idea when this will happen? I need this info for a site I am working on. Could you possibly give me a hint of how to do this if the tutorials are going to be a while?
Replied 27 Feb 2017 12:00:33
27 Feb 2017 12:00:33 Teodor Kuduschiev replied:
Hi Aaron,
Please explain what exactly you need, so i can explain you how to achieve it?

Here you can see how to filter by an URL parameter:
Replied 27 Feb 2017 14:20:18
27 Feb 2017 14:20:18 aaron clark replied:
Hi thanks for that link it did fill in a couple of gaps for me. However I really wanted to set a session variable rather than using a url parameter to filter a page.

Replied 27 Feb 2017 14:31:48
27 Feb 2017 14:31:48 Teodor Kuduschiev replied:
Well session variables are used within server connect actions, they are not handled on the front end.
You can use the set session step in one of the action files, and when the session value is set to use it another action file to filter.
Replied 27 Feb 2017 16:00:46
27 Feb 2017 16:00:46 aaron clark replied:
Thanks for the quick response, How do you set the value of a session variable from a link, similar to setting url parameter in the link above?
Replied 28 Feb 2017 08:32:22
28 Feb 2017 08:32:22 Teodor Kuduschiev replied:
Can you somehow explain a little more detailed - what exactly needs to be achieved? "set the value of a session variable from a link" is not really clear.
Replied 01 Mar 2017 13:20:18
01 Mar 2017 13:20:18 aaron clark replied:
I have a table of Users with many other tables that link to it. Ideally I would like to be able to select one of these users (not fussy how this is achieved) to set the value of a session variable to the User ID so that I can use it to filter the linked tables on other pages. I hope this makes sense. It is very similar to what is achieved when filtering by passing the ID via the url except using the session variable. I am just not sure how to achieve this?
Replied 14 Mar 2017 13:19:40
14 Mar 2017 13:19:40 aaron clark replied:
would love some help with this?
Replied 14 Mar 2017 13:33:23
14 Mar 2017 13:33:23 Dave Smith replied:
Hi Aaron,
Have you considered using State Management and creating a Cookie to pass rather than a Session? Is there a reason why you don't want to pass via a URL variable (I use a little piece of PHP to generate a random 64 character string when inserting new records as a 'reference', so the chances of any URL injection is slim).

Just a thought. I know it is not the answer you need right now but is simply a suggestion for future reference.

This thread may help you a little:

Best regards.
Replied 14 Mar 2017 13:41:46
14 Mar 2017 13:41:46 aaron clark replied:
Hi dave
Does state management work with app connect?

I will read that thread

I would be open to using a cookie rather than session just not sure how to achieve this. Im really a novice so learning lots

Replied 14 Mar 2017 13:50:10
14 Mar 2017 13:50:10 Dave Smith replied:
The State Management Extension works independent of App Connect. Are you using the DMX All Extensions Subscription?

If so you can download the State Management Extension and begin to use it.

Quite simple.

In Data Bindings add a new Cookie, name it and set its expiry and domain.

Select the link you wish to use and click on Behaviors.

Click Add Behavior and goto the DMX Zone menu and select State Management.

Select your Action 'Set Cookie' and the Cookie you previously created in the Data Bindings Panel.

Then use the lightening bolt button to select the Value from your database.

On the following page have your query filter by the value of the Cookie and you are all set.

Replied 14 Mar 2017 14:04:22
14 Mar 2017 14:04:22 aaron clark replied:
Hi dave
I bought the state management extension on its own a while ago but never got round to using it. I am not using the DMX All Extensions Subscription?

I thought that you could not use the databindings panel and app connect on the same page?
Replied 14 Mar 2017 14:11:35
14 Mar 2017 14:11:35 aaron clark replied:
I tried to do what you said? I cannot set the cookie as I cannot select the value as I have used app connect to create my access the database rather than data bindings?
Replied 14 Mar 2017 14:13:32
14 Mar 2017 14:13:32 aaron clark replied:
Is it the case that working with cookies and session variables is not supported by app connect currently?
Replied 14 Mar 2017 14:14:09
14 Mar 2017 14:14:09 Dave Smith replied:
If you have State Management you can use it within any page despite other extensions.

Knowing DMX Zone I'm pretty sure they provided for full backward compatibility with their other great Extensions when it comes to App Connect.

Give it a try while awaiting a response from Teodor relating to your original question. Am sure you could get everything working within about 5-10 minutes.

Replied 14 Mar 2017 14:17:19
14 Mar 2017 14:17:19 Dave Smith replied:
Here is a quick video that can assist you in getting the ball rolling:
Replied 14 Mar 2017 14:29:41
14 Mar 2017 14:29:41 aaron clark replied:
thanks for your help dave, really appreciated. hopefully Teodor can shed some light on the app connect issue?
Replied 14 Mar 2017 14:32:30
14 Mar 2017 14:32:30 Dave Smith replied:
No worries Aaron I hope it helps. Good luck with your endeavors

Am sure Teodor will come up with a solution for you.

Have a nice day wherever you are.
Replied 04 May 2017 07:51:53
04 May 2017 07:51:53 Teodor Kuduschiev replied:
Passing variables is already possible with the App Connect State management extension. You can create, set and reuse: sessions, cookies and use local storage to do this:
Please check the video tutorials.
Replied 04 May 2017 08:09:47
04 May 2017 08:09:47 aaron clark replied:
Thanks, I am so pleased this has been released I can finally finish the site!

Reply to this topic