Scrollbar for Tree
Hi all,
I have a tree which when expanded doesnt fit in the window , so i have to scroll down the page to browse the entire tree. Is there any way to provide a scrollbar for the region alone to which the tree belongs ?
Thanks in advance
- Azihas
You can use a DIV tag and a define it's style like this:
<DIV style="height:300px;width:200px;overflow:auto">
..... your tree .....
</DIV>
There are several places, where you can place the tags:
1) In the properties of your Tree region - as a region header and a footer
2)You can define your new region template and place the tags around the #BODY# substitution string
3)In the Tree definition - the Before Tree and After Tree properties
Similar Messages
-
Apex 5.0, Horizontal scrollbar for Interactive Report and Pivot Format
Hi,
i would like to know how to have an horizontal scrollbar for an interactive report (5.0) after making a pivot from the user interface; i have a lot of columns and without the pivot the horizontal scrollbar appears . After it doesn't appear.
I tried with the Region Header <div style="overflow:auto;"> and Region Footer </div> but without success.
Regards
GianpaoloHi gianpagi,
gianpagi wrote:
i would like to know how to have an horizontal scrollbar for an interactive report (5.0) after making a pivot from the user interface; i have a lot of columns and without the pivot the horizontal scrollbar appears . After it doesn't appear.
I tried with the Region Header <div style="overflow:auto;"> and Region Footer </div> but without success.
Please mention the theme and template you are using for the Interactive Report.
Can you re-produce the issue on apex.oracle.com and share the workspace credentials, so that can have closer look at the issue?
Regards,
Kiran -
Vertical Scrollbar for a slide
I'm new to captivate. Can anybody help me to get a vertical
scrollbar for the slides?Hi TrioRocks,
Thanks for your reply. It worked fine. i imported the flash
.swf file in my application but the only problem is that i cannot
edit the content of the slide after importing the flash file. -
Horizontal scrollbar for JComboBox - Not workable under Mac
By referring to this thread Re: Horizontal scrollbar for JComboBox across multiple look and feel I try to provide horizontal scroll bar for JComboBox to my clients.
private void adjustScrollBar() {
//if (this.getItemCount() == 0) return;
Object comp = this.getUI().getAccessibleChild(this, 0);
if (!(comp instanceof JPopupMenu)) {
return;
JPopupMenu popup = (JPopupMenu) comp;
// Works fine under Windows and Ubuntu Linux
// However, in OSX 10.6.4
// javax.swing.Box$Filler cannot be cast to javax.swing.JScrollPane
JScrollPane scrollPane = (JScrollPane) popup.getComponent(0);
scrollPane.setHorizontalScrollBar(new JScrollBar(JScrollBar.HORIZONTAL));
scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
}The above code will cause ClassException under OSX 10.6.4. (Works fine for Windows and Linux)
Any suggestion to resolve this problem. Sorry. I do not have a Mac machine. Hence, can't experiment out much with it.
ThanksThe following code works quite well for me.
private void adjustScrollBar() {
final int max_search = 8;
// i < max_search is just a safe guard when getAccessibleChildrenCount
// returns an arbitary large number. 8 is magic number
JPopupMenu popup = null;
for (int i = 0, count = this.getUI().getAccessibleChildrenCount(this); i < count && i < max_search; i++) {
Object o = this.getUI().getAccessibleChild(this, i);
if (o instanceof JPopupMenu) {
popup = (JPopupMenu)o;
break;
if (popup == null) {
return;
JScrollPane scrollPane = null;
for (int i = 0, count = popup.getComponentCount(); i < count && i < max_search; i++) {
Component c = popup.getComponent(i);
if (c instanceof JScrollPane) {
scrollPane = (JScrollPane)c;
break;
if (scrollPane == null) {
return;
scrollPane.setHorizontalScrollBar(new JScrollBar(JScrollBar.HORIZONTAL));
scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
} -
Horizontal scrollbar for JComboBox
Hi,
I want to use Horizontal scrollbar for JComboBox which i have used as an editor for table column cell and the matter in drop down list is larger but the width of column of a table is relatively small
Any suggetions!
Thanks and regards,
NileshHi,
I want to use Horizontal scrollbar for JComboBox which i have used as an editor for table column cell and the matter in drop down list is larger but the width of column of a table is relatively small
Any suggetions!
Thanks and regards,
Nilesh -
Is there a Java API for Tree data structure?
Hi,
I am wondering is there any Java API to work on Tree based data structure.
I could read in some forums / sites that teach me how to create tree based objects using collection.
But I wanted to know is there any core java API that can be used directly for tree based operations. (like binary tree or other type of trees)
Please comment on this doubt.Headed using google and other stuff not found one.
Suggestion: Why not start building the one, its a good idea to do that, isn't it. -
To setup scrollbars for individual columns in JTable
Hi,
I need to setup individual scrollbars for the
columns in JTable.
Can anybody help?
Thanks in advance.
Rgds,
sitaHi,
I need to setup individual scrollbars for the
columns in JTable.If i understand you correctly, you want to have a scrollbar for every column. If so, you will need a new instance of JTable and JScrollPane for every column, but that's a lot of work if you want to do it fancy.
The good news, is you can reuse the table model.
You could do something like that.
for (int i= 0; i < model.getColumnCount(); i++) {
JTable table = new JTable();
table.setAutoCreateColumnsFromModel(false);
//container
someContainer.add(new ScrollPane(table), null/* or some layout constrains*/);
TableColumn tc = new TableColumn(i, 120);
tc.setHeaderValue(model.getColumnName(i));
table.addColumn(tc);
Can anybody help?
Thanks in advance.
Rgds,
sita -
I am using DefaultMutableTreeNode object as tree node
But for this object there is no method for setting tToolTipText
So anybody know that how to set tool tip for tree nodeYou're going to want to look at the cell renderer. That secretly returns a jlabel.
The JLabel can have a tooltip set for it. -
Use of Scrollbar for movieclips
I have created a script that duplicates movieclip in an other
movieclip with instance "mainmovie_mc" the problem is just that
mostly the clip becomes bigger then the stage can some please give
me a script or tell me how to create one that checks the movieclip
after every duplication and if the clip size is more then 700 px it
creates a scrollbar for viewing the clips that are below like
windows explorer I hope I made senseHere is the code of the movieclip in which other movieclips
are duplicated please if you can fix some bugs which causes the
loaded images in "sam_mc" flicker and dissapper also I was unable
to use for and next loop cause this is my first script and I can't
get it working please help me out :
quote:
_root.createEmptyMovieClip("target_mc",
_root.getNextHighestDepth());
loadVariables("..\\..\\Bin\\user.img", _root.target_mc);
function checkParamsLoaded() {
_root.ad1 = _root.target_mc.ad1
_root.ad2 = _root.target_mc.ad2
_root.ad3 = _root.target_mc.ad3
_root.ad4 = _root.target_mc.ad4
_root.ad5 = _root.target_mc.ad5
_root.ad6 = _root.target_mc.ad6
_root.ad7 = _root.target_mc.ad7
_root.ad8 = _root.target_mc.ad8
_root.ad9 = _root.target_mc.ad9
_root.ad10 = _root.target_mc.ad10
img_mc._x = 360;
img_mc.name = _root.ad1
loadMovie("..\\..\\Bin\\" + _root.ad1 + ".jpg",
img_mc.sam_mc);
img_mc.sam_mc._height = 48
img_mc.sam_mc._width = 48
if (_root.ad2 == undefined) {
//nothing
} else {
duplicateMovieClip(img_mc, "newImg_mc",
this.getNextHighestDepth());
newImg_mc._x = 360;
newImg_mc._y = 160;
newImg_mc.name = _root.ad2
loadMovie("..\\..\\Bin\\" + _root.ad2 + ".jpg",
newImg_mc.sam_mc);
if (_root.ad3 == undefined) {
//nothing
} else {
duplicateMovieClip(img_mc, "newaImg_mc",
newImg_mc.getDepth() + 50);
newaImg_mc._x = 360;
newaImg_mc._y = 232;
newaImg_mc.name = _root.ad3
loadMovie("..\\..\\Bin\\" + _root.ad3 + ".jpg",
newaImg_mc.sam_mc);
if (_root.ad4 == undefined) {
//nothing
} else {
duplicateMovieClip(img_mc, "neqImg_mc",
newaImg_mc.getDepth() + 50);
neqImg_mc._x = 360;
neqImg_mc._y = 304;
neqImg_mc.name = _root.ad4
loadMovie("..\\..\\Bin\\" + _root.ad4 + ".jpg",
neqImg_mc.sam_mc);
if (_root.ad5 == undefined) {
//nothing
} else {
duplicateMovieClip(img_mc, "neeImg_mc", neqImg_mc.getDepth()
+ 50);
neeImg_mc._x = 360;
neeImg_mc._y = 376;
neeImg_mc.name = _root.ad5
loadMovie("..\\..\\Bin\\" + _root.ad5 + ".jpg",
neeImg_mc.sam_mc);
if (_root.ad6 == undefined) {
//nothing
} else {
duplicateMovieClip(img_mc, "nebImg_mc", neeImg_mc.getDepth()
+ 50);
nebImg_mc._x = 360;
nebImg_mc._y = 448;
nebImg_mc.name = _root.ad6
loadMovie("..\\..\\Bin\\" + _root.ad6 + ".jpg",
nebImg_mc.sam_mc);
if (_root.ad7 == undefined) {
//nothing
} else {
duplicateMovieClip(img_mc, "neoImg_mc", nebImg_mc.getDepth()
+ 50);
neoImg_mc._x = 360;
neoImg_mc._y = 520;
neoImg_mc.name = _root.ad7
loadMovie("..\\..\\Bin\\" + _root.ad7 + ".jpg",
neoImg_mc.sam_mc);
if (_root.ad8 == undefined) {
//nothing
} else {
duplicateMovieClip(img_mc, "negImg_mc", neoImg_mc.getDepth()
+ 50);
negImg_mc._x = 360;
negImg_mc._y = 16;
negImg_mc.name = _root.ad8
loadMovie("..\\..\\Bin\\" + _root.ad8 + ".jpg",
negImg_mc.sam_mc);
if (_root.ad9 == undefined) {
//nothing
} else {
duplicateMovieClip(img_mc, "nemImg_mc", negImg_mc.getDepth()
+ 50);
nemImg_mc._x = 360;
nemImg_mc._y = 592;
nemImg_mc.name = _root.ad9
loadMovie("..\\..\\Bin\\" + _root.ad9 + ".jpg",
nemImg_mc.sam_mc);
if (_root.ad10 == undefined) {
//nothing
} else {
duplicateMovieClip(img_mc, "neemImg_mc",
nemImg_mc.getDepth() + 50);
neemImg_mc._x = 360;
neemImg_mc._y = 664;
neemImg_mc.name = _root.ad10
loadMovie("..\\..\\Bin\\" + _root.ad10 + ".jpg",
neemImg_mc.sam_mc);
clearInterval(param_interval);
var param_interval:Number = setInterval(checkParamsLoaded,
50);
stop(); -
How to Display Heading for TREE Structure (report)
hi,
tell me how display the heading for the TREE Report.
With Regards,
Shakthi Raj N.Hi,
If you are using object oriented approach for developing the Tree report, then you can use below shown example for creating header for the report.
first create tree control
CREATE OBJECT TREE1
EXPORTING
PARENT = G_CONTAINER_OBJECT
NODE_SELECTION_MODE = CL_GUI_COLUMN_TREE=>NODE_SEL_MODE_SINGLE
ITEM_SELECTION = ''
NO_HTML_HEADER = ''
NO_TOOLBAR = ''
EXCEPTIONS
CNTL_ERROR = 1
CNTL_SYSTEM_ERROR = 2
CREATE_ERROR = 3
LIFETIME_ERROR = 4
ILLEGAL_NODE_SELECTION_MODE = 5
FAILED = 6
ILLEGAL_COLUMN_NAME = 7.
CLEAR GT_HEADER.
GT_HEADER-TYP = 'H'.
GT_HEADER-INFO = 'Output'.
APPEND GT_HEADER.
CLEAR GT_HEADER.
GT_HEADER-TYP = 'S'.
GT_HEADER-KEY = 'Display'.
GT_HEADER-INFO = 'Report'.
APPEND GT_HEADER.
then create empty tree-control
CALL METHOD TREE1->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
IS_HIERARCHY_HEADER = G_HIERARCHY_HEADER
I_BACKGROUND_ID = 'ALV_BACKGROUND'
IT_LIST_COMMENTARY = GT_HEADER[]
CHANGING
IT_OUTTAB = GT_SPFLI[] "empty table
IT_FIELDCATALOG = GT_FIELDCAT_LVC[].
In this way header can be given for Tree report.
Hope this answers your query.
Regards,
Brajvir -
How to render Inline scrollbars for a table
Hi All,
I'm using a large table with nearly 30 columns with the width property of the table set to 2200 and No wrap is set to TRUE on all the columns.
Is there any possible way to render inline horizontal scrollbar for the table instead of rendering the scrollbars on an OAF page ?
Please help me.
Regards
Srikanth EnuguruI cant help you with the Inline scroll bar you are looking for (dont think we have anything like this in OA Framework). But you can ponder over the idea of showing another region using hide/show feature. You can use this region to show all the additional information for which you need so many columns.
Regards
Sumit -
Hello Friends,
I need the scrollbar for datatable.
I would like to explain my pbm with code.
<h:form>
<div style="overflow:auto;width:55%;height:45px;top:235px;left:219px;position:absolute;">
<h:datatable>...</h:datatable>
</div>
</h:form>
The above works fine but if the same is put in a panelgrid I get scrollbar anad table in a different locations and scrollbar doesnt scroll..ie
<h:form>
<h:panelGrid>
<div style="overflow:auto;width:55%;height:45px;top:235px;left:219px;position:absolute;">
<h:datatable>...</h:datatable>
</div></h:panelGrid>
</h:form>
I wanted the datatable with scrollbar to be placed inside a panelgrid...
can anyone help me out to get datatable with scrollbar.
Thanks and Regards,
Sonara.With all your help I got a scrollbar to work around the datatable just fine. But I got another problem now. Since I have the DIV tag's style's height and width fixed, when the number of rows in my table is less than I expected, I get a blank area below the table in the scroll area. This happens because you hardcode the DIV tag's width and height. Is there any way of avoiding this area that appears. Is a JSF scroll bar custom component my only option?
-
Hi,
I'm using forms6i.
Is it possible to add a scrollbar for a multiline text item??
ThanksYes, set its Functional -> Multi-line property to YES
Francois -
hi all,
iam doing a project in swing . in it there are 6 tabs, is it possible to add a scrollbar for the tabs . i have tried this by adding the tabbed pane to the scrollpane but the scroll bars are not visible.
could u pls tell me how to add a scroll bar for the tabs.have you tried:
JFrame f = new JFrame();
JTabbedPane t = new JTabbedPane();
/* add your tabs */
JScrollPane p = new JScrollPane(t);
f.getContentPane().add(p);thomas -
Noeud (for tree) is declared as what in forms --PLEASE
Noeud (for tree) is declared as what in forms
In (another) addition, I recall getting deadlock errors as well, due to a totally wrongly defined transaction, using slow-by-slow processing (many moons ago, but I still wake up screaming in the middle of the night when dreaming of that code).
Will it affect other DML's in the current session .Please help me.It depends on in what way you're applying autonomous transactions. From that point of view you gave us little information sofar.
It depends on the understanding you have of them, regarding how they work, and what surprises/data corruption/errors they can give you.
We don't know what you're trying to implement here, but I'd stay far from using an autonomous transaction.
They're only good for logging errors.
Not for fixing datamodel issues or fixing poorly designed transactions based on incomplete/incorrect business rules.
They are not workarounds.
That's been my rule as well for years now.
In general you need to stay away from them. Far far away. Just like the WHEN OTHERS exception.
And especially when you've come to believe that an autonomous transaction will save your day, while it's doing something else than errorlogging in a separate procedure call which in it's turn an autonomous transaction!
Suggest you read up on DML Error Logging then.
You can search http://asktom.oracle.com for more examples and explanations.
Also Metalink/My Oracle Support, if you have access.
Maybe you are looking for
-
ORA-00936: Missing Expression when using a claculation as a condition item
Hi I created a calculation below to create a subtotal on each row of a group of selected items. SUM(Invoice Amount)OVER(PARTITION BY Supplier Num ORDER BY Payment Currency Code) This worked fine - but then I wanted to create a condition based on this
-
Nokia Music Application Mp3 Downloads fail
I bought a song using the Nokia Music application on my Lumia 920. The first attempt to download started and then stopped within a second of starting. No sign of any sort of progress bar. Mind you, this would be the first time I tried downloading wit
-
Implement digital signatures ?
Is it possible to implement digital signatures ( xml-based ? ) into a HTML DB ? May be someone can point me to the right URL or manual to start with... Thanks in advance Tobias
-
Does e-filing on erp6 support Business Connector 4.8.
We are planning to upgrade to ERP6 we are currently using business connector 4.7 for e-filiing GB. From my investigations so far it seems that we need to implement PI for e-filing GB on ERP6 but since Business Connector 4.8 has now been released and
-
My Ipod Touch won't connect to belkin 54g router with wep password 128 bit
Well basically, I try to connect to my router it is belkin 54g, I have a 128 bit password WEP security. When I put the password in correctly, it says that it's " Unable to connect ". However, when I only put in the first 10 hex of my password it says