Re: How to make the values in the table as required

Hi all

I use JDev11.1.2.3.0

I have 5 TariffRate (LOV), quantity fields (text input), BillQuantity (text input), amount(input text), calculated quantity (text input). These fields are in the format.not table in the form.here, that the logic is

BillQuantity = quantity * calculated the amount

amount = quantity * calculated the quantity * TariffRate

Here rate rate, calculated quantity, quantity which is mandatory.but I am not able to set the amount and the amount calculated as mandatory.if I select tariffrate in LOV immediately asking amount and quantiy calculated when the property set to true, or quantity.hints.mandatory the problem is that I'm not able to select the value of tariff rate for the second time , now I need to select the quantity and the quantity calculated values first without selecting the rate rate.so how I can configure mandatory for quantity and calculated quantity.can someone help me please.

I guess you are hit by "required field" error because you refresh the dependent fields (for example, the amount and the calculated quantity) by PPR declarative (for example "partialTriggers" attributes of these fields in the tariff rates field reference). In this way, when you choose a new tariff, ADF Faces includes the fields of PPR - ed in the life cycle, they are validated and they result in errors of "required field".

You can work around this behavior in the following way:

  • Remove attributes of mandatory fields that depend on the rate of "partialTriggers" (i.e. loose quantity and the quantity calculated rate by removing the attributes 'partialTriggers' of the Quatity field and calculated quantity);
  • Add a ValueChangeListener for the rate field. In the ValueChangeListener add commands for programming up to date dependent fields, for example:

{} public void tariffRateValueChanged (ValueChangeEvent valueChangeEvent)

AdfFacesContext.getCurrentInstance () .addPartialTarget (quantityField);

AdfFacesContext.getCurrentInstance () .addPartialTarget (calculatedQuantityField);

}

This way ADF Faces will not include the quantity field and the quantity calculated in the life cycle JSF (and they will not be verified for non-empty values). I use this trick for a long time and it really works.

Dimitar

Tags: Java

Similar Questions

  • How to make the table from separate text semikolon

    Hello

    I have a text with multiple lines. The lines are separated with \r\n.

    In every row is the same number of values that are separated by a semikolons.

    How can I (easy) make the tables of each value online?

    Currently, I solved it by creating a loop and using game-model, register shift, to insert to the table... But this looks very great.

    How can I make this easier?

    Thanks for the help

    Hello

    We must define the separator.

    See the image as an attachment.

    Mike

  • In a helpset with several CHMS, how to make the table of main contents appear in all CHMS child?

    I use RoboHelp 11. The software product I am documenting is modular, so help is also divided into numerous CHMS (requirement). One of the other requirements is that the table of contents of the master project appears, called anyone who chm contains the link by the software. I did it with merged WebHelp (Kudos to Peter Grainge), but I could not help using RoboHelp HTML. Someone has it tried with success? Advice would be appreciated.

    This forces you to make the following changes:

    1. In each project, open the window used to display CHM. Click Advanced Properties and enter the name of the file from the table of contents for the master project in the field of the "Table of contents".
    2. After compiling all the files, open the master project. High hydrostatic pressure in the Notepad file. Locate the [MERGEDFILES] section. This should be a list of all CHMS that make up the final deliverable. For some time I used CHMS, so I do not remember if you must do this in all projects. Try first in the main project and you'll know if you do.
  • How to make the table display dynamically in jquery mobile

    Hello

    can you please tell me how to do table display dynamically in jquery mobile. ?

    Please give a few example

    Hi Q3test,

    Check this link below
    http://hippieitgeek.blogspot.se/2013/01/creating-dynamic-tables-with-jQuery.html

    Hope this will help you.

  • How to make the color of the sky, exactly the same thing in multiple images?

    How to make the color of the sky, exactly the same thing in multiple images?

    Bengt Nyman wrote:

    I'm not trying to replace the sky. I want to talk to a group of photos BIF where the percentages of red, green and blue in the sky varies from a few percent, but enough to disrupt continuity within the group. I like t would be able to use the percentages of color to one of the pictures and replicated in others.

    Because the brightness of the sky probably varies from image to image using percentages RGB will not work. What you can use are the values of a and b the laboratory values . Right-click in the inside of the develop module histogram and tick 'Show Lab Color values.' You can ignore the value of L, which is the value of Luminance or brightness. Adjust the blue sky s a b valueusing the Temp WB and sliders dyed until they are the same as your first reference image file. The value determines the color red/green balance if you use the Tint slider to correct the value. The b value determines the color yellow/blue balance if you use the slider Temp to correct its value.

    Remember that setting the base Panel WB with 'fixed' values of b for photos taken under lighting conditions different sky will be the color of the other objects in the image look incorrect (birds, trees, buildings, etc.). In this case, you will need to use the brush setting to paint in the region of the sky and then use its temperature sliders and tinted to change just the color of the sky.

    To be honest I don't know why you feel it's necessary. Maybe you can post two screenshots: 1) with the sky that they way you want to and 2) an image that you want to resolve to match.

  • How to make the status of concurrent program error

    Hi Experts,

    I've written a PL/SQL package procedure, created an executable w / values for my 2 IN parameters and he attributed to a simultaneous program to the e-business suite.

    The specification of the procedure looks like this:
    PROCEDURE PROC1 (
    errbuf OUT NOCOPY VARCHAR2 ,
    retcode OUT NOCOPY NUMBER,
    p_contract_number IN VARCHAR2,
    p_end_date_char IN VARCHAR2 
    );
    Here my requirement is like this,

    How to make the status of the program contributing to the error even if the program successfully completes.
    Please let me know how?

    Thank you
    Suman V.

    Hello

    To give an error output, simply put the RETCODE contains 2
    To give a warning output set to 1
    for and OK output set to 0.

    If your procedure may be:

    procedure proc1 (errbuf OUT NOCOPY VARCHAR2,
    OUT NOCOPY RETCODE NUMBER,
    p_contract_number IN VARCHAR2,
    p_end_date_char in VARCHAR2
    ) IS
    BEGIN
    RETCODE: = 2;
    errbuf: = ' this CR WRONG because I wanted it ';
    END;

    This will give you an error.
    It may be good to your CR PLSQL like this:

    procedure proc1 (errbuf OUT NOCOPY VARCHAR2,
    OUT NOCOPY RETCODE NUMBER,
    p_contract_number IN VARCHAR2,
    p_end_date_char in VARCHAR2
    ) IS
    BEGIN
    RETCODE: = 0;
    return;

    exception
    while others then
    RETCODE: = 2;
    errbuf: = "an error has unhandeled."
    return;
    END;

    This way execptions generate an error.

  • How to make the transition to digital in 10g

    Hi all


    We have 10g database of primary and standby, I have never worked before sleep, customer wants me start switch, can you please let me know how to make the transition to digital in 10g.


    Thank you very much.

    It's the way I'm following passage in the
    ------------------------------------------------------------

    (1) check that there is no active users connected to databases.
    (2) select message from v$ dataguard_status;
    (3) select protection_mode from database v$.

    Step 1 check if it is possible to perform a failover.

    SQL > select database_role, db_unique_name, SWITCHOVER_STATUS, v database name $;

    DATABASE_ROLE DB_UNIQUE_NAME SWITCHOVER_STATUS NAME
    ---------------- ------------------------------ -------------------- ---------
    PRIMARY OFMSREGT_SIM UNAUTHORIZED OFMSREGT

    SQL >

    If you get NO allow status for SWITCHOVER_STATUS, verify that the standby database is connectivity.

    If the SWITCHOVER_STATUS column displays ACTIVE SESSIONS, you can successfully achieve a failover by adding the WITH clause LOGOFF to the statement ALTER DATABASE COMMETTRE through PHYSICAL standby

    Step 2 open the passage on the primary database.

    SQL > SHUTDOWN IMMEDIATE;
    SQL > STARTUP MOUNT;
    SQL > ALTER DATABASE COMMIT TO SWITCH STANDBY MODE PHYSICAL;

    Step 4, check the transition state in the view V$ DATABASE.

    SQL > SELECT SWITCHOVER_STATUS FROM V$ DATABASE;
    SWITCHOVER_STATUS
    -----------------
    TO_PRIMARY
    1 selected line

    Step 5 place yourself in the role of physical standby database target the main role.

    You can switch a standby database physical role ensures the primary role
    When the standby database instance is mounted mode redo apply or open
    for read-only access

    SQL > ALTER DATABASE COMMIT AT THE GRADE CROSSING;

    Step 6 complete the transition of the database ensures the main role.

    If the physical standby database has not been opened in read-only mode since the
    the last time it was started, run the SQL ALTER DATABASE OPEN to open
    the new primary database:

    SQL > ALTER DATABASE OPEN;

    If the physical database was opened read only since the last
    time it was launched, you must close the database waiting for target and restart:

    SQL > SHUTDOWN IMMEDIATE;
    SQL > STARTUP;

    Note: There is no need to close and restart other bases before (not involved in the digital switchover) who are online at the time of the failover. These databases on hold will continue to
    function normally once the failover is completed.

    Step 7 if necessary, restart log apply services on standby databases.
    He must deliver the command FRO repeat apply as:
    SQL > change database recovery managed standby database disconnect from the session.
    or
    And stop repeating applies to give
    SQL > alter database recover managed standby database cancel;

    Step 3 Shut down and restart the former primary instance.

    SQL > SELECT OPEN_MODE FROM V$ DATABASE;

    Step 9 check the synchronization between the primary and standby:

    Primary
    SQL > select thread #, max(sequence#) in v$ archived_log where archived = 'YES' group by thread #;

    Sleep mode
    SQL > select thread #, max(sequence#) in v$ archived_log in case of application = 'YES' group by thread #;

    Stop the former primary instance and restart and mount the database:

    Sense of SWITCHOVER_STATUS
    --------------------------------------------
    The column SWITCHOVER_STATUS of v$ database can have the following values:

    NOT ALLOWED - this is a database of pending and the primary database has
    not been first switched, or it's a back-end database and there is no data pending.

    ACTIVE SESSIONS - indicates that there are active sessions of SQL attached to
    the primary database or emergency that must be disconnected before the
    failover operation is allowed.

    Transition to THE PENDING - this is a database of relief and the primary database
    application of the digital switchover has been received but untreated.

    LATENT pass - the digital switchover has been waiting mode, but has not completed
    and I went back to the primary database.

    Primary SCHOOL - this is a database of pending, any sessions active, i.e.
    allows to switch to a primary database.

    In STANDBY mode - this is a primary database, any sessions active, i.e.
    allows to switch to a standby database.

    RECOVERY NEEDED - this is a database of pending that has not received the
    application of the digital switchover.

  • Can you please tell me how to make the thicker arrows on the Pages.

    Can you please tell me how to make the thicker arrows on the Pages. Thank you very much. There is something incredibly simple to do, but I, having a disconcerting brain, am totally unable to understand. Please please help me. Thank you

    < re-titled by host >

    Try here > Pages for Mac: Add and edit forms

  • How to make the top sites page appears when I open a new tab? Why have I not of "buttons" to pin a top site of the page tab?

    When I open a new tab, NO best sites don't show up... shows just a search engine box. I have Firefox 33.0. Why is there no 'pin' button when I opened a new page? How to make the top sites page appears when I open a new tab?

    Here is some additional information on the configuration of the new tab page:

    (1) in a new tab, type or paste Subject: config in the address bar and press ENTER. Click on the button promising to be careful.

    (2) in the search above the list box, type or paste newtab and make a pause so that the list is filtered

    (3) double-click the preference browser.newtab.url and enter your favorite page:

    • (Default) page thumbnails = > subject: newtab
    • Blank tab = > subject: empty
    • Built-in Firefox homepage = > topic: welcome
    • Any other page = > full URL of the page

    Press Ctrl + t to open a new tab and check that it worked. Fixed?

    Some traps:

    If Firefox will not let you change this setting: you can have what is called SearchProtect on your system.

    Firefox if allows you to save your changes, but he doesn't know: one of your extensions may be the substitution of her. You can consult, disable and/or remove extensions on the addons page:

    "3-bar" menu button (or tools) > Add-ons > in the left column click on Extensions

    If the modification works during your session, but during the next startup is leads to: you could have a user.js file in your personal settings Firefox (your Firefox profile folder). This article describes how to track down and delete the file: How to fix preferences that will not save.

    A little luck?

  • I have associated my pencil to Apple for the iPad Pro; How to make the Widget of batteries displayed on the notification Center 'today '?

    I have associated my pencil to Apple for the iPad Pro; But how to make the Widget of batteries displayed on the notification Center 'today '?

    See if it works. Scroll to the bottom of the list in the display today. Tap on edit. Press on the + sign next to battery.

  • How to make the snow fall go far in the background that I've recently added a newsletter on your part?

    How to make the snow fall go far in the background that I've recently added a newsletter of mozilla to? It appears on things, I feel.

    I can't talk about it. What is an extension?

    You can disable or remove unwanted page extensions modules. Either:

    • CTRL + SHIFT + a
    • Firefox orange (or the Tools menu) button > Add ons

    In the left column, click Extensions. If you don't it spot, perhaps in the appearance section?

  • How to make the text bigger in youtube! Cubs in youtube!

    I made the largest text where google search arrives! But when I go on youtube the text is much tinier and I 65 to cataract and I can't read the text at right! How to make the text bigger in youtube? Thank you very much! I tried everything, but nothing changes the size!

    When you view this page hit {Ctrl + 0} < is a zero number -to reset the zoom level for this area.

    https://support.Mozilla.com/en-us/KB/page+zoom

    If you move the scroll wheel, and are now the CTRL key, you can change the zoom level of the page that is viewed - both in & out.

  • When I run a web browser immediately loaded two blank tabs. How to make the browser to load the only?

    When I run a web browser immediately loaded two blank tabs. How to make the browser to load the only?

    Have you checked the home page to make sure that if is not the vertical bar (|) symbols?

    See the following for a few suggestions:

  • How to make the text darker or bolder

    How to make the text darker or bolder in safari

    shutterbox-

    I'm with you.  Cataract surgery, it will take longer, and the thin, plugged in my humble OPINION, typeface they chose is really for less than 40 eyes.

    The same "BOLD" of the police system capacity would be so appreciated.

    There are 3rd party apps that can change system fonts, and I saw messages claiming success, but I'm a purist to try.

    Small fonts (to us) make it very painful to be here.  I just hope they realize that our needs must be met, as well.

  • S3000-514: how to make the secondary battery to unload everything first?

    Hello world!
    After I ve managed to charge my secondary battery on my laptop (see my previous announcement), I'm now getting another "strange" problem
    With my two batteries in and on the battery the first battery to discharge is the main battery - and not high school!
    This leads to a problem: when I want to change the secondary battery with my combo player, I'm not always have enough power in my battery.
    I have found how to make the battery discharging first of haven´t.
    Can anyone help?

    Hello

    Unfortunately, it is not for me and as much as I know it can not be changed. Probably the electronic power supply is configured to run on this path. Have you tried to remove the main battery and work by simply using secondary? What happens in this case?

  • How to change the location of the @ how to make the Euro symbol and where is 'hash '?

    I am a proud new owner Portege M300. Now all I need? knowledge is:

    -keyboard looks liks the sign @ is above the 2. In fact, it's above the apostrophe, where the quote is true. I want to have the @ sign overcoming the 2 because that's what I'm used to =. How I change these autour?

    -How to make the Euro sign (as £ and $)?

    -Why is£ 3 rather than the 'hash' sign that is posted above? How to make the sign of 'hash '?

    Hello

    Before you can perform any discussion can you please tell me in which country is your laptop bought and what specific keyboard of the country to unity? Each cell has a specific keyboard of the country.

Maybe you are looking for

  • Where is line-in on my Equium A300D?

    I am trying to record some audio of one of the Radio stations on iPlayer with Audacity on my Toshiba Equium A300D laptop, however I don't see the option on the program online... I use the right drivers downloaded from the Toshiba site, so I'm pretty

  • DMA FIFO (target host)

    Hello I have the next vi FPGA and RT vi (joint). I'm trying to transfer data from the FPGA to the RT vi (using the target to host DMA FIFO), then to plot the data in the RT vi. The signal that I take analog input also is a 10 Hz, 1 well module 9215 V

  • laptop is stuck on this screen enter password administrator or power password

    Hello! Can you help me. Laptop is stuck on this screen. The key that I receive after you have entered the wrong password 3 times is 55622431 I have a laptop of hp 2000

  • 4500 envy: This printer is unavailable message

    Will cause receiving message "this printer not available" when tent direct printing but nothing has changed since the last successful print job and only one single user. How can I get the printer to work?

  • Need help, updated please.

    I own Clip V2 executant.32 I veux.35 When I run the updater, it says * service not available *. When I manually down load extract updateand on my desktop I get a file that reads * m30pa.bin* I try and drag to the Sansa folder via windows Explorer and