Strange behavior of validation with the fields 'user entered - required '.

I have a situation where I have a form with several 'user entered - required"text fields  Some required fields are pre-populated by a server process before being presented to a user in the workspace.  When the user fills the remaining fields and submits the form (by clicking the button "Done" in the workspace), the of standard validation 'required' message, even if all required fields contain data.

The shape where I discovered this problem is moderately complex, so I built a form simple and process to try to understand what is happening.  The simple form contains exactly two text fields, both are user entered - required.  A field is filled by a server process when the task of the associated workspace is called, B field must be filled in by the user.  There is no script customized beyond the bridge of form and a Submit button.  It's about as simple as it gets.

If the field is filled, and then the user fills B field and click on 'Finish', the message appears saying 'at least one required field is empty... "even if the two fields contain data.

If I return to the form and remove the B field (and redeploy the form and remember the process), to field is pre-filled and the user clicks on 'Finish', no message is displayed and the form is sent.

As far as I know, the built-in for required fields validation works correctly only if all fields are pre-filled or none of them are pre-filled.

Can someone explain what is happening?

EDIT: I forgot to mention, I also created and configured an extract of the data for the simple form.  The data preview only contains a value for the to field.  When displayed in the preview of the Designer tab, everything works as expected.

After a little work I have a better understanding of what is happening and a solution.  I have scripted several calls to xfa.host.messageBox (...) on different events.  It turns out that the pre-filled fields are not the culprit - they have values as expected.  The problem is with the non-pre-filled fields, and and a subtle behavior of the event model that causes a problem when using the workspace INTERFACE (at least on SS3).  Field values may not be resolved until a field loses focus (for example when a user moves to another field, or click a button).  Form used outside of the workspace, by clicking a "submit" button causes the focus to move to the button, which causes the values to be bound to the fields.

Solution: Use an indirect Submit on the form button and submit indirect click handler used (in addition to your normal code):

xfa.host.setFocus(null);
xfa.resolveNode("[[fully qualified name of the real submit button]]").execEvent("click");

Working space should detect and then make an Indirect button and run the associated click Manager, claiming in turn the form submit true button.

This is where begins the next bit of fun: there is a bug in the form bridge (at least in the ES3 version) code prevents him from indirect detection submit buttons when you use JavaScript as a language Manager click of the button and

Here is my hack to solve this issue:

  1. Open the 'ContainerFoundation_JS' script in the Script of Designer Editor
  2. Ignore the warning at the top of the file
  3. Find the named function: isIndirectSubmitEvent (it's on the line 1512 or something)
  4. Change the line that reads:
    • if (script.indexOf(button.name + ".execEvent") != -1) {
      

      TO:

      if (script.indexOf(button.name + ".execEvent") != -1 || script.indexOf(button.name + "\").execEvent") != -1) {
      
  5. Save and deploy the form

If there is a better way to achieve this, please share.

Tags: Adobe LiveCycle

Similar Questions

  • How to make a request for Validation on the field of comments in BPM Worklist task details Page

    Hello
    I am newbie to SOA 11 g.

    I use SOA 11 g and Jdev 11.1.1.3 for development. I created a human with two results (APPROVE, REJECT) and task able to display the page the task details in the BPM list. I have the comments of default section that comes by 'Auto generation of ADF Taskflow' in the Task Details page. This comments section will display the comments of several users who have access to the task. I want to add validation for the field of comments as below-

    (1) to DISMISS the action, we must check whether or not the APPROVER had provided the reason for REJECTION in the comments field. If this isn't the case, we need to display a popup asking him to provide observations of REJECTION.
    (2) on the action to APPROVE, no need to check for comments, so no validation is necessary.

    Can someone give me some ideas how it is possible.

    Thank you
    Udaya Neeliahgari

    Hello
    Try the following...
    In the composite open y'r process bpel... and then to expand the human task... you will notice a task entitled just before the initiateTask run the following two copy operation in the task of AssignTaskAttributes within the scope of the human task.

    IMP Note: The variable is the variable initiateTaskInput of the human task field. Don't assign not on on the global variable

    1 assign a string value "REJECT" in the expression (assuming that you do so that the result of REJECTION) and assign it to the variable

    /TaskService:initiateTask / task: task / mission: systemAttributes / task: preActionUserSteps / task: preActionUserStep / task: results

    2 assign the string value "PROVIDE_COMMENTS" in the expression and assign it to the variable

    /TaskService:initiateTask / task: task / mission: systemAttributes / task: preActionUserSteps / task: preActionUserStep / task: userStep

    view the .bpel file source y'r and make sure that you see something like the following:




    Query = "" / taskservice:initiateTask / task: task / task: systemAttributes / task: preActionUserSteps / task: preActionUserStep / task: result "/ >"




    Query = "" / taskservice:initiateTask / task: task / task: systemAttributes / task: preActionUserSteps / task: preActionUserStep / task: userStep "/ >"

    Just deploy the app... and when you try to dismiss... it should appear the message.

    concerning
    Raja

  • Issues coming out of "sleep mode" and strange behavior when restarting with GPU

    I use a desktop computer HP P7-1240 completely stock except for a GPU EVGA GeForce GTX 750 TI SC. The GPU works well when the computer is running (which is strange because the forums have several other discussions mentioning the 700 series must be incompatible with my BIOS).

    However, there are two main strange problems that have arisen since the installation of the GPU. One is that, every time that the computer enters mode "sleep", he refuses to wake back up correctly. It seems to me that the computer active but sends all the signals back panel (at the very least, no video because my monitors remain blank). On rare occasions, he wakes back correctly, but at least 90% of the time, it must be restarted. Upon reboot, the same problem sometimes (not), and the computer must be rebooted a second time until it will start again.

    This leads to the second problem. During startup, the computer goes to a black screen, listing the specifications of basic computer skills (see attached photo. In this screen, the computer does not meet any entry.  He proceeds to beep 3 times, all the same length and height spaced about 30 seconds of gap. After the third beep, the screen goes black and then the computer starts normally with no other strange behavior.

    Without the GPU, none of these problems occur. At the very least, not regularly.

    I saw another thread mentioned that, while the HP support for my office page lists not her, there is an update of the BIOS for my motherboard which has fixed issues related to the GPU more modern. By nature it is an update of the BIOS that does not (seem to) officially support Windows 7, I am reluctant to go forward with this potential solution.

    Although I intend to build myself a new computer from scratch at a certain point, I was hoping to get at least another year out of this machine, if not 2.  While this question does not seem to be immediately threatening the stability of the computer, I can't help but think that it is a question should I go quickly to avoid future problems (not to mention it would save me a good amount of electricity to be able to enter the mode 'sleep' on a regular basis).

    Any suggestions would be greatly appreciated!

    Problem has been solved!

    For those of you who have trouble sleeping with the p7-1240 or computers with a card mother identical (MSI Jasmine Ms 7778 ver 1.0), I suggest that you follow this thread:

    http://h30434.www3.HP.com/T5/desktop-hardware/unable-to-boot-with-new-graphics-card/TD-p/3930544/highlight/true

    It is to use an update for your BIOS that is intended only for PC under Windows 8, but that seems to work perfectly well with Windows 7 PC. It solved my problems of sleep and makes the computer to behave at least semi normally while restarting.

    However, as indicated in the wire, an update of the BIOS should be a last resort because it can turn your machine into a very heavy and expensive paperweight if something does not work. Do not forget that you have the worm 1.0 card mother MSI Ms 7778 Jasmine and remember that you update the BIOS version 8.18.

    As I am looking for 2aeo on HP.com currently (according to the thread leading up to), I'm not find the same links I found last week when I went through the update. However, you can find elsewhere.

  • Two thunderbird profile both at the same time with the same user account

    Dear Sir
    I would like to use Thunderbird two at a time for two different profiles with the same user accounts.
    I use linux OS.
    I thought using the:

    1. Thunderbird Pei Profile1 &
    2. Thunderbird Pei Profil2 &

    But at the launch of the second order, that nothing is happening.
    Appears in the foreground thundirbird already started.

    If possible use this configuration now or in the future nex?

    General rule, thunderbird runs only a single instance of a profile.
    However, there are two options, you can try.
    You can use an addon esily switch profiles:

    There's more help here:

    He said: "several instances is expected for debugging, so use it at your own risk.

    One method would be to use: start > run
    "C:\Program Files\Mozilla Thunderbird\thunderbird.exe"-no-remote Pei profilename

    There is a space before '-no '
    and also before '-P'
    followed by a space and the name of the profile

    You can create a shortcut icon to run each separate profile.

  • How can I share 'My images' with the other user accounts on my computer?

    How can I share 'My images' with the other user accounts on my computer?

    where are the 'experts' on these forums adverstised?  I can't get an answer to a simple question.  Does anyone know how to do this?

    Here we are, ok, I'm not an expert, but try this:

    Right click on 'My images' > share > specific people... > select that you want to share this folder with.

    ...

    After that, try to connect by using a different account. If you will not be able to open C:\Users\"FirstUser"\Pictures, you try to extend the network in the left pane of Windows Explorer > expand ComputerName > expand users > expand "FirstUser" > photos

  • I want to send an email manually with the fields email drives custom object? Is this possible?

    I want to send an email manually with the fields email drives custom object? Is this possible?

    Hey,.

    Yes, however, the object record Email custom fields only fill with default values. For the custom field object Record is filled, it must be sent via the event Actions or a generating program so that he knows in which case it is associated.

    Thank you...

  • Install the latest version of Flash Player for internet Explorer, I stopped at the end with the message "User does not have sufficient privileges to install"

    I stopped at the end of the installation of Flash Player for Internet Explorer with the message "User lacks sufficient privileges to install" despite having Flash Player installed because I bought my computer. My internet Explorer browser will now display the videos saying that I have the latest version of Flash Player. Videos had previously shown fine on Int.Explorer over 5 years and see the normally on Flash Player using Google Chrome.

    Hi James Goldberg,.

    I recommend you install it using your administrator account on your system or right-click on the configuration file and choose "Run as Administrator".

    Hope that helps, please let me know if you face any problem.

    Kind regards

    Rahul Tyagi

  • 11g OEM with the sys user connection error.

    I have two database in my local host. a parameter is created with dbca and another is created manually.
    I am not able to connect ONLY with "sys" user in OEM, 11g, but I can connect to sqlplus with the same user (only in the manually created database).

    You can try again by recreating the file password... just in case...

  • I want to stop with the 'TEST' user base

    Hi all

    I use Oracle 11.1.0.6 / Windows XP.
    I want to stop with the 'TEST' user base, that I created in the database.
    What role/privileges, I need to assign to the user 'TEST' for the stop of the database with this user.

    Thanks in advance.
    Anil

    Hello..

    Satish has already provived the link to the oracle documentation. Go trough it.

    The same doc: -.

    >
    When you connect with SYSDBA or SYSOPER privileges, connect you with a default schema, not with the schema that is generally associated with your username. This scheme is SYSDBA SYS; for SYSOPER schema is PUBLIC.
    Connection with administrator privileges: example

    This example shows that a user is assigned a different schema (SYS) when connecting with the SYSDBA system privilege. Assume that the sample oe user has been granted the SYSDBA system privilege and issued the following instructions:

    CONNECT oe/oe
    CREATE TABLE admin_test (name VARCHAR2 (20));

    Later, oe user makes these statements:

    CONNECT AS SYSDBA oe/oe
    SELECT * from admin_test;

    OE user now receives the following error message:

    ORA-00942: table or view does not exist

    After having connected SYSDBA, oe user references the SYS schema, but the table has been created in the oe schema

    >

    Anand

  • problem with validation in the field with the radio button type in create profile jsp page

    Hello

    Kindly help me with the validation of a field with the type option button in the createProfile jsp page. Its actually not to validate the sex with radio button field.

    The code is as follows...

    < % @ page language = "java" contentType = text/html"; charset = ISO-8859-1"

    pageEncoding = "ISO-8859-1" % >

    <! – this taglib used to access dsp tags - >

    < %@taglib uri = "" / dspTaglib "prefix ="dsp"% >"

    < dsp:page >

    < dsp:importbean bean = "/ atg/userprofiling/ProfileFormHandler" / >

    < dsp:importbean bean = "/ atg/dynamo/drop/ErrorMessageForEach" / >

      <! DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional / / IN" "http://www.w3.org/TR/html4/loose.dtd" > ""

    < html >

    < head >

    < meta http-equiv = "Content-Type" content = text/html"; charset = utf-8 "/ >"

    < title > < /title > user registration Page

    < / head >

    < body >

    < dsp:form id = "registerForm" method = "post" action = "registration.jsp" >

    < div >

    < div > if please fill in all fields below and click Save

    button. < / div >

    < br / >

    < table >

    < tbody >

    < b >

    < td width = "150" > name < table >

    < td > < dsp:input bean = "ProfileFormHandler.value.firstName"

    MaxLength = "30" size = "25" type = "text" required = "true" / > < table >

    < /tr >

    < b >

    Last name < td > < table >

    < td > < dsp:input bean = "ProfileFormHandler.value.lastName"

    MaxLength = "30" size = "25" type = "text" required = "true" / > < table >

    < /tr >

    < b >

    < td > username < table >

    < td > < dsp:input bean = "ProfileFormHandler.value.login"

    MaxLength = "30" size = "25" type = "text" required = "true" / > < table >

    < /tr >

    < b >

    password < td > < table >

    < td > < dsp:input bean = "ProfileFormHandler.value.password"

    MaxLength = "30" size = "25" type = "password" required = "true" / > < table >

    < /tr >

    < b >

    < td > confirm password < table >

    < td > < dsp:input bean = "ProfileFormHandler.value.password"

    MaxLength = "30" size = "25" type = "password" required = "true" / > < table >

    < /tr >

    < b >

    Identification of Email < td > < table >

    < td > < dsp:input bean = "ProfileFormHandler.value.email"

    MaxLength = "30" size = "25" type = "text" required = "true" / > < table >

    < /tr >

    < b >

    Sex < td > < table >

    < td > < dsp:input bean = "ProfileFormHandler.value.gender"

    Type = "radio" required = "true" > male < / dsp:input > < dsp:input

    Bean = "ProfileFormHandler.Value.Gender" type = "radio" "

    required = "true" > female < / dsp:input > < table >

    < /tr >

    < b >

    < td colspan = "2" > < dsp:input bean = "ProfileFormHandler.create"

    Type = "submit" value = "Save" / > < dsp:input

    Bean = "ProfileFormHandler.createSuccessURL" type = "hidden"

    value = "index.jsp" / > < table > "

    < /tr >

    < b >

    < td colspan = "2" >

    < ul >

    < dsp:droplet name = "ErrorMessageForEach" >

    < dsp:param bean = "ProfileFormHandler.formExceptions"

    name = 'exceptions' / >

    < name dsp:oparam = "output" >

    < li > < dsp:valueof param = "message" / > < /li >

    < / dsp:oparam >

    < / dsp:droplet >

    < /ul >

    < table >

    < /tr >

    < / tbody >

    < /table >

    < / div >

    < / dsp:form >

    < / dsp:page >

    < / body >

    < / html >

    Use code next, may be you do not value attribute set and causing a problem (data inconsistency problem) or case mismatch while storing data in the repository.

    <%Boolean checked = true;%>

    Sex:

    Male

    Female

    I do not know what will radio back button if the value is specified: a boolean value or the value aim to display (in your male cases),.

    If the problem is fixed, undo the change and please let me know what value he sent in your case.

    Please

    Thank you

    Nitin.

  • ADF |  Duplicate validation in the field.

    Hello

    Jdev: 11.1.1.1.6.0

    I have a requirement to allow the user to edit the data in an editable table. My question is, for one of the column, I should not allow the user to enter the duplicate on the JSF page levelvalue.

    It is not a primary key field. How to validate the duplicate column during the click on the button Save.

    Validation should work only on the page, not DB or OS level.

    Where is the duplicate, it should show an error message.

    I'm looking for the JAVA Bean code, instead of using the unique key validator in business-> validator entity rules.

    Please help me with the java code if any knows

    Thank you

    Hello

    Finally I got the answer, thank you for helping me.

    I used the code is:

    private void ItemIdValidator() {}

    P2PWebAMImpl am = (P2PWebAMImpl) resolvElDC ("P2PWebAMDataControl");

    PoShipmentLinesVOImpl shipmentlineView2 = (PoShipmentLinesVOImpl) am.getPoShipmentLines2 ();

    DCIteratorBinding dciter = (DCIteratorBinding) bindings.get ("PoShipmentLines2Iterator");

    Line r = dciter.getCurrentRow ();

    Number of itemidValue = (Number) r.getAttribute ("ItemId");

    Row [] filteredRowsInRange = shipmentlineView2.getFilteredRows ("ItemId", itemidValue);

    int i = filteredRowsInRange.length;

    String msg = "ItemId with the same number found. Please select another ItemId. « ;

    JSFUtils.addFacesErrorMessage (regClientIDPrefix + msg);

    {if(i>1)}

    throw new ValidatorException (new FacesMessage (FacesMessage.SEVERITY_ERROR, msg, null));

    }

    }

    Private Object resolvElDC (String data) {}
          FacesContext fc = FacesContext.getCurrentInstance ();
          Application app = fc.getApplication ();
          ExpressionFactory elFactory = app.getExpressionFactory ();
          ELContext elContext = fc.getELContext ();
          ValueExpression valueExp =
              elFactory.createValueExpression (elContext, "#{data." + data + ".dataProvider}", Object.class);
          Return valueExp.getValue (elContext);
      }

    Sainaba...

  • strange behavior of link with OC assigned annotations

    I'm generating PDFs using a PDFL application I wrote. Link annotations are Act strangely when they are assigned to an o with the key of the OC. The behavior differs between Reader and Acrobat.

    In Reader, the hand tool slider meets the State of OC as expected. When the o is on the tool shows the link as being active. When you click on the link is highlighted, and the link to the action is executed. When the o is off the cursor indicates the inactive link. However, if the user clicks, highlights the link and the link to the action is executed.

    In Acrobat, the link is still active, regardless of the State of the o.

    I have a PDF file created with a much older version of this application that has links that behave normally. I got a chance to try to understand the difference between PDF files or code. The fact that the State of the cursor is at least correct in Reader and correct behavior of crime generally argues that optional content must be built correctly. I see no significant difference in the dictionaries of the annotation.

    Where should I look? We never seen anything like this? Any ideas would be very appreciated.

    TIA,

    Alan

    Workaround: Add a link annotation that is not asked to avoid the bug.

  • 2.1 RC1 - strange behavior when you change the data in the table

    I recently found a new strange behavior of the SQL Developer. On a small table or a table with a filter where all the data is loaded, but not all lines can be displayed on the screen, trying to change the data in the table. When I confirm the editing with the key enter, Developer SQL jumps always until the end of the data. Quite confusing and boring. The cursor seems to remain in the field that I have edited, then moving upward or downward line force SQL developer to this line.

    Appears not to be the case when all the data are loaded instead of punch, but if you force Developer SQL to load all the data, I can reproduce this strange behavior.

    Sven

    Bug 9205959 is fixed.

    -Rambeau

  • I accidentally entered my password in the field 'user ID' a website connection, and pre-populating it now appear in the list of suggestions for that field. Is there a way to make the pre-fill 'forget' a specific entry?

    While connecting to a secure Web site, I was typing too fast and accidentally included my password in the field ID used while connection and press enter before I realized my mistake. I then connected properly, but now Firefox include this false entry (with another entry accidentally misspelled) in the list of suggestions of pre-filling every time I go to this page. I prefer not to cut completely from pre-filling, but obviously I don't want my password to be specified. Can I delete the wrong entry in the list of suggestions as pre-filling watch somehow? (I use Firefox 6.0 on Windows 7)

    Select the entry in the drop-down menu and press "DELETE", Mac users, press 'Shift + Delete '.

  • Strange behavior of scroll on the façade

    Hello

    I have a vi that produces strange things: I activated all the scroll bars on the properties of VI, but I do not have yet in edit mode until I click on 'tile left-right Up-down' and then resize to full screen.

    What can be the cause of this behavior?

    Thank you

    (I have attached the vi issues)

    I have no problem with scrollbars in 2013 of LV. Everything works immediately.

    But I have a problem with the block diagram: it is very large and contains code that is not stoppable (while loop with constant False!)

    Norbert

Maybe you are looking for