Set height size for each state enabling browser scrollbar if needed..
I'm working on a flex project, completely new to it. I'm trying to resize my application based on the set height size for each state. I'd like the wrapper to resize in the browser so that the browser's scroll bar appears if needed. hope this makes sense....
My enitial opening page I've set the height to 1000. now when I click on a link to another state from this page, we'll call it 'home' which i have set to 2000
The page opens in its 2000 height but no scroll bar appears to scroll down in the browser...
If anyone's done this or knows how to, I'd really appreciate your input.
I've done something similar with a few of my apps, you have to use a little javascript on the html page and the ExternalInterface class in your app. Basically, you need to resize the "browser's" height based on your flash file. So here's quick example:
In your html template page (which you can edit in your flashbuilder project panel ->html-template->indext.template.html)
in your html add the jscript function:
<script type="text/javascript">
function setWindowHeight(heightVal){
document.getElementById('theWindow').style.height=heightVal; // make sure to give the body tag an id of 'theWindow' or whatever
</script>
In your flashbuilder app you need to call the javascript fx, you can use the ExternalInterface class for this:
ExternalInterface.call('setWindowHeight',val+'px');
you need to send the jscript fx the height of your container or whatever you want it resized to....
Similar Messages
-
How to set the size for height of iView tray?
Hi,
I have created a ABAP webdynpro component and integrated this comp with iView. Then i integrated iView into Page in portal. That is working fine.
But the size of tray/window which is displayed in the page is very small.
How to increase the height of that Tray/window/iView containing my component?Hi,
By changing the maximum automatic height and Minimum automatic height property of the iview you can set the size for height of your iview.
to do this follow the setps:
goto content administrator -> portal content -> your folder where you created your iview or directly to your iview -> right click -> open -> object,
and now in property category choose appearance-Size from the drop down menu and set the above properties to your required height.
if you want the end user to modify this property set the property to read/write .
*********please reward points if the information is helpful to you******************** -
Hi guys,
I'm making a program in java for school.
Now I have this:
for(Stap2TrampolineModel trampoline : lijstTrampolines)
trampoline = new Stap2TrampolineModel(0,215,100,"Poing",lijstKinderen); //model
trampolineView = new Stap2TrampolineView(trampoline); //view
trampolineController = new Stap2TrampolineController(trampoline, trampolineView); //controller
trampolineView.setBounds(trampoline.getXInvoer(),trampoline.getYInvoer(),trampoline.getFormaat()+1,20);
add(trampolineView);
repaint();
and in the mouselistener this:
public void mouseClicked( MouseEvent e )
System.out.println(lijstTrampolines.size());
// Onderzoek of met de rechterknop is geklikt
if( e.isMetaDown() )
// x = e.getX(); (for later needs)
//y = e.getY(); (for later needs)
lijstTrampolines.add(trampoline);
repaint();
The program should display a "trampoline" when I click...but it doesnt. It is added to the list, because I can see that in the console because of the System.out.println
But it doesn't show the display I want. When I delete the for each statement, it does show the "trampoline". So the mouselistener works (it gets added when I click) and the arraylist works (it shows that in the console), but the for each statement doesnt work...
Anyone knows how to solve this problem?Where is this foreach loop located? In inialisation presumably. But that's over and done with when your mouseListener is called. I'd guess your list is empty when the loop is called, and it does nothing.
Your mouse listener, when it adds a trampoline must also add a trampoline view object. And the repaints don't do you any good, use revalidate() after adding a trampoline view to recalculate the layout. -
How to allocate disk size for each user in iMac?
Hi folks,
I have iMac (Mac OS X, version 10.7.5) for Family, and each of my family member has account on it.
Now, kids download many large files (several GB size files) and HD is getting full.
So, I'd like to set maximum disk size for each user.
Could you prvide instruction how to configure disk size for each user?
Regards,
HiroI don't know of any way to do that by user.
I used to partition my HD and that sets a hard limit by partition, but by user? I don't think it can be done. -
how to set percentage size for layout? for example : VBox,HBox,AnchorPane,......
like HTML
<div width="640px" height="480px">
<div widht="50%" height="60%"/>
<div widht="30%" height="60%"/>
<div widht="20%" height="60%"/>
</div>
-----This is not supported. You can file a feature request at http://javafx-jira.kenai.com
-
HELP !!! How can I set the size of each component separately
Please tell me, when adding components (a mix of
labels , buttons etc.) on a container (swing), how can I set the size
of each component separately.
for example:
the code here has a mix of button and a grid that is actually another JPanel. Its a part of a bigger
program. When running the grid is cut (not seen in its full size).
So, please try to anser also about the specific acse of frame contining another frame in it , and the interior should be right sized.
The relevant part of the code:
=========================================
public class Reversi extends JFrame {
public static void main(String[] args) {
Reversi ourGame = new Reversi();
public Reversi() {
super("Grid Reversi");
setSize(new Dimension(300, 300));
setDefaultCloseOperation(EXIT_ON_CLOSE);
Grid g = new Grid(); // the grid was built at another part..
ReversiGame ourGame = new ReversiGame();
JButton b;
JFrame f = new JFrame("Hello Java");
f.setSize(new Dimension(300, 300));
f.setDefaultCloseOperation(EXIT_ON_CLOSE);
Container c = f.getContentPane();
c.add(g,BorderLayout.NORTH );
c.add(b = new JButton("Hola"), BorderLayout.CENTER);
//f.pack();
f.show();BorderLayout chooses the sizes of each of the components added to it. Choose a different layout manager (or set the placement/size manually with a 'null' layout)
http://java.sun.com/developer/onlineTraining/GUI/AWTLayoutMgr/shortcourse.html -
GROUP BY - Is there a way to have some sort of for-each statement?
Hi there,
This discussion is a branch from https://forums.oracle.com/thread/2614679
I data mart I created for a chain of theatres. The fact table contain information about ticket sales, and I have a some dimensions including DimClient and DimTime.
Here is an example of each table:
FactTicketPurchase
TICKETPURCHASEID
CLIENTID
PRODUCTIONID
THEATREID
TIMEID
TROWID
SUMTOTALAMOUNT
60006
2527
66
21
942
40
7
60007
2527
72
21
988
36
6
60008
2527
74
21
1001
40
6
60009
2527
76
21
1015
37
6
60010
2527
79
21
1037
39
6
DDL for FactTicketPurchase
CREATE TABLE FactTicketPurchase(
TicketPurchaseID NUMBER(10) PRIMARY KEY,
ClientID NUMBER(5) CONSTRAINT fk_client REFERENCES DimClient,
-- ProductionID NUMBER(5) CONSTRAINT fk_prod REFERENCES DimProduction,
-- TheatreID NUMBER(5) CONSTRAINT fk_theatre REFERENCES DimTheatre,
TimeID NUMBER(6) CONSTRAINT fk_time REFERENCES DimTime,
-- TRowID NUMBER(5) CONSTRAINT fk_trow REFERENCES DimTRow,
SumTotalAmount NUMBER(22) NOT NULL);
DimClient
CLIENTID
CLIENT#
NAME
TOWN
COUNTY
2503
1
LEE M1
West Bridgford
Nottingham
2504
2
HELEN W2
Hyson Green
Nottingham
2505
3
LEE M3
Lenton Abbey
Nottingham
2506
4
LORA W4
Beeston
Nottingham
2507
5
SCOTT M5
Radford
Nottingham
2508
6
MINA W6
Hyson Green
Nottingham
..cff.
DDL for DimClient
CREATE TABLE DimClient(
ClientID NUMBER(5) PRIMARY KEY,
Name VARCHAR2(30) NOT NULL);
DimTime
TIMEID
FULLDATE
YEAR
SEASON
MONTH
MONTHDAY
WEEK
WEEKDAY
817
02-MAR-10
2010
Spring
3
2
9
3
818
03-MAR-10
2010
Spring
3
3
9
4
819
04-MAR-10
2010
Spring
3
4
9
5
820
05-MAR-10
2010
Spring
3
5
9
6
821
06-MAR-10
2010
Spring
3
6
9
7
822
07-MAR-10
2010
Spring
3
7
9
1
DDL for DimTime
CREATE TABLE DimTime(
TimeID NUMBER(6) PRIMARY KEY,
Year NUMBER(4) NOT NULL,
Season VARCHAR2(20));
I have the following analysis request to perform on this data mart:
Top 5 clients by value of ticket sale for each season
For this requirement I came up with the following query:
SELECT * FROM
(SELECT FacTIC.ClientID, DimCLI.Name, SUM(SumtotalAmount) SumTotalAmount, DimTIM.Season
FROM FactTicketPurchase FacTIC, DimClient DimCLI, DimTime DimTIM
WHERE FacTIC.ClientID = DimCLI.ClientID
AND FacTIC.TimeID = DimTIM.TimeID
AND Season = 'Spring' AND Year = 2010
GROUP BY Season, FacTIC.ClientID, DimCLI.Name
ORDER BY Season ASC, SumTotalAmount DESC)
WHERE rownum <=5;
As you can see, in line 06 of the above query, I am explicitly specifying the season for the query to return.
However what I would like to do is just one query that could autocratically go through the seasons and years available in the time dimension in a fashion similar to a FOR-EACH statement. This way, if we get more years added to the time dimension, we wouldn't have to amend the query.
Is this possible?
Regards,
P.I think I fixed it!
The trick was to look into the r_num value. As soon as I added it to my query I started to see how r_num was being calculated and I realised that I had to add Season to my partition, right after Year.
SELECT Year, Season, TotalAmount, Name
FROM (
SELECT DimCLI.Name
, DimTIM.Year
, DIMTIM.Season
, SUM(FacTIC.SumTotalAmount) TotalAmount
, RANK() OVER (PARTITION BY Year, Season
ORDER BY SUM(FacTIC.SumTotalAmount) DESC
) AS r_num
FROM FactTicketPurchase FacTIC
, DimClient DimCLI
, DimTime DimTIM
WHERE FacTIC.ClientID = DimCLI.ClientID
AND FacTIC.TimeID = DimTIM.TimeID
GROUP BY DimTIM.Year
, DimTIM.Season
, DimCLI.Name
WHERE r_num <= 5 -- Need to amend this line on my data sample to show 2 rows.
ORDER BY Year, Season, TotalAmount DESC;
Looking at my data sample, I got the following:
YEAR
SEASON
TOTALAMOUNT
CLIENTID
2010
Autumn
29
2504
2010
Autumn
26
2503
2010
Spring
25
2503
2010
Spring
14
2506
2010
Summer
26
2506
2010
Summer
26
2504
2010
Winter
28
2503
2010
Winter
26
2506
2011
Autumn
23
2506
2011
Autumn
14
2503
2011
Spring
25
2505
2011
Spring
13
2503
2011
Summer
21
2505
2011
Summer
14
2503
2011
Winter
19
2505
Now, looking at my real data, (considering the top 5 rows, not the top 2), I got:
YEAR
SEASON
TOTALAMOUNT
NAME
2010
Autumn
141
BUSH M225
2010
Autumn
140
DIANA W66
2010
Autumn
136
HANA W232
2010
Autumn
120
DIANA W220
2010
Autumn
120
WILSON M459
2010
Spring
137
DAVID M469
2010
Spring
125
ALEX M125
2010
Spring
124
PETER M269
2010
Spring
115
ZHOU M463
2010
Spring
114
TANIA W304
2010
Summer
138
JANE W404
2010
Summer
105
MINA W8
2010
Summer
97
DAVID M275
2010
Summer
96
CLINTON M483
2010
Summer
93
ANNA W288
2011
Spring
12
LUISE W20
2011
Spring
7
ANNA W432
2011
Spring
7
LEE M409
2011
Spring
7
CHRIS W274
2011
Spring
7
HELEN W136
2011
Spring
7
LILY W114
2011
Spring
7
LUISE W348
2011
Spring
7
LIU M107
2011
Spring
7
VICTORY W194
2011
Spring
7
DIANA W240
2011
Spring
7
HELEN W120
2011
Spring
7
LILY W296
2011
Spring
7
MATTHEW M389
2011
Spring
7
PACO M343
2011
Spring
7
YANG M411
2011
Spring
7
ERIC M101
2011
Spring
7
ALEX M181
2011
Spring
7
SMITH M289
2011
Spring
7
DIANA W360
2011
Spring
7
MATTHEW M63
2011
Spring
7
SALLY W170
2011
Spring
7
JENNY W258
2011
Spring
7 -
I recently upgraded to 10.8 from 10.6 and I would like to be able to see the folder/file size for each, like in version 10.6. It used to show the size at the bottom of the "window" for the selected folder,drive etc.
-
Variable Use in For-Each statement
Hello Gurus-
I am having an issue using a variable i've created in a for each statement. Here is the code i'm using
My objective is to create a variable based on the kind of invoice. If the invoice is a proof or reprint, one copy should be printed. If it's a final invoice, I need two copies.
<?xdoxslt:set_variable($_XDOCTX, 'x', 0)?>
for-each<?if: Print_Additional_Header_Text_ID238='PROOF'?><?xdoxslt:set_variable($_XDOCTX, 'x', 1)?><?end if?>
<?if: Print_Additional_Header_Text_ID238='REPRINT'?><?xdoxslt:set_variable($_XDOCTX, 'x', 1)?><?end if?>
<?if:not ( Print_Additional_Header_Text_ID238)?><?xdoxslt:set_variable($_XDOCTX, 'x',2)?><?end if?>
<?xdoxslt:get_variable($_XDOCTX,'x')?><?for-each@section:xdoxslt:foreach_number($_XDOCTX,1,$x,1)?>
for-each is the loop i'm using to repeat sections of the invoice.
When I run the preview with the last for-each print, i get an error that says "variable not defined:'x' "
But when i remove the last for each the correct variable, 1 or 2, will show in the invoice.
My question is: How can I use the variable 'x' in <?for-each@section:xdoxslt:foreach_number($_XDOCTX,1,$x,1)?>
TIA
Darius
Edited by: 852460 on May 24, 2011 8:31 AM
Edited by: DEK17 on Jul 20, 2011 1:15 PMProbably, this will help
http://winrichman.blogspot.com/search/label/multiple%20copy
Try
<?for-each@section:xdoxslt:foreach_number($_XDOCTX,1,get_variable($_XDOCTX, 'x'),1)?>
or
<?for-each@section:xdoxslt:foreach_number($_XDOCTX,1,xdoxslt:get_variable($_XDOCTX, 'x'),1)?> -
Buffer size for SQL statement using JDBC calls
I need to find out the buffer size for SQL statements in jave/JDBC because I need to insert or update a field that could be up to 4KB in size.
I'm not sure that I follow the question; I'm not sure which buffer size you're referring to.
If you have a field that can store up to 4k worth of data, you would create a VARCHAR2(4000) column in the Oracle database (assuming it is character data) or a BLOB column (if the data is binary). Either of those two fields can be populated from JDBC.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC -
How to set command action for each item in the popupmenuimage
Hi all,
In my canvas application,i used images for popupmenu.Now i have to set command action for each item in that popupmenuimage.I dont know whether it is possible in canvas or not.Can anyone tell me the solution for this .
Thanks,
sourabButtons is typical of a c/s application, or, in case of Web Forms, a Java applet. Instead of buttons, you have to use hyperlinks.
See:
http://otn.oracle.com/products/reports/htdocs/faq/faq_migration.htm#346
The hyperlink wil have to be to a URL that does the insert in the table. This can be a mod_plsql procedure, for instance. -
Set a FocusTraversalPolicy for each of the JPanels
I have a JInternalFrame that contains a JTabbedPanel that contains 1...n JPanels
I want to set a FocusTraversalPolicy for each of the JPanels
independently.
Each JTabbedPanel has many JComponents.
Please help MEI don't know much about JTabbedPanel but I imagine you can get each of the JPanels contained in it. So couldn't you just set FocusTraversalPolicy for each of them? I guess I really don't understand what the problem here is.
-
Unable to set GL Account for each ItemGroup in Inventory
Hi,
I am Using SAP b1 2005b Patch level 27.
I created one database with "Chart of Accounts INDIA." then I got Default Chart of Accounts.
I want to set GL Account for each ItemGroup in Inventory.
How to assign the Perticular GL Account for Particular Item Group? where can i find this provision in SAP b1?
I am trying from past 2 days, I did not get the way to assign the GL Account for each Item Group.
Plz help me asap.
Regards,
Nagababu.Hello,
you can set it in the module administration --> setup --> inventory --> item group --> tab accounting. But first you must define the name of item group. it is still in the same form.
let me know if problem still persists. G'luck.
Rgds, -
Where can I find the file sizes for each application before downloading?
Where can I find the file sizes for each application before downloading? I have limited download (525 MBs/day) because of Hughsnet and I need to know each applications total size before I download.
You can go to the trial page to get an estimated size. As the Creative Cloud products change over time though this may become less accurate.
If you are on a limited bandwidth account then you may want to consider purchasing a perpetual copy of Creative Suite 6 as opposed to subscribing to the Creative Cloud. -
I need to save some pictures from iPhoto to a SDHC photo card for a digital frame and was wondering if there is a way to shrink or compress file size for each picture as I have already cropped the pictures? Thank you
Yes, you do this when you export the images from the Library.
File -> Export
in the Size section, you don't need images larger than the frame size, so you can specify that and in the Jpeg Quality you can select the amount of compression used.
This User Tip
https://discussions.apple.com/docs/DOC-4921
has details of the options in the Export dialogue.
Maybe you are looking for
-
How to download Adobe Edge Inspect?
It maybe weekend woes, but I find it impossible to download Adobe Edge Inspect. For starters, I would like to test the free version. This is what I'm doing 1 )install the Edge Inspect Extension on Chrome 2) sign up for Adobe Create Cloud 3) go to app
-
How do I find third party plug-ins? (illustrator CS6)
I have trouble opening Illustrator. I tried to update my computer (to OS X Mavericks 10.9.5) but i didn't help and i couldn't update Illustrator because of an error. I saw on this side, that removing third party plug-ins, could work... The only probl
-
Delete or uninstall snow leopard
how to delete or uninstall snow leopard
-
hi, this may be silly question, but i want to burn/back-up my itunes library to disc.But when i do, itunes burns the library in track alphabetical order & mixing the albums up.I would prefer to have it in album order. I am a complete technophoeb so p
-
Mistake in the description of equipment
В описании Рабочая станция HP ProLiant WS460c Gen8 E5-2637 2 проц. 32GB-Р, в рзделе "Хранение" написано SDD малого типоразмера. Наверно это не правильно In describing Workstation HP ProLiant WS460c Gen8 E5-2 percent in 2637. 32GB-R in rzdele "Storage