Height of text items

hi,
I've created a form using the wizard. Some of the bigger VARCHAR based items got a default height of 4 lines, which is too much. So I changed them to a height of one line.
But they render different in my webbrowser (both IE and Opera) than text items which have a default height of one line and which are created by the wizard automatically.
In Opera they still have a height of about two lines, in IE the have a small inactive scrollbar on the right.
Anyone knows how to fix that?

Sebastian,
If you want a height of just "1", then I recommend switching from a Textarea to a Text Box - which has a fixed height of "1" and should render the same in most browsers.
Thanks,
- Scott -

Similar Messages

  • How to find the ID of the text item of the column in an tabular form

    Hello,
    I have created a tabular form report on emp table and made ONE OF THE COLUMN department_id as an text item using APEX_ITEM.TEXT APIs.
    My select query is
    select
    "EMPLOYEE_ID",
    "EMPLOYEE_ID" EMPLOYEE_ID_DISPLAY,
    "FIRST_NAME",
    "LAST_NAME",
    "HIRE_DATE",
    "JOB_ID",
    "SALARY",
    "MANAGER_ID",
    APEX_ITEM.TEXT(3,department_id,20,50,'readonly=true') department_id
    from "#OWNER#"."OEHR_EMPLOYEES"
    now how can i find the item ID?
    one more thing is that how would i reference this item in an javascript function.
    anyone plz help me out with this.
    thanks.

    Hi,
    Firstly, your link must include "this" to ensure that any javascript knows which link has been clicked. So, change:
    onclick="javascript:report();"to
    onclick="javascript:report(this);"Next, your javascript code must take this value and find the related DEPTNO item on the same row. The URL must pass to the popup page the name of the ID that needs to be updated - this is held in the f10 variable in the following script. This means that you popup page must be able to receive this value so that it can use it to update the DEPTNO item when a value is selected. Your popup page seems to be page number 4, so I will assume that you have a P4_ITEM_ID hidden item on that page for this purpose. So, the javascript on the main page would be something like:
    function report(x)
    var f10;
    var p = x.parentNode;
    while (p.tagName != "TR")
      p = p.parentNode;
    var inputs = p.getElementsByTagName("INPUT");
    var zz;
    for (zz = 0; zz < inputs.length; zz++)
      if (inputs[zz].name = 'f10')
       f01 = inputs[zz].id;
    var url;
    url = 'f?p=&APP_ID.:4:&APP_SESSION.::::P4_ITEM_ID:' + f10;
    var w = open(url,"winLov","Scrollbars=1,resizable=1,width=450,height=600");
    if (w.opener == null)
       w.opener = self;
    w.focus();
    }So, when the user clicks a link, the report() function is called and the object clicked is passed as a parameter. The script then starts from this object and goes up to the TR tag that the link is on. From here, it finds all INPUT items and then looks at those to find one that has a name attribute of "f10". When it finds it, it stores the ID of that in the "f10" variable. It then constructs a URL using this variable which is set into the P4_ITEM_ID hidden item on the popup page.
    I don't know what your javascript is on the popup, but it would need to get the value out of P4_ITEM_ID to see which main page item needs updating. This could be something like:
    function passBack(val)
      var id = $v('P4_ITEM_ID');
      opener.document.getElementById(id).value = val;
      window.close();
    }This script looks in the P4_ITEM_ID hidden item and gets its value - this will be the ID of the item to update on the main page. It then does the update and closes the popup.
    Andy

  • How to make one of the columns in my tabular an text item with popup lov

    Hello,
    I want to manually make one of the columns say for the deptno in my tabular form as on text item popup lov using apex_item package
    and whenever user clicks on the text item popup lov, it should open up an dept table report and from which he/she needs to select
    the deptno and this deptno should be returned into the text item popup lov column.
    like for example: say if i have an emp table tabular form with all the columns and deptno column as an popup lov and when user clicks on this column
    it should open up an new sql report(similar to popup lov window), the select statement for this would be
    select deptno,dname,loc from dept order by 1;
    And from this popup lov report whenever an user selects a particular deptno, the same deptno should be returned to my text item popup column in emp tabular form.
    something like this
    select
    "EMPNO",
    "EMPNO" EMPNO_DISPLAY,
    "ENAME",
    "JOB",
    "MGR",
    "HIREDATE",
    "SAL",
    "COMM",
    APEX_ITEM.TEXT(3,deptno,20,50,'readonly=true') || '<img height="16" align="middle" width="16" style="vertical-align: middle;" alt="Popup Lov" src="/i/lov_16x16.gif"/>' deptno
    from "#OWNER#"."EMP"
    like i made my column as an text item lov and now I want to write an onclick event for the text item lov so that an popup window is displayed which is a sql report of the table dept (select deptno,dname,loc from dept order by 1;) and in this report i want to make deptno as an link so that when ever an user clicks on it
    -- this value should be returned to my text item popup lov column deptno in the emp tabular form.
    can anyone help me out with this issue.
    thanks,

    Hi,
    Refer to the link for the detailed information on ALV Grid.
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907
    Hope it helps.
    Regards,
    Rajesh Kumar
    Edited by: Rajesh Kumar on May 25, 2009 9:13 AM

  • Trying to make new text item in Pages 5.2 using Applescript

    I am trying to upgrade(?) from Pages 3 to Pages 5 and have a script that used to make a new document with text boxes. Previous line was:
      make text box with properties {object text:receiptDD, vertical position:6.9, horizontal position:2.7, height:0.5, width:1, extra space:0}
    Have the line changed to:
                                  make new text item with properties {object text:receiptDD, position:{6.9, 2.7}, height:0.5, width:1}
    but fails with error "Pages got an error: Don't know how to create TMAScriptInfoProxy" number -2763
    Not sure where to go from here,  searched various forums but cannot find a solution, any guidance gratefully received.

    Does your Photoshop menu bar have a 3D item? If not make sure you machine meets CC requirements and thatou GPU is enabled in you Photoshop preferences performance section

  • How to get bounds of bounding box of text item.

    Hi all,
    I am trying to get the bounds of bounding box of paragraph text item. I found the following link,
    the coordinate of a bounding box is the same as the layer's coordinate?
    But the solution doesn't work for me. It gives me the layer's bound every time i.e. the bounds of actual text.
    Can someone have any idea how to accomplish this?
    Thanks.

    It's a known "not trivial". You have layer.textItem.width/height, but they don't always report correct values. I.e. if the layer or doc has been resized, those values are missing scale multipliers. Worse it's works differently wrong in different versions of CC and Mac/Win. What I use is below (with some utility functions missing), but it's just CC 2012 and 2014 (CS6 is just bounds).
    Alternatively you can get this stuff on Action Manager only, but I'm not familiar enough and let other comment on it.
    Photoshop = {
      getTextExtents: function (layer) {
      if (layer && layer.textItem) {
      var text_item = layer.textItem
      if (Photoshop.isCC2014() || (Photoshop.isMac() && Photoshop.isCC2012())) { // in mac the newer method is correct also in CC2012
      return Photoshop._getTextExtentsCC2014(text_item)
      } else if (Photoshop.isCC2012()) {
      return Photoshop._getTextExtentsCC2012(text_item)
      } else {
      return Photoshop._getTextExtentsCS6(text_item)
      _getTextExtentsCC2014: function (text_item) {
      app.activeDocument.activeLayer = text_item.parent
      var ref = new ActionReference()
      ref.putEnumerated( charIDToTypeID("Lyr "), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") )
      var action = executeActionGet(ref)
      //Photoshop._debugActionKeys(action)
      var textKey = action.getObjectValue(stringIDToTypeID('textKey'))
      var bounds = textKey.getObjectValue(stringIDToTypeID('bounds'))
      var width = bounds.getUnitDoubleValue (stringIDToTypeID('right'))
      var height = bounds.getUnitDoubleValue (stringIDToTypeID('bottom'))
      var x_scale = 1
      var y_scale = 1
      if (textKey.hasKey(stringIDToTypeID('transform'))) { 
      var transform = textKey.getObjectValue(stringIDToTypeID('transform'))
      x_scale = transform.getUnitDoubleValue (stringIDToTypeID('xx'))
      y_scale = transform.getUnitDoubleValue (stringIDToTypeID('yy'))
      x_scale *= width / text_item.width
      y_scale *= height / text_item.height
      return {
      x:Math.round(text_item.position[0]),
      y:Math.round(text_item.position[1]),
      width:Math.round(width*x_scale),
      height:Math.round(height*y_scale) }
      _getTextExtentsCC2012: function(text_item) {
      app.activeDocument.activeLayer = text_item.parent
      var ref = new ActionReference()
      ref.putEnumerated( charIDToTypeID("Lyr "), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") )
      var action = executeActionGet(ref)
      var textKey = action.getObjectValue(stringIDToTypeID('textKey'))
      //Photoshop._debugActionKeys(textKey)
      var bounds = textKey.getObjectValue(stringIDToTypeID('bounds')) 
      var width = bounds.getUnitDoubleValue (stringIDToTypeID('right')) 
      var height = bounds.getUnitDoubleValue (stringIDToTypeID('bottom')) 
      var x_scale = 1
      var y_scale = 1
      if (textKey.hasKey(stringIDToTypeID('transform'))) { 
      var transform = textKey.getObjectValue(stringIDToTypeID('transform'))
      x_scale = transform.getUnitDoubleValue (stringIDToTypeID('xx'))
      y_scale = transform.getUnitDoubleValue (stringIDToTypeID('yy'))
      return {
      x:Math.round(text_item.position[0]),
      y:Math.round(text_item.position[1]),
      width:Math.round(width*x_scale),
      height:Math.round(height*y_scale)
      _getTextExtentsCS6: function (text_item) {
      var layer = text_item.parent
      return {
      x:Photoshop.getLayerLeft(layer),
      y:Photoshop.getLayerBottom(layer),
      width:Photoshop.getLayerWidth(layer),
      height:Photoshop.getLayerHeight(layer)

  • "Enter" in a multi-line text item (Urgent)

    Hello,
    I am using developer 6i.
    I have a text item on my form with the following properties:
    Height = 100
    width = 100
    Multiline = True
    Now i am assiging a value to this text item programatically.
    I want to show the data assigned to this field in the same pattern as written below:
    Name: Imran Baig
    Age: 27
    Email: misterimran@hotmail.
    Now how to show Age:27 on the next line of the text item, i am using chr(13) but its not working, is there any other way to do this???
    Please help and its also urgent!
    Thanks a lot
    Imran

    Hello,
    Use CHR(10) instead of CHR(13)
    Francois

  • Controling space between Text Items when using htp.p('HTMLDB_ITEM.TEXT')

    I'm using the following code inside a table tag within a loop to generate a multi-row printable form
    htp.p('<td cellspacing="0" align="right" width="100%" style="font-size:8pt">'||HTMLDB_ITEM.TEXT(p_idx=>2,p_size=>1)||'</td>');
    I'm still getting gaps between rows.
    How do I control the space between each row ? I want each text item row packed up like a spreadsheet with no gaps between rows. Although not shown (border="0") there is the enclosing table cell for each field, so what I want is no cellspacing and maximized item height within each cell.
    But with the above code I'm getting...
    etc.
    but I want
    Anyone know how to do this?
    regards
    Paul P

    Hi Chris , how's it goin'...
    thanks for the response. I know how to control a table cell area's height but it's the height of the inner textitem that I'm having trouble with. When I turn on border="1" There's not much space left between cells, just the default width of a line. I just don't know how to expand the height of the text item. The CSS code you suggested, where do I put the code and how do I apply it?
    Here is the guts of the PLSQL report code
    for des_rec in des_cur loop
    htp.p('<table height="100%" width="95%"border="0">');
    htp.p('<tr>');
    htp.p('<td style="font-size:8pt;font-family:Arial" width="80%" nowrap >'||
    des_rec.DES_SERVICE_DESC||'</td>');
    htp.p('<td cellspacing="0" align="right" width="5%" style="font-size:8pt">'||
    HTMLDB_ITEM.TEXT(p_idx=>2,p_size=>1)||'</td>');
    htp.p('<td cellspacing="0" align="left" width="5%" style="font-size:8pt">'||
    HTMLDB_ITEM.TEXT(p_idx=>3,p_size=>1)||'</td>');
    htp.p('</tr>');
    htp.p('</table>');
    end loop;
    regards
    Paul P

  • Scrollbar on text item

    i have a large data field that i need to display and i want to have a scrollbar for the user to scroll through the text item not the record set. is there anyway to do this?

    Set three properties in the field's property pallette. Multi-Line in the Functional group makes the text field display multiple lines. Height in the Physical group makes the text field larger so you can see multiple lines. Show Vertical Scroll Bar in the Physical group puts a scroll bar in the field if the text goes off the displayed area.

  • Mapping text item

    hi
    i have a form component text item in oracle forms6i. so i created a <af:inputText> in my jsp page. and i gave the width and height same as the value of form's component text item in pixels.
    The problem is that even though i gave the same value for the <af:inputText> , in jdev11 it appears to be slightly greater than the appearance that is in oracle forms 6i.
    i want text box to be appear same in both environment.is there any way to change it.
    i mean
    1px in forms = "------"px in jdev11.
    so that i can get the same appearance.
    is there in pixel difference between forms and jdev???
    i dont know whether i conveyed my doubt properly.hope u understood my doubt.
    rgds

    Lets try this.  I included the line item segment (E1EDP01) and example text for each line item.  I am mapping the line item text when E1EDPT1-TDID = Z001. 
    E1EDP01
    ..POSEX (00010)
    ....E1EDPT1
    ......TDID (Z001)
    ........ E1EDPT2
    ...........TDLINE (text aaaa)
    .........E1EDPT2
    .......... TDLINE (text bbbb)
    ....E1EDPT1
    ......TDID (Z002)
    ........ E1EDPT2
    ...........TDLINE (text yyyy)
    .........E1EDPT2
    .......... TDLINE (text zzzz)
    E1EDP01
    ..POSEX (00020)
    ....E1EDPT1
    ......TDID (Z001)
    ........E1EDPT2
    ...........TDLINE (text cccc)
    ........E1EDPT2
    ...........TDLINE (text dddd)
    ....E1EDPT1
    ......TDID (Z002)
    ........ E1EDPT2
    ...........TDLINE (text wwww)
    .........E1EDPT2
    .......... TDLINE (text xxxx)

  • How to influence APEX 4.0 autocomplete text item drop down list's colors?

    Hi,
    Could some body please point me to the template that I have to modify?
    I am using theme 15 and the text item with auto complete has a very different color schema, that I would like to modify, so that it would harmonize with Theme 15 colors. It's just that I can not seem to find the template to modify. TIA.
    Tamás

    Tamas
    There's no template for the autocomplete item. It's appearance is controlled entirely using CSS. Theme 15 does not include themed styling for autocomplete items: it falls back to a generic scheme specified in the <tt>apex_4_0.css</tt> style sheet:
    .ac_results {
      padding: 0;
      border: 1px solid black;
      background-color: white;
      overflow: hidden;
      z-index: 99999;
    .ac_results ul {
      width: 100%;
      list-style-position: outside;
      list-style: none;
      padding: 0;
      margin: 0;
    .ac_results li {
      margin: 0;
      padding: 2px 5px;
      cursor: default;
      display: block;
      font: menu;
      font-size: 12px;
      line-height: 16px;
      overflow: hidden;
    .ac_results li {
      margin: 0;
      padding: 2px 5px;
      cursor: default;
      display: block;
      font: menu;
      font-size: 12px;
      line-height: 16px;
      overflow: hidden;
    .ac_loading {
      background: white url('indicator.gif') right center no-repeat;
    .ac_odd {
      background-color: #eee;
    .ac_over {
      background-color: #0A246A;
      color: white;
    }The best approach would be to use a web inspector tool to identify what each of these rules does in the context of using the autocomplete item and create your own theme-15-friendly style sheet to override this subset of <tt>apex_4_0.css</tt>.

  • How to populate sequence in a text item in a form

    I have a text item in a form.I want that the doc_id i.e the text item should be automatically populated with the help of sequence.I have created sequence named seq_doc_id.on which trigger i should write the code so that everytime the doc_id gets incremented by one. What should be the code.Can anyone gv me some hint.Do i have to use the loop for this?Please help

    Hi,
    I implemented a when-new-block-instance that does just that,
    however due to navigation problems the trigger fires when it should not
    the result is I got holes in the sequence.
    Is there a system variable status to check with an If test
    to make sure the sequence is called only at inserting time?

  • Updating a value of a text item in a multi record block based on a change

    Hi,
    I need to change the value of a text item in a multi record block based on a change to another item's value in the same block.
    Suppose there's a text item in a multi record block called dt1 which is of type date, which is changed in a particular record. I want to change the values of the another item in the same multi record block, for all other records by running a loop through all the records in multi record block. I dont want to do it on the press of a button, it should do automatically on change. Help me resolve this issue.

    Hi,
    I need to change the value of a text item in a multi record block based on a change to another item's value in the same block.
    Suppose there's a text item in a multi record block called dt1 which is of type date, which is changed in a particular record. I want to change the values of the another item in the same multi record block, for all other records by running a loop through all the records in multi record block. I dont want to do it on the press of a button, it should do automatically on change. Help me resolve this issue.

  • Multiple values from database on a single text item

    i am trying to do the following
    on a single text item in a form
    (under form property pallete->records->number of items displayed is 5) run a triger "when-new-block-instance" with the following pl/sql statement
    declare
    menu_item VARCHAR2(35);
    begin
    select label into menu_item
    from menu_options;
    end;
    however, once i run the form it gives me
    WHEN-NEW-BLOCK-INSTANCE trigger raised unhandeled exception ORA-01422
    however, if in the pl/sql statement contains only
    begin
    execute querry;
    end;
    then it works fine
    The problem i beleive is the fact that the first querry retreives multiple values or recordset instead of A record.
    How can i go arond this and allow the form to list all the values in this form. Eventually i will need to add conditional SQL statments and that is why just execute querry will not work.
    Also, is there a way to dynamically assign a number to "number of records shown" property?
    All help is very much appreciated!
    null

    Hi, Marko
    I teach Forms, and I usually find a bad idea to use SQL statements directly (in particular when you can "make" Forms to do what you want).
    Inside PL/SQL, a SELECT..INTO statement is supposed to select a single row, otherwise an error occurs.
    EXECUTE_QUERY works.
    If by "conditional SQL statements" you mean restricted (filtered) queries, you don't need to write SQL to do this.
    You can set the DEFAULT_WHERE block property to a different value before using EXECUTE_QUERY, like:
    SET_BLOCK_PROPERTY('your_block', DEFAULT_WHERE, 'where menu_id > 100');
    And the answer to your second question is no, you cannot dynamically change the number of records a block is displaying.
    You can limit the number of records your block queries from the database table using Maximum Records Fetched block property (available in Forms 6 and above, not sure about Forms 5). However, this will only work as expected if you set Query All Records to Yes.
    Hope this helps,
    Pedro

  • Text items not being refreshed by LOV items.

    Hi all,
    I've got a strange LOV behavior problems which I cannot solve and require your valuable time and efforts.
    I've created a simple ADF JSF pages with 3 fields and the first field is LOV enabled. For all new row, after clicking the LOV icon, the LOV will show up and after selecting a particular value, it closes the LOV screen and replace it with a new row with the selected LOV data. It is all working well for all new rows just like a normal LOV should perform.
    But I had problem with existing data. The row which I selected from the LOV somehow cannot referesh and overwrite any existing row (visually) but after commiting the data, it was actually written and refreshed with the correct data. Is there a property in the JHeadstart Application Definition Editor where I enforce the text items to be refreshed by the LOV items?
    Thank you for your time and efforts.
    Kind Regards,
    John

    Hi Guys,
    I've performed the following scenarios attempting to refreshed Text items by the LOV Items.
    Scenario 1: Create a new column called some_key load unique number into it. Set this column as the primay key and deselect existing primary keys as key attributes. Also, I've created a sequence and some_key is of type of DBSequence getting value from the new sequence starting from 1.
    After generation when run and the result is:
    JBO-27022: Failed to load value at index 11 with java object of type oracle.jbo.domain.DBSequence due to java.sql.SQLException.
    ## Detail 0 ##java.sql.SQLException: Invalid column index
    Scenario 2: Create a unique index for the some_key column, rerun and the result is:
    JBO-27022: Failed to load value at index 11 with java object of type oracle.jbo.domain.DBSequence due to java.sql.SQLException.
    ## Detail 0 ##java.sql.SQLException: Invalid column index
    Scenario 3: Set some_key as number instead of DBSequence (from Entity Object Editor), rerun and the result is:
    JBO-27021: Failed to load CustomDatum value at index 11 with java object of type oracle.jbo.domain.Number due to java.sql.SQLException.
    ## Detail 0 ##java.sql.SQLException: Invalid column index
    Scenario 4: Deattach the offending View Object from the Application Module. Remove the offending view link and view object. Recreate view object and view link. Reset some_key is of type of DBSequence getting value from the new sequence starting from 1 (From the Entity Object Editor). After generation when run and result is:
    SUCCESSFULLY!!
    So, I guess the bottom line is here are the following things which you need to perform in order to enable text item to be refreshed by LOV item (if the detail table has composite primary keys)
    1.) Create a new column
    2.) Load unique value to it
    3.) Create unique index for it
    4.) Create entity object, view object and view link object.
    5.) Set the new column as primary key.
    6.) Deselect the key attributes for all composite primary key columns.
    Regards,
    John

  • [CS4][JS] Accessing skewed text items

    The following code snippet successfully finds all the skewed text in a
    document and then removes the skew:
    //Clear the find/change preferences.
    app.findTextPreferences = NothingEnum.nothing;
    app.changeTextPreferences = NothingEnum.nothing;
    //Set the find options.
    app.findChangeTextOptions.caseSensitive = false;
    app.findChangeTextOptions.includeFootnotes = false;
    app.findChangeTextOptions.includeHiddenLayers = false;
    app.findChangeTextOptions.includeLockedLayersForFind = false;
    app.findChangeTextOptions.includeLockedStoriesForFind = false;
    app.findChangeTextOptions.includeMasterPages = false;
    app.findChangeTextOptions.wholeWord = false;
    //Search the document for all the skewed text
    app.findTextPreferences.skew = 1;
    // now remove all skews
    app.changeTextPreferences.skew = 0;
    However, I want to access each fragment of skewed text rather than
    globally change them.
    How do I access the collection of skewed text items as the
    findTextPreferences does not seem to possess the required properties.
    TIA
    Doug Neale

    Hi Peter,
    I tried this on a single page document with some text set in italics:
    //Clear the find/change preferences.
    app.findTextPreferences = NothingEnum.nothing;
    app.changeTextPreferences = NothingEnum.nothing;
    //Set the find options.
    app.findChangeTextOptions.caseSensitive = false;
    app.findChangeTextOptions.includeFootnotes = false;
    app.findChangeTextOptions.includeHiddenLayers = false;
    app.findChangeTextOptions.includeLockedLayersForFind = false;
    app.findChangeTextOptions.includeLockedStoriesForFind = false;
    app.findChangeTextOptions.includeMasterPages = false;
    app.findChangeTextOptions.wholeWord = false;
    //Search the document for all the skewed text
    app.findTextPreferences.skew = 1;
    var myFound = app.activeDocument.findText();
    if (myFound.length==0) {
    alert("No skewed text was found");
    else {
    // ok we have some skewed text, now loop through each one
    for (i =0; i < myFound.length; i++) {
    var myTextObject = myFound[i];
    var myText = myTextObject.Content;
    and it always finishes up with the alert :-(
    and debug confirmed that myFound.length was zero.
    Should I be doing something else to find italic text?
    Regards,
    Doug Neale

Maybe you are looking for