"LabelFields table" is this possible?
I now get a NullPointerException when trying to do.
Code:
Static VerticalFieldManager table;
private static LabelField LF1 [];
private static LabelField LF2 [];
public MyScreen() {}
....
Table = new VerticalFieldManager();
for (int i = 0; i)<>
{
Line HorizontalFieldManager = new HorizontalFieldManager();
LF1 [i] = new LabelField(""); Application breaks here with a NullPointerException error
LF2 [i] = new LabelField("");
Row.Add (LF1 [i]);
Row.Add (LF2 [i]);
Table.Add (Row);
}
...
}
Thanks in advance...
Hello
The problem is allocate memory for label fields IE
Static VerticalFieldManager table;
private static LabelField LF1 [];
private static LabelField LF2 [];
public MyScreen() {}
....
Table = new VerticalFieldManager();
LF1 = new LabelField [Functions.Records];
LF2 = new LabelField [Functions.Records];
for (int i = 0; i)<>
{
Line HorizontalFieldManager = new HorizontalFieldManager();
LF1 [i] = new LabelField(""); Application breaks here with a NullPointerException error
LF2 [i] = new LabelField("");
Row.Add (LF1 [i]);
Row.Add (LF2 [i]);
Table.Add (Row);
}
...
}
Kind regards
Lachi...
Tags: BlackBerry Developers
Similar Questions
-
Mr President.
Is it possible that when the new record is inserted in a table then this empty inserted record is automatically displayed without scrolling?
Because I change the size property of the table 5 range and my new record is inserted at no 10.
When I click the addRecord button the new parallel line does not appear, do scroll down to see it.
I want that we don't have to scroll down.
The line is displayed automatically.
as shown in the photo my behavior of page.
Concerning
If you just need the newly created line to be visible,
You can simply set contentDelivery = 'immediate' and displayRow = "selected".
P.S. the blog mentioned above only.
See you soon
AJ
-
SQL Interpolation of time. Is this Possible?
I have a table Named FAC_TABLE
Time (DateTime)_ | _Value (Number)
2008-02-01 10:16:04, _ | ___10
2008-02-01 10:18:04, _ | ___13
2008-02-01 10:19:04, _ | ___11
2008-02-01 10:20:04, _ | ___12
2008-02-01 10:21:04, _ | ___10
2008-02-01 10:23:04, _ | ___11
2008-02-01 10:24:04, _ | ___16
2008-02-01 10:25:04, _ | ___15
2008-02-01 10:27:04, _ | ___15
We have values according to time, with a common time interval. My need is for interpolation and obtain values at determined time interval say by 5 min'.
Is it possible to create a SQL query to get values interpolated in a certain period of time?
example of output: -.
Time (DateTime)_ | _Value (Number)
2008-02-01 10:16:04, _ | ___10
2008-02-01 10:21:04, _ | ___10
2008-02-01 10:26:04, _ | ___15
Here there is no time February 1, 2008 10:26:04 ' in Raw data but Interpolation will get the data according to time.
I can do this programmatically by getting all the values in the DB, but more iteration is needed to get the DB and for treatment. So I'm looking for a SQL solution. Is this Possible?
I'm using Oracle 11 g.
Published by: mCm on February 20, 2012 22:32Hello
Welcome to the forum!
Of course, you can do it in pure SQL. Here's one way:
WITH actual_values AS ( SELECT time , LEAD (time) OVER (ORDER BY time) AS next_time , value , LEAD (value) OVER (ORDER BY time) AS next_value FROM fac_table ) , desired_times AS ( SELECT min_time + ( (LEVEL * 5) / (24 * 60) ) AS time FROM ( SELECT MIN (time) AS min_time , MAX (time) AS max_time FROM fac_table ) CONNECT BY LEVEL <= 5 * ( (max_time - min_time) * (14 * 60) ) ) SELECT d.time , a.value + ( (a.next_value - a.value) * ( (d.time - a.time) / (a.next_time - d.time) ) ) AS interpolated_value FROM actual_values a JOIN desired_times d ON d.time >= a.time AND d.time < a.next_time ;
Sorry, I'm not a database now, so I can't test this.
The above query assumes that fac_table.time is unique, and that fac_table.value is not NULL.
Published by: Frank Kulash, February 20, 2012 07:57
-
LOVs cascading with the ability to create a new record. Is this possible?
Hello
I am trying to create a couple of LOVs. The first is a list of manufacturers, the second a list of items. Essentially, when you select a manufacturer from the first LOV you will see their articles in the second LOV.
I had a look through the forum and I think I have a handle on how to make a waterfall... except LOV...
I would like users to have the ability to enter a NEW manufacturer and a NEW element if necessary and have this combination, then saved in the source table.
Is this possible?
Thank you
JosephHello
Browsers is not the drop-down list box functionality that you would find in something like MS Access. You could try autocomplete - see [http://apex.oracle.com/pls/otn/f?p=31517:53] - but you would have to search all the entries (the field only would focus on the display text and not the ID of the element, which would have to be searched every time).
I want to say that you should be able to trust your users to not create duplicates. I want to say this, but... ;)
Andy
-
Dynamic query using no PL/SQL. Is this Possible?
Hello world
According can the innery query result, we have a different external query I want to know if it is possible with the PL/SQL.
Example:
It's my inner query:
with q1 as
(select
cases where x > 500 then 0
1 other
end value
Of
Table 1)
This is where I stopped, I want to just run either of these queries according to the value.
I know that I can do using PL/SQL, but I want to know if we can do it with pure SQL
Something like that to happen:
What value = 0: run this query: select * from table2
What value = 1: run this query: select * from table2, table3 join using (col1)
Thank you.
VKSure. A bit far from updated him->
satyaki> satyaki> satyaki>select * from v$version; BANNER ---------------------------------------------------------------- Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod PL/SQL Release 10.2.0.3.0 - Production CORE 10.2.0.3.0 Production TNS for 32-bit Windows: Version 10.2.0.3.0 - Production NLSRTL Version 10.2.0.3.0 - Production Elapsed: 00:00:01.82 satyaki> satyaki> satyaki>select k.deptno, 2 k.empno, 3 k.ename, 4 k.job, 5 k.mgr, 6 k.hiredate, 7 k.sal, 8 k.comm, 9 null dname, 10 null loc 11 from emp k 12 where &eid = 0 13 union all 14 select * 15 from ( 16 select * 17 from emp 18 join dept 19 using (deptno) 20 ) 21 where &eid = 1; Enter value for eid: 0 old 12: where &eid = 0 new 12: where 0 = 0 Enter value for eid: 0 old 21: where &eid = 1 new 21: where 0 = 1 DEPTNO EMPNO ENAME JOB MGR HIREDATE SAL COMM DNAME LOC ---------- ---------- ---------- --------- ---------- --------- ---------- ---------- -------------- ------------- 10 9999 SATYAKI SLS 7698 02-NOV-08 55000 3455 10 7777 SOURAV SLS 14-SEP-08 45000 3400 30 7521 WARD SALESMAN 7698 22-FEB-81 1250 500 20 7566 JONES MANAGER 7839 02-APR-81 2975 30 7654 MARTIN SALESMAN 7698 28-SEP-81 1250 1400 30 7698 BLAKE MANAGER 7839 01-MAY-81 2850 10 7782 CLARK MANAGER 7839 09-JUN-81 4450 20 7788 SCOTT ANALYST 7566 19-APR-87 3000 10 7839 KING PRESIDENT 17-NOV-81 7000 30 7844 TURNER SALESMAN 7698 08-SEP-81 1500 0 20 7876 ADAMS CLERK 7788 23-MAY-87 1100 DEPTNO EMPNO ENAME JOB MGR HIREDATE SAL COMM DNAME LOC ---------- ---------- ---------- --------- ---------- --------- ---------- ---------- -------------- ------------- 30 7900 JAMES CLERK 7698 03-DEC-81 950 20 7902 FORD ANALYST 7566 03-DEC-81 3000 13 rows selected. Elapsed: 00:00:00.32 satyaki>/ Enter value for eid: 1 old 12: where &eid = 0 new 12: where 1 = 0 Enter value for eid: 1 old 21: where &eid = 1 new 21: where 1 = 1 DEPTNO EMPNO ENAME JOB MGR HIREDATE SAL COMM DNAME LOC ---------- ---------- ---------- --------- ---------- --------- ---------- ---------- -------------- ------------- 10 9999 SATYAKI SLS 7698 02-NOV-08 55000 3455 ACCOUNTING NEW YORK 10 7777 SOURAV SLS 14-SEP-08 45000 3400 ACCOUNTING NEW YORK 10 7782 CLARK MANAGER 7839 09-JUN-81 4450 ACCOUNTING NEW YORK 10 7839 KING PRESIDENT 17-NOV-81 7000 ACCOUNTING NEW YORK 20 7566 JONES MANAGER 7839 02-APR-81 2975 RESEARCH DALLAS 20 7876 ADAMS CLERK 7788 23-MAY-87 1100 RESEARCH DALLAS 20 7788 SCOTT ANALYST 7566 19-APR-87 3000 RESEARCH DALLAS 20 7902 FORD ANALYST 7566 03-DEC-81 3000 RESEARCH DALLAS 30 7844 TURNER SALESMAN 7698 08-SEP-81 1500 0 SALES CHICAGO 30 7521 WARD SALESMAN 7698 22-FEB-81 1250 500 SALES CHICAGO 30 7698 BLAKE MANAGER 7839 01-MAY-81 2850 SALES CHICAGO DEPTNO EMPNO ENAME JOB MGR HIREDATE SAL COMM DNAME LOC ---------- ---------- ---------- --------- ---------- --------- ---------- ---------- -------------- ------------- 30 7654 MARTIN SALESMAN 7698 28-SEP-81 1250 1400 SALES CHICAGO 30 7900 JAMES CLERK 7698 03-DEC-81 950 SALES CHICAGO 13 rows selected. Elapsed: 00:00:00.24 satyaki>
Kind regards.
LOULOU.
-
Create a schema of the user with the same name and tables within this scheme
I am a newbie with Oracle.
I installed my first Oracle 10 g database in my life.
I need to create a user and a new schema with the same name.
Subsequently, I need to create tables in this schema using the * isqlPlus.
I got to create the user via the Oracle Enterprise Manager Console.
I tried to create a schema through the same tool, but I have not found a possibility to do using GUI.
Is it possible to do so through Oracle Enterprise Manager Console?
What are the permissions the user must have access isqlPlus to create the tables in the schema?
Thank you!!!
FelipeA schema is just a collection of objects belonged to a particular user. If you do not need to create a separate schema: the schema is created automatically when you create the user.
To connect to the database, a user must CREATE SESSION privilege. To create a table, the user has the CREATE TABLE privilege and should be given a quota on any tablespace will be created in the table. If you don't care management quota or limit the storage space that a user can create tables, you can grant the user the UNLIMITED TABLESPACE privilege. If you care the management of quota, you must run commands like
ALTER USER <
> QUOTA < > ON < > for each tablespace for the user to be able to use.
Justin
-
Here's the situation... My GF installed spyware on my phone, I would like to see if I can allow the tracking by GPS, but do not allow the follow-up... Is this possible?
If your phone is not jailbroken, it's impossible. It's jailbroken, it is not tenable and therefore safer.
-
I have a Mac Book Pro with a CD/DVD drive. I want to copy a home made DVD. Is this possible with iMovie or another application?
Look for the hand brake.
It is a free application which can convert your DVD to QuickTime formats.
-
I live in the United States and would like to buy a song from the Germany. Is this possible?
Hello
You can buy songs that are available on iTunes Store for your country.
-
I get emails from multiple email addresses and would like to see them all in one place instead of having to click 5 different folders to see what's new in each of them. Is this possible? Any help is appreciated!
Question in 2014
How can I read my incoming e-mails in a single folder? As I do in Live mail and Outlook express.
https://support.Mozilla.org/en-us/questions/1009047Looks like you need.
TB - 38, 3 Win10-PC
-
'iPhone has been severely infected by viruses -' is this possible?
Surf the internet (safari) pops up a window that says that the iPhone has been severely infected by viruses (respectively 7) and I have to follow the instructions to repair the phone. Is this possible or is it a fake?
No, there is no virus in the wild for iOS. This popup is just a scam to try to get you to reveal personal information. Quit Safari and go to safari settings and delete cookies and clear history and cache.
-
I use Firefox and Seamonkey, as well on the same computer and also on other computers. I would like to use Firefox Sync to synchronize bookmarks between Firefox and Seamonkey on all my computers, but I do not understand how to do this, because the browsers seem to use their own separate servers.
Is this possible and if so can you tell me how to put in place.
Thank you.
I understand the confusion!
I'm not a Mozilla support person, but according to my experience, synchronization must be called Sync in Mozilla, Firefox or Seamonkey Sync...
If you create an account in Firefox, this account is accessible to Seamonkey.
According to the instructions of Mozilla in Firefox, you open 'Options, sync, add a device' and in Seamonkey "sync Setup, I already have an account. The text here is a little confusing because you have to read 'I already have a Mozilla sync account', otherwise, you tend to think that it involves a Seamonkey sync account...
Then click 'connect' and Seamonkey then provides three fields of characters that you enter in the appropriate fields in the dialog 'Add a device' Firefox.
I think it's confusing that in Firefox, the server is called 'Server of Firefox Sync' and same Seamonkey offers a "Seamonkey Sync Server', which suggests that they are two completely separate entities, not connected.
I hope this helps!
-
Closure of a SELECTION of tabs at once. Is this possible?
Hi, I'm an average user of tabs. Let's say I opened 25 tabs in a window/session. I want to select 5 tabs to close, at one time, but without using the tabs groups/panorama that I am too clumsy use this feature. :-) I mean it takes more time to create your groups and then close the group. I would prefer to select my tabs and close them then directly from my window screen. Is this possible?
See:
- Multiple Tab Handler: https://addons.mozilla.org/firefox/addon/multiple-tab-handler/
-
I am looking to buy a 'new' ipod classic. IPod Superstore claims get the new Apple iPod that Apple is still making them for 5 years, but only to sell them to a few suppliers for resale. Is this possible?
Probably not still making them, but Apple political is to the service of produced at least five years after they is no longer manufactured and sold
"Owners of iPhone, iPad, iPod or Mac products can get the services and Apple parts or service providers from Apple for 5 years after that the product is longer manufactured,' which is
Vintage and obsolete products - Apple Support
With the iPod, 'maintenance' means often giving you a replacement to pay the off-guarantee fee, which is $ 299 for the last classic model of the iPod, according to this document
Pricing of the Service - The Apple iPod Support
So Apple probably has a stock that's enough to last up to five years after 2014 (when the last classic model of the iPod has been abandoned). This provider is unlikely to be an authorized dealer, as well as the iPod has not perhaps be covered by the standard warranty of one year. That's why it comes in a regular white box, not a retail box. It's supposed to be a replacement of maintenance for the iPod classic (latest model) owners. It can be 'used', but it is still old. Parts like LCD, HDD and the age of the battery by sitting in a warehouse.
-
I want to be able to switch to FF3.6 mode as in IE9, we can switch to IE8 mode.
Is this possible in FF?
Sorry, no, this is not possible. Firefox 4.0 replace Firefox 3.6 when you installed 4.0, as well as Firefox needs not a "compatibility mode" as a IE - Firefox has always been more compatible with W3C standards that older versions of Internet Explorer have been and is not need done like IE "mode" to view the web pages made for older versions of IE without breaking these web pages.
Maybe you are looking for
-
Question about sound card on TECRA T9000.
Hi, I have a TECRA T9000, who seems to have a mind of its own, I am trying to load Win XP Pro top, and he insists that he has a card his YAMAHA but my test drive say it has an INTEL AC 97 sound card, when I try to uninstall the YAMAHA software it loa
-
Logic Pro manual iBooks font too big on iMac
Hi guys, I just purchased Logic Pro X from the Mac App Store and then downloaded the User Guide in iBooks. I opened on my updated (10.11.3 El Capitan) late 2009 iMac (Quad Core i7 16 MB RAM) and the police is huge - I want to say you get 2 or 3 words
-
Hi - How re - connect to my printer wirelessly after a reset to the factory settings? I use Mac OS 10.8. The network on the printer flashes, and on the Mac, it is listed as "not connected". And the page of report confirms that he has lost all of its
-
How to stop error notification of closing WAB
I am running XP with Kaspersky and have this constant notification error when the computer is shut down. This is the Windows address book and I use Microsoft Outlook 2000, which is closed without problem before I try to shut down the computer. Any
-
There is no available active mixer devices...
I get this message when you try to open the volume...