Get the error PLS-00103 while specifying the Type of package
Hey bud,All by specifying a Type which is the table of a different type, in the same package, I get an error in my PL Sql Developer, saying:
Errors of compilation for the OASIS_TST PACKAGE. PK_OA
Error: PLS-00103: encountered the symbol "TABLE" when awaits one of the following values:
opaque object
Line: 61
Text: as a table of tp_report;
Here are the specs of my package where the respective Types are declared:
************************************************************************
create or replace package pk_oa
is
function (report)
as in pd_date)
return tp_tab in pipeline;
type tp_report
as an object
*(*
ID INT,
last_nm VARCHAR2 (50).
first_nm VARCHAR2 (50).
full_nm VARCHAR2 (50));
type tp_tab
as the table of tp_report;
end;
**************************************************************
Could you find where I'm wrong with this piece.
Thank you
HP
You must create types of objects outside packages:
SQL> create or replace type tp_report
2 as object(
3 id INT,
4 last_nm VARCHAR2(50),
5 first_nm VARCHAR2(50),
6 full_nm VARCHAR2(50));
7 /
Typ wurde erstellt.
SQL> create or replace package pk_oa
2 is
3
4 type tp_tab
5 is table of tp_report;
6
7 function report (
8 pd_date in date)
9 return tp_tab pipelined;
10
11 end;
12 /
Package wurde erstellt.
URS
Tags: Database
Similar Questions
-
Try to run the procedure and get an error PLS-00103
I have a procedure defined with these parameters
create or replace PROCEDURE procAuth
(
EMAIL IN VARCHAR2,
PASSWORD IN VARCHAR2,
IP IN VARCHAR2,
UL NUMBER
)
Using this code
var x number
procAuth exec ('[email protected]', ' 555555 ', ' 1.1.1.1': x);
print x
gives me
Error at startup on line 2 of the command:
procAuth exec ('[email protected]', ' 555555 ', ' 1.1.1.1': x);
Error report:
ORA-06550: line 1, column 65:
PLS-00103: encountered the symbol "" when expecting one of the following values:
. ( ) , * @ % & | = + - <>/ at is mod not rank rem = >
.. < an exponent (*) > <>or! = or ~ = > = < = <>and or as
between |
The symbol ',' was replaced by ' ' to continue.
06550 00000 - "line %s, column % s:\n%s".
* Cause: Usually a PL/SQL compilation error.
* Action:
x
------
Thanks for any helpjerry8989 wrote:
I have a procedure defined with these parameterscreate or replace PROCEDURE procAuth
(
EMAIL IN VARCHAR2,
PASSWORD IN VARCHAR2,
IP IN VARCHAR2,
UL NUMBER
)Using this code
var x number
exec procAuth (' [email protected]', '555555',' 1.1.1.1': x);
print xgives me
Error at startup on line 2 of the command:
exec procAuth (' [email protected]', '555555',' 1.1.1.1': x);a comma is perhaps missing to the right of the right like apostrophe below?
procAuth exec ('[email protected]', ' 555555 ', ' 1.1.1.1',: x);
-
Error [PLS-00103: encountered the symbol "CREATE"] using PACKAGE
Hi guys!
When I compile this package, I get this error:
PLS-00103: encountered the symbol "CREATE".
How can I solve this problem?
The compiled code is below:
CREATE OR REPLACE
PACKAGE CAMPO_PACK AS
TYPE T_CURSOR IS REF CURSOR;
PROCEDURE DeleteCode (OSDP NUMBER);
END CAMPO_PACK;
-body-
CREATE or REPLACE PACKAGE BODY CAMPO_PACK as
PROCEDURE DeleteCode(pCod NUMBER) AS
BEGIN
DELETE FROM campo
WHERE cod = OSDP;
END DeleteCode;
END CAMPO_PACK;
Thanks for the help,
Anderson
Published by: user8723300 on 08/13/2009 17:03
Published by: user8723300 on 08/13/2009 17:04I use Oracle SQL Developer
I know very well of this tool.
The packet header and body are two separate objects and must be compiled separately. I suspect that the package body is somehow have included in package header and Developer SQL tries to compile all of these at once. You must understand how to compile the header first, then the body. Your code compiles if I use sqlplus. I had to first create the table, so I have included a slash (/) after the packet header and the other after that body. The slash tells sql more to run the buffer (in this case, to compile the object).
SQL> create table campo (cod number); Table created. SQL> CREATE OR REPLACE 2 PACKAGE CAMPO_PACK AS 3 4 TYPE T_CURSOR IS REF CURSOR; 5 6 PROCEDURE DeleteCode(pCod NUMBER); 7 8 END CAMPO_PACK; 9 / Package created. SQL> CREATE OR REPLACE PACKAGE BODY CAMPO_PACK AS 2 3 PROCEDURE DeleteCode(pCod NUMBER) AS 4 BEGIN 5 DELETE FROM campo 6 WHERE cod = pcod; 7 END DeleteCode; 8 9 END CAMPO_PACK; 10 / Package body created.
If I remove the slash after the package header, sql more trying to compile all this at once, and I get the same error you get:
SQL> CREATE OR REPLACE 2 PACKAGE CAMPO_PACK AS 3 4 TYPE T_CURSOR IS REF CURSOR; 5 6 PROCEDURE DeleteCode(pCod NUMBER); 7 8 END CAMPO_PACK; 9 10 CREATE OR REPLACE PACKAGE BODY CAMPO_PACK AS 11 12 PROCEDURE DeleteCode(pCod NUMBER) AS 13 BEGIN 14 DELETE FROM campo 15 WHERE cod = pcod; 16 END DeleteCode; 17 18 END CAMPO_PACK; 19 / Warning: Package created with compilation errors. SQL> sho err Errors for PACKAGE CAMPO_PACK: LINE/COL ERROR -------- ----------------------------------------------------------------- 9/1 PLS-00103: Encountered the symbol "CREATE"
-
Error PLS-00103 and the program has stopped responding
Hey all, I am currently practical with pl/sql, I am a beginner trying to pl/sql self-training, I use the HR schema that accompanies the express edition of oracle 10g for practice, here is my code:
-- -------------------------------------------------------------------------------------------
FUNCTION to CREATE or REPLACE checkIfSalaryExceedMin (currentJobID in NUMBER, currentProposedSalary number)
RETURN BOOLEAN IS
minSalary NUMBER: = 0;
Begin
Select j.min_salary FROM minSalary of JOB j where j.job_id = currentJobID;
RETURN currentProposedSalary > minSalary;
End checkIfSalaryExceedMin;
-- -------------------------------------------------------------------------------------------
-- -------------------------------------------------------------------------------------------
FUNCTION to CREATE or REPLACE checkForJobChange (currentEmpID in NUMBER, currentEmpStartDate IN DATE)
RETURN BOOLEAN IS
CURSOR emp_date_id_list1 IS (Select j1.start_date, e1.employee_id JOB_HISTORY j1 EMPLOYEES JOIN e1 ON j1.employee_id = e1.employee_id);
checkVal NUMBER: = 0;
Begin
For em1 IN LOOP emp_date_id_list1
IF (currentEmpID = em1.employee_id AND currentEmpStartDate! = em1.start_date) THEN
checkVal: = 1;
END IF;
END LOOP;
IF checkVal = 1 THEN
RETURN TRUE;
ELSIF checkVal = 0 THEN
RETURN FALSE;
END IF;
End checkForJobChange;
-- -------------------------------------------------------------------------------------------
-- ===================MAIN====================
Declare
CURSOR emp_date_id_list IS (Select j.start_date, e.employee_id, e.job_id, e.salary JOB_HISTORY e j EMPLOYEES JOIN ON j.employee_id = e.employee_id);
Begin
For em IN emp_date_id_list LOOP
IF (em.start_date < TO_DATE ('1990-01-01', 'YYYY-MM-DD')) THEN
IF (checkForJobChange (em.employee_id, em.start_date)) THEN
IF checkIfSalaryExceedMin (em.job_id, (e.salary + (e.salary*.20))) THEN
DBMS_OUTPUT. Put_line ('you can increase his salary');
END IF;
END IF;
END IF;
END LOOP;
End;
-- ================END==MAIN==================
What it does is check if the employee worked prior to January 1, 1990, if he had had a change of job and if it fulfills the two conditions, the program checks if its proposed new salary will be larger than his salary manager current, if not he can get a pay raise.
So my problem is I got an error PLS-00103 earlier, after some tweaking my program now is insensitive, what am I doing wrong? :(
Help, please. Thank you.checkIfSalaryExceedMin (currentJobID in NUMBER
Must be:
checkIfSalaryExceedMin (currentJobID in VARCHAR2
or:
checkIfSalaryExceedMin (currentJobID IN employees.job_id%type
Since then job_id is of data type VARCHAR2 and not a NUMBER.
Also
IF checkIfSalaryExceedMin (em.job_id, (e.salary + (e.salary*.20))) THEN
must be:
IF checkIfSalaryExceedMin (em.job_id, (em.salary + (em.salary*.20))) THEN
After some tweaking my program does not
I've been juggling as well and are unaware of any 'unresponsiveness':
SQL> declare 2 cursor emp_date_id_list 3 is 4 select j.start_date 5 , e.employee_id 6 , e.job_id 7 , e.salary 8 from job_history j 9 join employees e 10 on j.employee_id = e.employee_id; 11 begin 12 for em in emp_date_id_list 13 loop 14 if (em.start_date < to_date('1990-01-01', 'YYYY-MM-DD')) 15 then 16 if (checkforjobchange(em.employee_id, em.start_date)) 17 then 18 if checkifsalaryexceedmin(em.job_id, (e.salary + (e.salary * .20))) 19 then 20 dbms_output.put_line('You can raise his salary'); 21 end if; 22 end if; 23 end if; 24 end loop; 25 end; 26 / if checkifsalaryexceedmin(em.job_id, (e.salary + (e.salary * .20))) * ERROR at line 18: ORA-06550: line 18, column 47: PLS-00201: identifier 'E.SALARY' must be declared ORA-06550: line 18, column 9: PL/SQL: Statement ignored SQL> declare 2 cursor emp_date_id_list 3 is 4 select j.start_date 5 , e.employee_id 6 , e.job_id 7 , e.salary 8 from job_history j 9 join employees e 10 on j.employee_id = e.employee_id; 11 begin 12 for em in emp_date_id_list 13 loop 14 if (em.start_date < to_date('1990-01-01', 'YYYY-MM-DD')) 15 then 16 if (checkforjobchange(em.employee_id, em.start_date)) 17 then 18 if checkifsalaryexceedmin(em.job_id, (em.salary + (em.salary * .20))) 19 then 20 dbms_output.put_line('You can raise his salary'); 21 end if; 22 end if; 23 end if; 24 end loop; 25 end; 26 / declare * ERROR at line 1: ORA-06502: PL/SQL: numeric or value error: character to number conversion error ORA-06512: at line 18 SQL> create or replace function checkifsalaryexceedmin(currentjobid in employees.job_id%typ e 2 ,currentproposedsalary in number) 3 return boolean is 4 5 minsalary number := 0; 6 7 begin 8 9 select j.min_salary 10 into minsalary 11 from jobs j 12 where j.job_id = currentjobid; 13 14 return currentproposedsalary > minsalary; 15 16 end checkifsalaryexceedmin; 17 / Function created. SQL> declare 2 cursor emp_date_id_list 3 is 4 select j.start_date 5 , e.employee_id 6 , e.job_id 7 , e.salary 8 from job_history j 9 join employees e 10 on j.employee_id = e.employee_id; 11 begin 12 for em in emp_date_id_list 13 loop 14 if (em.start_date < to_date('1990-01-01', 'YYYY-MM-DD')) 15 then 16 if (checkforjobchange(em.employee_id, em.start_date)) 17 then 18 if checkifsalaryexceedmin(em.job_id, (em.salary + (em.salary * .20))) 19 then 20 dbms_output.put_line('You can raise his salary'); 21 end if; 22 end if; 23 end if; 24 end loop; 25 end; 26 / You can raise his salary You can raise his salary PL/SQL procedure successfully completed.
-
has encountered an error "PLS-00103: encountered the symbol"CREATE"when expec".
Hi all
I am creating a procedure and try to use the temporary table...
Here is the code:
--------------------------------------------------------------------------------------------------------------------------------------------
PROCEDURE P_PARENT_TREE
(
topic_id_in in NUMBERS
topic_hierarchy_details_out ON SYS_REFCURSOR
) IS
temp_children_level topic_children.children_level%TYPE;
temp_children_id topic_children.children_id%TYPE;
temp_topic_id topic.topic_id%TYPE;
CURSOR c_child_level IS
SELECT children_level, children_id
OF topic_children
WHERE children_id = topic_id_in;
BEGIN
OPEN c_child_level.
EXTRACT c_child_level INTO temp_children_level, temp_topic_id;
CLOSE C_child_level;
Topic_child CREATE TEMPORARY TABLE IF NOT EXISTS
(t_topic_id, NUMBER, NUMBER, children_seq NUMBER of t_children_id);
WHILE temp_children_level > 0
LOOP
INSERT INTO topic_child (t_topic_id, t_children_id, children_seq)
values)
SELECT topic_id, children_id, children_level
OF topic_children
WHERE children_id = temp_topic_id);
temp_children_level: = temp_children_level - 1;
END LOOP;
OPEN FOR Topic_hierarchy_details_out
Select * from topic_child;
END P_PARENT_TREE;
END TOPIC_PKG;
--------------------------------------------------------------------------------------------------------------------------------------------
the error "PLS-00103: encountered the symbol"CREATE"when expec...
no idea why? or can be is there another way to write this queryCan you post some examples of data? And the expected results?
Looks like you can use a hierarchical query (START WITH... CONNECT BY), and that you do not have a Temp table (like I said before very rare in Oracle) -
I get an error code 646 while trying to download the updates
I get an error code 646 while trying to download the updates, update security for Microsoft Works 9 (KB2431831)
Download size: 2.1 MB
Help, please
See this thread:
http://social.answers.Microsoft.com/forums/en-us/vistawu/thread/0c397230-26c6-4214-a5d1-3c99d2b2ef47
-
Please help solve the problem error: PLS-00306: wrong number or types of a
Hello
Please see my statement of types and the procedure. Object and the nested table that is declared at the schema level
I'm using the oracle version 11.2
Error: PLS-00306: wrong number or types of arguments in the call to 'SET '.CREATE OR REPLACE TYPE T_COPY_EVNT_DTL IS OBJECT ( eventId varchar2(100), eventDescription varchar2(100), promoMonthDescription varchar2(100), promoStartDate varchar2(100), promoEndDate varchar2(100), PROMOCOSTSTARTDATE varchar2(100) ); CREATE OR REPLACE TYPE T_EVENT_TABLE IS TABLE OF T_COPY_EVNT_DTL; create or replace PROCEDURE Pr_Event_Details_new(ip_xml CLOB, op_sections_xml OUT XMLTYPE) AS event_list t_copy_evnt_dtl; event_data_sec t_event_table := t_event_table(); CURSOR get_event_cur IS SELECT cast(collect(t_copy_evnt_dtl(evnt.event, evnt.event_desc, mth.promo_month_desc, TO_CHAR(evnt.start_date, 'DD/MM/YYYY'), TO_CHAR(evnt.end_date, 'DD/MM/YYYY'), TO_CHAR((evnt.start_date - 21), 'DD/MM/YYYY'))) as t_event_table) FROM RETEK_PROMO_EVENT_MST evnt INNER JOIN ..... WHERE ... ORDER BY evnt.event_desc, mth.promo_month_desc, dtl.promo_start_date, dtl.promo_end_date, dtl.promo_cost_start_date; type get_event_tab is table of get_event_cur%rowtype index by Binary_Integer; l_get_event_tab get_event_tab; BEGIN .... OPEN get_event_cur; fetch get_event_cur into event_data_sec; event_data_sec := set(event_data_sec); ... EXCEPTION --log_errors... Raise; END Pr_Event_Details_new;
Online: 117
Text: event_data_sec: = set (event_data_sec);
Error: PL/SQL: statement ignored
Online: 117
Text: event_data_sec: = set (event_data_sec);You will raise a wrong number or types of argument error, or an exception of PLS-00306, if you use the fixed operator with the collection of user-defined object types.
The collection must contain SQL scalar data types - single values without internal components...
Numeric values, on which you can perform arithmetic operations.
Alphanumeric values that represent individual or strings of characters, characters that you can manipulate.
Logical values, on which you can perform logical operations.
Dates and times, you can manipulate.
Time intervals, you can handle.Published by: stefan nebesnak on January 24, 2013 13:22
-
Why I got error PLS-00103 for this procedure?
Hey, guys:
I have a question about the syntax of the exception, I want to record the number of rows from the tables, but if there is no such thing as a table, my program must be able to continue the loop.
I'm your only syntax error:create or replace procedure check_rows as cursor t1 is select table_name from all_csv where table_built='Y' and table_name is not null; match_count1 INTEGER; begin for n in t1 loop dbms_output.put_line(n.table_name); EXECUTE IMMEDIATE 'SELECT COUNT(*) FROM ' || n.table_name INTO match_count1 ; update all_csv set total_rows=match_count1 where table_name=n.table_name; exception when table_does_not_exist then null end; end loop; commit; end;
PLS-00103: encountered the symbol "EXCEPTION" when expected
of the following:
begin case declare end exit for goto if loop mod null pragma
raise return select update while < ID >
< between double quote delimited identifiers of > < a variable binding > < <
Close current delete fetch locking insert open rollback
SAVEPOINT SQLExecute set pipe fusion commit forall
Could someone give me a hint?
Thank you very much!
SamEXCEPTION clause should be at the end of the BEGIN block. It cannot start in the middle of the lock begin body:
create or replace procedure check_rows as cursor t1 is select table_name from all_csv where table_built='Y' and table_name is not null; match_count1 INTEGER; begin for n in t1 loop begin dbms_output.put_line(n.table_name); EXECUTE IMMEDIATE 'SELECT COUNT(*) FROM ' || n.table_name INTO match_count1; update all_csv set total_rows = match_count1 where table_name = n.table_name; exception when table_does_not_exist then null; end; end loop; commit; end; /
And it is not a good idea to engage in the stored procedure. But the main question here is table_does_not_exist exception because it is not declared in your code. You must declare it and use PRAGMA EXCEPTION_INIT to connect with the desired error code.
SY.
-
Hey guys,.
trying to create a trigger, but I'm getting the error pls-00103 I can't seem to find whats wrong
can someone help with this at all?
CREATE OR REPLACE the TRIGGER 'shop_closed_check '.
before insertion or update of current_status on the shop
Start
for each line
If: new.current_status! = ' 4 - CLOSED"and: old.current_status = '4' - CLOSED
RAISE_APPLICATION_ERROR ("NUM = >-20000, msg = > ' cannot reopen a closed call");
on the other
null;
end if;
end shop_closed_check;
Thanks in advance :)
Published by: Sally188 on December 7, 2009 06:45Try this - no need for quotes for the name of the trigger and for each line won't come before
If should have one thencreate or replace trigger shop_closed_check before insert or update of current_status on shop for each row begin if :old.current_status = '4 - CLOSED' then RAISE_APPLICATION_ERROR(NUM=>-20000, msg=>'cannot reopen a closed call'); else null; end if; end shop_closed_check;
-
Satellite L510 - PC Health Monitor - could not get the Type of Bios
Hi guys,.
I m appeal for some help and hope that some of you experts out there may be able to help me!
My laptop is a Satellite L510 bought November 2009
Windows 7 Home Premium SP1 32-bit
The version of the BIOS/Date: INSYDE, 1.30, 08/05/2009Problems:
1 ReelTime (worm: 1.0.04.0) TC00210100H stopped working about 6 months ago, so I uninstalled it.
2 PC Health Monitor (worm: 1.4.0.0) TC00148300OValue Added Package: Worm: 1.2.25 (TC00214700E)
For a couple of weeks stop would take a little longer than before and last weekend he just stopped even if the battery is fully charged.
I had a bit of a job to resume but I finally did, I came to the conclusion even if the hard drive was not.
I then tried to open the PC Health Monitor, but this error appeared impossible to get the type of bios and obviously wouldn t open. I uninstalled PCHM programs and features and then ran TC00148300O.exe of
C:/Program Files / Toshiba / TOSAPINS / COMPS1 / TOSHIBA PC Health Monitor - 1.4.0.0, it seemed something was going on but ultimately nothing has.I dropped while I needed to sort first on the hard drive. Long story short, the hard drive has been replaced by a SSD 840 EVO 250 GB by a friend of TI at work.
I prefer like to get ReelTime and PCHM working again correctly troubleshooting (with your help) that I put t really want to restore back provided that the factory, but if I have to...
If I have explicit instructions on how to do that would be a big help (if necessary I can also get my friend to help me).
If I n t give any other specific information that you need please ask. I apologize for this long post, but thanks to anyone who responds.
Hello
If you replaced the HARD drive I recommend you to install original recovery image and start using your machine with the factory settings. After that it all will again be OK. Install important Windows updates current, your important software and I think that everything will be OK again.
Software related questions can sometimes be very complicated. All you can try to do is remove pre-installed application, restart the computer and try to install it again.
On BIOS I can just say that you shouldn't change anything.
One last thing: I don t know how important ReelTime and PC Health Monitor are for you, but I removed the two applications on my system. In my opinion there is no much help from both of them, but they CPU utilization for the unnecessary process.
-
package with error pls-00103.
Hello all;
I was wondering if you can help me understand why I get an error pls-003. Also, how you include a blank space in a where in the statement. Thanks for the help
See the package belowSomething similar to this where in (' ')
See the below package bodycreate or replace package NEW_INFORMATION is function total_number return number; procedure daily_tasks; end NEW_INFORMATION;
create or replace package body NEW_INFORMATION is ----------------------------------------------------------------------------------------------------- function total_number return number is oput number(10); begin select count(unique (p1.user_id)) into oput from table_one p1 where p1.user_id in ('JOHN', 'PAIR', ' '); return oput; end; ----------------------------------------------------------------------------------------------------- procedure daily_tasks is name_p_id varchar2(20); temp_num number(6,2); temp_num := total_number(); --used to call the above function begin end daily_tasks ; end NEW_INFORMATION;
Hello
Whenever you have a question about an error message, it helps if you post the full error message, including line numbers.
In the package body, you must:
procedure daily_tasks is name_p_id varchar2(20); temp_num number(6,2); temp_num := total_number(); --used to call the above function begin ...
The statement
temp_num := total_number(); --used to call the above function
would be good after the BEGIN statement, but not in front of him, in the declaration section.
If you declare and initialize temp_num at the same time, you can say:temp_num number (6,2) := total_number;
Given that you call total_number without argument, the parnetheses are optional.
The condition
where p1.user_id in ('JOHN', 'PAIR', ' ');
is syntactically correct. It will result in the rows being counted when user_id is one of the following:
(a) the 4 characters strring 'J', 'o', 'H', ' don't
(b) the 4 characters strring 'P', 'A', 'I', 'R', or
(c) the 6-character string '',' ', ' ', ' ', '',' ' (in other words, 6characters) If this isn't what you want, post a small example of data for table_one (CREATE TABLE and INSERT statements) and the results desired from these sample data.
-
Get the types of columns in a select statement
Hello
Is there a way to get the types of columns that results in a select statement?
For example to force an analysis on this topic and then look for the types of columns resulting in the view v$?
Best regards
Klaus Mogensen
declare c number; d number; col_cnt integer; rec_tab dbms_sql.desc_tab; col_num number; begin c := dbms_sql.open_cursor; dbms_sql.parse(c, 'select dummy, 33 x, sysdate now from dual', dbms_sql.native); dbms_sql.describe_columns(c, col_cnt, rec_tab); col_num := rec_tab.first; while col_num is not null loop dbms_output.put_line( rec_tab(col_num).col_name || ' ' || case rec_tab(col_num).col_type when 1 then 'varchar2' when 2 then 'number' when 12 then 'date' else '???? ' || rec_tab(col_num).col_type end ); col_num := rec_tab.next(col_num); end loop; dbms_sql.close_cursor(c); end; / DUMMY varchar2 X number NOW date
-
Get the Type (U8, U16... I64) controls within a Cluster
Hello
I have a cluster with multiple controls.
I would get the type of each control inside. To get the class is ok. It's simple and they are all digital. But I need to know if they are U8, U16, U32... I64.
No idea how to do this?
Paul
I got it.
I had to convert the Refernce element to digital, and then use the BitAccurateDataSize property.
I lost several hours to find the solution and in 5 minutes after I had posted my problem on the forum I solved it .
-
How to get the type of network in Blackberry 10 Webworks 1.0
Hello
I am developing web applications and using connection plugin to get the type of network used.
I've added the id of the required functionality in the file config.xml as follows:
function id = "blackberry.connection".
Now when you click on buuton, I call the function below:
function currentConnectionType(){ alert("1111111111"); var connection = blackberry.connection; alert("222222"+blackberry.connection.CELL_3G); var connType = blackberry.connection.currentConnectionType(); alert("Current con Type : "+connType); }
In the code above curretCoonectionType is not called.
Please help me correct where I am doing wrong. Or please let me know is there another way or sample code for the Type of network being used
Thanks in advance
It seems that the type property, you should get the current connection type:
BlackBerry.Connection.typehttps://developer.BlackBerry.com/HTML5/APIs/gold/BlackBerry.connection.html#.type
You can also save to connectionchange headphones to monitor changes in the type.
-
How can I get the type of coverage to work
type of coverage
How can I get the type of coverage to work
Hi Ted,
Once you take the type of coverage, it's ready to go!
You are in a place to type in information?
Once it is aligned, it works like a regular keyboard.
B Eddie
Maybe you are looking for
-
Why block Kaspersky Security protection and hoe I unlock?
When I open after you have updated, things that were not before blocked have been blockedI don't like my stuff from blocked security secure virtual keyboard money and blocking dangerous siteI can't unlock can help you
-
I have a Toshiba 42RL833 LED TV, Youtube are not accessible because the latest firmware does not support it. What else can I use the TV because it is able to connect to the network cable or the woman on the internet?
-
Equium A100-338 does not recognize 4 GB RAM
Hello I have a laptop Satellite A100-338 which had 32-bit Vista Home Premium on when I first bought several years ago. I upgraded from 2 to 4 GB memory soon after getting the laptop but it would use only 3 GB. Recently, I upgraded the operating syste
-
Equium L20: line white single fom top to the bottom of the screen
Hello Any ideas, my Equium L20 put this morning has a fine line on the TFTvisible all the time.It connects the top of the screen down. Anyone seen this before, tried a reboot but no difference.Is this a problem of monitor / probem graphics or somethi
-
scanning multiple pages with HP Photosmart 5520
Anyone know if it is possible to scan multiple pages into a PDF with the printer HP Photosmart 5520?