Htp.p( pre )  and vertical scrollbar

Greetings,
Carl used the code below for an OnDemand Process in
http://apex.oracle.com/pls/otn/f?p=11933:13:3295006254376178
Can I set the height and have vertical scrollbar with the pre tag?
I've tried a div tag with no success.
declare
l_Id varchar2(4000);
l_String varchar2(32767);
begin
select DESCRIPTION into l_String from "RANDOMDATA" where id = v('TEMPORARY_ITEM');
htp.p('<pre>'||l_String||'</pre>');
end;
Thanks,
Tim
Edited by: Tim Arnold on Jan 18, 2009 8:14 AM

I am just gessing but wouldn't this work:
DECLARE
   l_id       VARCHAR2 (4000);
   l_string   VARCHAR2 (32767);
BEGIN
   SELECT description
     INTO l_string
     FROM "RANDOMDATA"
    WHERE ID = v ('TEMPORARY_ITEM');
   HTP.p ('<div style="width:1000;overflow-y:scroll">' || l_string || '</div>');
END;?
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://apex.oracle.com/pls/otn/f?p=31517:1
-------------------------------------------------------------------

Similar Messages

  • How to have horizotal and vertical scrollbar similtaneously in form

    Hi,
    I my prj I have a main normal content canvas and in top of content canvas there is stacked canvas which fetches the data from datablock.By seting the scrollbar properly in datablock its possible to set horizontal or vertical scrollbar.However I need both the horizontal and vertical scrollbar.Is it possible to have both the scrollbar?How can it be done.In datablock propertly its possible to set either vetical or horizontal scrollbar.

    This might help you
    +Create the Detail Data Block setting Show Scroll Bar property to Yes and Scroll Bar Orientation property to Vertical. Add some fields from the Detail Block on the Content Canvas.
    Create a Stacked Canvas and put the other needed fields from the Detail Block on it. For the Stacked Canvas set Show Horizontal Scroll Bar property to Yes.+

  • Listbox row 0 and vertical scrollbar issue

    Hi,
    I tried to do simple VI where I can check items in the Listbox control. My problem is that when I click anywhere on the vertical scrollbar or buttons with the triangles, Mouse Down event triggers and check item in the row 0.
    Is this an issue or is it just a mistake in code?
    For some reason I am not able to attach VI, so block diagram is below.
    Thank you for any help.
    I use LV 2010.
    Duri
    Duri
    Solved!
    Go to Solution.

    Here is a demo VI that handles listbox selection like this with a single click.  Saved in 2011, uses OpenG array.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.
    Attachments:
    Listbox Item Selection Demo.zip ‏55 KB

  • Spark list and vertical scrollbar

    Hi,
    i have this problem (that seems a common problem):
    I have a List that is bound with an ArrayCollection that is populated with a push data provider that send to me a sport event (with a lot of properties).
    I have also an event map where i put the event into (a simply hashtable).
    If the event doesn't exists in the map i'll add to an ArrayCollection, if the event exists i'll change only its properties (a code snippet):
    var event:LiveEvent = tableMap[changedEvent.row_id];
    if (event) {
         if (changedEvent.active==false) {
              events.removeItemAt(getEventByRowId(events,event.row_id));
              tableMap[changedEvent.row_id]=null;
         else {
              var i:Number;
              event.signgroups = changedEvent.signgroups;
              event.name = changedEvent.name;
              event.betstatus=changedEvent.betstatus;
    after this i force a refresh to the dataprovider (events.refresh();) that cause the verticall scroll bar of the list to jump up.
    I've read into a previous post (that was using a datagrid and not a list) that the refresh is needed only when thare are new UID, so in my case if only the properties changed its value it "should" not needed. But if i don't put the refresh my list is not updated.
    I've also tried to get/set the vertical scroll bar position using:
    eventList.scroller.verticalScrollBar.value = myOldPosition
    but there is someone (i bet some events) that change the scrollbar position after my function.
    How i can prevent to change the scrollbar position or (would be great) avoid the refresh() call?
    this is my list definition:
    <s:List dataProvider="{events}" changing="setItem()" id="eventList" width="300" itemRenderer="itemsrenders.EventItemrender" height="{this.height-90}">

    LiveEvent is a remote object class:
        [RemoteClass(alias="com.isitech.live.beans.Event")]
        public class LiveEvent
            public var row_id:Number;
            public var name:String;
    so event that is a private var is not bindable. Should i declare it global and make it Bindable?

  • Dynamic table with header locked and vertical scrollbar problem.

    Hi,
    I have created a dynamic table with header locked.The sample code is as below.
    <div style="width:910px ; overflow-x : scroll">
    <h:panelgrid ...for header populated by binding to pagecode/>
    <div style="width:910px ; height:200px ; overflow-y : scroll">
    <h:panelgrid ...for data populated by binding to pagecode/>
    </div>
    </div>
    The above piece of code serves the purpose.
    There is an overflow in both x as well as y directions and scrollbars appear.But the y scrollbar can be seen only when the x-scrollbar is moved to the extreme right.
    Does anyone have a solution so that both the scrollbars can be seen as soon as the table loads without the need to move x to the extreme right to see y?

    wa_layout-grid_title = text-039.
        wa_layout-sel_mode = 'A'.
        APPEND wa_layout TO gs_layout.
        wa_layout-grid_title = text-039.
        wa_layout-sel_mode = 'A'.
        APPEND wa_layout TO gs_layout.
        wa_layout-grid_title = text-039.
        wa_layout-sel_mode = 'A'.
        APPEND wa_layout TO gs_layout.
      CALL METHOD gr_alvgrid1->set_table_for_first_display
          EXPORTING
            is_layout       = gs_layout
          CHANGING
            it_fieldcatalog = it_fieldcatalog1[]
            it_outtab       = <l_table>.
    i am using like but its not accepting more than one line header in is_layout, is there any possibility to take like this.
    Regards,
    Mallikarjuna.

  • Vertical scrollbar does not appear

    Hi all!
    Here is my problem.
    I have a JPanel on a JScrollPane (called: container).
    I have an other class which extends JPanel (called: component).
    I have a JButton which adds a new from component to container on every click. (container's layout is null, and I use the setBounds method on component).
    After every adding I've just set a new height to the container (setSize(container.getWidth(), container.getHeigth()+100)), but vertical scrollBars of JScrollPane does not appear.
    I tried to call the revalidate, repaint methods on the container but it did not work.
    Please help me!

    Which JScrollPane constructor are you using? If you're using one that does not specify scrollbar policy parameters, horizontal and vertical scrollbars only appear if the component's contents are larger than the view. You can of course set a JScrollPane's scollbar policies by calling the appropriate mutator methods: setVerticalScrollBarPolicy and setHorizontalScrollBarPolicy.

  • Cuatom Forms: Loosing the Vertical scrollbar when resizing the Window

    Hi All
    I have developed a Custom Form. In that there is a Content Canvas and on the top of that I have put a Stacked Canvas so that i can get both the Horizontal and Vertical scrollbars. the form has more than 40 fields to display.
    Folder tool functionality has also been added to the Form.
    The form works absolutely fine and scrollbars too.
    But when I am resizing the window (making the window size bigger or smaller by dragging the window on the Oracle Apps screen), at that time I am loosing the vertical Scrollbar. Other than Vertical scrollbar everything works fine.
    Is there any way (any code) by which the Vertical Scrollbar will not disappear.
    I would really appreciate if any one could guide me on this.
    Thanks
    Madhu

    Madhu,
    Please post your message in the Oracle E-Biz forum. This forum is for Non-EBS Forms development and everyone here may not have EBS Forms development experience.
    That having been said, I encountered this about a year ago. If I remember correctly, we were able to resolve the issue by applying a Forms server patch to the Apps Tech stack. Please check Metalink to verify.
    Craig...

  • I am using a multiline textbox and the problem is its not showing vertical scrollbar in safari browser.

    I am using a multiline textbox and the problem is its not showing vertical scrollbar in safari browser.

    If you are having problems scrolling within a frame then you should be able to use two fingers within the frame to scroll

  • Stocked array vertical scrollbar'​s theme mixed between modern and system??

    I enabled the vertical scrollbar for an array display in the front panel and apparently the modern themed array control has a system themed scrollbar. Also, the vertical and horizontal scrollbars from the modern control palette are also system themed controls. Did NI puposeply implemented it that way?
    In the mean time, What can I do to replace the array veritcal scrollbar with a modern style, shown on the second image. The difference themed scrollbar is very distracting - take a look at the Compare.png image. Please help.
    Thanks in advance,
    James Pham
    Message Edited by VRspace4 on 09-18-2007 01:25 AM
    Attachments:
    Mismatched Theme.png ‏5 KB
    Proper Modern Theme.PNG ‏5 KB
    Compare.png ‏378 KB

    Christian -- No you are not missing anything, there is no system array container.  What Elizabeth meant to say was to use a system listbox and a modern/classic array with a system control inside it.
    James -- Unfortunately there is no way to change the way the array scrollbar looks.  The modern listbox has the same style scrollbar as the modern graphs.  I can only assume that as the array scrollbars were added in a later version this was overlooked.
    Interestingly enough the classic controls consistently use the same scrollbar type (see screenshot).
    Another option would be to use a modern scrollbar placed over the modern listbox in leu of the built in scrollbar.  This would require a little programming to implement (namely wiring the value of the scrollbar to the listbox's "TopRow" property and then possibly some more code to account for the length of the array/scrollbar) but it is an option if you prefer the look of the modern controls.  This would look something like this:
    I hope this helps and, as Elizabeth mentioned above, this has been reported to R&D as something we need to look at.
    Regards,
    Simon H
    AE Team Manager
    National Instruments
    Message Edited by Simon H on 09-19-2007 07:17 PM
    Attachments:
    Screenshot4.png ‏32 KB
    Screenshot5.png ‏8 KB

  • My vertical scrollbar sometimes resizes my window, and I have to exit out of Firefox when this happens. Why?

    Sometimes, when I try to move my vertical scrollbar up or down, the entire window will shrink or expand, and the only way to make this go away is for me to exit out of Firefox and then re-open Firefox. It seems to happen randomly, and often happens several times a day.

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * You can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • I have the latestversion of Firefox and my vertical scrollbar keeps disappearing.

    The vertical scrollbar keeps disappearing, how do I fix it? Please don't be too technical or I won't understand you.

    Hi chrisbondi,
    You may see that message below the Google search box on www.google.com/firefox which is the old Firefox default home page. That page is no longer being maintained by Google.
    You should try changing your home page to:
    about:home
    If you don't know how to change the home page, you should take a look at the Knowledge Base article [[How to set the home page]].
    Hopefully this helps

  • Label display issue in Tree component when it is having vertical scrollbar

    I am using tree component as dropdown factory for combo box. When i open dropdown, it doesn't have vertical scrollbar and all the root nodes are getting displayed correctly(in closed mode). Now if i try to open any node, i am getting vertical scrollbar as the child nodes are more. Now the problem is if scroll down, some of the nodes(labels) are not getting displayed but i am able to see the icon. If i keep on scrolling bottom to top and top to bottom, some of the nodes are showing labels and some are not(It is inconsistant).
    I have not used any custom item renderer for tree control. I used my custom dataDescriptor which i have implemented from ITreeDataDescriptor. Also I tried extending DefalutDataDescriptor, but no luck.

    Does it work if the tree is not in a combobox?

  • How do you add a Vertical scrollbar to a JTextArea?

    How do you add a Vertical scrollbar to a JTextArea? This is what I've tried so far but it hasn't worked. I got that off of someone asking a similiar question here.
    aTextArea = new JTextArea(10, 40);
             JScrollPane scrollPane = new JScrollPane(aTextArea);
             aTextArea.setText( " " );

    JScrollPane(component)
    this constructor will only show the scrollbar (vertical and/or horizontal) as needed..so, if the scrollpane viewport is larger than the component, then it will not show the scrollbar.
    you can force the scrollbar to alway show
    setHorizontalScrollBarPolicy(int policy)
    setVerticalScrollBarPolicy(int policy)

  • MS Word 2007 insert table with vertical scrollbar?

    Hi all, what is the best way when creating a word report to display a table that has alot of rows.  I am wondering if it somehow possible to have a table in Word that has say 10 rows shown to the user but also has a vertical scrollbar that the user can move up and down to see more data.
    If not possible, can anyone think of a solution?
    Best Regards,
    Grant

    Thanks for the replies.  Gaurav k, i was toying with the idea of using Excel but since i have many rows, it would not be the best way to create a report.  My report does not have to be printed, only asved hard copy.  But i do have many tables in addition to graphs etc to view and therefore being able to look at a report that is easy on the eye initially and if faults were found, the user could then look further into the tables. ie perhaps scroll through the many rows. 

  • TableView horizontal and vertical scrolling is horribly slow

    How can I adjust the horizontal and vertical scrolling amount?
    I used the Ensemble example prorgam and streched the column so that the horizontal scroll bar is displayed. I then used the right scroll button which then scrolls extremly slow. I've looked at the javadoc on the tableview and I cannot determine how to set the scrolling amount. I can check if the table is scrolling but I would like to set the amount to be a column width at a time when using the left or right arrow.

    It probably needs to be actually rendered to the Scene graph before the lookups can be made, so the lookups won't work in the initialize method.
    There are a number of reasons I don't like this solution
    - I don't like the string binding
    - the fact that there are scrollbars that are descendant nodes of the table view is not documented, so (at least in theory) a future release of JavaFX could choose not to use the ScrollBar class (for example by creating its own scrolling implementation). This would break the code you have.
    - if you decided to create (or use) an alternative skin for the table view which had other scrollbars in place (again, unlikely but theoretically possible), you'd end up setting the unit and block increments of those scrollbars too. In other words, there's no guarantee these are the actual scrollbars you want.
    So, not ideal but at least if it works you have something...

Maybe you are looking for

  • Collection returned by finder methods

    Collection returned by finder methods are serialized to the clients or referenced? When a client access a EJB and invoke each finder method, the result back to the client is a collection (for every finder methods unless the findByPrimaryKey). This co

  • Problem while starting the Eclipse

    Whenever i am trying to open Eclipse 3.0.1 its asking me to open the log file.The log file shows one error !SESSION ---------------------------------------------------------------------- !ENTRY org.eclipse.core.launcher 4 0 Oct 10, 2006 16:43:15.624

  • Download and installation and activation of ADOBE CREATIVE SUITE 5.5 DESIGN PREMIUM S/N serial number removed on to OSX 10.6.8

    I want to download, and installate, and activate my Adobe Creative Suite 5.5 Design Premium S/N <serial number removed> on to OSX 10.6.8

  • Canvas colour in Illustrator 6

    I would like to change the grey colour behind the artboard from grey to white in Illustrator 6, please help

  • "ComboBox Listeners"

    Have anyone ever faced all these problems togather? Scenarion: I have a View(According to the MVC structure) that extends a JFrame. In this view I have a JPanel that has comboBoxes and JTextField. These components hold different kind of data types. J