Workflow expression question

Hi,
I am trying to create a workflow that says when the Contact country or a custom field on the contact form called country is USA, place the field that is not blank into a field called Primary Contact Country, else if not USA, then place the country field in the Primary Contact country. The code below errors out when I try to save it.
any ideas?
IIf(JoinFieldValue('<Contact>',[<KeyContactId>],'<AlternateCountry>') = 'USA' or JoinFieldValue('<Contact>',[<KeyContactId>],'<stCountry_ITAG>') = 'USA',
IIf(JoinFieldValue('<Contact>',[<KeyContactId>],'<stState_ITAG>') <> '',JoinFieldValue('<Contact>',[<KeyContactId>],'<stState_ITAG>'),JoinFieldValue('<Contact>',[<KeyContactId>],'<AlternateStateProvince>'),
JoinFieldValue('<Contact>',[<KeyContactId>],'<AlternateCountry>') )

Hi
Don't you have some unneccessary double quotes after the the 2nd IIf expression?
IIf(JoinFieldValue('<Contact>',<KeyContactId>,'<AlternateCountry>') = 'USA' or JoinFieldValue('<Contact>',<KeyContactId>,'<stCountry_ITAG>') = 'USA',
IIf(JoinFieldValue('<Contact>',<KeyContactId>,'<stState_ITAG>') '' <----
Guy

Similar Messages

  • Workflow design questions: FM vs WF to call FM

    Hereu2019s a couple of workflow design questions.
    1. We have Workitem 123 that allow user to navigate to a custom transaction TX1. User can make changes in TX1.  At save or at user command of TX1, the program will call a FM (FM1) to delete WI 123 and create a new WI to send to a different agent. 
    Since Workitem 123 is still open and lock, the FM1 cannot delete it immediately, it has to use a DO loop to check if the Workitem 123 is dequeued before performing the WI delete.
    Alternative: instead of calling the FM1, the program can raise an event which calls a new workflow, which has 1 step/task/new method which call the FM1.  Even with this alternative, the Workitem 123 can still be locked when the new workflowu2019s task/method calls the FM1.
    I do not like the alternative, which calls the same FM1 indirectly via a new workflow/step/task/method.
    2. When an application object changes, the user exit will call a FMx which is related to workflow.  The ABAP developer do not want to call the FMx directly, she wants to raise an event which call a workflow .. step .. task .. method .. FMx indirectly.  This way any commit that happens in the FMx will not affect the application objectu2019s COMMIT.
    My recommendation is to call the FMx using u2018in Update tasku2019 so that the FMx is only called after the COMMIT of the application object.
    Any recommendation?
    Amy

    Mike,
    Yes, in my first design, the TX can 1. raise a terminating event for the existing workitem/workflow and then 2. raise another event to call another workflow.   Both 1 and 2 will be in FM1. 
    Then the design question is: Should the FM1 be called from TX directly or should the TX raise an event to call a new workflow which has 1 step/task, which calls a method in the Business object, and the method calls the FM1?
    In my second design question, when an application object changes, the user exit will call a FMx which is related to workflow.  The ABAP developer do not want to call the FMx directly, she wants to raise an event which call a workflow, which has 1 step/task, which calls a method, which calls the FMx indirectly.  This way any commit that happens in the FMx will not affect the application objectu2019s COMMIT.
    My recommendation is either call the FMx using u2018in Update tasku2019 so that the FMx is only called after the COMMIT of the application object or raise an event to call a receiver FM (FMx).
    Thanks.
    Amy

  • Workflow condition question

    Whenever a new opportunity is being added, If the ExternalSystemId field is blank then go ahead and fire off the workflow action. If it's NOT blank then do not fire off the workflow
    In the workflow condition, I have this
    len(Field_Value('<ExternalSystemId>')) = 0 OR len(Field_Value('<ExternalSystemId>')) IS NULL
    but it still fires off the workflow even though the external system id field has something in it.
    Do you have any idea?
    Thanks

    If I understand your question, you would need to write your default expression in the field definition (read the Default value and post default behavior). There are no workflow triggers for create (new Opportunity).

  • Resgular Expression question

    Hi guys. I am a java programmer for a couple of years now but I could never learn regular expressions in this or any other language. My problem is that I want to use String's replaceAll method to replace all HTML structures from a string. Actually, I want to remove all <*>, ie all character between the angular brackets (together with teh brackets of course). Does anyone have any idea how this is done with regular expressions?
    replaceAll method is defined as follows:
    String      replaceAll(String regex, String replacement)
    Replaces each substring of this string that matches the given regular expression with the given replacement.
    Thanks in advance

    Hi,
    public class Test {
         public static void main(String[] args) {
              String test = "<img src=\"blah blah\">hello</img> and so on <br>.";
              System.out.println(test.replaceAll("<[^>]*>", ""));
    }Kaj
    Ps.
    Native methods is not the correct forum for this kind of questions. You should have posted in Java programming.

  • 10G EXPRESS QUESTIONS

    I want to download and start using the free express edition of the db. Before doing so, I have several questions before getting started:
    1) I plan on downloading to, and using the db on, only one system. Which version do I need??? Do I need the server version, client version, or do I need both???
    2) I would prefer to download and use the db from a laptop versus a desktop. Any issues with that??? Of course, the laptop would be sized correctly.
    3) I would prefer to use the db on a Mac but see there is not a version for the Mac OS. Which is the better OS for this db, Windows or Linux???
    Thanks in advance for the help.
    JG

    I want to download and start using the free express
    edition of the db. Before doing so, I have several
    questions before getting started:
    1) I plan on downloading to, and using the db on,
    only one system. Which version do I need??? Do I
    need the server version, client version, or do I need
    both???The 'server' is the database. The 'client' is the software needed to get to the server (get to the database) across the network.
    You need the server at the least.
    If you want to access the database from other computers using something other than a browser, you need the 'client'.
    2) I would prefer to download and use the db from a
    laptop versus a desktop. Any issues with that??? Of
    course, the laptop would be sized correctly.I run Oracle XE on a laptop. 1GB RAM, 40GB disk, P4-2.2GHz laptop. I'm pretty happy.
    3) I would prefer to use the db on a Mac but see
    there is not a version for the Mac OS. Which is the
    better OS for this db, Windows or Linux???
    Which car is better - a Ford or a Chrysler?
    It really comes down to personal preference. The differences between Windows and Linux are not really all that great any more.
    And just like cars - just don't forget that eith has to be maintained. Regularly.
    Message was edited by:
    Hans Forbrich
    PS: I use Linux. But mainly because I've been using computers since the late 1960s and hate the hype around GUI.

  • Silly Base Station / Express question

    Hi. Silly Question... Is my Airport Express my Base Station? I've only got the Express and I can connect to the internet just fine. Or does Base Station refer specifically to the round flying-saucer looking thingy? That would explain why I can't see it listed in Airport Setup utility under the Base Station columns. I'm trying to make sure my Express is set up correctly to print, but I didn't specify having a printer when I set up the Wireless Network. Sorry about this, but it might just solve my problem. Thanks in advance. I promise I'll learn quickly.
    M
    Ibook   Mac OS X (10.4.2)  

    I'm not sure if it's a defective AX... just from my personal experience I had similar issues with 3 I needed to return.
    If I recall correctly, you only have 2 choices... either the AX acts as a base station or it's a client of another base station. I suppose it might be possible you had it set as a client and it's just picking up an open access point nearby.
    I would just try restarting the AX and your computer. If that doesn't work, maybe you could try a soft -> hard -> factory reset, in that order.
    Do you have an Apple Store nearby? If so, and none of the above works, you can always take it to the genius bar and they may be able to help.
    Curt

  • Workflow Expression Rule Adapter

    Hello there,
    this is my first time creating process controlled workflow. Now I have a problem to create the right expressions and events to define the output for my for choosing the right schema.
    What I want:
    We have created a ZBUS2121 and delegated it to BUS2121. Within ZBUS2121 we created new attribute for workflow starting condition.
    In Application controlled workflow it works all fine.
    But now migrating the workflow to process controlled workflow framework there is the problem.
    I need the value of the new Z Attribute from my ZBUS2121 to trigger the right schema.
    I Created a new expression Z_C_GET_APPR as OCF001 to call the funktion module /SAPSRM/WF_BFR_0EXP000
    my parameters are
    1. OC_C1_C_FWFSCRLCNTNT   (its the constant class name /SAPSRM/CL_WF_RULE_CONTXT_SC)
    2. OC_C2_C_GET_PROPERTY
    3. Z_C2_ZGENEHMIGUNGSWF   (Thats the name of the attribute in ZBUS2121)
    with another expression Z00_SC_E_CHECK from type simple SAP Formularinterpreter (OFB001) I will check the result of Z_C_GET_APPR
    I wrote the "Z_C_GET_APPR = 'E'
    The result type is boole.
    then a third expressions gives me the schema name. It's checks if  Z00_SC_E_CHECK is true.
    My problem is that the expression Z_C_GET_APPR  containing the function module call delivers not the expected result. One field with the value from ZBUS2121.
    Whats my mistake?

    Hello Saravanan,
    You are right these are the parameters of the expression.
    I did'nt know about a naming conversion in brf. Thanks for the hint.
    Now I created a new constant expression called Z_C4_ZGENEHMIGUNGSWF but it solved not my problem.
    these are my parameters now:
    1. OC_C1_C_FWFSCRLCNTNT (its the constant class name /SAPSRM/CL_WF_RULE_CONTXT_SC)
    2. OC_C2_C_GET_PROPERTY
    3.Z_C4_ZGENEHMIGUNGSWF (Thats the name of the attribute in ZBUS2121)
    When I look into other expressions which using the same function module they all have
    1. OC_C1_C_FWFSCRLCNTNT (its the constant class name /SAPSRM/CL_WF_RULE_CONTXT_SC)
    2. OC_C2_C_GET_PROPERTY
    3. OC_C3_C.....
    as parameters.
    Is /SAPSRM/WF_BRF_0EXP000 the right fm for me? And parameter two the right method?
    Maybe it isn't the wrong fm because I'm using ZBUS2121? Or Maybe I have more naming problems. Where can I see the naming conversions of BRF Objects?
    How can I trace the workflow and the result of the expression? Currently I will trigger an workflow schema with it and I have to create shopping cards to test my workflow and the expressions. Is there a simple way for finding out the result of the expression?

  • Oracle workflow install question

    i have installed oracle workflow that embeded in oracle9i integration(version2.6.0.1).
    every thing is ok,but when i connect(open remote db) to oracle db in oracle workflow client,it reture a error:
    "language isn't enabled.....".
    my db language charset is ZHS16GBK,
    and i find that the default charset of oracle workflow is US7ASCII.
    it isn't match!!i reinstall the db used charset US7ASCII,but the error return also....
    how to solve this question???
    i heared that can download the translation patch to patch it,where to find it ?
    tks a lot!

    The issue here is the Client Registry setting of the Oracle Home the Workflow Client is installed. From the Workflow Guide:
    For Windows NT, run the regedit32 command and locate the NLS_LANG setting under the HKEY_LOCAL_MACHINE/SOFTWARE/ORACLE hierarchy. Double click on NLS_LANG, then set the variable to the new value and save your edit.
    The value must match one of the languages installed for workflow.
    i have installed oracle workflow that embeded in oracle9i integration(version2.6.0.1).
    every thing is ok,but when i connect(open remote db) to oracle db in oracle workflow client,it reture a error:
    "language isn't enabled.....".
    my db language charset is ZHS16GBK,
    and i find that the default charset of oracle workflow is US7ASCII.
    it isn't match!!i reinstall the db used charset US7ASCII,but the error return also....
    how to solve this question???
    i heared that can download the translation patch to patch it,where to find it ?
    tks a lot!

  • Workflow install question

    Hello.
    I am new to Oracle Workflow so please accept my appologies if my question sound silly :)
    I am trying to install Oracle http and oracle workflow. the installer keeps giving me this error message:
    OUI10066 - Not all dependencies for the component Oracle JDBC/OCI Driver for JDK 1.2.10.1.0.2.6 could be found. Missing component: Missing component oracle.java.jdbc.thin12 10.1.0.1.0
    I have chked my DB installetion and in the list of installed products it says that all of the required components for JDK 1.2.10.1.0.2.6 are installed.
    I have search metalink - couldn't find anything there that might be helpful.
    If you had this problem before or may be know what might be causing it - please share our knowledge.
    Thank you very much for your help and support
    Vix

    Hi
    No worries :)
    Ok so you have Oracle up and running - always a good start :)
    The next thing i did was to install Oracle HTTP server. I used the database installer - go to your start menu -->program files -->oracle -->oracle installetion products and from there select oracle universal installer. You can use the one that comes with the CD but for me it didn't work. So i used the one from the database.
    Once you launched Oracle Universal installer from your database it should automatically pick up Oracle companion CD (i saved mine on my drive so it was picked up from there). If not - just browse to whenever your oracle CD is.
    Once you start - have a read through the three options it gives you (you have to choose what you want to nstall). You need to option that gives Oracle HTTP and Workflow Middle Tier. Just expand that option and select ORacle http. then follow the instructions.
    Once you installed Oracle http - launch the installer again and choose the option that gives you the actuall oracle workflow. phew!
    This is how i did it
    Hope it make sense this time :)
    Vix

  • EL Expression questions

    Hi, I have two questions on the El Expression in the JSF:
    1)Can anyone link a El Expression (for JSF) references page?
    2)Can I use a El Expression (like the ternary selection operator) in action attributes or in actionListener or valueListener attributes?

    Link is here (for Tomcat EL - Classes and interfaces for the JSP 2.0 Expression Language API.)
    http://tomcat.apache.org/tomcat-5.5-doc/jspapi/javax/servlet/jsp/el/package-summary.html
    or
    http://java.sun.com/products/jsp/2.1/docs/jsp-2_1-pfd2/javax/servlet/jsp/el/package-summary.html
    for JSF 1.2
    BTW: Its not JSF EL but JSP specification
    EL can star from $ or #: $ is page context # is faces context, sometimes You can use $ for JSF tags, but not always, to implement such an operator check this: http://www.oracle.com/technology/pub/articles/cioroianu_jspapi.html
    But, for now, there is no way to have such an operator out of the box, You just cant't put this kind of logic to view layer

  • OSB Express questions

    Hi,
    I'm planning to use Oracle Secure Backup Express (OSB-XE) , described as license free with some limitations.
    i have some questions :
    1./ Does this free version allow me to use a Single Drive tape library (SAS ) attached to a server?
    2./ Would be possible to perform backup of all servers through the network from the central server that has the library attached?
    Our configuration is based in 3 servers with linux and one of the servers will manage the attached single drive library (or autoloader) , but we would like to know if OSB Express will be enabled to perform backup of more servers than the one where the software and drive resides.
    Also, has anyone experienced with this software and version? does anybody have any comments on functionality or usability?
    kind regards.

    Based on your environment, you would need to license OSB. The OSB-XE version supports backup of ONE host to a single attached tape drive. The licensing guide describes the differences between OSB and OSB-XE:
    http://download.oracle.com/docs/cd/E14812_01/doc/doc.103/e12836/toc.htm
    Donna

  • Stabalizing - Within the workflow (procedural question)

    Hi,
    As mentioned before, we are shooting miniature models for our project. Some of the models are attached to rigs that will allow them to move up/down, left/right, or rotate 180degrees on one axis. We have several choices of points where we attach the models to the rigs, and that allows us to get the shots we want. Out camera is on a tripod, that is attached to a dolly. We rarely use the zoom functions, but rather dolly in and out.
    Some of the rigs require more work, and the footage we have from them leave a lot to be desired - while we work on them, I am using the footage to practice some techniques - in this question, it is stabalization. The rig in question is a pole, that slides purely up and down with the model attached to the top - imagine a helicopter landing scenario. The model starts high, and is brought gradually down. The problem is, that the rig was not very smooth during the first use, and there is quite a lot of juddering on the model itself. it wobbles as it descends. The camera also moved away from the model during the shot.
    I would love to stabalize the model, not the camera movement - what is my best workflow:
    1) Key wobbly footage, then warp stabalize?
    2) Stabalize full shot, then key
    3) process shot (from keying, all the way to composite), then stabalize output.
    Am I correct in saying that warp stabalizer would be my best bet to stabalize talen motion?
    Pierre

    Hi,
    I just finished a test I had set up, and to me, it seems that this is quite a good solution (but is it the most efficient?)
    1) Import footage
    2) Key footage (in my case, using the GMatte/Cmatte/Ematte techniqur to get a beautiful thinn edge to work on)
    3) Stabalizing one of the above precomps with warp stabalizer
    4) Copying and pasting the result onto the other two
    This seemed to smooth out the wobbles nicely, although the movement is still detectable. I am not sure that warp stabalizer IS the best tool to remove talent wobbles!
    Pierre

  • Regular Expressions - Questions to SME

    Ralph Benzinger presented an online meetup on the topic of Regular Expressions.  The presentation (slides only) can be found <a href="http://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/866072ca-0b01-0010-54b1-9c02a45ba8aa">here</a>
    Unfortunately the recording is not going to be available, but Ralph has been generous enough to agree to answer questions posted to this sticky thread.
    cheers,
    Marilyn

    Hello Peter,
    You're welcome!
    Alas, I was unable to locate the regex documentation on help.sap.com either.  In fact, I'm not even sure it has already been updated for 2004s.  I recommend that you use the online documentation within the system, e.g., from transactions SE38 or SE80.  Do an index search for "regex", and you'll be directed to REGEX, FIND and REGEX, REPLACE, both of which have extensive subsections on regexes.
    The class cx_sy_regex is an exception class that is thrown by FIND, REPLACE and cl_abap_regex in case of an invalid regex, such as ".\1" (there is no capture group that back reference \1 can refer to).  If the pattern is known statically, the syntax check will report this error, but for statements like "FIND REGEX pat IN text.", the actual pattern is only known at runtime.
    The cx_sy_matcher class (and its subclasses) similarly indicate some invalid states, for example trying to call "cl_abap_matcher->replace_found( )" when the matcher has no current match to replace (e.g., replace_found( ) called twice in a row).
    Please let me know if I can provide some additional information.
    Regards
    Ralph

  • [IPCC Express] Questions about database fields

    Hello,
    I'm developing some reports for Cisco IPCC Express.
    During the development, a lot of questions came out related to the definition of some fields:
    - In ContactCallDetail, what is the difference between transfer and redirect a call?
    - In ContactCallDetail, what is the difference between transfer = 1 and contactType=5? Both are related to transfering a call.
    I'll appreciate any help you can give me.
    Best Regards,
    Filipe Cruz - Portugal

    Where i can get that Enterprise Edition ?<br>
    here (click)<br>
    <br>
    does Express edition has Web based EM ?<br>Read the doc about Express Edition : Oracle Database 10g Express Edition<br>
    <br>
    Nicolas.

  • Expression questions

    In looking at the SQL that Toplink generates from the expressions one sees more joins than would be expected. Can somebody provide a reason for that ?
    Also would the usage of parentheses in the expressions make any change to the SQL that is generated ?
    I read in another post that Toplink only generates two children no matter how complicated the expression is. Can some explanation be given for this as well ? Does this impact how I design my expressions ?
    I dont have such a specific problem as such but answers to the above question would enhance my understanding of Toplinl

    In looking at the SQL that Toplink generates fromthe
    expressions one sees more joins than would be
    expected. Can somebody provide a reason for that ?Can you provide an example? The generated SQL is
    based on your mappings and on what you specify in
    your expression. For example, if you don't have
    indirection (lazy loading) turned on in a one:many
    relationship, then when you query for a 'one' you'll
    see a join between the table for the one and for the
    many.OK I will provide an example within the next couple of days.
    >
    Also would the usage of parentheses in the
    expressions make any change to the SQL that is
    generated ?Parenthesis in and of themselves don't affect the SQL
    but if you use parenthesis to change your query then
    yes, it will affect the SQL.
    I read in another post that Toplink onlygenerates
    two children no matter how complicated theexpression
    is. Can some explanation be given for this as well?
    I'm not sure what you mean by "generates". Can you
    give an example?
    Well I was referring to this post specifically. Can you tell me what that means exactly ?
    Re: Braces with ExpressionBuilder
    Why does Toplink process only two sub conditions at a time ?
    --Shaun                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Maybe you are looking for

  • How do I change the copyright info and links in collection pages?

    Can anyone tell me how I can change the copyright info and links on a collection page using the new updated Public Site Manager? 1. When I click on 'Configure selected collection' there doesn't seem to be an option to edit copyright information and I

  • Airport Express problems with new MAC MINI and DLINK router SOLVED

    Hi just thought I would post this as it may well help others experiencing similar frustrations with new core duo mac mini and wireless connection or quality problems across the network / internet etc I have a 3 week old, new mac mini core duo 1.8ghz

  • Fopen limitaion in solaris

    Standard C Library in solaris uses unsigned char to hold file descriptor. This puts a limitation on number of files that can be opened from a process (256). Whereas WinNT uses int for holding the file descriptor. Can we any way overcome this limitati

  • T1 parametric test

    Hi, NI engineers, i have a question about your t1 parametric test. I need for my final proyect degree develop a system for E1 parametric test and my big problem are the two cards used in t1 parametric test. I need to know are two cards used in this p

  • Load Balancing For OIM servers in hyper V

    Hi All, I am very new to load balancing. I am trying to implement load balanceing in our current production setup. Our current production setup is as below: Virtualization Platform : Hyper V Guest OS : RedHat Linux OIM server : Two OIM servers in clu