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
Replies
10 replies
Subscribers
9 subscribers
Views
3314 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
I am trying to use with function on process dashboard, i tried very simple expre
ajinkyab277
Certified Lead Developer
over 11 years ago
I am trying to use with function on process dashboard, i tried very simple expression
with(
local!testval:"this is sample Text",
local!testval
)
but its giving the error
EVAL"@reason=index
...
OriginalPostID-105518
OriginalPostID-105518
Discussion posts and replies are publicly visible
0
Stefan Helzle
A Score Level 3
over 11 years ago
I think you need a function as last parameter. In your simple case this could be tostring(). This sounds stupid but when you use the with() function for real development such cases are very rare.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
ajinkyab277
Certified Lead Developer
over 11 years ago
Hi Stefan ,
I tried with wrapping my variable with tostring, but this time also same error.
my requirement is
I have created process dashboard on master process. and i am just maintaing ID of database row in master process. so to show information on process dashboard i am using query rule, as i need to show all field from database on dashboard i am using with function and storing cdt in local variable and each time using same CDT to show filed, by using this approach i dont need to use query rule each time.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
rajatm
over 11 years ago
Ajinkya,
with() needs at least one expression. So if you add what stefanh791 suggested above it may work or add a!textField() component to display some text. refer to
forum.appian.com/.../Evaluation_Functions
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
ajinkyab277
Certified Lead Developer
over 11 years ago
Hi rajat,
I have tried following two code sniplet but this time also same error.
Example 1
load(
local!testval:"this is sample Text",
tostring(local!testval)
)
Example 2
with(
local!testval:"this is sample Text",
a!textField(
label:"test value",
value:local!testval
)
)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
ajinkyab277
Certified Lead Developer
over 11 years ago
Note: I am using portal dashboard not record dashboard
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
ajinkyab277
Certified Lead Developer
over 11 years ago
As i am using portal dashboard , so it obvious second option will not work
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
hajii
over 10 years ago
Was this resolved? I have the same problem on a portal process dashboard.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
ajinkyab277
Certified Lead Developer
over 10 years ago
@haji: In which version of appian you are trying this. i tried with 7.3 and 7.5 the same expression works fine.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
hajii
over 10 years ago
7.6. The with() doesn't work in process model dashboards (but it works otherwise). It also doesn't work with(testval: "blah", etc).
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
ajinkyab277
Certified Lead Developer
over 10 years ago
@hajii: Ya, that's correct it does not work with process dashboards.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel