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
19 replies
Subscribers
8 subscribers
Views
5954 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
What is wrong with following event ajax call ffrom form on chanhe od date field
natasav
over 12 years ago
What is wrong with following event ajax call ffrom form on chanhe od date field ?
window.FormAPI.evaluateServerSideExpression(function(fn){
window.FormAPI.setValue("number41",fn);
},"=calworkdays(FormAPI.getValue("date1").id, FormAPI.getValue("date2").id])");
OriginalPostID-23033
OriginalPostID-23033
Discussion posts and replies are publicly visible
Parents
0
Eduardo Fuentes
Appian Employee
over 12 years ago
Good catch. This type of issues can be easily diagnosed using Fiddler to monitor the request you are doing. If you take a look at the request: http://<SERVER>/suite/plugins/servlet/forms_expression in Fiddler you will see the expression is sent as: expression%3D%3Dcalworkdays(2%2F1%2F2012%2C2%2F7%2F2012) which can be decoded using this site:
meyerweb.com/.../
When decoded you will see the expression we are evaluating is of type:expression==calworkdays(2/1/2012,2/7/2012) which is not correct, because there are no quotes surrounding the dates. If you test this directly in the Rules interface it will give you the wrong value too.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Eduardo Fuentes
Appian Employee
over 12 years ago
Good catch. This type of issues can be easily diagnosed using Fiddler to monitor the request you are doing. If you take a look at the request: http://<SERVER>/suite/plugins/servlet/forms_expression in Fiddler you will see the expression is sent as: expression%3D%3Dcalworkdays(2%2F1%2F2012%2C2%2F7%2F2012) which can be decoded using this site:
meyerweb.com/.../
When decoded you will see the expression we are evaluating is of type:expression==calworkdays(2/1/2012,2/7/2012) which is not correct, because there are no quotes surrounding the dates. If you test this directly in the Rules interface it will give you the wrong value too.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data