Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
+1
person also asked this
people also asked this
Replies
9 replies
Subscribers
7 subscribers
Views
3299 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
Hello all, I have two questions: - Is there any way of setting session
octavianp
over 8 years ago
Hello all,
I have two questions:
- Is there any way of setting session variables in Appian?
- Is it possible to send another parameter to a record url besides the items identifier?
Thank you in advance,
Octavian
OriginalPostID-167645
OriginalPostID-167645
Discussion posts and replies are publicly visible
0
Lakshmi Meyyappan
over 8 years ago
For your second question, the urlforrecord() function can only take in the record identifier (documentation:
forum.appian.com/.../Scripting_Functions.html
But the a!recordLink() SAIL function can take in the identifier, dashboard, and label (documentation:
forum.appian.com/.../SAIL_Components.html
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Mike Schmitt
Certified Lead Developer
over 8 years ago
Can you expand on what you mean by 'session variables' in the context of Appian? What's your need / use case?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
octavianp
over 8 years ago
By Session variables I mean variables that are stored for each website in the current session at the web browser level. For example the logged in user is saved in such a variable, in order to be persisted during the navigation in the web page.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Stefan Helzle
A Score Level 3
over 8 years ago
Can you elaborate a bit more on your use case?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
octavianp
over 8 years ago
We have an Order CDT that has multiple Customers. Inside the record view for Order we defined a grid of Customers allocated to the Order.
We had to define a "Details" button for each row in the grid that should open the specific customer record. We defined both Order and Customers as records, and we used a!recordLink to create the link between them. So far so good :)
Now the challenge is that we need to define a button in the Customer record that will open another application (web-based) with both the Order Id and the Customer Id sent as parameters. So somehow we need to pass the Order Id as parameter to the Customer Record.
One solution was to add a Get parameter to the a!recordLink, it worked, but in Appian 7.8 I don't find any standard functionality to get the parameter (I think that in 7.10 there are http! functions that could have helped with this...but we use 7.8).
The other solution that I thought about was to set a Session variable in the Order Record and use it in the Customer Record...
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Stefan Helzle
A Score Level 3
over 8 years ago
You could redesign the order record view to show the customer "inline" by dynamically switching between SAIL interfaces. This way you would not loose the order context.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
octavianp
over 8 years ago
I tried to have the Details Button change the value of a local!variable, that switches between the SAIL interfaces, but it does'n do anything in records...same code works perfectly if it is applied to a task...so I suppose that in records changing a variable value is not possible...is it right?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Stefan Helzle
A Score Level 3
over 8 years ago
AFAIK the only difference between forms and dashboards is that forms can be submitted. Local variables should work as expected.
My idea is: You have a single dashboard which initially shows the order. Clicking on the customer details link/button just switches to the customer view on the same dashboard. Now you should have both data objects available. There is a SAIL recipe for building complex SAIL forms like a multi step wizard.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
octavianp
over 8 years ago
So I finally found the issue. Basically it was because the variable that was switching between the Interfaces was declared in a local! variable in a load(). I changed in with() and now everything goes perfectly.
Thank you!
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel