Maximum width
Hi,
I have mulitple dropdown menus that needs to be on the one line (horizontally).
As the dropdown menus have pretty long "values" within them, i have to resize the dropdown menus so that they all sit on the one line (going horizontally across the page).
However, the user has mentioned that even thou he can select the "correct option" when clicking the dropdown menu, he cannot view the rest of the line once the dropdown has been selected?
Is there any way to make all the dropdown fit on the 1 line and for the user to view his selection?
What other options do I have if I want the user to view his selection?
P.S I have already using the maximum width for the survey.
Regards,
Edwin
Edwin, have you widened the form to it's maximum width of 1500 px? I know you mention that you are using the maximum width but I want to make sure. The form can be widened by selecting the right edge of the "page" and dragging it to the right.
Another step that you can do is to make the font of the fields smaller and/or use a different font. Times New Roman is quite a bit "tighter" than the other fonts.
Hope this helps.
Jeff Canepa
Software Quality Engineer
Adobe Systems, Inc.
[email protected]
Similar Messages
-
Hello,
I was wondering if there is a easy way to define the maximum width of a portal.
I'm now dealing with the problem that when I load a certain portlet, this portlet
becomes to big to have a one-screen view. I want my portal to be viewable on one
screen-width. Is there any way to do this?
Greets,
KoenHello Koen,
There is not an "out-of-the-box" setting in WLPS 3.5 for the width of a portlet,
but there are a few things you could do to solve your problem:
One option is to customize portalcontent.jsp, which lays out the portlets in an HTML
table. Look at portal.jsp, which contains portalcontent.jsp, which contains an HTML
table that contains each portlet.jsp... You may be able to use a group property such
as "widthOfMyBigPortlet" to build the table on the fly.
The easiest thing may be to use a maximizable portlet (
http://e-docs.bea.com/wlcs/docs35///////portal/portldev.htm#1025077 ). That way, you
could show an index or summary of content in the portlet and show the full portlet
when it is maximized. The maximized content can be different than the content in the
non-maximized portlet.
Alternatively, you could include a link in your portlet that opens a new window
containing the contents of your portlet in a stand-alone JSP page (use the <a>
"TARGET" attribute to open the new window. If you want WLPS session attributes
available in your standalone portlet (or you want to use rules) then you should go
through the FlowManager servlet to your JSP page. To do this, send a request to the
registered name of your FlowManager (probably "application") with pathinfo that
contains the name of the Application Init property set for your application
(something like "exampleportal"). Include the real (or final) destination in the
query string as a parameter like this
"dest=/portals/repository/portlets/mybigportlet.jsp". Make sure that the real
destination is under your working directory (defined in your application init
property set) so you don't get a SecurityException. The FlowManager servlet will not
forward requests to JSP pages that are not in your working directory. The URL would
look something like this:
application/exampleportal$dest=%2Fportals%2Frepository%2Fportlets%2Fmybigportlet.jsp.
After you get the link working, you should try creating the URL using the methods of
JspBase.
Koenpp wrote:
Hello,
I was wondering if there is a easy way to define the maximum width of a portal.
I'm now dealing with the problem that when I load a certain portlet, this portlet
becomes to big to have a one-screen view. I want my portal to be viewable on one
screen-width. Is there any way to do this?
Greets,
Koen--
Ture Hoefner
BEA Systems, Inc.
2590 Pearl St.
Suite 110
Boulder, CO 80302
www.bea.com -
JTable column auto-maximum width
Hi,
Does anyone have an idea on how to make the JTable to support column auto-maximum width resize, like we always see in a microsoft's table component, you double click on the column seperater and the column resized to its maximum size according to the content in it.
Thanks
YutongHi again,
I wrote two methods to solve this kind of problem... take a look at them and tell me what you think about it...
/** Adjusts the widths of a JTable columns
* @param table the table
public static void resizeTableColumns(JTable table) {
table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
TableColumn c = null;
FontMetrics fm = table.getFontMetrics(table.getFont());
for (int i=0; i<table.getColumnCount(); i++) {
c = table.getColumn(table.getColumnName(i));
c.setPreferredWidth(determineColumnWidth(c, table.getModel(), fm));
/** Returns the preferred width of a JTable column. The resulting width
* is 5 pixels wider than the biggest column
* @param col the column
* @param model the table model
* @param fm the font metrics
public static int determineColumnWidth(TableColumn col, TableModel model,
FontMetrics fm) {
String value = (String)col.getHeaderValue();
int headerWidth = fm.stringWidth("." + value.trim() + ".");
int columnNumber = col.getModelIndex();
int max = headerWidth;
int columnWidth = 0;
int nrows = model.getRowCount();
String cell = "";
for (int i=0; i<nrows; i++) {
value = (String)model.getValueAt(i, columnNumber);
columnWidth = fm.stringWidth("." + value.trim() + ".");
if (columnWidth > max) max = columnWidth;
return max + 5; -
Read only text Items uses the maximum width
Folks,
I have a form with 3 regions and each region has 6 or more text items each with a different width (40, 30 24, 2...). I am using a Read Only Condition Type on all these items to disable them. I am setting the background color as bgcolor="#DCDCDC" in the Read Only Element Table Cell Attributes.
All my elements are disabled (Gray color) but with the maximum width of 40 bytes. I don't want a 2 byte text item 40 bytes long and grayed out. How can I set a specific width for individual items in Read only Condition? Please help
Thanks
Raje.Try this alternative by disabling the HTML Form Item at the required process point.
I added this JavaScript to the HTML Header of the page which will allow me to disable the required item, plus set its background and color:-
<script language="JavaScript1.1" type="text/javascript">
function disableFormItem(p_item, p_background, p_color){
disItem = document.getElementById(p_item);
disItem.style.background = p_background;
disItem.disabled = true;
disItem.style.color = p_color;
</script>In the Region Footer of the Region where my items are located I added this JavaScript code:-
<script language="JavaScript" type="text/javascript">
** Only disable the required Form Items if the Primary Key value is present,
** in this case it is P12_UEI. (Won't be present for new records as populated
** by on-insert db trigger and sequence.)
if (html_GetElement('P12_UEI').value > 0)
disableFormItem('P12_URESI', 'lightyellow', 'black');
disableFormItem('P12_UZI', 'lightgray', 'black');
disableFormItem('P12_UBI', 'lightgray', 'black');
</script> The resulting page is a lot better looking than using the APEX read only text item.
Regards,
Phil -
How do I edit the maximum width of the bookmarks to see more characters?
''Duplicate post, continue here - [https://support.mozilla.com/en-US/questions/803166]''
I have many bookmarks with more characters than FF can display.
So I want to make the width of the Bookmark menus wider.You can set the max-width to none or specify a maximum (400px) with code in userChrome.css in the chrome folder in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder] to see more characters.<br />
See http://kb.mozillazine.org/Editing_configuration
Add this code to [http://kb.mozillazine.org/UserChrome.css userChrome.css] below the @namespace line.
<pre><nowiki>@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
#bookmarksMenuPopup .bookmark-item { max-width: none !important; }
</nowiki></pre>
* ChromEdit Plus: http://webdesigns.ms11.net/chromeditp.html -
Getting maximum width and height of frame
In my Flash CS4 application I have a problem working out the maximum x and y coordinates of the display objects that have been created in a frame using the frame editor. This is the sequence
1. Using the frame editor on the timeline, I create a keyframe with a mixture of library symbols and text/graphics which are not symbols.
2. In AS3 I take all of the screen objects and make them children of a Sprite that I created in my AS3 script. I then delete the objects off the screen and pass the parent Sprite to a class that I use to manage the screen.
3. In the manage screen class the first thing I do is go through the child display objects to work out the maximum x and y coordinates so that I can centralise them on the screen later on.
The problem is that I'm not able to work out the maximum x & y coordinates correctly. There is no problem with the symbol objects, I just add the x and width for example, for the maximum x coordinate. But for the non symbol objects this does not work. They appear to be combined in some way and the x/y & width/height do not seem to correspond to anything in the frame editor.
Is there a writeup anywhere on how Flash manages the graphics/text obects which are not symbols and are created by the editor in keyframes on the timeline? Finding the maximum x and y coordinates of a screen full of objects should be fairly simple, but I cannot see a way of doing it at the moment.
JerryOn my JPanel I want to draw stuff, and for this I need to know the > > width and height of the JPanelIf you are drawing stuff, then you are in control off
how big you want to draw the stuff. You can make the
panel as big or small as you want and do your drawing
accordingly.But doesn't the Layoutmanager of the frame set the size of the added panel according to the rest of the layout, or am I way off here?
Do I need to setPreferredSize() or anything on thepanel before pack()?
Try it and see what happens. If you don't give the
panel a size then the pack() method basically ignores
it as you have found out.Perhaps if I gave an example, you could point me in the right direction? The code below creates a JPanel of size 200x200, and draws a ball at a random spot on the panel. But since the frame is way bigger than 200x200 the panel gets stretched by the layoutmanager (right?). So what I really want to use when I calculate the x and y position is the width and height of the panel as it is displayed in the frame.
Here goes:
import javax.swing.*;
import java.awt.*;
class MyFrame extends JFrame {
public MyFrame() {
super("A ball");
JPanel panel = new JPanel();
panel.setSize(200, 200);
int x = (int)(Math.random()*200);
int y = (int)(Math.random()*200);
panel.add(new Ball(x, y)); // Object Ball draws a ball at x,y
getContentPane().add(panel, BorderLayout.CENTER);
setSize(640, 480);
show();
public static void main(String[] args) {
new MyFrame();
} -
Maximum width for symbols?
I am creating a staff with animated notes. I plan to have the whole thing scroll from right to left so that the current note 'lights' as it comes under a playhead effect. I have a movieclip with a staff and notes, but there seems to be a limit as to how large I can make it, or perhaps it's how I can work on something so long. I'm running into the 'edge' of the flash window no matter how large I make the staff width.
Is there a max width? How would you work on something really long within flash?There is a maximum stage size, but it is pretty large. The max width grows with every new version of Flash, and I am unsure what it is in the newest versions. The last time I had a problem with this sort of thing was in Flash MX04, and a trial of Flash 8 fixed it for me. I think the size of my object then was something like 5000 pixels, but its been a few years so I may be mistaken.
A quick google found this on a different forum "they can be 4096*4096 with a max of 8192 for any dimension."
So it sounds like the maximum object can be 8192 pixels wide, and, if it is wider, the object won't work correctly. This is for player 10 (CS4). Earlier versions of flash have a smaller limit. -
Maximum width of a smartform window
Hi all,
I have created a smartform table with 36 fields. I tried to show all the fields within the 29 CM table width. But its saying that 'MAIN WINDOW DOES NOT FIT INTO PAGE'.
I used the Landscape format only. Even then, its not allowing me to extend the table width to 29. If i reduce this, the output does not looks good.
So how to solve this pbm.
How to extend it to 29. Coudl anyone tell me..
Regards,
ShanthiHi,
in landscape format it allows us to extend the page upto 29.70 CM.
So Click on Page and in Output options select the orientation as Landscape.
To Extend this Click on Main winow>output Options>Width 29,70 CM
Then Dbl Click on Table >Click On Table Tab>Click On Details-->Give the table width as 29.70 CM
regards
Sandipan
Edited by: Sandipan Ghosh on Apr 8, 2008 4:04 PM -
What is maximum width of a normal report
Hello,
I have a report having around 50 columns and now I have to add 12 more new fields and display the report, is there any restriction in no of columns for a normal classical report?
Thanks,
ShreekantHi,
There is no restriction.
Change the 1st statement :
REPORT ZTEST LINE-SIZE 450. " increase 450 to required value so that output is not truncated. You can do this with trial & error method
Best regards,
Prashant -
ORA-1445 and maximum width for field selection.
Hello,
We had the ORA-01445 error in the database recently.
A friend of mine directed me to the following address:
http://www.errorhelp.com/search/details/65019/ora-01445
And explained me that Oracle takes every field of every table in the inner and outer joins to build a HUGE table before selecting what fields are really required for the query.
I can't believe that Oracle makes such stupid thing so I ran here to ask the experts.
An example:
Two tables:
TABLE1
Field1
Field2
Field100
TABLE2
Field1
Field2
Field500
Select table1.field1, table2.field1
FROM table1
INNER JOIN table2 on table1.Field2 = table2.Field2
WHERE table1.field3 = '1'
->
Question is:
How the join is built on detail?
Does it build an intermediate table with 100+500 = 600 fields to get only the 5 that are used in the query (table1.field1, table2.field1, table1.Field2, table2.Field2,table1.field3)?
Thank you.
Kindest regards,864737 wrote:
Hi John,
Maybe it's a complete nonsense but even if has no sense proceeding that way solved the issue here.
I have a query that suddenly failed to execute with the error described, version 10.2.0.3 but it does not happens in 10.2.0.4. As a workaround we did it using subselects and joining as described in the post and the query worked again.
So ORA-01445 is triggered even if it's not the cause of the error. You have there a circumstance where it fits...
So, it is clearly a bug introduced (possibly in 10.2.0.3), and fixed in 10.2.0.4.
I cannot post the query because license restrictions but believe it or not this happens with Oracle. It's great to know that the number fields of the tables does not matter. I was suprised to hear it. But your clarification was good. :D Tnx.
It seems that our DBA found that this behaviour can be corrected with an official patch.
Which clearly indicates a bug, just be sure that the patch is truly the right one.
Thank you again for your response.There are a number of bugs in MOS around ansi joins getting this error, bug
4369235.8 ORA-1445 can occur for ANSI join queries with large views/subqueries
seems possiblefor your case. However the workaround for that was to not use ansi style joins, so again, the number of columns is not directly the cause of the error.
John -
Hi,
I'm using CVI 2012, and I have a question about the maximum width of a panel.
I have created a panel on the user interface editor of 3840 pixel width, but when I run my application, the displayed width of the panel seem to be 3350 pixel (and the rest is cropped).
Even if I try to enlarge the panel with mouse the limit remaining.
There is a way to pass this limit ?
Thanks for your precious support.
Solved!
Go to Solution.Hi Wolfgang,
Thanks for your reply.
I did as you suggested:
"GetPanelAttribute" get 3344 pixel width (the portion of panel displayed), and SetPanelAttribute (panel, ATTR_WIDTH, 10000) return 0 (non errors), but the portion of panel displayed remain unchanged.
You do not need a large display to run the test.
Attached the code
Thanks again
Attachments:
MaxWidth.zip 283 KB -
Maximum Line Width when Report is running in background
Hello Experts,
I have written a ABAP program and user is running in background. My output is of width of 599 characters. But wehn the user is running in the background, it is showing a warning that last 345 columns won't be displayed.
What is the maximum width, that is allowed for report being displayed in background.
Kindly help and points will be rewarded. its really urgent.
Thanks in advance.
Thanks and Regards,
SaurabhHey Saurabh,
I am facing the same problem. I have a report which has 406 characters. It is displayed correctly when executed in foreground but only 255 characters when executed in background.
You have resolved this issue. Can you please provide me the solution to execute it in background and get the complete output.
Regards,
Anosh -
How to define maximum field width on an updatable report
I have an updatable report.
From a user's perspective, this is a form in my app. How can I define the maximum number of characters the user can enter into a field?
I tried entering the following into the report column's element attributes, but none of these worked:
width=10px
width:10px
max-width=10px
max-width:10px
I don't know why the Tabular Form Element section allows to define Element Width and Number of Rows, but not the maximum width.
Thanks
BorisHi Boris,
If your updateable report is created by using a wizard than its not.
You could use the apex_item.text api which allows for setting the max field width.
Jos -
Print tpage number/total page number in a report with width more than 240
Dear all,
I need to display total page number as following code sample.
But I need to put it after position 240.
this program can print total page number if it is placed at postion 239 or before.
WRITE: /234(10) 'Heading', 239 SY-PAGNO,'of ', '-----'.
Whenever I put 240 or more WRITE: /234(10) 'Heading', 240 SY-PAGNO,'of ', '-----'.
Total page num could not be displayed.
Please tell me the solution.
thanks
REPORT YPAGECOUNT NO STANDARD PAGE HEADING LINE-SIZE 276 LINE-COUNT 65.
DATA L_PAGE_COUNT(5) TYPE C.
TOP-OF-PAGE.
WRITE : /234(10) 'PAGE', SY-PAGNO,'/ ','-----', ''.
WRITE: /234(10) 'Heading', 239 SY-PAGNO,'of ', '-----'.
ULINE.
START-OF-SELECTION.
Real list output takes place here
DO 1000 TIMES.
WRITE: / 'Line #', SY-LINNO.
ENDDO.
Page count will be printed on each page here
WRITE SY-PAGNO TO L_PAGE_COUNT LEFT-JUSTIFIED.
DO SY-PAGNO TIMES.
READ LINE 1 OF PAGE SY-INDEX.
REPLACE '-----' WITH L_PAGE_COUNT INTO SY-LISEL.
MODIFY CURRENT LINE.
ENDDO.Using Values Greater than 255 for the LINE-SIZE of a List
If you define a fixed column width greater than 255 using the LINE-SIZE addition in the REPORT or NEW-PAGEstatement, the following notes apply:
Type definitions: The type group SLIST defines the valid maximum value for the list width (SLIST_MAX_LINESIZE), and contains a type for list lines with maximum width (SLIST_MAX_LISTLINE).
Accessing the entire contents of a line: To read or modify the entire contents of a wide line, you can use the ... LINE VALUE addition in the READ LINE or MODIFY LINE statements. This is an alternative to using SY-LISEL that is independent of the attributes of the system field (since the length of SY-LISEL is 255 characters).
Horizontal lines: With extra-wide lists, the "ULINE." statement corresponds to "WRITE / SY-ULINE.". So, for example, "ULINE AT 5(300)." corresponds to "WRITE AT 5(300) SY-ULINE.".
Output length: You can use the length specification in WRITE (or ULINE) to extend the output length of an extra-wide list up to the value of LINE-SIZE. If you want to output a whole field that is longer than 255 characters, you must use this, even if the field itself is defined as longer than 255 characters.
Example
NEW-PAGE LINE-SIZE 1000.
DATA: F1(500) VALUE 'F1'.
WRITE: / F1 COLOR COL_NORMAL. " Output with length 255
WRITE: /(500) F1 COLOR COL_NORMAL. " Output with length 500
Awrd Points if useful
Bhupal -
How to set MAXIMUM size of a formatted string?
Hello
Assume I have an Object foo with a
toString(){ return "a long name to print"; }and that I want to print it with minimum space of 40, I would say
System.out.printf("foo say: %1$40s", foo.toString() )But I need very often to set a maximum width, so that any strings or fields wider than this is truncated. Eg:
System.out.printf("foo say: %1$5s", foo.toString())gives i.e. "foo say: a l..". Is this possible, using the Formatter class (or similar) in Java? So far I have created my own class to enable this, but I want to use as much predefiend classes as possible.
Regards
FluidYou need to use a precision argument:
String foo = "a long name to print";
System.out.printf("foo say: %.8s", foo); // 8 maxhttp://java.sun.com/j2se/1.5.0/docs/api/java/util/Formatter.html#syntax
Maybe you are looking for
-
KDE 5's default theme, Breeze, started to look dark and has different icons after installing a custom theme from KDE's settings app. I tried reinstalling KDE, but no luck. How to restore the default, Breeze, a light looking, desktop theme?
-
Calling a Classes constrictor explicitly with out editing the Class
Hi All, I am looking for a way to call the a Classes static constructor of a class so that the static fields get initialized. Here is some pseudo code to illustrate class Singleton { private static instance = new Singleton(); private Map map
-
AD Organization Unit Prepopulation
Hi All, I am working on AD Organization Unit Prepopulation.Below is the Procedure I am following I want to Prepopulate ADITResource~OU=Engineering,DC=Personal,DC=com .For this, I have created 3 Prepopulate adapters. Adapter 1 holds static value ADITR
-
Background task taking a lot of time to execute
Hi, There is a background task in my workflow which is taking a lot of time to execute. I have tested it in dialog mode.. and it works fine.. takes just 2 mins. Only when the task is executed from background.. it takes about 10 mins. Is this a config
-
Randomly Shutting Down (pressing power countless times to start up again)
I purchased my macbook on in late June...TODAY! first time this has happened. I've read all of the other threads...but it seems like the suggestions that apple support gave aren't working for anyone else so I'm not going to bother trying. Before this