Script validation

a)I need to check the date validation in javascript.i.e from-date should be less than to-date...both from-date and to-date should be in the format MM/DD/YYYY format.
b)i want to check the date difference is comes under catagories of
i)Daily(from-date and to-date difference is one day)
ii)Weekly(from-date and to-date difference is seven days)
iii)Monthly(from-date and to-date difference is thirty days)
iv)Semi-Annually(from-date and to-date difference is 180 days)
v)Annually(from-date and to-date difference is 360 days)

So maybe you should ask this question on a javascript forum and not a java one?

Similar Messages

  • Requesting guidance on how best to deal with removal of CreateElementSteps for tables when option to 'script validation for new constraints' is enabled during schema compare

    I have a DeploymentPlanModifer subclass that is responsible for removing certain tables from a deployment plan under specific conditions. It is relatively trivial to find the
    CreateElementSteps I need and subsequently remove them via
    DeploymentPlanModifier.Remove(), but...
    ... if in my comparison I have enabled the 'Script validation for new constraints' option, the deployment plan will contain a
    DeploymentScriptDomStep with a Batch containing AlterTableConstraintModificationStatements for tables with foreign key constraints. My problem starts here - there will be an orphaned
    AlterTableConstraintModificationStatement for each of the tables that I removed. Obviously, execution of the generated script comes to a grinding halt when asking SQL Server to to alter a table that is never created.
    I'm able to get around this by digging around in the aforementioned batches and removing the orphaned alter statements, but this seems really hacky, which makes me think I'm missing the proper way of dealing with this.
    So... if anyone is aware of a more correct way of avoiding this problem, I would really appreciate finding out more about it.
    Thanks in advance for any help. :-)

    Hi Greg. Unfortunately there is not an easy solution here. Walking the deployment model, spotting potential issues and excluding them really is what you have as an option here. The alternative is to pre-process the dacpac to have it in the form you want,
    but I'm not sure if this is an option in your case and it also has limitations.
    Regards,
    Kevin

  • XML Validation using java for SQL Injection and script validation

    I have an input coming from xml file.
    I have to read that input and validate the input against sql injections and scripts.
    I require help now how to read this xml data and validate against the above two options.
    I am a java developer.
    in this context what is marshelling?

    http://www.ibm.com/developerworks/library/x-javaxmlvalidapi.html?ca=dgr-lnxw07Java-XML-Val
    http://java.sun.com/j2se/1.5.0/docs/api/javax/xml/validation/package-summary.html
    The following code validates the xml against a xml schema
    // define the type of schema - we use W3C:
    String schemaLang = "http://www.w3.org/2001/XMLSchema";
    SchemaFactory factory = SchemaFactory.newInstance(schemaLang);
    Schema schema = factory.newSchema(new StreamSource("sample.xsd"));
    Validator validator = schema.newValidator();
    // at last perform validation:
    validator.validate(new StreamSource("sample.xml"));Message was edited by:
    haishai

  • Script/validation question

    I have a form with fields called mileage and time, if the person filling in the form misses the field time, and enters a number into the field time, I want a message to pop up saying they need to first enter their mileage (up to 100.0).
    I know how to check for the range and make the totals equal no more than the allowed maximums, but I don't know how to make one field dependant on another field.
    Suggestions?
    Thanks.

    Thankyou, that works very well. So now I have tried the same script on another field, like this -
    if (NumericField1.rawValue>3 || NumericField3.rawValue>2 || NumericField5.rawValue>100) {
    false;
    } else {
    true;
    My intent is to have a field that is optional to begin with become required if any of those 3 fields above have a number greater than the ones shown above. Just for sh#@% & giggles I tried with true; and false; reversed.
    But once again, get no response, like it is just ignored (in Preview). I did open Acrobat Pro and check the Preferences/Javascript section, checked the boxes for all the debugger stuff. When I open the doc in Acrobat it gives no errors.

  • Script validation in Jsp page

    We have used the following code snippet in my Jsp page.
    window.onbeforeunload = function (evt)
                             var message = 'Waring message';
                             if (typeof evt == 'undefined')
                                  evt = window.event;
                             if (evt && (evt.clientX <0 || evt.clientY <0)) {
                                  return message;
    We introduced this code when the user navigates to other screen without saving current change we wanted to give warning message.
    This is working when the user click back,refresh,front butons and entering new URL in address bar.
    Below address bar we are having menu link(Link Sun forums link avilable below address bar).If the user clicks new menu this event is not capured.Becuase of that we are not getting warning message. Please let me know how to capture that event too..
    Thanks,
    Sujeeth

    As Balus stated, this is not the right forum:)
    You should read about javascript and html, but I'll try to explain very quickly
    1) window is the object representing the page loaded
    2) it has some default event handler, and in javascript you have the right to overwrite them, as you are doing
    3) to bind event handler, in general, you should retrieve a reference to the object in javascript, and then add an event listener. There are some cross-browser compatibilities for that and i suggest you to use Yahoo UI libraries to work that out:)
    Best Regards
    edmondo

  • Validation for saving values in jsp--is validation compulsory?

    Hi all,
    in my application there is a jsp which uses a pagebean.
    now i added somemore attributes to the pagebean and included them in the jsp as well.
    there is javascript validation for the previous attributes.
    the values can be modified and should be saved to the db2 database on cliking the modify botton.
    my question is do i need to include java script validation for the new attributes that i added to the pagebean and jsp to get modified and stored to the database?
    or can i modify and save the new values without validation?
    is validation compulsory?
    your reply is very imp to me friends
    cheers and thanks in advance

    well, validation in general isn't required, but if some bad value is entered and not otherwise checked for, you could get errors.
    and if you use validation at all, then the server-side validation will always run even if the JS validation runs or not.

  • Pdf live cycle  form through sap abap editor to validate user input by java script coding

    I am new to apply a java script in a Adobe form.
    So i need of help that i have 9 page form of HR module i need to verify every blank field and wrong entry field also.
    I look around a lot of code but still i am not able to perform good validation in a Adobe form.
    I am using SAP ABAP editor where i am making through PDF Live cycle FORM & try to put java script validation on the field.
    My problem is that how can i link or configured to Adobe form.
    Here are some event are given "mouseup","validate" or more are given.So how i can do.
    i wrote the code like
    / Get the field value
    var f1 = this.getField("VORNA");----why it is not working.Some thing is wrong?
    var v1 = f1.valueAsString;
    if (v1) {
    } else {
       app.alert("Field: " + f1.name + " is blank.", 1);
    //above code is not working.
    but here we used rawValue() method it works , but it popup message  javascript with window error.
    if( this.rawValue()==' ' || this.rawValue==null)---------this works
    xfa.host.MessageBox("First name is blank!");---------this works
    "VORNA" is "First name" field name binding with this value.
    How we can linked java script file with Adobe form.
    Kindly help me

    You're mixing code for an acroform with code for an XFA form. SInce you're creating the form with LiveCycle Designer, it wold be better if you posted this to the LiveCycle Designer forum, if you haven't already.

  • Pdf live form through sap abap editor to validate user input by java script coding

    I am new to apply a java script in a Adobe form.
    So i need of help that i have 9 page form of HR module i need to verify every blank field and wrong entry field also.
    I look around a lot of code but still i am not able to perform good validation in a Adobe form.
    I am using SAP ABAP editor where i am making through PDF Live cycle FORM & try to put java script validation on the field.
    My problem is that how can i link or configured to Adobe form.
    Here are some event are given "mouseup","validate" or more are given.So how i can do.
    i wrote the code like
    / Get the field value
    var f1 = this.getField("VORNA");----why it is not working.Some thing is wrong?
    var v1 = f1.valueAsString;
    if (v1) {
    } else {
       app.alert("Field: " + f1.name + " is blank.", 1);
    //above code is not working.
    but here we used rawValue() method it works , but it popup message  javascript with window error.
    if( this.rawValue()==' ' || this.rawValue==null)---------this works
    xfa.host.MessageBox("First name is blank!");---------this works
    "VORNA" is "First name" field name binding with this value.
    How we can linked java script file with Adobe form.
    Kindly help me.

    You're mixing code for an acroform with code for an XFA form. SInce you're creating the form with LiveCycle Designer, it wold be better if you posted this to the LiveCycle Designer forum, if you haven't already.

  • Unity Express 8.6 custom script not working properly

    Hello!
    I'm having an issue with a custom auto-attendant script for Unity Express 8.6.6.
    A brief overview of the expected call flow:
    Call comes to 2600, which is set to forward to 2699 if busy or no answer.
    Call to 2699 is sent to CUE, which is set to answer with the auto-attendant script.
    Script does a time-and-day check to determine if the site is within business hours.
    If within business hours, a prompt stating line is currently busy, please leave a message is played, and call is forwarded to 2601.
    If outside business hours, a prompt stating office is closed is played, and call is forwarded to 2601.
    Calls to 2601 are all forwarded to voicemail.
    My first version had a Business Hours object, with a schedule parameter set so that the schedule could be chosen in the CUE GUI. This script did not appear to work properly, as the AfterHours option was always selected by the script. My current version removed this object and replaced it with manual Time-and-Day objects, but the same behavior as above occurs – the AfterHours option is always selected.
    Both scripts validated in the editor, and the CUE has been rebooted since the script was first uploaded. TAC validated that nothing in the "show run" is causing CUE to ignore the time-and-day checks. I've attached a ZIP file that contains the scripts, "show software version" and "show license status application" output.
    Am I missing anything?

    I read through the document, and it says that the atrace.log file that is generated is not cleartext. Is there any application I can use to read the traces I generate?
    EDIT: Apologies, it appears this documentation needs to be rewritten. I was looking at the process to enable traces on an AIM module, when our Unity Express module is on an Internal Services Module 300. I issued "show trace buffer trail" and placed a test call, and this is what I see:
    3700 05/25 14:26:12.254 ACCN APMG 0 EXECUTING_STEP:Executing a step: Application=App[name=autoattendant,type=Cisco Script Application,id=1,desc=autoattendant,enabled=true,max=2,valid=true,cfg=[ApplicationConfig[,name=autoattendant,id=1,type=Cisco Script Application.description=autoattendant,enabled=true,sessions=2,script=SCRIPT[aa_vtgnwd.aef],access=0,privilege=1,script=SCRIPT[aa_vtgnwd.aef]]]],Task id=19000000034,Step id=188,Step Class=com.cisco.wfframework.steps.core.StepComment,Step Description= /* Open/Closed check */
    3700 05/25 14:26:12.255 ACCN ENGN 0 Execute step of Task 19000000034 :  /* Open/Closed check */
    3700 05/25 14:26:12.255 ACCN APMG 0 EXECUTING_STEP:Executing a step: Application=App[name=autoattendant,type=Cisco Script Application,id=1,desc=autoattendant,enabled=true,max=2,valid=true,cfg=[ApplicationConfig[,name=autoattendant,id=1,type=Cisco Script Application.description=autoattendant,enabled=true,sessions=2,script=SCRIPT[aa_vtgnwd.aef],access=0,privilege=1,script=SCRIPT[aa_vtgnwd.aef]]]],Task id=19000000034,Step id=261,Step Class=com.cisco.wf.steps.ivr.DayOfWeekStep,Step Description=Day of Week
    3700 05/25 14:26:12.255 ACCN ENGN 0 Execute step of Task 19000000034 : Day of Week
    3700 05/25 14:26:12.255 ACCN APMG 0 EXECUTING_STEP:Executing a step: Application=App[name=autoattendant,type=Cisco Script Application,id=1,desc=autoattendant,enabled=true,max=2,valid=true,cfg=[ApplicationConfig[,name=autoattendant,id=1,type=Cisco Script Application.description=autoattendant,enabled=true,sessions=2,script=SCRIPT[aa_vtgnwd.aef],access=0,privilege=1,script=SCRIPT[aa_vtgnwd.aef]]]],Task id=19000000034,Step id=275,Step Class=com.cisco.wfframework.steps.core.StepGoto,Step Description=Goto AfterHours
    3700 05/25 14:26:12.255 ACCN ENGN 0 Execute step of Task 19000000034 : Goto AfterHours
    3700 05/25 14:26:12.256 ACCN APMG 0 EXECUTING_STEP:Executing a step: Application=App[name=autoattendant,type=Cisco Script Application,id=1,desc=autoattendant,enabled=true,max=2,valid=true,cfg=[ApplicationConfig[,name=autoattendant,id=1,type=Cisco Script Application.description=autoattendant,enabled=true,sessions=2,script=SCRIPT[aa_vtgnwd.aef],access=0,privilege=1,script=SCRIPT[aa_vtgnwd.aef]]]],Task id=19000000034,Step id=37,Step Class=com.cisco.wfframework.steps.core.StepLabel,Step Description=AfterHours:
    3700 05/25 14:26:12.256 ACCN ENGN 0 Execute step of Task 19000000034 : AfterHours:
    3700 05/25 14:26:12.256 ACCN APMG 0 EXECUTING_STEP:Executing a step: Application=App[name=autoattendant,type=Cisco Script Application,id=1,desc=autoattendant,enabled=true,max=2,valid=true,cfg=[ApplicationConfig[,name=autoattendant,id=1,type=Cisco Script Application.description=autoattendant,enabled=true,sessions=2,script=SCRIPT[aa_vtgnwd.aef],access=0,privilege=1,script=SCRIPT[aa_vtgnwd.aef]]]],Task id=19000000034,Step id=228,Step Class=com.cisco.wfframework.steps.core.StepComment,Step Description= /* Play VTG_Closed prompt ... */
    3700 05/25 14:26:12.256 ACCN ENGN 0 Execute step of Task 19000000034 :  /* Play VTG_Closed prompt ... */
    3700 05/25 14:26:12.256 ACCN APMG 0 EXECUTING_STEP:Executing a step: Application=App[name=autoattendant,type=Cisco Script Application,id=1,desc=autoattendant,enabled=true,max=2,valid=true,cfg=[ApplicationConfig[,name=autoattendant,id=1,type=Cisco Script Application.description=autoattendant,enabled=true,sessions=2,script=SCRIPT[aa_vtgnwd.aef],access=0,privilege=1,script=SCRIPT[aa_vtgnwd.aef]]]],Task id=19000000034,Step id=214,Step Class=com.cisco.wf.steps.ivr.OutputStep,Step Description=Play Prompt (--Triggering Contact--, pAfterHours)
    3700 05/25 14:26:12.256 ACCN ENGN 0 Execute step of Task 19000000034 : Play Prompt (--Triggering Contact--, pAfterHours)
    It appears as though the script engine is seeing the Day of Week object, acknowledging it without somehow doing anything with it, and then choosing a "goto AfterHours" step within that object and playing that prompt, which is consistent with the behavior we're seeing.
    Any thoughts? 

  • Pagebean -saving-validation

    Hi all,
    in my application there is a jsp which uses a pagebean.
    now i added somemore attributes to the pagebean and included them in the jsp as well.
    there is javascript validation for the previous attributes.
    the values can be modified and should be saved to the db2 database on cliking the modify botton.
    my question is do i need to include java script validation for the new attributes that i added to the pagebean and jsp to get modified and stored to the database?
    or can i modify and save the new values without validation?
    is validation compulsory?
    your reply is very imp to me friends
    cheers and thanks in advance

    Validation of data before it goes to the database.
    Why not check with your lead and see what your copany's business rules require?
    There may not be any data police at your location to come down and beat you severely for storing garbage, but generally speaking: only data that has been scrubbed and validated to the best ability available should be stored in the DB.

  • Mixing javascript & php validation

    I have been wrestling with the idea of processing and
    validating a page (form) within a single script and I'm still
    struggling with it. The source of my problem lies in the code
    Dreamweaver creates if you use the 'validate on Submit' behaviour.
    The javascript will do some basic validation via a function
    called MM_validateForm and return the result via
    'document.MM_returnValue'.
    This function is associated with the 'submit' button
    (onclick) so I can see how we validate, display errors, and check
    to see when we come back through the routine, if we've been here
    before (if (!$_POST['submit']) etc) but I can't see:
    i) What is re-displaying the calling routine in the event of
    an error - i.e. why is the page looping around when an error is
    found? I guess something in the 'onclick' is somehow interpreting
    the validity of the page and redirecting back around when there are
    problems but I can't what is driving this.
    ii) How I can expand the javascript routine with my own php
    code (I'm guessing I can't just add in php code to the function
    that Dreamweaver has written) to say, verify logon details against
    the db. If we go back around I can add in some extra code that will
    be executed on submit but if I get an error in my code, how do I
    convey that to the 'onclick' to take me back around again - the
    javascript function is in there already ... D'oh!
    Are you with me? ...... is there anybody there ....
    Thanks.
    P.

    If the form fails client-side validation, it never submits.
    When it
    submits, it will submit to a destination -
    <form action="destination"...
    That destination can be the form page itself, or it can be a
    form processing
    script on another page. That's where the server side
    validation kicks in.
    For example, if the form submits to itself, you put some
    scripting in the
    head of that page that tests to see if the form has been
    submitted, e.g., in
    PHP that would be -
    if(isset($_POST)) {
    server validation goes here
    If the form is submitting to another page, then obviously,
    you don't have to
    do this check.
    Make sense?
    One good reason why you'd want the form to submit to itself,
    would be If it
    fails the server scripted validation, then you would just let
    the form
    re-draw, but populate the fields with the data contained in
    the $_POST
    array, so that the user could make corrections more easily.
    Of course, you
    can set a variable describing the error(s) this way, and
    display them on the
    page as well.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "patricktr" <[email protected]> wrote in
    message
    news:[email protected]...
    > Hi Murray,
    >
    > I've been playing around with this to try and make sense
    of it so maybe I
    > took
    > it off the 'onsubmit' and put it on the 'onclick' - the
    point is how when
    > you've told it to validate at client level with the
    javascript do you then
    > tell
    > it to validate at the server level?
    >
    > I'm obviously not making myself clear or it's so
    blindingly obvious you
    > can't
    > understand what my problem is but I'll try again...
    >
    > Somehow or other when the javascript finishes the system
    knows there are
    > problems and display a pop-up and forces us back around
    the form loop
    > again.
    >
    > I can add in extra php code (if $_POST(SUBMIT...) that
    will do more
    > rigourous
    > validation at the server level (db checks etc) but how
    can I get it to
    > loop
    > back around and re-present itself? If I use 'header
    )location ... ' I
    > can't
    > seem to find a place where it happy to be re-directed -
    there is header
    > info
    > in a non-editable place brought on from a template (I
    didn't say that
    > befpore I
    > must admit) ....
    >
    > I'm sure this should be easy but .....
    >
    > P.
    >
    >
    >

  • Validation Entity Manipulation

    Does anyone have the code or know how this was done (See below)? I found it in a presentation that Pfizer did a few years ago at the Hyperion Conference. I can't figure out how you can manipulate the validation entities from fdm code.
    Any ideas?
    Greatly Appreciated,
    Mike
    PS The full presention can be found at: http://www.finitsolutions.com/docs/Presentation-ComplexDataSubmission.pdf
    Event Scripts – Validation
    Entities
    �� The Validation Entities groups inside Hyperion FDM control the
    entities that should be force calculated (optional), force translated
    (optional) or consolidated inside HFM after the data has been
    loaded. It is also used to display entities on the FDM Check
    Report.
    �� Out of the box, entities need to be specifically hard coded into the
    Validation entity group table. With such a large number of
    locations, Pfizer would have to spend a lot of time updating these.
    �� A script was developed in the AftLoad event to dynamically build
    the Validation Entity table based upon the entities that were
    loaded to HFM. The AftLoad event runs after the data is loaded
    into HFM. The admin’s never needs to touch the Validation Entity
    group now for any active location.
    Edited by: user8030589 on Apr 21, 2009 11:03 AM

    Hi Mike,
    This is a complex script as you have to do a few things such as determine the entities that loaded through that location, lookup the HFM parent of each entity that loaded, clear and then write back to the tBhvValEntItem table. I also had to build in some other checks in this script you referenced and subsequent scripts to handle situations where you wanted to keep a high-level parent entity in the group to run a consolidation on.
    The script is about 150 lines and I can't just paste an entire script in a forum when clients have paid for it to be developed. If you or your client would like to discuss consulting assistance with getting this into your environment, I'd be more than happy to speak with you. If you'd like to work on it your own, I'd suggest just trying to break it down into each component outlined above section by section.
    Regards,
    Rob Cybulski, CPA
    Finit Solutions
    [email protected]

  • Conditional Validation in VO

    Hi All
    I'm developing a web app using jd 11.1.2
    I have a VO field which should be validated against null values, But it should be validated conditionally
    Ex: if client Id is not null validation should be performed to address field is not null
    Pls tell me how to do this
    Thanks
    Padma

    You can do it in many ways
    1. In UI set the show required true and set a message conditionally for the component.
    2. In the EO, through an entity level method validator and set the appropriate triggering attributes in the conditional execution tab
    3. Through an entity level script validator, same as 2 except you write groovy code to check the condition.
    if (clientId !=null )
      if(address == null
        return false
      else
        return true
    }

  • Acrobat Pro XI fails installation on Mac Pro with Mavericks 10.9.3

    I've downloaded the Acrobat Pro XI Trial installation package twice. Each time I run the installer it fails. As the installer proceeds I see the following messages:
    Copying Files
    Running Scripts
    Validating Packages
    As soon as the "Validating Packages" message appears it is replaced by a message indicating that the Installation Failed.
    In the PDApp.log file I see a number of error messages like the following:
    Sun Jul 27 09:29:50 2014
    [ERROR] PIM - Failed to get command line args for pid 5576. Errorno (22). error msg -- Invalid argument
    Sun Jul 27 09:29:50 2014
    [ERROR] PIM - Failed to get command line args for pid 5572. Errorno (22). error msg -- Invalid argument
    Sun Jul 27 09:29:50 2014
    [ERROR] PIM - Failed to get command line args for pid 5571. Errorno (22). error msg -- Invalid argument
    After the very long list of errors as above the end of the log file shows:
    Sun Jul 27 09:29:50 2014
    [INFO] PIM-AAMDeploymentValidation - Should_Ignore_AAM -1. AAM Installation not ignored..
    Sun Jul 27 09:29:50 2014
    [INFO] PIM-AAMDeploymentValidation - Starting Deployment Validation checks...
    Sun Jul 27 09:29:50 2014
    [INFO] PIM-AAMDeploymentValidation - Check System validity Status ...
    Sun Jul 27 09:29:50 2014
    [INFO] PIM-AAMDeploymentValidation - Checking minimum OS version ...
    Sun Jul 27 09:29:50 2014
    [INFO] PIM-AAMDeploymentValidation - System OS Version - major = 10, minor = 9, bugFix = 3
    Sun Jul 27 09:29:50 2014
    [INFO] PIM-AAMDeploymentValidation - Check Boot volume is casesensitive ...
    Sun Jul 27 09:29:50 2014
    [INFO] PIM-AAMDeploymentValidation - Check Required system files and folders exits ...
    Sun Jul 27 09:29:50 2014
    [INFO] PIM-AAMDeploymentValidation - Check Adobe Application Manager is running...
    Sun Jul 27 09:29:50 2014
    [INFO] PIM-AAMDeploymentValidation - Check Another Adobe installer (RIBS) is running ...
    Sun Jul 27 09:29:50 2014
    [INFO] PIM-AAMDeploymentValidation - Check Another Adobe installer (Bootstrapper) is running  ...
    Sun Jul 27 09:29:50 2014
    [INFO] PIM-AAMDeploymentValidation - Check Adobe Application Manager SYNC is happening...
    Sun Jul 27 09:29:50 2014
    [INFO] PIM-AAMDeploymentValidation - Check and close Adobe Application Manager notifiers...
    Sun Jul 27 09:29:50 2014
    [INFO] PIM-AAMDeploymentValidation - AAM Deployment Validation checks PASSED.
    Sun Jul 27 09:29:50 2014
    [INFO] PIM-AAMDeploymentValidation - End: AAM Deployment Validation checks...
    I would appreciate any insight regarding how to resolve this installation problem.
    Thank you

    Hello,
    The logs suggests that the Acrobat Licensing component is not able to install properly.
    Please try following steps:
    1. Go to www.adobe.com
    2. Log-in with your Adobe ID and Password.
    3. From left panel - choose 'Desktop' under 'Apps'
    4. Navigate to Acrobat XI Professional and download trail.
    Regards,
    Anoop

  • How to clear variable value in BPS WIB?

    Hi Experts:
                    I want to clear variable value in BPS,and I use this function 'API_SEMBPS_VARIABLE_SET' to set its value to '#'. I got 1 question:
         After I changed this variable manually in IE, the system 'remember' this variable in this program, so the function 'API_SEMBPS_VARIABLE_SET'  didn't work. I checked the table 'UPC_VAR_CHA_ACT' and found there is not any corresponding item for the current user and value.
    Allen

    Hi Bauke,
    Actually I want to do Password Encryption functionality.
    For that I have 1 Java script file.On Java script validation I want to pass password value from client side to server side as,
    <head>
    <script type="text/javascript" language="JavaScript" src="MyJSFile.js">
    function submitForm(element)
    var me = document.getElementById(passwd);
    If(!me)
    alert('Please enter Password);
    else
    Some password logic I will do here.
    </head>
    <f:view>
    <BODY......
    <h:form id="createUserForm">
    <h:commandButton id="save" value="Save" action="saveactionMethod " onclick="submitForm(this)" />
    <h:inputSecrete id="passwd"
    value="#{createUsrFormBean.password}"/>
    </h:form>
    </body>
    </f:view>
    But the Java script code is not working.I mean If I put nothing in password textbox the alert is not firing.
    My code is wrong ?
    Thanks
    Sandip

Maybe you are looking for