How to suggest a certain number to a page element

Hi people,

I have a form in Apex 4.2 with three elements of the page: id, code, description.

Id is a sequence of oracle, that s ok, but the code is a key to the company, where system will suggest a code but the user can change it, put another value.

My problem is: how to generate this suggestion in this element of the page? The system needs to offer always the maximum number in this field, and if the user put duplicate values, the system will display a message.

Thank you.

bsalvador

Use a default value on the company code key. The default value can be a select statement finds the max value and adds + 1.

Put a unique constraint on the column that contains the key to company code. Then the database triggers a UK error, if a duplicate key has been entered. Of cause, you can create you own validation for this, but I would avoid writing code redunant.

Tags: Database

Similar Questions

  • How do you get the help of a Page element to display text?

    How do you get the help of a Page element to display text? We entered our text in the help text of our Page element part. However, when you place the cursor of the mouse on the Page element, any help text is displayed? Any comment is appreciated. Thank you.

    How do you get the help of a Page element to display text?

    .. .a page element...

    Is there a link for the point label? Otherwise, change the model of wording of article to use the model named "Necessary with assistance" or "optional with assistance.

    When you place the cursor of the mouse on the Page element, any help text displayed?

    If there is a link, you must click on the link.

    Scott

  • How to enter my serial number to download photoshop elements on a mac 11

    My mac is not a port of DVD. So how to enter the serial number on the box to download and install photoshop elements 11.

    you do not use your serial number to download, just install it.

    Available downloadable Setup files:

    Download and installation help links Adobe

    Help download and installation to Prodesigntools links can be found on the most linked pages.  They are essential; especially steps 1, 2 and 3.  If you click on a link that does not have these listed steps, open a second window by using the link to Lightroom 3 to see these "important Instructions".

  • How to hide post text of item in page element

    Hi friends,

    I have a page titled Justification in which under the element text of this article post I give as
    <br><div style="color:blue" font size="1">(240 char max)</font></div>
    Inorder to view a note behind the element.

    But the element of justification page must don't come until after checking the page of another element called reason (which is an option button). So for this I wrote a DA(hide/show) for display of the justification of the point of the page only when the page right element is checked.

    But the problem is that the text of element position within this element of page Justification does not hide with this element (in the DA).


    How can I hide the text of item post in the justification for page element. so I can see this text when the reason page element box is checked as well as the justification for a page element.

    Brgds,
    Mini

    Hey Mini,

    I just write bad :/

    The function is $x_Hide () not $p_Hide ();

    Thnx

  • How to display a certain number of channels...

    Normal
    0

    fake
    fake
    fake

    MicrosoftInternetExplorer4

    / * Style definitions * /.
    table. MsoNormalTable
    {mso-style-name: "Table Normal";}
    MSO-knew-rowband-size: 0;
    MSO-knew-colband-size: 0;
    MSO-style - noshow:yes;
    "mso-style-parent:" ";" "
    MSO-padding-alt: 0 to 5.4pt 0 to 5.4pt;
    MSO-para-margin: 0;
    MSO-para-margin-bottom: .0001pt;
    MSO-pagination: widow-orphan;
    do-size: 10.0pt;
    do-family: "Times New Roman";
    MSO-ansi-language: #0400;
    mso-fareast-language: #0400;
    mso-bidi-language: #0400 ;}

    Hello!

    I'm using LabVIEW 8.5 and I'm trying to display a specific number of channels using several channels...
    I can show in a chart, but I display the 16 analog inputs
    that have NEITHER 6024E and I need to view only the channels that have something
    connected to them (I do not know which channel will have something connected to)
    It). If they have a signal (temperature), I want to show only channel/s in a graph and save this channel/s in a txt file. If it isn't
    I don't want to view or save the channel/s.

    How can I do this with DQA Assistance?

    I am able to do all of this using a single channel, I can view in
    a graph, I can save it as a txt file, but I'm not able to do it for the number n
    only active channels. All advice or suggestion will be appreciated.

    Sincerely,

    Julieta.

    The "AI Multi Pt" looks like an old traditional DAQ example. The DAQ Assistant use DAQmx and it hides a lot of code. It's good and bad. Good if you do not need to change anything. Bad if you do. I don't know how you have configured the task, but you can do what you want by simply using the DAQmx screw directly. There are many examples provided with LabVIEW. Open example Finder (help-> find examples) and navigate to hardware input and output-> DAQmx-> analog measurement. I don't know if you need to go into the directory of the temperature or voltage, because as I said, I don't know how your task is implemented.

    Let's take a simple example. If you open the "Acq thermistor samples-SW Timed" in the directory of the temperature you can see it's pretty simple. The first VI is the DAQmx create channel VI. It has a "physical channel" entry. This can be a DAQmx control or it can be a string when you specify the list of channels to collect. So, to do what you want, you just have to create the string corresponding to the channels you want to collect. LabVIEW help describes how to create this string. The other method is to use the technique of this watch aestat. However, what is shown is only a part of what you need to do. You must have a pre-created range of channels and then you select the ones you want.

    See attached example (LV 8.2) to get an idea.

  • How to pass a certain number in phone dialer.

    Hi, I need to pass a number so that it will open in the phone dialer (no matter if it is Android or iPhone), I developed in Flash Builder, how can I achieve this?

    Thanks in advance

    You can use navigateToUrl() with such.

  • How to make a certain number of tabs my homepage

    Don't keep my tabs clears my home page with each update of FF. I like to have available and NOT pinned tabs but I don't like looking for tabs that I use all the time in the form of tabs

    Easier to define several home pages is to open only those pages in tabs and click the button "use current Pages".

    • Tools > Options > general > startup: Homepage

    Firefox supports several home pages separated by ' |' symbol (pipe).

    If you do not keep the changes after a reboot or have problems with preferences, see:

    What security software do you have?

    If the settings get lost when you update your security software may cause problems.

  • How to run a certain number of loops and stop

    Hello

    I now have a VI and I want to debug. Some time ago in a loop in my VI. I am interested in what happens after a few iterations.

     

    I want simple step by step, but not for the few lines at the beginning.

    How can I do this?

    Thanks in advance.

    Chuan

    Use a conditional probe out of the node iteration of the while loop.  You may need to run a wire from the node to the edge of the loop if you are not already using the node, then right-click the on wire and select Custom probe-> conditional I32 probe, and then select the conditions to get him to take a break.

  • How to create a certain number of items in qml

    I want to have a container containing qml images, but the number of images is variable.

    What should I do to achieve this? Is it possible to do or what I need to know the exact amount of all items before you compile the application?

    Thanks for any advice - still to learn.

    You can use createObject to create an object from an object definition qml.
    Frequency of use it is entirely to you, for example in a loop for.
    You can add these objects to a container, for example.

  • Re: How to suggest a number to a page element

    Thanks SvenW. I put something like this default value:

    begin
       select DECODE(MAX(COD),null,1,MAX(COD) + 1) 
       into :P17_FIELD_NAME
       from TABLE_XXX;
       return :P17_FIELD_NAME;
    end;
    

    where : P17_FIELD_NAME is the field in the form that contains code.

    I put a validation to display a user friendly when message put an existing code and press the new button.

    After that, when the user select an existing code, I show other fields and I would let the user change and save the record, but I Don t know how to put in update mode. Any idea?

    Thank you

    bsalvador

    some comments to that.

    (1) you can use a NVL instead of the decode. This would make select it a lot easier to read.

    begin
      select NVL(MAX(COD),0) + 1
      into :P17_FIELD_NAME
      from TABLE_XXX;
      return :P17_FIELD_NAME;
    end;
    

    (2) instead of validation, you can use the apex_error package to 'translate' some oracle error messages in a user-friendly message. Typical messages as violations of FK ok UK.

    Patrick wrote a great article how to: http://www.inside-oracle-apex.com/apex-4-1-error-handling-improvements-part-1/

    Advantage: no need of a high before validation, just react on the error.

    (3) the "UPDATE" mode would automatically be if you use a wizard to create a form based on a table. All items will be marked as database fields. And thre will be a page DML process that makes the insert or update.

    If you have created the question without the help of the wizard, then compare the attributes of the element, but also the process of page with another page where you have used the form wizard. Identify, understand and fix the differences.

  • How to add a certain number of instances based on the number selected in a drop-down

    I have a form where I would like users to select a number from a drop down, and the number of instances of a specific subform are displayed, for example if they choose 3 from the menu drop-down, 3 cases of the display of subform. I am a newbie of LiveCycle, if anyone can help me with a simple way to do this?

    When a line is hidden when the form is created and you add instances of this line, it will add these lines as hidden because it uses the original properties of the line.

    You would have to set all the rows that have been added to visible when they are created.

    Subform1.instanceManager.setInstances (5);

    for (var i = 0; i)< subform1.instancemanager.count;="">

    var frmSub = Main.resolveNode ("subform1 [" + I.ToString + "]");

    frmSub.presence = "visible";

    }

  • How to score a certain number of volumes in my hard drive

    HP PAVALLION G6-1201TX

    WINDOWS 7 HOME BASIC

    You can do this by using the computer management tool in windows 7.

    To open the computer management tool:

    -Go to the start menu

    -Right click on computer

    -Click on manage

    To partition a drive:

    -Right click on the drive you want to partition and "Shrink" the amoun of space that you want to partition.

    -Right click on the new partition and format as necessary.

    Concerning

  • How can I get my number for my Photoshop element 13 SN I install after I lost my system?

    Re_install, photoshop ask first of all my but sn number, I don't have it. My system on the same PC was lost and full recharged.

    If you try to activate a version upgrade, you have no other choice than to have the serial number version at hand.  Since it is an older version, Adobe support is probably not going to work with you in this case.

    Find the serial number of your Adobe product quickly

  • How convince Adobe that serial number assigned to the elements is not recognized?

    I downloaded a new copy of elements and was sold.  The serial number provided is not "recognized" by Adobe for the elements.  So, I spent my money and I can not open the software.

    I removed the two screenshots, but the problem you are experiencing is the order in which you placed is for Windows and as directed by the screenshot you try to use the product on a Mac. Where the question. Best option is to connect with the support that it is replaced or cancelled if the order is within 30 days.

  • How do I select certain parts of web pages and save them in PDF format?

    fix my problem...

    It's all or nothing, and PDF is not useful for editing. Then find a tool to download HTML, change it to remove what you don't want and convert to PDF format. You can sort it to yourself.

Maybe you are looking for

  • signal analysis is not possible - no problem insert

    Hello parts of my program menu are disappeared. If I want to add a new step (example: the frequency - power spectrum analysis), I don't see that 'have signals' and 'generate signals' in my menu? Where is my menu "signal analysis"? If I load an old pr

  • I want to upgrade my hard drive and memory on my cq 5047 uk what are the possibilities

    I have a compaq CQ5047UK and that you want to upgrade to a faster hard drive and a faster memory that I have 1.01 benicia Board with a wdc wd3200aajs with 4 GB of ram ddr2 800 mhz under windows 7 ultimate are all their possible ways to improve the el

  • Como codigo 43 delivery?

    O Windows interrompeu este porque encontrou problemas device. (Code 43) various como este artifacts?

  • Como puedo activar mi producto

    Como puedo activar a comprado product online

  • HP pavillion p6690d emission stop

    Hi all, I'm the user hp p6690d. first of all, before I tell you guys what is my problem, it is better for you all say that I improved my pc gpu from ati radeon HD 5570 in nvidia gtx 460 n has also changed my diet which I believe was at 650w coolermas