Mandatory field validation on Page links.

We have created a Portal application where we included different applications as taskflows. We have also created a tabbed interface which helps us to communicate from one task flow to another taskflow. When we are in one page of taskflow and try to move to another page of different taskflow using tabbed interface we receive mandatory field validation error which prevents us to move to any other page until we fill all the mandatory fields. We need to move to different page of taskflow by using the tabbed interface even without filling all the necessary mandatory fields. Can anyone help us to resolve this issue as this is very important for our project.

<b>Layout</b>
<%@page language="abap" %>
<%@extension name="htmlb" prefix="htmlb" %>
<htmlb:content design="design2003" >
  <htmlb:page title="Check Pernr " >
    <htmlb:form>
      <htmlb:textView text   = "Personnel No."
                      design = "EMPHASIZED" />
      <htmlb:inputField id    = "pernr"
                        value = "<%= lv_pernr %>" />
<%
if lv_no_pernr = 'X'.
%>
<script language="Javascript">
alert ("Personnel no. is not Valid")
</script>
<%endif.%>
   </htmlb:form>
  </htmlb:page>
</htmlb:content>
<b>ONINPUTPROCESSING</b>
DATA: l_pernr TYPE persno.
  DATA: data TYPE REF TO cl_htmlb_inputfield.
  data ?= cl_htmlb_manager=>get_data( request = runtime->server->request
                                         name     = 'inputField'
                                         id       = 'pernr' ).
  IF data IS NOT INITIAL.
    l_pernr = data->value.
  ENDIF.
CLEAR lv_no_pernr.
SELECT SINGLE pernr FROM pa0000 INTO l_pernr WHERE pernr EQ lv_pernr.
IF sy-subrc NE 0.
  lv_no_pernr = 'X'.
ENDIF.
<b>PAGE ATTRIBUTES</b>
lv_no_pernr     TYPE     FLAG
lv_pernr     TYPE     PERSNO
hope this helps.
A

Similar Messages

  • Mandatory field validation error occurs when user cancels out of blank "cre

    Hi - I'm building an application using Oracle 10g 9.0.5.2, with ADF/UIX/Struts.
    I followed the technique described in the tutorial
    http://otn.oracle.com/obe/obe9051jdev/uixtutorial/lesson_uix.htm
    In that example they have a page called BrowseDeptEmp. On this page is a
    create button, which is linked to a /createEmpAction before displaying the
    FormEmp uix page, where the user is supposed to enter new employee data.
    So I did the same thing, but I added a cancel button on the FormEmp.uix page.
    If the user presses cancel on the FormEmp page, it goes through a 'rollback' DataAction (with a rollback operation dragged on it) and then back
    to the main page.
    here's my problem:
    If the user
    1. clicks the create button on the BrowseDeptEmp page
    2. Sees the blank form in the FormEmp page
    3. Changes his mind (does not want to add a new employee) and clicks cancel
    The FormEmp page displays validation errors on the fields that are mandatory in the DB! So the user
    can't cancel out of the create page unless he fills in the mandatory fields...!!
    How do I cancel out of a create page 1) without entering any data on the page and 2) without getting
    mandatory field validation messages?
    It must be simple but i can't figure it out....
    Please help :)
    Thanks
    Des

    I don't understand how this can happen if the user has not entered any data.
    Is there a commit action somewhere that is being triggered before the rollback?
    is your cancel button a submit button?
    one way to fix this is to convert the submit button into a
    regular button and have the regular button go directly to your DataAction (the one with the rollback).
    you can automatically create this button by drawing a pageLink from the page to the DataAction in the page flow diagram.

  • Combo LOV firing mandatory field validation

    Hello,
    I am using Jdev 11.1.1.6.
    My VO is entity based. I have 3 fields in this VO as F1, F2, F3
    All 3 fields are mandatory.
    F1 has model based Combo Lov implemented. List Attribute lookupId from LOV is returned to F1 and List Attribute lookupDesc to F2.
    F2 is mandatory and editable. Idea is that default text is returned by lov and then user can update the description.
    Scenario 1: <does not work>
    At runtime, in create mode, when I try to select a value for this combo lov, it fires mandatory field validation for F2 (only for F2 and not F3) and does not show list of values. I can not make it to show list until enter some data in F2.
    <af:inputComboboxListOfValues> has autoSubmit="true" and immediate="false" and F2 has partialTriggers="id of F1"
    Scenario 2: <works>
    For test purpose, if I make F2 read-only then it works perfectly but F2 is editable and mandatory as well.
    <af:inputComboboxListOfValues> has autoSubmit="true" and immediate="false" and F2 has partialTriggers="id of F1"
    Scenario 3: <works>
    On other pages, I have implemented combo lov where the lov is implemented on reference field and returning the value to only Id column and not to any other field. This scenario works perfectly even with mandatory fields present on page.
    <af:inputComboboxListOfValues> has autoSubmit="true" and immediate="false".
    Thanks,
    Jai

    Try to remove partialTrigger from F2 (has partialTriggers="id of F1"),
    and attach valueChangeListener on F1, in which you can partially refresh F2 (by code)
    Of course, make F1 autoSubmit.
    Scenario 1: <does not work>
    At runtime, in create mode, when I try to select a value for this combo lov, it fires mandatory field validation for F2 (only for F2 and not F3) and does not show list of values. I can not make it to show list until enter some data in F2.
    <af:inputComboboxListOfValues> has autoSubmit="true" and immediate="false" and F2 has partialTriggers="id of F1"

  • How to hide mandatory field in OAF page through personalization

    Hi,
    Could u please help, that how to hide mandatory field in seeded page.
    This could be achieved through personalization only.
    Thanks,
    Ramachandra.
    Edited by: 927747 on Jun 21, 2012 2:16 AM

    yes you can hide that field by simply set the render propert to "false" using the personalization.
    Regards,
    Vijay Reddy.

  • PDF Form Mandatory Field Validation Issue in Workspace

    If we open a PDF Form with mandatory fields (e.g. Mortgage-Prebuilt sample PDF form) in Workspace and then click the Workspace Complete button without completing the mandatory fields, there will be mandatory validation check which will highlight all the mandatory fields and display the mandatory fields error message dialog box.
    However, if we click the Workspace Complete button again afterwards, the mandatory fields error message dialog box will not be displayed. The dialog box will be displayed only if our mouse is moved to any active/enabled fields/buttons in PDF form.
    Does anyone encounter this strange issue before?
    Kindly advice what should we do to solve this issue.

    Hi Patrick,
    As this is the modal popup, there is a close button .
    Now in the ACTIONS tab try to create an action for CLOSE.
    Once you get the window reference,
    wd_comp_controller->gref_w_popup_split type ref to IF_WD_WIINDOW.
    SET_ON_CLOSE_ACTION
    SET_CLOSE_BUTTON
    CALL METHOD wd_comp_controller->gref_w_popup_split->set_close_button
            EXPORTING
              close_button = abap_true.
          CALL METHOD wd_comp_controller->gref_w_popup_split->set_on_close_action
            EXPORTING
              view        = wd_comp_controller->gref_v_controller_split
              action_name = wd_assist->gc_close_split.
       "Action Name
    In the CLOSE action -
    IF wd_comp_controller->gref_w_popup_split IS NOT INITIAL.
          CALL METHOD wd_comp_controller->gref_msg_manager->clear_messages
            EXPORTING
              including_permanent_msg = abap_false
              only_permanent_msg      = abap_false.
          CALL METHOD wd_comp_controller->gref_w_popup_split->set_close_in_any_case
            EXPORTING
              close_in_any_case = abap_true.
          CALL METHOD wd_comp_controller->gref_w_popup_split->close.
        ENDIF.                      "   if wd_comp_controller->GREF_W_POPUP is not initial.
    Regards,
    Lekha.

  • How to skip the mandatory field validation for clearing the screen fields

    Hi Friends,
      I have created a module pool screen, and made some fields mandatory. after entering some fields, if i try to clear the fields, am unable to clear. Its throwing the error "Enter all required fields"., since some mandatory fields are there. But i could able to navigate through other screen. Both the "CLEAR" and "NEXT" command are given in the at-exit command only. Next is working but clear is not working.
    Please  provide me the solution.
    Thanks
    Karthikeyan.L

    Hi,
    To avoid automatic input checks you have to assing function type - E to appropriate screen field, which is not to be checked.
    These function codes don't trigger PAI processing, instead they go directly to
    MODULE mod AT EXIT-COMMAND.
    ..placed in PAI of the screen. In this way you can ommit automatic checks performed by system on mandatory fields. Please ensure you have assing E type to next and clear functions in GUI status.
    Regards
    Marcin

  • Add new field in OAF Page.

    I want to personalize a OAF page. My question is, Can i add new field in OAF page linked with database field and some calculations.
    I am trying to add new field in Termination page of Self service HR which will show the hiredate of employee and number of year served.

    Hi,
    As already specified by Kali..
    Step 1 - Create a new Field of type MessageStyledText using Personalization Link.
    Step 2 - Set the corresponding VO Attribute, which will fetch Hire Date.
    Step 3 - Extend the CO and calculate the Served Year, using Java Code.
    Step 4- Set the same value over the bean manually.
    Regards,
    Gyan

  • Avoiding Manadatory Field Validation

    Hello,
    I require to populate a few fields based on a value selected from a dropdown. However, I am using a custom screen with all manadatory fields, hence getting stuck with mandatory field validation.
    I tried using AT EXIT-COMMAND in PAI, but then the selected value is not passed, and hence the population of screen fields is not happening.
    Any suggestion for me?
    Regards
    Prasenjit Mitra
    Pune, India

    HI Prasenjit
    The manadatory validation has the more priority so it will not allow any other statements to process.
    Instead fo going for Obligatory addition for that parameter you can validate it manually in the PAI event like
    If <parameter> is initial.
    message e001(zer). --->show error message
    else
    <code>
    endif
    HI
    the problem is you can use AT EXIT-COMMAND but you cant pass the value at the same time. so i suggest you to use the validation using coding by which you can pass the value
    regards
    kishore
    Message was edited by: Harikishore Sreenivasulu

  • Mandatory item validation at a page level?

    Hi,
    We have a page where the list of mandatory items changes according to how some 'key' items are set by the user e.g. if they select option 1 on item 1 we need a different set of mandatory fields than if they set option 2 - setting option 1 in item 4, may imply that some further items are mandatory, In addition, some items become mandatory due to circumstances known only on the database. We have in excess of 40 items on this page. Once all mandatory items are complete, the status of the page is saved as 'complete' - the user can always save the page as 'incomplete'.
    We already have a database package that can check a table row to see if it is 'complete', it knows all the circumstances for when an items becomes mandatory and can produce a list of fields and the reasons why they have failed validation.
    Is it possible to call this db package during page validation and use it to perform 'item' validations i.e. identify the invalid items and place the appropriate message inline with them?

    Hi,
    You can create a pl/sql page validation where you call you procedure.
    begin
    package_k.proc_p(item1,item2,...,itemN);
    end;
    You should define the type of the validation, but it is very straight forward,
    Regards,
    Max.

  • Mandatory fields causing validation errors

    The problem is that we have a process train and the user can't enter fields that are marked as mandatory on the Entity Object until they get further down the process train. However, you cannot get past the first step (refer to this image: http://xs344.xs.to/xs344/09412/screen444823.png).
    The weird part is that there are 2 validation checks, the first checks if the fields on the page are validated (exactly what I need), THEN it checks all of the EO validations. I do not want the later.
    What is the best work around for this?

    Hi,
    Did you try using immediate=true attribute for passing the validation phase?

  • Page copy seems to mess up item validation referenced fields in new page

    Hello team,
    this morning i create two pages as a copy of an existing page in Apex 4.0.1.
    This page contained 4 regions, each one containing 4 items, sort of:
    reg1
    P44_ITEM_A1
    P44_ITEM_B1
    P44_ITEM_C1
    P44_ITEM_D1
    reg2
    P44_ITEM_A2
    reg4
    P44_ITEM_D4
    There were field item validations defined on each pair of items P44_ITEMCn - P44_ITEMDn and each validation was associated with its corresponding field (the element attribute linking the validation with the error message visualization i mean).
    After creating the new page, i saw that some of these validations in the new page had lost their associated item attribute value or they were associated to the item with the highest item sequence, for instance P44_ITEM_A1 lost its associated item, while P44_ITEM_D1 was associated to P44_ITEM_D4.
    I just did this again a few seconds ago, so i am pretty sure this is a repeatable error.
    Flavio
    http://oraclequirks.blogspot.com
    http://www.yocoya.com

    Hi Flavio,
    I was able to reproduce this, of sorts. I created 2 regions each containing 4 page items, named in the way you describe. Then created item validations on all of those page items. Copied the page and the copied page contains some validations with a null 'Associated Item' value. Although, none were changed to a different item as you describe, in my test case.
    I have filed bug #10198224 for this issue.
    Thanks for reporting.
    Regards,
    Anthony

  • Mandatory date field validation different if using a custom form... why?

    We are using SharePoint 2013 and have a custom list in which one of the fields is a mandatory date/time field.  When using the default "New" form, if I don't add any date and click the Save button, the form looks like it is submitted and then
    comes back with some red text indicating that I need a value for my date/time field.  If I simply create a new custom "New" form, and then click on the Save button without adding my date/time value, I get a black (not red) validation error. 
    A couple things are going on here.  The error is displayed BEFORE any submit happens, unlike when using the default New form.  The validation message is different and is listed in black rather than red.  For other mandatory fields, the form
    does get submitted and then displays the validation error in red, although it is a different validation error message than when using the default New form.
    I don't care that the text is different, but it is an issue for us that the text is not in red.  Does anyone know why this is happening?
    Thanks - Peter

    Hi Peter,
    According to your description, my understanding is that you want to the alert message is red in the custom New form.
    Please open the custom New from in SharePoint web site, and save without type anything in the data field, then the alert message(black) displays. Click on F12 to open IE developer debug tool, click on the arrow , then click on the black message to find the
    HTML element id for the message, in my test, the id is ctl00_ctl42_g_fed984e8_446c_4fdb_a279_328c2c369be5_ff21_ctl00_ctl00_DateTimeField_ctl00 .
    Then click on Settings->Edit page, add a Content Edit web part to the custom New form page, edit the web part and add the following code into the Edit Source of the web part:
    <style type="text/css">
    #ctl00_ctl42_g_fed984e8_446c_4fdb_a279_328c2c369be5_ff21_ctl00_ctl00_DateTimeField_ctl00{
    color:#FF0000;
    </style>
    If you have multiple mandatory fields, you need to find each id for each field alert message, add #id{…}
    into <style …> </style> section.
    I hope this helps.
    Thanks,
    Wendy
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Wendy Li
    TechNet Community Support

  • Publishing HTML(Page content) field required field validation is not working

    The required field validation is not working on Site Column of type "Full HTML content with formatting and constraints for publishing". I found a link i.e.
    https://social.msdn.microsoft.com/Forums/office/en-US/7b544aae-2562-4b8e-8e5b-36a1d47a4d14/publishing-htmlpage-content-field-required-field-validation-is-not-working?forum=sharepointdevelopment
    which tells this is a hot fix in July 2014 CU . Can anyone help me with what all Fixes are there in July 2014 CU. So that I can update only if it required!
    Or any other alternative where I can use the required field validator on "Full HTML content with formatting and constraints for publishing" column type?

    You could add a scripteditor webpart on the newform.aspx page and add client side validation using jQuery.
    $(document).ready(function()
     var fname = document.getElementById('fname').val();
     var lname = document.getElementById('lname').val();
     var age = document.getElementById('age').val();
     /*Do not know how to get element by class and that too, two different type. Have to check if user chose anything or not*/
      $("#submit").click(function()
       if(fname.length === 0)
        alert("Please input a first name");
       else if(lname.length === 0)
        alert("Please input a last name");
       else if(age.length === 0)
        alert("Please input an age");

  • Mandatory fields on the same page with dependent LOVs

    Hi,
    I am working on an ADF-BC application using JDeveloper 10.1.3.4
    I have an ADF Creation form with dependent LOVs and while implementing dependent LOVs we set the autoSubmit property of the selectOneChoiceListBox as true.
    If I have some mandatory fields on the same page then because of the autoSubmit property set as true whenever I select a value in the list the page gets submitted and the mandatory fields give an error that the values are required therefore I had to remove the mandatory fields.
    I tried using f:subview but even that dint serve the purpose because what I want is something like partialSubmit so that my mandatory fields do no give an error when I select a value in the list.
    Can somebody help me on this, how to have a dependent list and mandatory fields on the same page.
    P.S: It is very crucial for my application
    Thanks,
    Raksha

    Hello,
    This bug has been around since 10.1.3, its even still present in Trinidad and now in 11.
    One of the ways to avoid is to make your fields use:
    showRequired="true"instead of
    required="true"I have not found a decent way to avoid this in general.
    My idea was that this shiould be possible with a phaselistener and determine if this is a partial page event instead of a normal submit, but this didnt work.
    -Anton

  • Number field validation for all application pages

    Hi
    I am using apex version 4.0.
    I need to create number field validation for all application pages. if user press any character then display alert message. How it possible?
    Thanks

    >
    Hi Shiv,
    I am using apex version 4.0.
    I need to create number field validation for all application pages. if
    user press any character then display alert message. How it possible?This is an Apex question - point your browser here
    Oracle Application Express (APEX)
    HTH,
    Paul...

Maybe you are looking for

  • Why is 'send' disabled for sending a message on my iPod touch?

    I can receive messages, browse the net, connect to iTunes so there is nothing wrong with my connection settings. I also have the latest iOS installed. I can type a response to a message, but can't send because the send button is disabled.

  • Automatic Creation of Quality Notification

    Dear All, In standard SAP whenever defects recording is done for an inspection lot and saved,automatically a quality notification is also created.In my business scenario they will record defects for almost all the inspection lots hence resulting in a

  • My Mail in Yosemite doesn't work!

    I am having problem with my Mail in Yosemite OS, hotmail is fine, only gmail has problem. I can receive emails, but i can send mails with gmail. Every time I try to send an email with my gmail in Mail, it tells that "Cannot send message using the ser

  • PSE11 Export of RAW files not sharp

    I am using PS Elements 11 with raw converter 7.3, processing .DNG files from a Samsung GX-10 on a PC. I notice that, despite sharpening the image in the raw converter, that the preview (F11) in the organiser is not sharp. This is somewhat annoying. H

  • Cas server uninstall failed... Now how to reinstall?

    Ok, here is the scenario a company set up an exchange server and IIS config got damaged. So I followed the microsoft guide on uninstalling IIS then the cas server only problem was the cas fail the uninstall about half way through now I can't uninstal