How to set horizontal scrolling to horizontal field Manager when fields are added using a loop for?
The following code snippet contains a horizontal field Manager to which are added five buttons.
1. I can't the value of horizontal scrolling to horizontal management Manager because of who I am not able to access the keys 4 and 5.
2. usually, we put horizontal scrolling in the following way:
container = new HorizontalFieldManager(USE_ALL_WIDTH|HORIZONTAL_SCROLL|HORIZONTAL_SCROLLBAR);
3. so I also tried setting of horizontal scrolling in the following way
container = new HorizontalFieldManager(Manager.HORIZONTAL_SCROLL|Manager.HORIZONTAL_SCROLLBAR) { protected void sublayout(int maxWidth, int maxHeight) { Field field = null; int x = 0; int y = 0; int maxFieldHeight = 0; int maxFieldWidth = 0; for (int i = 0; i < getFieldCount(); i++) { field = getField(i); layoutChild(field, maxWidth, maxHeight); setPositionChild(field, x/*width-field.getWidth()*/,y); x+=field.getWidth(); maxFieldWidth = maxFieldWidth + field.getWidth(); System.out.println("field width"+field.getWidth()); System.out.println(" max field width"+maxFieldWidth); if(i==0) { maxFieldHeight = field.getHeight(); // height set of the first button since all components have the same height } } System.out.println("final max field width"+maxFieldWidth); setExtent(maxFieldWidth, maxFieldHeight); } };
but it's not working.
4 I found this property: (position) horizontalFieldManager.setHorizontalScroll; that contains the parameterioo where the post is supposed to be the new horizontal scroll position. I tried passing the coordinate x of horizontal field Manager, but it does not work. I should pass as a parameter position?
HorizontalFieldManager container = new HorizontalFieldManager() { protected void sublayout(int maxWidth, int maxHeight) { Field field = null; int x = 0; int y = 0; int maxFieldHeight = 0; for (int i = 0; i < getFieldCount(); i++) { field = getField(i); layoutChild(field, maxWidth, maxHeight); setPositionChild(field, x,y); x+=field.getWidth(); if(i==0) { maxFieldHeight = field.getHeight(); // height set of the first button since all components have the same height } } setExtent(Display.getWidth(), maxFieldHeight); } }; ButtonField button1 = new ButtonField("Button1"); ButtonField button2 = new ButtonField("Button2"); ButtonField button3 = new ButtonField("Button3"); ButtonField button4 = new ButtonField("Button4"); ButtonField button5 = new ButtonField("Button5"); container.add(button1); container.add(button2); container.add(button3); container.add(button4); container.add(button5); add(container);
Need your valuable comments and suggestions. Please help me.
I think that there is a bug in the sublayout (your HorizontalFieldManager 0 mode. Given that the code did what I think WHAT HFM will do anyway, I recommend that you try to do this with a standard HFM, using this style:
Manager.HORIZONTAL_SCROLL | Manager.HORIZONTAL_SCROLLBAR
Let us know how you go.
When I have more time I'll explain the bug, but if you want to investigate something, be aware that the maximum size that you can use in setExtent are the values that are passed to sublayout. Compare the width as you try to define in setExtent whose width is increased.
Tags: BlackBerry Developers
Similar Questions
-
How can I view the cookies in the sidebar when they are added?
Previously, I have had a sidebar showing cookies in chronological order when they were added during my browsing. Is it still possible in FF25 and how do I do it?
Thank you
You can open the Cookie Manager by clicking on the "Site Identity" (globe/lock) button on the address bar and click on "More information" and "View Cookies" to see the cookies created by the current domain, provided that you are not in private browsing mode.
-
How to set the alignment of the field in a table in jdev 11.1.2.3?
Hello
How to set the alignment of the field in a table in jdev 11.1.2.3?
for example: to display a body of numbers in a table as right aligned.
I tried to put field (amount) VO UI Hint Format Type: Number; Format: 0000.00
and jspx, flowing, but it doesnot work.
Thank you.
Bao
< af:column sortProperty = "#{bindings." VO1.hints.amount.name}.
sortable = "true".
headerText = "#{bindings." VO1.hints.amount.label}.
ID = "c44" width = "60".
Align = "center" >
< af:inputText value = "#{row.bindings.Amount.inputValue} '"
label = "#{bindings." VO1.hints.amount.label}.
required = "#{bindings." VO1.hints.amount.mandatory}.
columns = "#{bindings." VO1.hints.amount.DisplayWidth}.
maximumLength = "#{bindings." VO1.hints.amount.precision}.
shortDesc = "#{bindings." VO1.hints.amount.ToolTip}.
ID = "it58.
secret = "false".
inlineStyle = "" text-decoration: overline; ">"
< f: validator binding="#{row.bindings.Amount.validator}"/ >
< / af:inputText >
< / af:column >Hello
To set a field right alignment in a table:
It doesnot work when InlineStyle-> text-align: right;
It works when ContentStyle-> text-align: right; -
How to set the value of a field from the LOV of another field.
I'm trying to figure out how to set the value of a field (P_PROGRAM) to the value of another field of based lov (P_STATE).
The P_PROGRAM field is a hidden field. The P_STATE field is a required field and is based on a list of values for the State Codes.
When a user selects the State to P_STATE, the field of the P_PROGRAM should be set to this value, as well.
I tried different ways to get there via a function call on the post for the calculation of the field P_STATE, defining the source P_PROGRAM to the value of the page item P_STATE put varialbles, creating a process before SENDING, and they all still come back as having a NULL value for P_PROGRAM, therefore impossible to create the file in the db as the PROGRAM is a mandatory field in the table.
Can you please help? Thank you, LauraLaura,
It is always helpful if you provide information about the Apex version you are using. The Apex 4 you can use Dynamic Actions to achieve this. In earlier versions is possible using processes to submit or javacsripts, as well.
Heres how you do in 3.x with treatment to submit, to make it work in 4.0 as well.
1 do the P_STATE ' select list submits the Page.
2. Add a calculation on the point P_PROGRAM, or write to him assign a value based on a process. The treatment should be OnLoad after the header
3. If the page does not have an unconditional branch that loops on itself, add a. NOTE: The direction must be the last branch (larger sequence number) and should have checked "Save Session State".This is what will happen
a. when the State is selected Page will be submitted
(b) it will take the unconditional branch to himself and save the value of P_STATE
c. the calculation process / fills the value of the P_PROGRAM element when the page reloadsKind regards
-
How to set dynamically scroll pane?
Hai...
I'm trying to get the text of the xml tag and put it in the scrollpane but Idont know how to set dynamically in scrollpane... someone has idea... Please help me
Thank you
Dembélé
I found the solution... Scroll pane is allocated dynamically when content is dynamic
-
How to set the session value to field item?
Problem: The table insert source column is different from the column I get data for the update. I assign session by a process during extraction value but this value does not get assigned to the field. ?? Can someone give me a solution to this?
Thank youHello
When the extraction process runs while recording for the form, it will use the values that exist in the folder, thus crushing any value you defined in the session.
One thing you could try...
1 create an element of application - through shared components - called, say, G_DEFAULT_VALUE
2. on the page element that needs this value, type: G_DEFAULT_VALUE in the parameter of calculation calculation Post
3 - instead of set point on page in your process/calculation, the value of the element of the application insteadThen, regardless of the value on the record, the value of the application element is used instead. If this is not required in all cases, set the application to null element and use the following options for the calculation of calculation of post parameter:
NVL (: G_DEFAULT_VALUE,: PAGEITEMNAME)
Then, if the application element is null, the value of the page element (that is to say, the value of the record) will be used instead.
Andy
-
How to set the focus on the field?
This is my screen:
image //add by function (thread)
RichText //add by function (thread)
button_next //add by function (thread)
button_back //add directly on-screen
I already manage the display as above
but my problem is the firsttime I get my screen is my focusable on button_back.
I want to set the focus on image when I get the screen.
no idea what I need to do?
they are all put under the focus name, I just don't want to when I go to the screen, focus on button_back
your back button is added directly to the screen
and the rest are added by the threads,
so son take some time to complete that work and until then the button "return" is added
all your work, once you can do--
image. SetFocus();
and you will get the focus on the desired position
-
Can someone please help me on how to generate excel file using pl/sql? I have generated csv files successfully, but now I need to generate a excel. I changed the code generation of the csv file, but the file gives me error when opening:
"The file you are trying to open,"XXXX.xls", is in a different format than specified by the file extension. Do you want to open it now? »
If I choose Yes then open the excel file, but it excludes the leading 0 in the front for one my column. How do I configure excel type default column as text rather than General, when you create the files? I also tried to generate excel file using xml. But I do not know how to set the type of column there, too. I'm using Oracle 11.2.0.3.0 and APEX 4.2.6.00.03. I'll call all these codes apex.
Code1 is used:
Declare
output_header varchar2 (4000);
fichier_en_sortie VARCHAR2 (255);
Varchar2 (2) EOL: = Chr (13) | Chr (10);
BEGIN
output_header: = 'tls_tracking_id ' | Chr (9) | ' fnn_ext' | Chr (9) | "path_id' | EOL;
fichier_en_sortie: = 'report_excel' |'. XLS;
owa_util.mime_header ("application/octet ', false");
HTP.p ('Content-Disposition: attachment; filename = "" | ") fichier_en_sortie |' « ') ;
owa_util.http_header_close;
HTP. PRN (output_header);
for r in)
Select tls_tracking_id, fnn_ext, DWD_DTOV_OUT_VW path_id
where nbn_loc_id = 'LOC000138413115. '
The order of tls_tracking_id LOOP)
HTP. PRN (r.tls_tracking_id
|| Chr (9) | r.fnn_ext
|| Chr (9) | r.path_id
|| EOL
);
END LOOP;
END;
Code2 used :
create or replace PACKAGE BODY IS pkg_excel_export
PROCEDURE excel_open (l_xml_body IN OUT NOCOPY CLOB) IS
BEGIN
l_xml_body: = ' <? XML version = "1.0" encoding = "ISO-8859-9"? > ' | Chr (10) |
"< workbook xmlns =" "urn: schemas-microsoft - com:office:spreadsheet" ' | "
Chr (10) |
""xmlns:o ="urn: schemas-microsoft-com ' ' |
Chr (10) |
"xmlns: x =" "urn: schemas-microsoft-com: excel" ' | "
Chr (10) |
""xmlns:ss ="urn: schemas-microsoft - com:office:spreadsheet" ' |
Chr (10) |
'xmlns:html=" http://www.w3.org/TR/REC-html40 ">' ||
Chr (10) |
' < ExcelWorkbook xmlns = "urn: schemas-microsoft-com: excel" > ' |
Chr (10) | ' < WindowHeight > 8580 < / WindowHeight > ' |
Chr (10) | ' < WindowWidth > 15180 < / WindowWidth > ' | Chr (10) |
' < WindowTopX > 120 < / WindowTopX > ' | Chr (10) |
' < WindowTopY > 45 < / WindowTopY > ' | Chr (10) |
' < ProtectStructure > false < / ProtectStructure > ' | Chr (10) |
' < ProtectWindows > false < / ProtectWindows > ' | Chr (10) |
' < / ExcelWorkbook > ' | Chr (10) | "< Styles > | Chr (10) |
'< ss:ID of style = 'Default' ss:Name 'Normal' = >' | Chr (10) |
"< ss:Vertical alignment = 'Bottom' / >" | " Chr (10) |
' < borders / > '. Chr (10) | ' < police / > '. Chr (10) |
' < Interior / > '. Chr (10) | ' < NumberFormat / > '. Chr (10) |
' < protection / > '. Chr (10) | "< / style > | Chr (10) |
'< ss:ID of style 's22' = >' | Chr (10) |
"< x: font family = ss"Swiss":"BOLD"="1"ss:Underline ="Single"/ >" | "
Chr (10) | "< / style > | Chr (10) | "< / style >";
END excel_open;
PROCEDURE excel_close (l_xml_body IN OUT NOCOPY CLOB) IS
BEGIN
l_xml_body: = l_xml_body | ' < / workbook > ';
END excel_close;
/ * Opens a worksheet in the Excel file. , You can open multiple worksheets. **/
PROCEDURE worksheet_open
(
l_xml_body IN OUT NOCOPY CLOB,
p_worksheetname in VARCHAR2
) IS
BEGIN
--
-Create the worksheet
--
l_xml_body: = l_xml_body | "' < worksheet ss:Name = ' ' | p_worksheetname |
"" > < table > ";"
END worksheet_open;
/ *Farm the worksheet in the Excel file. **/
PROCEDURE worksheet_close (l_xml_body IN OUT NOCOPY CLOB) IS
BEGIN
l_xml_body: = l_xml_body | ' < / table > < / worksheet > ';
END worksheet_close;
/ *Opens the tag line * /
PROCEDURE row_open (l_xml_body IN OUT NOCOPY CLOB) IS
BEGIN
l_xml_body: = l_xml_body | "< row >."
END row_open;
/ *Farm the tag line * /.
PROCEDURE row_close (l_xml_body IN OUT NOCOPY CLOB) IS
BEGIN
l_xml_body: = l_xml_body | "< / row > | Chr (10);
END row_close;
/ *After the opening of the line, we can write something the first cell* /
PROCEDURE cell_write
(
l_xml_body IN OUT NOCOPY CLOB,
p_content in VARCHAR2
) IS
BEGIN
l_xml_body: = l_xml_body | ' < cell > < data ss:Type = "String" > ' |
p_content | ' < / data > < / cell > ';
END cell_write;
/ * If you use this package of APEX, you get to download the excel file. **/
PROCEDURE excel_get
(
l_xml_body IN OUT NOCOPY CLOB,
p_filename in VARCHAR2
) IS
XX BLOB;
make the NUMBER;
This NUMBER;
BC NUMBER.
LC NUMBER;
w NUMBER;
BEGIN
DBMS_LOB.CREATETEMPORARY (xx, TRUE);
make: = 1;
so: = 1;
BC: = dbms_lob.default_csid;
LC: = dbms_lob.default_lang_ctx;
w: = dbms_lob.no_warning;
DBMS_LOB.converttoblob (xx,
l_xml_body,
DBMS_LOB.lobmaxsize,
do,
Thus,.
British Colombia,
LC,
(w);
owa_util.mime_header ("application/octet ', FALSE");
-set the size so that the browser knows how to download
HTP.p ("Content-length: ' |") DBMS_LOB.GetLength (xx));
-the name of the file will be used by the browser if users only one save as
HTP.p ('Content-Disposition: attachment; filename = "" | ") p_filename |
'.xls ' | '"');
-close the headers
owa_util.http_header_close;
-Download the BLOB
wpg_docload.download_file (XX);
END excel_get;
END pkg_excel_export;
I know it's a bit long code, but to better understand please consider...
Thank you.
I did worked putting just one extra line in my l_xml_body in the XML (Code 2 used). Now my excel generates with cells type 'Text' and there are no left falling to zero. Also the columns display not scientific format as 2.3D + 12. Current recording shows without default formatting.
'
-
How to set the text appears on the page when I rollover a button?
I have a simple container with a background image with 9 buttons on the right side of the page. As I rollover each key, I want an informative text to appear near the left center of the page... and then disappear when you rolloff button. Not sure how to set up. I created everything but informative text.
Anyone?... Thank you!
Stephen
Here's a quick example wired. This solution is for a component that is customized with different States and applying interactions to the buttons to control the display and hiding of individual States (the text on the page).
Best,
Tanya
-
I want to configure my printer to turn on automatically when receiving incoming fax. Do I have to leave power or can I change the setting to turn on automatically with each incoming call. He is a dedicated fax line that is not connected to my computer. Also there is a sleep mode, the power led remains on when you use the sleep mode?
Hi @mcqwats,
Welcome to the Forums of HP Support! I see you want for your printer HP switch automatically when an incoming fax arrives. You have not the possibility to activate the automatic answer - on, but the printer must be turned on so that this function executes.
There is however no way to set the preferences to activate the printer when it is off.
I hope that answers your questions.
Thank you
-
I'm a fool to the computer. I fix my car and I don't fix my computer. If there is no easy solution, I'll pay someone to do it for me. So, is there an easy way to retrieve my horizontal scroll bar? I've updated to the latest Firefox (35). I restored my computer to an earlier date when everything was ok. I downloaded another browser (Chrome) to see if that would fix it. Nothing has worked. The system I use is Windows 7 64 bit. I tried not to do anything, because this has led to big problems in the past. Suggestions, or I need to take the machine to my fix - it person?
Thanks for any assistance yu might be able to provide.
Bingo! You have reason, cor - el. Thank you.
I never noticed this before. Sometimes (when I'm too lazy to get up and do my glasses or cannot find them) I just increase the size of the window.
To me it seemed that the scroll bar was still there, and then it wasn't. Hours lost, but a lesson learned. I did not mention that I am a fool to the computer, I don't?
Thank you!!!
-
Question on how to set the position of the field.
Is there anyway to set the field position TOP of the screen as Screen.setTitle (Field)?
My problem is when I add my Manager (who has a backgrond color) for the title. I see a gray line between the title and the body region (the body has a background color even my manager), so I did ' t like it.
Reason I want to 'FIX' my manager at the top of the screen position is I want to see my manager every time I scroll the screen each time as setTitle().
THX in advance
-Maz-
Try using setBanner() instead of setTitle(). I think that the banner does not normally include a field separator (which is what this line gray).
-
How to set "allow scrolling" effect and show default highlighter?
I think the option to activate the scrolling let's move you from one page to another all the time and I have to change in settings everytime I open acrobat. How to put in effect by default in preferences and also, how to show the highlighter at each startup?
Hi TheTaj,
You can set the Page layout option "Single Page continues" in the Edit menu > Preferences > Page display.
Please also check the box for "Restore last view settings when reopening documents" in Preferences > Documents.
However, highlight is set by default to the toolbar at the top.
Let us know if you need help.
Kind regards
Meenakshi
-
How to set a particual as sysdate field value, if it is null
Hello
I have a custom OAF page requirement.
In the table of results, if the value of the DATE field is NULL, then we must set as default SYSDATE.
For this I use the following code. Could someone suggest me I'm correct or not?
Indicative PFR:
if(xxMDateBean == null)
{
OAMessageDateFieldBean xxMDate = (OAMessageDateFieldBean) webBean.findIndexedChildRecursive ("xxMDate");
oracle.jbo.domain.Date date1 = am.getOADBTransaction () .getCurrentUserDate ();
Impossible displayDateFormat impossible new = ("dd-MM-yyyy');
String OracleDateForm = displayDateFormat.format (date1.dateValue ());
xxMDate.setValue (pageContext, OracleDateForm);
}
I get the following error:
Error (81.8): variable xxMDate not found in the class (CONTROLLER)
Published by: Eddy on January 20, 2011 17:09Nanoo,
I think that the code I gave you can use directly by changing just the VO, the column names.
Please let me know what exactly you are looking.You might be the method call AM to run the query, after which followed this procedure (with your VO, columns).
Thank you.
With respect,
Kali.
OSSI. -
How to set a value in a field with condition in a report?
Hello
In my report, I want to change a value of a field when it checks certain conditions.
How can I realize this process?
Help.
Regardly.Hello
You can use the internal commands SRW. SET_FIELD_NUM or SRW. SET_FIELD_DATE or SRW. SET_FIELD_CHAR in the trigger of Format:
Examples can be found here:
SRW. SET_FIELD_NUM:
http://www.Oracle.com/webapps/online-help/reports/10.1.2/topics/htmlhelp_rwbuild_hs/rwrefex/PLSQL/builtins/SRW/srw_set_field_num.htmSRW. SET_FIELD_DATE:
http://www.Oracle.com/webapps/online-help/reports/10.1.2/topics/htmlhelp_rwbuild_hs/rwrefex/PLSQL/builtins/SRW/srw_set_field_date.htmSRW. SET_FIELD_CHAR:
http://www.Oracle.com/webapps/online-help/reports/10.1.2/topics/htmlhelp_rwbuild_hs/rwrefex/PLSQL/builtins/SRW/srw_set_field_char.htmConcerning
Maybe you are looking for
-
How to change the system of active development LV
Hi all I have LV 8.6 installed and now I have installed LV 7.1 on my PC and the LabView TS Adapter Configuration screen now shows as active development system 7.1 (not TEN). How can I change to 8.6? Thank you Jim
-
Device Manager shows my drive hard as a WD 6400, with driver WD SCSI, disk while the support page of the ACER site says the driver is an AMD SATA AHCI Driver. I'm inclined to believe the Device Manager. Was it a change in production? I need to add
-
Update kb2512827 installed several times repeatedly
Update kb2512827 says it installed, but I keep getting notifications to install and it appears not as having been installed on my pc, although the history UPDATE said that there are many, many, many times. I have XP pack 3 IE 8 DELL Dimension. Update
-
Impossible to get a movie to play
I have een trying to watch a movie or a TV show. the program does not load. It starts then stops and freezes. This happens only on one site. He used to work now, it's not. can someone please make a sugestion for what might be the problem. I thought i
-
How can you stop your malfunctioing album covers?
Just the day before I had an update I did on my computer. I noticed after the update from microsoft that I was getting a malfunction in my windows media player 11. So far, none of my music has dissappeared. The question that happens is that a part