Validating user entry in XML Webforms

Hi everybody!
I'm trying to validate user entries in an XML Webform.
I'm trying to validate an email address. Following http://help.sap.com/saphelp_nw04/helpdata/en/03/c10f41dd57f623e10000000a155106/content.htm I've referenced my input controls to schema elements.
I've selected String as data type and in <b>pattern</b> i put
\w([-.]\w)*@\w([-.]\w)*\.\w([-.]\w)([,;]\s\w([-.]\w)@\w([-.]\w)\.\w([-.]\w))
When i Save the form with a blank or invalid value nothing happens. Am I loosing something?
Thanks in advance,
Fede

Hi,
Is the user a portal user?  If so you could set in the properties (bottom right of XML forms builder) for it to be of type user.  You can then also in the properties get it to display the e-mail address rather than the username if you wish.
This is only valid for looking up portal users though.
Paul

Similar Messages

  • Validating user login using XML

    Hi,
    Given a set of user information in XML, is it possible
    to validate the user login without any front end login modules? Can we introduce a J2EE project with some helpers or listeners in such a way that whenever the URL is hit, the helper/listener takes the XML from request?And after extracting user info from XML, validating the same by interacting with UME?Can I get some suggestions in this ground? Thanks..

    Depends on how you are asking for input. For instance with a jtextfield, you create a plaindocument object and pass that into what component you want to have validation.... That a look at the api for reference...
    http://java.sun.com/j2se/1.3/docs/api/javax/swing/text/PlainDocument.html
    But, if all you want to do is convert a string to an integer try
    Integer.parseInt("12345");
    and check if that throws an exception...

  • Check user entry in Customer Exit Variable in i_step2

    Hi Folks,
    at the moment I'm facing a challenging problem. In an BW Query i have a Customer Exit defined as "not ready for Input" to catch the Variable in I_Step = 2 and fill by a certain algorithm. When i change the CE Variable to "Inputready", the user can enter values, but i have no chance to react on these values as i_step = 2 will not b reached during execution- And this behaviour is correct. BUT is there any chance to Check user entries in an Customer Exit variable and change this somehow in des code?
    Thanks for all replies.
    BR,
    Maik

    Hi there,
    It is possibel depending on what you wish to accomplish.
    You can create two variables for the same characteristic.
    The first is an input ready variable for the user to enter the data and the second is a not input ready variable CE where you can in step 2 process the data entered from the variable ready for input.
    You can than fill the CE variable with any data, but you will have the variable restricted by the two variables (the ready for input and the CE).
    But for validating you could throw an error message based on the variable input ready.
    Diogo.

  • TFS says {oldaccount} is not a member of the Team Foundation Valid Users group, but I am

    I'm trying to check in changes to TFS using VS2013. When I hit the submit button, TFS returns the following error, "TF14002: The identity {domain} \ {oldaccount} is not a member of the Team Foundation Valid Users group."
    Background: my account name has been changed to {newaccount} from {oldaccount}.  And when the sys-admins changed my account name they did not update my computer itself, so I'm still using C:\Users\{oldaccount}. I can't believe that would make a difference
    but you never know....
    When I first started working at this company I'm almost certain I set up my TFS Workspace with my old account. But I thought I deleted all that stuff related to my old account and reset everything to my new account (Workspaces and TFS server). My lead tech
    has even shown me the account mgmnt screen with my new account name. And I've been able to check out items with my new account name.
    I performed the following steps to try to "clean out" TFS:
    • I copied all of my changed files to a back-up location.
    • I undid all changes in TFS (note that TFS has been allowing me to check out files to edit).
    • I deleted the TFS entry in Credential Manager per a suggestion online.
    • I deleted my Workspace.
    • I even deleted my TFS server.
    • I Rebooted my computer.
    • I reconnected to the TFS server.
    • I rebuilt my Workspace.
    • I restored my changed files from my back-up location.
    At this point I tried checking-in my changes again but got the same error message as above.
    Next, I deleted everything in this folder:
    C:\Users\ ...\AppData\Local\Microsoft\Team Foundation\5.0\Cache
    ... but I'm still seeing the error.
    Also, we'd been informed that a number of us need to downgrade from "Ultimate" to "Professional".  I did my downgrade to VS2013 Pro (after the steps above) but I am still seeing the same error.
    A comment on another question
    here suggested that I shelve my changes without preserving changes locally, then un-shelve and attempt to check-in.  This also did not work, I could shelve my changes and un-shelve, but doing so did not fix the original problem.
    Note that I do NOT have access to the TFS server itself - much less permissions to perform any sort of admin on it (and I don't know the person who would) - but might there be a table in the TFS database that still has an entry for my old account that could
    be joining to my computer name &/or new account name when TFS goes to look up my account info when I check in my changes? I am getting desperate for an answer!
    Any suggestions?
    Thanks,
    D. Kelley

    Hi D. Kelley,
    Thanks for the details. Based on your description, you might need to change or update the SID for users. Try identity command to change the username if you never use the new username in TFS. Check this page for more information about
    identities command in this
    page.
    You can also check the table "tbl_Identity" in the tfs_configuration database to see if the new user exists, or it has the old user. Another option is have a check on other machines to see if it works fine. Refer to links below for more information:
    https://social.msdn.microsoft.com/Forums/en-US/93568425-a877-4d21-8497-1adc4561b6d3/unable-to-check-in-code-to-tfs-due-to-tf14002-the-identity-old-user-name-is-not-a-member-of-the?forum=tfsversioncontrol
    https://social.msdn.microsoft.com/Forums/en-US/acc56859-624f-41bc-b698-cbb5e0b8f525/cant-check-in-code-the-identity-devoldusername-is-not-a-member-of-the-team-foundation-valid?forum=tfsversioncontrol
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • MDT 0xc0000098 The windows boot configuration data file does not contain a valid OS entry

    hello,
    i installed WDS+MDT for OS deployment. all was working fine.
    Now i need our branch office to be able to deploy OS as well.
    I installed a new Win 2008R2 server, and installed the WDS service on it.
    When reading about this on the internet i saw i need, on the MDT at our main office, to make a link, under "Advanced Configuration" - "Linked Deployment Shares" to the new WDS server (I used this: http://www.balm.se/?p=115")
    when doing so i entered the UNC path to the new server and then, on the created link, i right click and choose "Replicate now".
    after doing so, i tried booting a laptop just to see if there is any impact, and now, I'm getting this error:
    Windows failed to start. A recent hardware or software change might be the cause. To fix the problem:
    1. insert your windows installation disk and restart your computer
    2. choose your language, and then click "Next"
    3. Click "Repair your computer"
    If you do not have this disc, contact your system administrator or computer manufacturer for assistance.
    File: \Boot\BCD
    Status: 0xc0000098
    Info: The windows Boot Configuration Data file does not contain a valid OS entry.
    I know that usually when I'm getting this message, it means that a previous MDT installation was started and did not finished correctly, and the are some [stuff] on the HD, so i do a partition erase and start over and all working fine.
    Now it's not working. I tried several computer, even new ones, and NADA.
    someone know the cause?
    I know I read something, i don't remember where or how to find it, that when doing the steps I did, it alter\change some ini or xml, or something like this. is that true? any one know on what file do i need to look and see if something is misconfigured?
    thanks a lot for your help

    hello,
    i installed WDS+MDT for OS deployment. all was working fine.
    Now i need our branch office to be able to deploy OS as well.
    I installed a new Win 2008R2 server, and installed the WDS service on it.
    When reading about this on the internet i saw i need, on the MDT at our main office, to make a link, under "Advanced Configuration" - "Linked Deployment Shares" to the new WDS server (I used this: http://www.balm.se/?p=115")
    when doing so i entered the UNC path to the new server and then, on the created link, i right click and choose "Replicate now".
    after doing so, i tried booting a laptop just to see if there is any impact, and now, I'm getting this error:
    Windows failed to start. A recent hardware or software change might be the cause. To fix the problem:
    1. insert your windows installation disk and restart your computer
    2. choose your language, and then click "Next"
    3. Click "Repair your computer"
    If you do not have this disc, contact your system administrator or computer manufacturer for assistance.
    File: \Boot\BCD
    Status: 0xc0000098
    Info: The windows Boot Configuration Data file does not contain a valid OS entry.
    I know that usually when I'm getting this message, it means that a previous MDT installation was started and did not finished correctly, and the are some [stuff] on the HD, so i do a partition erase and start over and all working fine.
    Now it's not working. I tried several computer, even new ones, and NADA.
    someone know the cause?
    I know I read something, i don't remember where or how to find it, that when doing the steps I did, it alter\change some ini or xml, or something like this. is that true? any one know on what file do i need to look and see if something is misconfigured?
    thanks a lot for your help
    For a branch solution I would use DFS(R) rather than linked deploymentshares.
    If there is infrastructure at the remote sites you could use the MDT environment at your main site, and  then at each other site use an existing server or build a new server (VM is available). Create a Deploymentshare on each sever
    and copy the contents of the MDT environment from the first site into this share.  Next you will have to add the WDS service to each site's server. For WDS add the boot image. Of course as Keith noted ensure that you
    have the same versions of MDT and the WAIK/ADK on all systems
    You can use DFS to replicate to all of the other sites, but you will still have to create a deploymentshare, and install WDS at each site. So each site talks to its own WDS server you can use the DefaultGateway parameter instead -
    [Settings]
    Priority=Default, DefaultGateway
    [Default]
    SkipBDDWelcome=YES
    [DefaultGateway]
    192.168.10.1=Bergen
    192.168.20.1=Oslo
    [Bergen]
    DeployRoot=\\MDT-Bergen\DeploymentShare$
    [Oslo]
    DeployRoot=\\MDT-Oslo\DeploymentShare$
    If this post is helpful please click "Mark for answer", thanks! Kind regards

  • SOA EM down after password change - OracleSystemUser is not a valid user principal in the current security realm

    Hello,
    I've got a SOA Suite development environment set up and whilst trying to change the weblogic password using this tutorial a problem arose with my soa managed server.
    Firstly I was unable to start the Managed SOA server due to mismatching passwords, and after I modified the boot.properties file, now I cant start the usermessagingserver and soa_infra applications due to the following error:
    Error 1
    Getting weblogic deployment manager.
    Got weblogic deployment manager.
    Invoking Start Up operation.
    Start Up operation for application usermessagingserver on target soa_server1 RUNNING.
    Start Up operation for application usermessagingserver on target soa_server1 FAILED.
    weblogic.application.ModuleException: Exception preparing module: EJBModule(sdpmessagingclient-ejb-parlayx.jar)
    Unable to deploy EJB: MessagingClientParlayX from sdpmessagingclient-ejb-parlayx.jar:
    The run-as security principal, 'OracleSystemUser', chosen for the EJB 'MessagingClientParlayX(Application: usermessagingserver, EJBComponent: sdpmessagingclient-ejb-parlayx.jar)' is not a valid user principal in the current security realm. Please specify a valid user principal for the EJB to use.
    Getting weblogic deployment manager.
    Got weblogic deployment manager.
    Invoking Start Up operation.
    Start Up operation for application soa-infra on target soa_server1 RUNNING.
    Start Up operation for application soa-infra on target soa_server1 FAILED.
    weblogic.application.ModuleException: Exception preparing module: EJBModule(hw_services_wls_ejb.jar)
    Unable to deploy EJB: ASNSInteraction from hw_services_wls_ejb.jar:
    The run-as security principal, 'OracleSystemUser', chosen for the EJB 'ASNSInteraction(Application: soa-infra, EJBComponent: hw_services_wls_ejb.jar)' is not a valid user principal in the current security realm. Please specify a valid user principal for the EJB to use.
    I've checked both weblogic and OracleSystemUser users and their groups are (respectfully) Administrators and OracleSystemGroup.
    I've searched for an answer to this problem and found this other support article but couldn't resolve the issue.
    The weblogic server version is 10.3.2.0 and it's running on RedHat Linux.

    @Sri_Sonti
    In the Admin Console, I can see both users in the security realm with the following configs:
    weblogic:
    all atributes with the "value" column blank
    groups: Administrators
    OracleSystemUser
    all atributes with the "value" column blank
    groups: OracleSystemGroup
    Also I have not found the system-jazn-data.xml file you mentioned. In that folder there's only a readme.txt file.
    Best Regards,
    luismcs
    Enter Cookie as format:
    (ex: name=val;) separate with ';'
    OKCancel

  • Validating user input in VC using javascript

    Hi All,
    I'm exploring possible solutions for validating user input and reporting error messages back to the screen for users to correct their entries. It was mentioned in one of the threads that this can be done using javascript..
    can the source code in VC be edited?? Can anyone give me pointers on how to achieve this and where to incorportate the javascript function for validation? Thanks!
    cheers
    Prachi

    Hi
    Please go through the following links :-
    Alpha-Numeric Validations
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/vc/norecordsreturnedshalldisplayalternatemessage&
    Cheers
    Navneet

  • AP Aging report - key date for user entry

    Hi All,
    We have a requirement to calculate aging buckets like 0-30,31-60,61-90...etc.
    I know the key date for this report is created on net due date in SAP standard report.
    In standard SAP report , key date is always a system date(SY-DATUM).
    What we need for this report is , we need to get all the invoices which are outstanding as of that date(the date which user enters).
    If user enters today's date(08/28/07) , he should get all the invoices outstanding till that date in aging buckets and if user enters some date in the past like 07/26/07, he should get all the invoices outstanding as of that date.
    Can  someone Pls tell me if aging buckets are calculated based on a user entry ?
    Regards,
    Kumar

    Hi Voodi,
    Aging in the standard report is being calculated like below...
    1.For open items
    Posting date<key date
    Item status = O
    2.Posting date < keydate and clearing date > key date and net due date with offsets on keydate ( key date + 1 - keydate+30 --- for 1-30 days) like wise for all aging buckets.
    in this scenarion , key date is always system date ie today's date.
    But user wants to get all the invoices based on his user entry...
    is this possible with the same standard key date variable or do we need implement any other logic???
    Regards,
    Kumar

  • PXE problem - \boot\BCD 0x0000098 does not contain a valid OS entry

    I am setting up PXE on my SCCM 2012 server.  I have a seperate DHCP server running WDS(unconfigured).  I have DHCP option 66 and 67 set  (\boot\x86\wdsnbp.com).
    I have PXE configured to recognize unknown computers.  The deployment assigned to the unknown computers collection.  And confirmed that the boot images are on the distribution point (only 1 distribution point in enviroment).  I do not have
    a SMSPXE.log on sccm server if that is any indication of anything.
    My workstation boots PXE, I hit F12 and it sees the PXE server.
    I get a b/w screen...
    Windows boot Manager (Server IP : <IP of SCCM box> )
    Windows has failed to start. A recent hardware or software change might be the cause. To fix the problem:
    1. Insert your windows installation disc and restart your computer
    2. Choose your language settings, and then click "Next."
    3.  Click "Repair your computer."
    If you do not have this disk, contact your system administrator or your computer
    manufactuer for assistance.
    File: \Boot\BCD
    Status : 0x0000098
    Info: The Windows Boot Configuration Data file does not contain a valid OS entry.
    Any suggestions to what might be the issue?
    Thanks,
    Kubie

    Unfortunately I am in exactly the same situation but under slightly different circumstances.
    We recently took delivery of 10 new systems, whilst developing a new/updated answer file the first two machines used have now developed this fault. They have been re-imaged several times, roughtly on its fouth deplyment the local machine entered this state
    and we cant seem to get rid.
    However any new system that hasn’t been used already is deploying correctly.
    Ideas?
    DHCP is MS / options:
    066 Boot Server host Name: [FQDN name of the WDS server]
    067 Bootfile Name: \boot\x86\wdsnbp.com  (the systems and boot file we wish to use are x64)
    FYI:
    WDS is on same LAN subnet.
    WDS is Win 2008 R2
    - StatoLNL
    On the 'broken' systems, try booting from USB media and then from a command prompt run diskpart and clean the disk.  Then power off and try PXE again.  I believe the clue is in the error message that the BCD store is kaput.
    Andy
    My Personal Blog: http://madluka.wordpress.com

  • User entry in a query

    Hi All,
    I have a  query wherein I want to have a user entry but do not want the query result to be affected by it.
    The details of the query are such that in this query I am calculating Sales actuals by posting period (selecting constant months to make a quarter) and sales commitment  by a normal characteristic Fiscal quarter.
    Is it possible that I have a user entry for quarter and have that quarter (selected by the user) displayed in the query but at the same time display the entire data of the query?
    Please advise.
    Thanks and warm regards,
    Sharmishtha

    Hi Anil,
    In rows I have CGL Branch (user netry/multiple values), organizational division(zdivision/user entry) and sales district. In th columns I have Previous to previous year's sales(SALDR NOTECASH restricted with fiscal year/ user entry variable with offset -2) similarly I have previous year's sales. Then I have current year's Q4 sales. For this I have restricted the same key figure with fiscal year/user entry and posting period=jan,feb,mar). This is because ZBDMIS1 does not have ZFIQUART1(fiscal quarter). Then similarly I have to calculate for all the quarters of the current year. Alongside I also have to calculate the commitments for all the quarters. For this I created a cube in which I included ZFIQUART1 (and loaded thru flat file), as customer will give data in quarter. Finally I made query on the multiprovider. Now, in the query I created a new selection for commitment of Q1 and restricted Sales Commitment Value with fiscal quarter = quarter1 and similarly for all quarters.
    But the values of the Sales Commitment val is not coming at all.
    Also I wanted to put quarter as user entry. (just as a display of the selected quarter in columns, we don't want it to filter the data)
    Thanks and warm regards,
    Sharmishtha

  • Start up error message - Entry point xml TextReaderConstName could not be located in the dynamic link library libxm12.dll.  Happened after Itunes up date I think. Have tried uninstalling and installing nothing works.  Help please

    At start up I get the error message - The procedure entry point xml TextReaderConstName could not be located in the dynamic link library libxm12.dll.  I have uninstalled it and reinstalled but it does not fix the problem.  Happened after Itunes update I think.

    It's a simple fix and doesn't involve reinstalling anything.
    With Windows Explorer, navigate to your C:\Program Files\Common Files\Apple\Apple Application Support folder.
    Copy the libxml2.dll that you should find there, navigate to the nearby Mobile Device Support folder, and Paste it in there also.
    Restart the programme all should be well
    In case that your OS is (64 bit)
    1. Open windows explorer, go to location C:\Program Files (x86)\Common Files\Apple\Apple Application Support
    2. Copy file "libxml2.dll"
    3. Open new windows explorer, to to location C:\Program Files (x86)\Common Files\Apple\Mobile Device Support
    4. Paste file "libxml2.dll" to the location.
    5. Restart the programme, it should not display that message, it should be clear.
    Good Luck

  • Current date as deafult for Calender Day and user entry

    Hello All,
    There is a select option for Calender Day for a BW query.
    This Calender Day should have a default as Current Date and User entry is also possible.
    I have used a Customer exit and written the following code under i_step = 1
    data: v_currdt like sy-datum.
    clear: v_currdt, vfl_range.
             if i_step = 1.
              vfl_range-sign = 'I'.
              vfl_range-opt = 'EQ'.
              v_currdt = sy-datum.
              vfl_range-low = v_currdt.
              append vfl_range to e_t_range.
             endif.
    Please inform if this code is incorrect, because I am not able to see the date at all.
    Cheers,
    KP

    Hi
    Check with this code!
    Implemented for the same function as you require.-
    if i_step = 1.
      case i_vname.
        WHEN 'ZZZZZZ'.
          IF i_step = 1.
            REFRESH e_t_range.
            CLEAR l_s_range.
            l_date1 = sy-datum.
            L_S_RANGE-LOW = l_date1.
            L_S_RANGE-SIGN = 'I'.
            L_S_RANGE-OPT  = 'EQ'.
            APPEND L_S_RANGE  TO E_T_RANGE.
          endif.
      endcase.
    endif.
    Regards
    M.A

  • How to Create a Button for Reader Users to Save XML Data File?

    The "Submit via Email" tries to launching the local email software, like outlook express. But public computer tends to use internet emails.
    I am thinking of creating a button, allowing the reader users to save xml data filled in the form (same as the "submit via email" produces) somewhere.
    anyone has a clue?
    Thanks a lot!

    You could create the shortcut at one machine, then copy it to the target as part of the logon script. Note also that this line contains an error:
    "C:\Users\%userprofile%\Desktop\Org_chart_test.lnk"
    It should read:
    "%userprofile%\Desktop\Org_chart_test.lnk"

  • How do we handle User exits in XML Publisher

    Hi,
    Can anyone tell me how do we handle user exits in XML Publisher ?
    Thanks,
    Kiran.

    Do tyou mean the original Oracle Reports user exits ?
    If so then the flexfield ones are handled in the data template, check the user guide. Format currency should be called in the template layer. You do not need srw.init with data templates.
    Regards, Tim

  • User entry variable with exclude values

    Hello All,
    I created a  user entry/ default value variable, which allows multiple single values and is optional entry. And I also got to exclude few values from this infoobject as well as have a variable.  When I select and exclude my value from selsction and run the report, I get a system error and the varibale is converted to mandatory entry. The detail error message is displayed below.  Any useful input will be awarded
    Diagnosis
    Variable &V1& is used in the query in such a way, that an optional entry is not possible.
    For example, you might be using an "Exclude", or the variable might be connected using OR to additional selections for &V2& in the global filter, but is still displayed in the columns selections.
    It is also not possible to use an optional parameter variable to fill an interval selection in either the from-field or the to-field.
    System response
    Procedure
    If you are able to accept the mandatory entry, you need not do anything. Otherwise you must work with several variables in the query. You can use an optional interval variable to do this.
    Procedure for System Administration

    Hello ,
    I did try creating a variable with the foll details:
    Variable Type : User Entry / Default Value
    Variable Represents : Multiple Single values
    Variable entry optional
    When I run the query it converts my variable to mandotary entry.  but I want to have optional user entry variable.
    Any help will be awarded

Maybe you are looking for

  • EXPORT TO JPEG WITH UNIQUE BOOKMARK AS FILENAME

    I have a fifty page document and each page is bookmarked with a unique name. I'd like to export each page as a jpeg and have the resulting jpeg filenames reflect their corresponding bookmark name. By default, acrobat saves each file with master docum

  • How do I copy a non-protected home made DVD to my iMac?

    Hello - My daughter's camp musical was burned to DVD and I want to rip it to my iMac.  It is NOT copyright protected. I tried to make a disk image with disk utility but I must have used it incorrectly because I can't figure out how to play it.  Can s

  • Static when turning up or down volume on Klipsch 2.1

    just hooked up my "Klipsch 2.1" speakers on my iMac (late '13).  I used these on my mid '11 mac mini with no problem.  but so far I've tried listening to K-Love radio and I'm getting static when I turn the volume up or down.  I've tried turning down

  • Calling One program from another

    I've two java programs V1.java and v2.java. One button is placed in V1 and when I click on that I need to invok v2. In the actionListener event, I've added the code that when the button is clicked I'm creating the new instance of v2. v2 v=new v2(); B

  • Updating EABL table

    Hi , Is there a function module to update EABL table automatically.i have tried to update it with ISU_DB_EABL_UPDATE , however the records are not updating the table as a result. Warm regards, Thank you.