length of field compared to other field

Hi all
I have a strange requirement. Please let me know its possible or impossible.
I have two fields. both are number fields say Field1 and Field2.
The length of field2 should set according to number entered by the user in the Field1!
For example, a user enters 123456... (50 issues) in the Field1 then the length of field2 should be 50. the Field2 should not allow more than 50 numbers.
as from the data entered to domaines1 wise to fix the length of field2.
is it possible?

If my requirement is not clear, so please let me know...

Thank you...

Hello

You cannot change the MAX_LENGTH to a runtime of text element property. Instead, you can write code in the trigger WHEN_VALIDATE_ITEM of the second element and check if the length of the content is larger than the first number entered elements.

IF LENGTH(:) > : THEN
   MESSAGE('');
   RAISE FORM_TRIGGER_FAILURE;
END IF;

Kind regards

Manu.

If my answer or the answer to another person has been useful or appropriate, please mark accordingly

Tags: Oracle Development

Similar Questions

  • Why windows not a lot of malware that compare to other OS?

    Why windows not a lot of malware that compare to other OS?

    Windows not "having a lot of malware.

    It is the same for any other OS.

    Most often, the biggest problem is the user himself who carelessly clicks everything what is clickable and who does not pay attention to uncheck "grouped" offers downloading something...

    How to avoid infections PC easily

    Where my PC infected?

    Best practices for computer security - malware Infection prevention

  • Save for web images look slightly blurry compared to other images that I see online

    Whenever I save a file in photoshop for the web as a png image, I see them get a little blurry and not very sharp. I did all the dimensioning and sampling etc. as far as I know. Yet, when I compared with other images that I see online, they don't look as strong. Is it just a fact that I need to add to my work, even if a large part of the time I work with vector shapes? Are not vectors supposed to be clean and crisp always?

    The blue image below is another person I know was made in Photoshop. My work is the red on the right. As you can see, it looks a little blurry.

    comparison.png

    Any ideas or suggestions?

    The blue image was also created with more details in the foreground as sting in the Ribbon and more texture contours in the Ribbon.  That's why the Red Ribbon seems less detail and seems flat.  I don't see with my eyes less sharpness however the drop shadow and a low background noise in the Red image contrast color makes the Red image have less contrast and then the blue image with a high-contrast light blue background. The red background details are not clear I would like this or aim to have a look of sweet in the background. When there's no detail in the blue image background other maybe a bit degraded.  It has IMO a lot to do with the composition.

  • Change an element of length of field data in the reports.

    Hi all

    I have to change a report based on a table element.

    The array element is 4 digits 8-digit alterd.

    In the report, the field is always 4 digits and I tried to give him the new length of the 8-digit database item.

    It will not work, I can not change the properties of the report field.

    How can I make it OK?

    Thanks for tour assistance,

    Cees cordially

    I found the solution by accident!

    I had to change something in the query where the field was in...

    By saving the request was generated and... the length of the field had changed to 8 digits!

    Kind regards

    Cees

  • change the length of field

    Using database Oracle 9.2.0.5 on Oracle Enterprise Linux and Oracle Report Builder 10.1.2.0.2 on Microsoft Windows XP Professional SP2.

    I have changed the length of a varchar2 column in my database from 4 to 8 and to update the fields that correspond to this column in my reports.

    How this is done?

    Open your query, add space and press OK... your domain should now reflect the changes made to the database.

  • How to control the length of field, select items list to 4.2 page

    I apologize in advance if I ask what is obvious, but simply, I couldn't get a response yet:

    I would like to know how to control the length of the elements of the type selection list page 4.2
    (as for a normal textfield: in the case where the content is longer than simply not all appears on the screen)

    help much appreciated
    see you soon
    Wim

    WimDeGroot wrote:
    I apologize in advance if I ask what is obvious, but simply, I couldn't get a response yet:

    I would like to know how to control the length of the elements of the type selection list page 4.2
    (as for a normal textfield: in the case where the content is longer than simply not all appears on the screen)

    Normally the browser automatically resizes the selection list based on the content.

    What version of the browser / do you use?

    What theme?

    What model page/region?

    What form/article layout?

    What content does not match?

    (Basically the best way to get help with problems of this type is to reproduce on apex.oracle.com and see us actually...)

  • Why oracle stores no length for CHAR, VARCHAR2, and other types?

    Hi friends,

    I was reading a book by Tom Kyte on the types of character data.
    +For character strings,Oracle will have a leading length field of 1 to 3 bytes, or when they are NULL they+ 
    +will be represented by a single byte value of 0xFE.+
    +If the length of the string is less than or equal to 250, Oracle will use 1 byte for the length.+
    +All strings exceeding 250 bytes will have a flag byte of 0xFE followed by 2 bytes that represent the length.+
    Can someone explain please why Oracle shops length here and where exactly is - it used by Oracle?
    For strings longer than 250 bytes, it sets a flag to 0xFE byte. What is the usefulness of this indicator byte and how is it useful?
    Is there anyway we can see the length bytes that are stored by Oracle? I tried with the DUMP function, but it is to show that the value of the length, but not the bytes it stores for her.

    Kind regards
    Anthony

    I think that Oracle chose 0xFF to represent a null value
    (a) Yes
    (b) should be 1 as another column can follow

    Concerning

    Etbin

  • Starkey Halo 2 streaming quality, compared to other devices (especially to the Muse / SurfLink Media 2)

    I am considering buying a pair of hearing aids Starkey Halo 2 - and an iPhone to chase them! Does anyone have comments on the audio quality when streaming to the iPhone?

    I am particularly interested in how it compares to what you would get with a pair of hearing aids Starkey Muse, streaming from a media 2 SurfLink (which is apparently better than you get with the Starkeys of the Z series because of an improved codec).

    Comparisons with other devices (for example, Widex Unique + TV - DEX, or Phonak Audéo V90 + ComPilot II) are also welcome.

    My audi has said no, BUT if you "hear" something different, please advise!  Looks like a real missed opportunity for me!

  • There are so many modules now that do the same thing, how can I say all the features of one add-on compared to others. I know I have way to much the same thing and need to get rid of the undesirables?

    can we get a comparison side by side the Add-ons. How can I say that ive got 2 or even 3 Add-ons that do the same thing? and how can I choose the one that fits my needs, so I can uninstall all others?

    There is no way to automatically compare the modules, you must manually check their characteristics.

  • generated writing XML to a file after comparing with other XML

    Hello

    I made the comparison of the two XML now, I have an obligation to concat these two xml but also necessary to add the XML code with a status node that is after comparing the two displayed XML is Y or N, so if it is there then a node with

    < status > Y < / status >

    < of table > t1 < / table >

    then by completing the tasks that I have to write to a file

    declare

    p_emp_info CLOB.

    l_emp_tab xmlsequencetype: = xmlsequencetype();

    BEGIN

    I'm IN (SELECT id from emp WHERE emp_name = 'ABC') LOOP

    l_emp_tab.extend;

    SELECT XMLELEMENT ("ABCD",

    XmlElement ("ID", i.ID))

    IN l_emp_tab (i)

    FROM dual;

    END LOOP;

    SELECT XMLELEMENT ("EMP"

    XMLAGG (t.column_value))

    IN p_emp_info

    TABLE (l_emp_tab) t;

    -Dbms_Output.put_line (getclobval (1,2));

    EXCEPTION

    WHILE OTHERS THEN

    Dbms_Output.put_line(SQLCODE||) SQLERRM);

    END;

    I'm using this query, but it gives me an error that the expression is of the wrong type on this line {IN l_emp_tab (I)}

    I am unable to find the error what I'm missing here!

    You have changed the data type of I the example that Odie that gave you in

    repeating nodes using loop but when XML string concating then concating only last iteration of the loop FOr?

    In his case, I was a number.  In your code above, I have now is the set of rows in a cursor.

    You can rewrite your version to look like

    declare
      p_emp_info     XMLTYPE;
      l_emp_tab      xmlsequencetype := xmlsequencetype();
      l_pos          PLS_INTEGER;
    
      CURSOR c_info IS
        SELECT id
          from emp
         WHERE emp_name='ABC';
    
    BEGIN
    
      FOR r_info IN c_info LOOP
        l_emp_tab.extend;
        l_pos := c_info%ROWCOUNT;
        SELECT XMLELEMENT("ABCD",
               XMLELEMENT("id",r_info.id))
          INTO l_emp_tab(l_pos)
          FROM dual;
      END LOOP;
      SELECT XMLELEMENT("EMP"
                           ,XMLAGG(t.column_value))
        INTO p_emp_info
        FROM TABLE(l_emp_tab) t;
    
      --Dbms_Output.put_line(p_emp_info.getclobval());
    END ;
    

    You can use the % c_info number of LINES in the INTO clause, hence the l_pos.

    Or you can rewrite to be

    declare
      p_emp_info   XMLTYPE;
      l_clob       CLOB;
    BEGIN
    
      SELECT XMLElement("EMP",
               XMLAgg(XMLElement("ABCD",
                        XMLElement("id",e.id))))
        INTO p_emp_info
        FROM emp e
       WHERE emp_name = 'ABC';
    
      SELECT XMLSERIALIZE(DOCUMENT p_emp_info AS CLOB)
        INTO l_clob
        FROM DUAL;
    
      Dbms_Output.put_line(l_clob);
    END;
    

    Both produce the same XML file.

  • Compared to OTHER APPS

    First of all, I would like to wish you all a happy holiday season.

    As I was browsing these pages, I noticed that all the Mac users have a specific question about their Mac SSID disc with storage to mention the OTHER.

    In the situation of mine when I checked my drive, I don't see any OTHER, instead Apps is here.


    Why did I have so many Apps when only, I installed a printer (HP) and disk Diag?



    Re-index Macintosh HD.

    REINDEX Spotlight will take some time to complete.

    System Preferences > Spotlight > privacy

    http://support.Apple.com/kb/ht2409

    Note:

    If you do not have Macintosh HD icon on the desktop,

    Finder > Preferences > General > show these items on the desktop:

    Select "hard disks".

    System Preferences > Spotlight > privacy

    Drag the Macintosh HD in the privacy of the Spotlight window pane.

    When you add a Macintosh HD to the pane of the privacy of the projector,

    you will see a dialog box.

    Click on 'OK '.

    Highlight "Macintosh HD" and click the sign minus "-" button at the bottom left of the pane.

  • By comparing the other OS Vista

    I'm trying to find a tool that details the OS installation procedures, orders, etc..  The tool for the job would be the detail of orders and procedures XP in a single column and have Vista controls for the same characteristics in the second column.  I was wondering if anyone has such a work tool or can point me to a site where I can find the information.  Any help would be appreciated.

    I don't know what commands are you talking about. Your question is too broad. There are many differences between XP and Vista and many similarities. There is a large amount of information on the way in which the operation of each operating system that you are available if you need to define your end goal closer.

    If you want to compare installation techniques, here are links detailing XP installs and install Vista. You can read through them and make notes on the differences.

    How to install Windows Vista - covers the upgrade and clean install - http://support.microsoft.com/kb/918884
    http://michaelstevenstech.com/cleanxpinstall.html - Clean install - how-to
    MS - MVP - Elephant Boy computers - don't panic!

  • This parameter sets the maximum length of a line of response or a header field.

    TOPICS - ILS INITIALLY - APPEAR THEN DISAPPEAR - LEAVING A VERY SMALL ICON AT THE END OF THE TITLE AREA (BLUE ARROW) - THIS ICON WHEN HOVERED ON - STATES, 'MAX LENGTH UNKNOWN FIELD' - SO ALL MY SELECTED - ADD GADGETS IN GOOGLE - HAVE EMPTY POSITIONS

    Make sure that you run not Firefox mode full screen (press F11 or Fn + F11 to toggle; Mac: Ctrl + Shift + F).

    If the menu bar is hidden, then press the F10 key or hold down the Alt key to make the call of menu bar.

    Make sure the toolbars like the toolbar 'Navigation' and the 'personal bar' are visible: "view > toolbars".

  • Did not update the field lengths

    All,

    I changed the lengths of field forms all day to IOM 9.1, and it does not update the actual column length when the form is activated. I came back to directly update to the sizes of the column in the database to get things to work. I missing something here, or are completely useless in IOM field length variations?

    S

    My experience is the same. You cannot change just reliable lengths using the client interface design.

    Slightly irritating and very dangerous if you don't know the question.

    Best regards
    / M

  • Is it possible to calculate the number of two or more in the same field?

    What is trying to do is to caculate a number of pages of the book for a copy.

    For example I want to copy pages from 25 to 30, then the user will write 25-30

    the number of copies will be equal to sum = "30-25 + 1".

    and if the user write only a single number, the number of copies is equal "sum = sum + 1.

    Thus, user input will be like that "25-30, 45-60, 65, 67.

    I think using a table and one ',' split

    var sumArray = new Array();

    sumArray = sum.split(",");

    Y at - it all possible ways to do this?

    Thanx

    Hi, I think you can use a regular expression, but I would use a split as well, something like;

    var pageNumbers = TextField1.rawValue.split(",");

    var sum = 0;
    var isValid = true;
    for (var i = 0; i)< pagenumbers.length;="">
    {
    var pages = pageNumbers [i].split("-");
    Check for all elements of number
    If (! pages.every (function (element) {return (element == parseInt (element, 10)) ;}))}))
    {
    xfa.host.messageBox ("Please enter list separated by commas in number of pages, with a range separated by a dash, for example, 25-30, 45-60, 65, 67");
    isValid = false;
    break;
    }
    If (pages.length > 2)
    {
    xfa.host.messageBox ("Please enter a range of pages separated by a dash, e.g. \"45-60\ "" ");
    isValid = false;
    break;
    }
    If (pages.length == 1)
    {
    sum ++;
    }
    on the other
    {
    var start = parseInt (pages [0]);
    var end = parseInt (pages [1]);
    If (end<>
    {
    xfa.host.messageBox ("Please enter a valid page range separated by a hyphen with the start page in the first place, for example \"45-60\ "" ");
    isValid = false;
    break;
    }
    sum += (end - start + 1);
    }
    }
    If (isValid)
    {
    App.Alert (Sum);
    }

    Might need some more error handling but I hope will help you get started.

    Concerning

    Bruce

Maybe you are looking for