Solved

JavaScript: If statements- HELP

Posted on 2006-10-27
2
236 Views
Last Modified: 2010-04-16
Hello everyone,

We are running Adobe Workflow for our Client Intake process.

Process goes as such:

1. Process is initiated
2. Goes to Conflicts Group
3. Then it goes to 2nd Conflict Clerk

I'm trying to create an email trigger to go out to to the Conflicts Group, only if the 2nd Conflict Clerk rejects their form. I've been unsucessful thus far.

Here's my code:

var someInstructions = "";

if (WorkItem.previousWorkItem.name == "2nd Conflict Clerk")
{
      someInstructions = WorkItem.getFieldValue("clname1") + "- Conflict Process Rejected for " + WorkItem.getFieldValue("rpmbillatyname") + " Please Re-submit";
}
else

WorkItem.instructions = someInstructions;
0
Comment
Question by:rlucaj
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Accepted Solution

by:
Anubhavxgoel earned 50 total points
ID: 17832109
ok,

The issue could very well be in the concatination that you are trying to perform.
All languages suggest that we validate the text before appending.

If WorkItem.getFieldValue("clname1")  is null or "undefined" as javascript choses to call it :) , or even WorkItem.getFieldValue("rpmbillatyname")  has same issue, then you could be in trouble, so please get these values seperately and verify them before concatenating.
Let me know if this helps, else I would need details of how you found out that "WorkItem.instructions=..." did not work ?

cheers!
0
 

Author Comment

by:rlucaj
ID: 17850277
Thanks for the help, I got it to work.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
firstswap challenge 20 87
Java Loop 6 74
Delphi: barcode reading on android platform 1 74
some keys in my laptop is not working. any suggestion 6 48
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question