• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Setting value for a key programmatically for arg0 tag

 
Naseem Khan
Ranch Hand
Posts: 809
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Can we set programmatically the value corresponding to a key? I have already set resource false for arg0 tag.



Now in the error message, for {0}, I want the value which I have set programmatically.
 
Naseem Khan
Ranch Hand
Posts: 809
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried changing the value of arg0 key by variable tag.

Here is the code





My error message is, We don't provide loans for {0}. Here this 0 points to arg0 whose value is the value of variable validateCDField which I am assigning by our validate method.

Still I am not getting the value at place {0}

Can anyone please help me?
 
Naseem Khan
Ranch Hand
Posts: 809
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there anyway to map arg key with user entered value of form field?



Just like ${var:varName} dynamically maps the value of var with key, similarly I tried with ${this:value}, but its not working. In place of form field value, I am getting ${this:value} as it is.

Please help
[ March 04, 2007: Message edited by: Naseem Khan ]
 
Naseem Khan
Ranch Hand
Posts: 809
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I solved it by ...



here fieldValue is user entered value
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic