Spark DropDownList width does not fit largest item.
In some, but not all cases, when the first item in a Spark DropDownList is not the longest item, when I click on the list to select an item, it resizes to the size of the first item, and thus the other items if selected are truncated.
Is there a workaround?
At last, I solved the problem of "determining the longest item" by using the idea mentioned in http://stackoverflow.com/questions/4628368/length-of-a-string-in-pixels.
var format:TextFormat = new TextFormat();
format.font = myDropDownList.getStyle("font-family"); // since we're working with a css file for the styling
format.size = myDropDownList.getStyle("font-size");
Then for each item in the DropDownList's dataprovider determine this width:
textField.text = item.value; // in my case
var width:int = textField.textWidth;
Once you determined the item with the biggest width, set that one as the DropDownList's typicalItem.
Similar Messages
-
IPhone UIWebView width does not fit after zooming + orientation change
I created a bare bones iPhone/iPad app with a UIWebView (Scales Page to Fit = YES, shouldAutorotateToInterfaceOrientation = YES) and loaded a webpage, e.g. http://stackoverflow.com/
- (void)viewDidLoad {
[super viewDidLoad];
NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"http://stackoverflow.com/"]];
[webview loadRequest:request];
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return YES;
The web page fits the width nicely. Rotate the device, the webpage continues to fit the width nicely. Good.
Incorrect: Zoom into the page and zoom out. Now rotating the device shows UIWebView in a weird width in one of the orientation (if u zoom in+out landscape, the portrait width becomes weird, vice versa). This behavior is fixed only after you navigate to another page (or [webview reload]).
Correct: Load the same URL in *Mobile Safari* on the same device. Rotating works & the width always fits properly, regardless of the zooming interaction.
Is this a UIWebView bug (probably not)? Or is there something that needs to be done to make things "just work" like in Mobile Safari?
This behavior exists on iPhone and iPadRefer :
http://social.technet.microsoft.com/Forums/windows/en-US/2b0ba279-0ded-49b2-b003-713a65e3d645/vertical-taskbar-width-resets?forum=w7itproui
Arnav Sharma | Facebook |
Twitter Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members
reading the thread. -
Hi all,
I'm creating a smartform which prints one internal table consists of 36 fields. In table line type i have mentioned the 36 fields. First four are of 4CM and other 32 fields of 2CM width. So in total i have mentioned as 80 CM.
But its showing an error like 'Main window does not fit into Page'.
What could be the mistake?
Can anyone help me in this..
Regards,
ShanthiHi,
U have to adjust the 36 fields into 21 cm by Allocating Space accordingly.
if Your Space is small then data will be displayed in the next line.
And display The data in Smallest font possible.
Regards
sandipan -
Photo does not fit in the screen
I watched that video http://www.youtube.com/watch?v=KJMi5l9Ru-g and tried this to do the parallax scrolling with the image this on my page. Unfortunately, my photo does not fit in the whle screen, even if I take a . jpg image 3000 px wide. ( look here ) I have no idea how I can get the photo to fit in the whole screen.
Thank you for your help.
HeikeHello again,
I'm sorry, but nothing works and I don't understand, what you mean. I will show you again with no other item on the page. I draw a rectangle which snaps each of the lines at the outside.
I got rid of the stroke and the fill.
I filled with a .jpg image 3000 px wide.
For the future parallax scrolling I need to set up the photo in vertical tile. And this is, how it shows on the screen.
I still have no idea, what I made wrong. Thanks for your help
Heike -
Table temp_bed_cess does not fit in to wondow vf02
Hi,
no print preview for a particular billing document number in VF02. but for the remaining billing documents the print preview is displaying. when clicked on ' issue output to ' screen is returned to the same screeen. This is a production server issue.
the error is template does not fit into windowDear Sir,
Thank you for all your replies,
the window with same name is attached in two pages and thier dimensions are different.
the window & template dimensions are as:
window first page
height 2.90 cm
width 12 cm
regarding template
c1 from 1 to 1 1 LN 9 cm 3 cm
c2 from 2 to 2 0.96 LN 12 cm
window second page
height 2 cm
width 12 cm
regarding template
c1 from 1 to 1 1 ln 9 cm 3 cm
c2 from 2 to 2 0.96 ln 12 cm
here the window height is more than the template total cells height, but why it is showing template does not fix in to the window.where as for other billing document , it is working fine, only for 6111108680.
please help me.
thanks & regards,
Dastagir -
Error: Table TEMPLATE_HEADER does not fit into window.
Hello Experts ,
I met a very strange problem.
I am printing a process order using smartform.
for other process nrs , print perfect.
But only for a certain precess nr, I got a popup error 'Table TEMPLATE_HEADER does not fit into window.'
At beginning , I suppose my table line extend the mainwindow width. But infact , no!
I try to comment every node one by one, I found the reason: I put a table line into a loop node, if I add a text node which has something inside, it will triger this error. (only for this process order, others works fine)
so , does someone met this error before ?
Please help me!!
Regards
KevinHi Kevin,
Which printer and device type do you use? For line printers and device type(driver STN2) like e.g. EPESCP9, the SAP system
must use spaces and empty lines to place the text. This is a limitation of the ESC/P printer languagesa per SAP note #19807.
For this, the Smartforms rounds all coordinates(of the table cells and the window). Only after this step it checks, whether the table fits into the window. So if the table size is quite close to the window size size, it may happen on line printers that the table doesn't fit anymore.
If this is the reason for your problem, the error message should vanish if you increase the size of the window containing table TEMPLATE_HEADER a little in your smartform.
Regards,
Aidan -
Template does not fit into the window
Hello all,
<b>Template does not fit into the window (Message no. SSFCOMPOSER173)</b>
I am getting the above error in when i try to preview my smartform.
The template is in footer window. I have only 3 lines in the template.
And the size of template is less than window size.
I do not understand why this error. This happened when there are many line items in the main window. With less no. of line items it worked well.
If you have any suggestions Please help.
Thanks.Hi,
Please check the following points:
1. Font size and font family.
2. Line spacing
3. Allignment.
4. Left and right margin
Deserve Rewards.
regards. -
Getting "Table %TEMPLATE does not fit into window" error
Hello,
I am trying to print a form to an old EPSON DFX-9000 dot matrix printer and am getting the error message Table %TEMPLATE does not fit into window".
This only happens when I go to that printer. I can print fine to a laser printer.
I have tried creating a new device type and copying over the format from the laser printer, playing with the format, changing formats, ect.
I have adjusted the size of the window that my template cannot allegedly fit into but still no luck. I have checked the height and width of the template and the window many, many times and still get the same error.
Has anyone seen this before? Please help. Thanks.Hi James,
You need to see the width and height of the Page Format which you have set in Form Attributes of your smartforms.
What ever you create should be within this width and height .
So accordingly adjust the width and height of your windows and components within them
Regards,
Dep -
PXI 1045 does not fit in a rack
The NI PXI 1045 does not fit in a standard 19" E.I.A. rack (Agilent).
Constantine,
I assume you purchased the optional front and rear rack-mount kit? If so, what dimension is giving you problems? Is it the width, the height, etc? More information would make it easier to help.
Tyler S. -
"BP Category 1 does not fit the data in category 2" "Replies Appreciated"
Hi Gurus,
When i am trying to create an "Individual Account" in UI, I am getting the error "BP Category 1 does not fit the data in category 2".
If i try to create a "group" then it says "BP Category 3 does not fit the data in category 2".
It allows me to create only "Corporate Account" i..e. Category 2.
What should i do to create "Individual Account" and "Group". (Category1 & Category 3).
Individual Account (Category 1) - "BP Category 1 does not fit the data in category 2".
Corporate Account (Category 2) - Able to create only Corporate Account
Group (Category 3) - "BP Category 3 does not fit the data in category 2".
Thanks & Regards
RohanHi Rohan,
Hope this SAP Note : 1232459, Solves your problem.
You might have created a custom configuration for corporate accounts.
Unfortunately in case of custom configurations exist, they are selected with higher priority.
So in this case the configuration for corporate accounts is also shown for individual accounts,
this causes error.
In order to solve this problem, create a custom configuration for individual account also,
i.e for view BP_HEAD/AccountDetails. Object type BP_ACCOUNT and object subtype INDIVIDUAL.
Please make sure that the custom configuration includes the fields firstname and lastname for
persons instead of name1 and name2 which are only allowed for corporate accounts.
I hope the above information resolves your problem.
Best Regards
Shiven -
CRM 2007 IC : error "BP category 2 does not fit the data in category 1"
Hi Guys,
When I am trying to save the data on the Bupacreate page it gives the error as follows.
"BP category 2 does not fit the data in category 1".
Can anyone suggest what is causing this error to happen and how this error can be corrected.
thanks & regards
SandyHi,
This error usually occrus when you try to set field in without specifing bptype ie person, group etc. In our scenario we were trying to set field in Person which was not present in group. but since do_prepare_output method is same in both, that feild was getting set for group as well. When we placed restriction this error got removed.
Best regards
Pankaj Kumar -
Error: 'BP category 1 does not fit the data in category 2'
Hi,
i have written a program to create a contact person and the code for it is pasted below...when i run this program i get nothing but this message in the status bar 'BP category 1 does not fit the data in category 2'...can someone tell me wht the error means and y it is coming.
thanks:)
pushpa
*table for storing the line by line records in the excel file
TYPES: BEGIN OF TTAB,
REC(1000) TYPE C,
END OF TTAB.
DATA ITAB TYPE TABLE OF TTAB WITH HEADER LINE.
*variable for storing the name of the excel file to be uploaded
DATA UP_FILE TYPE STRING.
*data to be uploaded
TYPES: BEGIN OF TDAT,
FLD1 TYPE BAPIBUS1006_CENTRAL_ORGAN-NAME1,
FLD2 TYPE BAPIBUS1006_ADDRESS-STREET,
FLD3 TYPE BAPIBUS1006_ADDRESS-CITY,
FLD4 TYPE BAPIBUS1006_ADDRESS-REGION,
FLD5 TYPE BAPIBUS1006_ADDRESS-POSTL_COD1,
FLD6 TYPE BAPIBUS1006_ADDRESS-COUNTRY,
FLD7 TYPE BAPIBUS1006_CENTRAL-PARTNEREXTERNAL,
END OF TDAT.
DATA IDAT TYPE TABLE OF TDAT WITH HEADER LINE.
DATA: BUSINESSPARTNER TYPE BAPIBUS1006_HEAD-BPARTNER,
CENTRALDATA TYPE BAPIBUS1006_CENTRAL,
ORGANIZATION TYPE BAPIBUS1006_CENTRAL_ORGAN,
ADDRESS TYPE BAPIBUS1006_ADDRESS,
BAPIRETURN LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE.
PARAMETERS P_FILE TYPE LOCALFILE.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
EXPORTING
STATIC = 'X'
CHANGING
FILE_NAME = P_FILE.
START-OF-SELECTION.
UP_FILE = P_FILE.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = UP_FILE
TABLES
DATA_TAB = ITAB
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
OTHERS = 17.
*writing out the contents of the internal table itab
LOOP AT ITAB.
WRITE:/ ITAB-REC.
CLEAR IDAT.
SPLIT ITAB-REC AT CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB
INTO IDAT-FLD1 IDAT-FLD2 IDAT-FLD3 IDAT-FLD4 IDAT-FLD5 IDAT-FLD6 IDAT-FLD7.
APPEND IDAT.
ENDLOOP.
LOOP AT IDAT.
MOVE: IDAT-FLD1 TO ORGANIZATION-NAME1,
IDAT-FLD2 TO ADDRESS-STREET,
IDAT-FLD3 TO ADDRESS-CITY,
IDAT-FLD4 TO ADDRESS-REGION,
IDAT-FLD5 TO ADDRESS-POSTL_COD1,
IDAT-FLD6 TO ADDRESS-COUNTRY,
IDAT-FLD7 TO CENTRALDATA-PARTNEREXTERNAL,
'0001' TO CENTRALDATA-PARTNERTYPE.
CALL FUNCTION 'BAPI_BUPA_CREATE_FROM_DATA'
EXPORTING
PARTNERCATEGORY = '1'
CENTRALDATA = CENTRALDATA
CENTRALDATAORGANIZATION = ORGANIZATION
ADDRESSDATA = ADDRESS
IMPORTING
BUSINESSPARTNER = BUSINESSPARTNER
TABLES
RETURN = BAPIRETURN.
IF BAPIRETURN IS NOT INITIAL.
READ TABLE BAPIRETURN INDEX 1.
MESSAGE
ID BAPIRETURN-ID
TYPE BAPIRETURN-TYPE
NUMBER BAPIRETURN-NUMBER
WITH BAPIRETURN-MESSAGE_V1
BAPIRETURN-MESSAGE_V2
BAPIRETURN-MESSAGE_V3
BAPIRETURN-MESSAGE_V4.
EXIT.
ENDIF.
REFRESH BAPIRETURN.
CLEAR BAPIRETURN.
CALL FUNCTION 'BAPI_BUPA_ROLE_ADD'
EXPORTING
BUSINESSPARTNER = BUSINESSPARTNER
BUSINESSPARTNERROLE = 'BUP001'
DIFFERENTIATIONTYPEVALUE =
TABLES
RETURN = BAPIRETURN.
IF BAPIRETURN IS NOT INITIAL.
READ TABLE BAPIRETURN INDEX 1.
MESSAGE
ID BAPIRETURN-ID
TYPE BAPIRETURN-TYPE
NUMBER BAPIRETURN-NUMBER
WITH BAPIRETURN-MESSAGE_V1
BAPIRETURN-MESSAGE_V2
BAPIRETURN-MESSAGE_V3
BAPIRETURN-MESSAGE_V4.
EXIT.
ENDIF.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
WRITE:/ 'Business Partner ID:', BUSINESSPARTNER.
ENDLOOP.Hi Pushpa,
you can use following code to create relationships using BAPI. In this Business partner is organisatin. contact persion paramenter is person. other information related to relationship details
CALL FUNCTION 'BAPI_BUPR_CONTP_CREATE'
EXPORTING
BUSINESSPARTNER = SEARCH_PARTNER
CONTACTPERSON = CONTACT_SAP
VALIDFROMDATE = '00010101'
VALIDUNTILDATE = '99991231'
DEFAULTRELATIONSHIP =
ADDRESSGUID =
CENTRALDATA = WA_CENTRAL_DATA
ADDRESSDATA = WA_ADDR_DATA
TABLES
BAPIADTEL = I_TEL_DATA
BAPIADFAX = I_FAX_DATA
BAPIADTTX =
BAPIADTLX =
BAPIADSMTP = I_EMAIL_DATA
BAPIADRML =
BAPIADX400 =
BAPIADRFC =
BAPIADPRT =
BAPIADSSF =
BAPIADURI =
BAPIADPAG =
BAPIAD_REM =
BAPICOMREM =
RETURN = I_RETURN
hope this will help you
Siva -
I have a Macbook, 13" screen, purchased in 2007. I want to hook it up to my HDTV; I purchased a mini display port to hdmi adapter but it does not fit. Any suggestions?
If you connect yourMacBook using a MiniDVI/HDMI adapter you will need to use external speakers for audio since the pre-2010 MacBooks will only send video through the MiniDVI or MiniDisplay Port . The MiniDVI/HDMI doesn't carry audio and there's no audio plugs on the TV to work with HDMI since it's expecting audio with the HDMI.
If your TV has a DVI input plug you can use a MiniDisplayPort/DVI adapter. Then a DVI cable to the DVI input plug on the TV. The TV will have RCA audio plugs for use with the DVI. Plus DVI gives a sharper image than HDMI. -
FINSTA Bankstatement does not clear Open Items
Dear SAP guru,
I am experiencing an issue where FINSTA bankstatement generated in IHC module does not clear Open items in reciving company code. I would like to get the system to search for the document based on the original FI document number and clear it. The situation is
The bank statement successfully processed has an original document number and processed.
In IMG for EBS, I configure as algorism used is 20 - Document number search and Bank Posting type 4: Clear Debit GL account
Clearing account - and have the posting with relevant document number matched with the bankstatement.
It seems that the system does not find the matching at all.
Could any of you shed some light on what I am missing???
Kind regards
TaroCreating or even using something like a data migration account is the best way.
Are you saying that you have a GL account with say 100 line items and you want them all cleared. If that is the case you wont need a LSMW, make sure you know the amount, and then create a journal posting to your new GL account, and select all items in the GL account you want to clear.
If there are various GL accounts, again no real problem, in F-03 which is what you would be using, you can enter more than GL account so that should not be an issue. -
Result set does not fit; it contains too many rows
Dear All,
We are in BI7 and running reports on Excel 2007. Even though number of rows limitation in Excel 2007 is more than 1Million, when I try to execute a report with more than 65k records of output, system is generating output only for 65k rows with message "Result set does not fit; it contains too many rows".
Our Patch levels:
GUI - 7.10
Patch level is 11
Is there any way to generate more than 65000 rows in Bex?
Thanks in advance...
regards,
Raju
Dear Gurus,
Could you please shed some light on this issue?
thanks and regards,
Raju
Edited by: VaraPrasadraju Potturi on Apr 14, 2009 3:13 AMVara Prasad,
This has been discussed on the forums - for reasons of backward compatibility I do not think BEx supports more that 65000 rows .... I am still not sure about the same since I have not tried out a query with more that 65K rows on excel 2007 but I think this is not possible...
Maybe you are looking for
-
How to use a different Apple ID on iPad 2?
Since buying an iPad 2 a few months ago I have been able to use FaceTime regularly and successfully - until yesterday when I found I could neither send nor receive calls. When I opened FaceTime, instead of showing my list of contacts, it showed a pan
-
The program Ive been given to 'enhance' uses a logical database. I tried to argue that a 40 min response time was reasonable but they are not buying it. (we have to try right?) Nearly 98% of the time used by this program is in database access. I foll
-
Communication between Managed servlet using ProxyServlet
Hi, I have multiple Managed servers running on the same host, each hosting one web app on a particular port. The Admin server runs on port 7001. Example : The Managed Server hosting the Sess
-
Our customer has provided us with federated metadata.xml file. When we go to import and create the claims provider trust we receive this error message: I have performed considerable Google search to be able to tell the customer what is missing. Can y
-
Can I exchange the color of my iPhone 5?
My dad got me the iPhone 5 in white today. I prefer the black model but I appreciate the new update nonetheless. Is it possible to exchange my 64gb white iPhone 5 to the 64 black iPhone 5?