Issues checking variable

I am trying to write some xpath mapping to look and see if a home phone is blank or a other phone is blank and to display a form if either are blank but I am unable to do so. I have pasted the code I am using for this below. Does anyone see anything that stand out to them of being wrong?
/process_data/formData/xdp/datasets/data/NewHireCheckList/homePhone
or
  /process_data/formData/xdp/datasets/data/NewHireCheckList/otherPhone
then setting both of them equal to ''
Any help would be greatly appreciated.

Where are you writing the code? In Workbench Process (OR) in the form?
If you are checking in workbench, you have the condition checking functionality inside the Xpath mapping editor itself.
If you are checking in form, then the code you posted, does not work.
if(homePhone.rawValue == null || homePhone.rawValue == ""){
     //Write your processing statements here.
Thanks
Srini

Similar Messages

  • Having issue with variable after upgrade in bi7.0

    Hi,
    I have issue with variable
    For example Plant info object has attributes country, company code, storage location
    etc.
    When I run the report. If I click on plant variable it is showing me the all the data for all country , compony code , storage location. I donot want this.
    I just want only plant input values on variable screen
    Thanks,
    Naman Shah

    Naman,
    What is your SP level ?
    Also the characteristics mentioned - are they compounding attributes ? if yes then tey will come in your variable entry.

  • Issue check to customer

    Hi Gurus,
    I have a business scenario:
    Customer comes to store and picks up the items and pay the item.  I use F.13 to clear customer open items.
    When customer comes for exchange, customer returns item and pick ups another item i receive return sales order for the full amount and fresh sales order for new item. I have one credit memo and one invoice for that customer. But i get only net payment(either customer paid or we paid to customer) from my front end application to SAP. Customer balance is zero now. Technically Customer has not paid yet. We have policy  we issue check from HQ not from store. I can't use F110 or FCH5 or other mode of payments.
    Example: Sales order triggers delivery and billing immediately.
    Sales Order:$ 100
    Payment: $100
    F.13 cleared.
    ===========================
    Exchange
    Return sales order:$100
    No payment
    We have credit memo
    Fresh sales order
    SO: $ 60
    Payment $ 40(We paid to customer)
    There are 3 line items in customer:
    1. Credit memo $ 100
    2. Invoice $ 60
    3. Payment $ 40
    Balance is 0. But customer has not paid this $ 40 from store.
    Requirement:  We want to issue check to customer from SAP if i owe customer money. How can i achieve this?.
    Thanks in advance.
    Regards,
    Jagadeesan

    Resolved by myself...

  • CANCEL ISSUED CHECK AND RE USE SAME CHECK NUMBER.

    Dear all
    please tell me the solution that i have issued four checks with assigning wrong check numbers .I want to assign it correctly

    HI Krishna,
    I don't think so it is possible. Once you issued checks. you can't use them again. But you can cancel them and issue new checks in the place of old checks.
    Rams.N
    If this is helpful assign me points

  • Final Issue Check box ticked still PR does no get deleted

    Even after ticking the Final Issue check box for a material whose Procurement Parameter is (Requisition + reservation for WBS element ) the requisition does not get deleted. It is still showing up in Md04 transaction. Can anyone let me know the reason. Waiting for your feedback.
    Harsh

    Hi Harsh,
    If the PR is already created, Please go to the PR and in the line item Quantity/dates tab, please tick "Closed". then the requirement should go off from MD04.
    warm regards,
    Srinivas Potluri

  • How to resolve this installation issue: checking Oracle home path for space

    Hi everyone
    I am quite new to Oracle. I have been trying to install Oracle 11g on XP and have encountered this issue:
    Checking Oracle Home path for spaces...
    Check complete. The overall result of this check is: Failed <<<<
    Problem: The Oracle Home you have specified contains spaces ( ) in the path.
    Recommendation: You must choose an Oracle Home path that doesn't contain any spaces.
    ========================================================
    How can I solve this problem?
    Could you please let me know.
    Tx
    Yel

    Hi yel;
    Checking Oracle Home path for spaces...
    Check complete. The overall result of this check is: Failed <<<<
    Problem: The Oracle Home you have specified contains spaces ( ) in the path.
    Recommendation: You must choose an Oracle Home path that doesn't contain any spaces.
    ========================================================
    How can I solve this problem?
    Could you please let me know.Please use folder name as ORACLE not ORACLE 10g or ORACLE_10g or ORACLE10 g etc
    Hope it helps
    Regard
    Helios

  • How to check variable type?

    Hi,
    How to get variable type if I want to check variable
    type.which function or class do thsi.Thanks
    Mark

    I believe you use the function typeof()
    ie
    var myString:String = "test";
    trace(typeof(myString)); //should output string

  • Issue with Variable Substitution

    Hi,
    We have a scenario where we need to use the data from Payload for further processcing of the messeges.The payload looks like the one given below.
    <?xml version="1.0" encoding="utf-8" ?>
    - <ns1:MT_NOTIFICATION xmlns:ns1="http://WM_ERRHAND"   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    - <PROXYRESPONSE>
      <STATUS>YES</STATUS>
      <NAMESPACE>WM_INVOICE</NAMESPACE>
      <INTERFACENAME>MI_INVOICE_MOORE_ACK_IN</INTERFACENAME>
      <PROXYNAME>ZXIII_MI_INVOICE_MOORE_ACK_IN</PROXYNAME>
      </PROXYRESPONSE>
      </ns1:MT_NOTIFICATION>
    In adapter, for variable substitution we have specified as below:
    payload:MT_NOTIFICATION,1,PROXYRESPONSE,1,NAMESPACE,1
    but getting an error "Message processing failed: Error during variable substitution: java.text.ParseException: Variable 'namespace' not found in variable substitution table"
    Is the variable that we have declared is right or is there anything we have missed out. Any helpful answers will be rewarded
    Thanks and regards,
    Ram.

    Hi Ram,
    The substitution looks fine.
    Did you read this,
    <i>To disable the check the adapter performs for the element data, set the Disable Security Checks indicator.
    Otherwise, the adapter checks whether the element data contains characters that could lead to security risks in the file system environment. The check includes the characters “/“, “\“, and “..“.</i>
    Try seleting this option and checking the same.
    Regards,
    Bhavesh

  • Issue with Variable Personalisation in Bex Report

    Hi Gurus,
    I'm facing a typical problem with Variable presonalisation in the Report.
    I've executed a BEX Report and filtered data on some characteristics and used SAVE AS Button on the Portal to save the resultset. When I'm trying to use the variants, again say after  2 or 3 days i couldn't find updated data for particular variants upon using the same variants rather its refelecting the old data. Further more when I execute the report and try filtering on the same criteria altogether, I'm able to see updated result set.
    Is there any setting to be enabled when we personalise variants or variants are dependent on the data or the date on which they are created. Not sure why the reports are behaving this way. Or Do I need to create variants time and again.
    Any pointers would be of great help.
    Regard,
    Yaseen

    Hello,
    In the BEx report, when you get the variable selection screen there input your selection and at the bottom you have the option of saving them as a variant.
    Now in future when you run the report simply use this variant and execute the report. It should work fine.
    Also remember date selection can be tricky. If you input todays date in the variant, it wil consider the same date in further references. So do a check on that too.
    Regards,
    Shashank

  • How to assign a voided issued check to another payment document

    Hi All,
    My client issued a check to a vendor from wrong check lot. Now my client wants to reverse the payment document as well as the invoice. They want to use the same check information for another payment document for the same vendor.
    We tried voiding the check and resetting the voiding data and then tried to assign it to a different payment document in fch5 but system throws the following error "Next free number in check lot 001 is 500030".
    How can I rectify this error?
    Regards,
    Khudavand

    Hi,
    Think in the practical scenario once.
    Once you have given a cheque to someone and understand thats the wrong name, you void the cheque.
    Its cancelled. You can do whatever before giving it to him. Once given, you need to void and thats it.
    The same will happen in SAP too.
    Cheque once voided, its voided thats it.
    There is no scope of adding this to another vendor/another payment document for the same vendor.
    Caio
    Raghu

  • Issue with Variable Entry in BI 7.0

    Hi,
    I am having an issue with the variable entry in BI 7.0 Version. Here is a brief background.
    --- In BW 3.x, when we define a variable with <b>Single Value Option</b>, you can enter the value manually in the pop-up selection screen or select from the dropdown of possible values.
    ---But in 7.0 when i try to enter the value manually in the selection screen its opening the dropdown list, and is not giving me the option to enter a value manually. I am entering a valid single value in selection.
    Is this a bug or do i have to make any specific settings to correct my issue?

    When the selection screen pops up choose the KEY only function on the TOOLS on the top right corner of the screen. Then you will be able to enter the values manually.
    Hope this helps.

  • 5.0.1 update - battery issue - check usage/standby stats

    There might be more than one problem but i did find mine and fix it.  Check your usage and standby in general settings and if they are the same, then you have the same problem I had (they should not be the same).  If they are the same, that means your phone is never going in standby mode.  I fixed the problem with a complete reload.  I did not choose to restore from backup because I wanted to be %100 sure it was a fresh load of the software, so I setup as a new iphone.
    Background: I upgraded from v4 to v5.0.1 a few days ago and started having battery issues.  I went to the apple store and they did some diag test on my phone/battery and said everything checks out good.  They said my options were to buy a new battery or drain my existing batter to zero, let it set for two hours, then recharge to %100 again and see if it fixes my problem (it did not). The person at the apple store ask me if that sounded like a good plan, I said no, not really (does not make much sense), Im not buying a new battery, especially since you said mine checks out good, but i will try the recharge and see what happens.  So, I was back to square one and then a friend told me about the usage/standy thing. Maybe this is a bug in the software when you do the upgrade (or at least for me) and v5.0.1 works fine from a fresh install.  My phone battery is working great now.  Looking at my usage stats now, I have 1 hour, 19 minutes usage and 3 hours, 17 minutes standby, and %90 battery.

    Glad that a Restore as New resolved your issue...
    Backup and Set Up as New Device
    http://support.apple.com/kb/HT4137

  • Get-ChildItem Issue With Variable

    I hope some very clever person out there can resolve this without even thinking, however my brain seems to be blocked.
    $FileVersion
    = (Get-ChildItem
    C:\Windows\System32\drivers\somedriver.SYS).VersionInfo
    |
    Select-Object
    FileVersion
    If ($FileVersion
    -eq
    "2, 0, 0, 1") {Copy-Item
    -Force
    "C:\local\somedriver.SYS","C:\Windows\System32\drivers\somedriver.SYS"} 
    I have verified this and $FileVersion does in fact equal 2, 0, 0, 1 however starts as a formatted table.
    FileVersion
    2, 0, 0, 1
    I think it must be passing the variable as the whole table, I also tried adding in my if statement the value @{FileVersion=2, 0, 0, 1 however that also failed.
    Any ideas what I'm missing here?
    Many Thanks

    If the strings are not in the same format then the files are not the same.  Simple logic.  IF they are in the same format and compare exactly then the strings are identical.  Who cares what is in them?
    Comparing to equal will always work.  If they do not compare as equal you know the files are different.
    That is all. That is all I said.  No need to make more of it.
    ¯\_(ツ)_/¯
    You never answered how you're getting this string. Again, as I've said in more than one post now, if you're using .VersionInfo.FileVersion, that string is not accurate for a significant number of files (especially Microsoft files).
    You are correct when you say that if the strings don't match they're not the same. But you're forgetting that the strings may be the same and yet the file isn't the same. To me, that's a big deal. If you're cataloging file versions, your information could
    be incorrect.
    Here's a scenario:
    1. I check the 'mshtml.dll' VersionInfo.FileVersion today. It reports back that it is '11.00.9600.16410 (winblue_gdr.130923-1706)'.
    It is actually at version '11.0.9600.16476' (which can be confirmed by using Explorer or by combining the File*Part
    properties as in previous posts).
    2. An Internet Explorer patch comes along that updates the file to '11.0.9600.16482' (something higher than 16476)
    3. I check the version of the file again using the VersionInfo.FileVersion property. It reports back '11.00.9600.16410
    (winblue_gdr.130923-1706)', which is the same thing it showed before the patch. The file is obviously different, but the FileVersion property is reporting that it hasn't changed.
    So, if you're using that property, you will miss file changes on a significant number of files. 'mshtml.dll' is just one example. Go back and read my example to get a list of DLLs
    from system32 that are affected by this (remember, you will get some false positives).
    If you're combining the File*Part properties (which is what both Bill and I do), then the version will always be in a known format, and then all of the stuff you said about not being
    able to compare them is simply not correct.
    So, how are you proposing that someone gets a file's version from PowerShell?

  • Servicegen - Issue with Variable Names - WLS 8.1

    Hi Experts
    I am trying to expose an EJB as a Webservice.. I assembled the ear using SERVICEGEN exposed by Weblogic 8.1
    To my dismay the generated WSDL (even the web-services.xml) are not having the variable names which I gave in my webservice method. Instead I get String, String0, String1 and so on...
    Kindly help me get over this problem.
    Thanks and Regards,
    Gopal.

    your application miight not be using this libraries but there are many shared libraries which are configured could be using. please check whether config.xml file of your domain contains the entries for this library.Problem running simple portal tutorial question

  • Automator : issue with variable and path to folder

    I created a simple Automator Workflow with: A variable "Document Folder" and an action "Run shell script" with this command:
    "rsync -E -a -v -z --delete $@ /Volumes/MyBook/Backup/"
    I tested this command, It works very well in the terminal. But return me an error with Automator.
    "$@" is replaced by the Path when running, I guess my issue is that the content of the variable is " ~/Documents " . When it pass to the script it become "/Users/login/~/Documents".
    That can't works.
    A solution would be to put in the script the full path instead of "$@" but I would liketo understand why this error occur.
    Thanks.

    Automator actions return their results as a list of items. If you want your shell script to use the result of an action (for example Ask for Finder Items) as arguments, you need to set the Pass input: as arguments option, and place your statement in the for loop:
    for f in "$@"
    do
          /usr/bin/rsync -E -a -v -z --delete "$f" /Volumes/MyBook/Backup/
    done

Maybe you are looking for