Method that returns the bb::cascades:Application?
Hi, is there a method that returns the bb::cascades:Application?
I solved the problem by simply passing the request of my class that needs it. If its solved because there is no such method I think.
Tags: BlackBerry Developers
Similar Questions
-
Do stuff to PL/SQl that returns the value and redirect to modal page by setting this value
Hello
a button click Page1 I would perform a PL/SQL procedure that returns a value in P1_ITEMVAL and then redirect to a page 2 (modal page) and the value of an item on this page with the value previously returned. To do the same thing with a normal page is quite easy:
Button action is present, then process of PL/SQL that returns the value in the P1_ITEMVAL element and, finally, a branch at page 2 that sets P2_ITEMVAL with P1_ITEMVAL. I really have no idea how to do the same thing when the target is a modal page.
I created a unit test on https://apex.oracle.com/pls/apex (application 1554 - redir_to_modal)
Workspace: tests
USER: supporter
PWD: supporter1234
Any help would be much appreciated.
Kind regards
Pavel
Pavel
If you prepare a URL using the value calculated in the PLSQL of DA part you can then use a subsequent stage of javascript to set the location of the window.
This will jump to the top of the page of the modal dialog box
: P1_URL: = apex_util.prepare_url)
' f ? p ='|| : APP_ID - Application id
|': 2' - Page id
||': ' || : APP_SESSION - Session id
||':' -- Request
||':NO' -- Debug
: ': ' - Clear Cache
: ': ' - Settings
||' P2_ITEMVAL'
: ': ' - Parameter values
|| (: P1_ITEMVAL);
then in the action of javascript
Window.Location.Replace ($v ('P1_URL'));
Hope this is of some use
Concerning
Kelvin
-
Looping on a method that returns a query
Hello
I have a method that returns a query, I convey in this method, an identification number, the query uses in where clause. Now I have another query that returns a list of identification numbers that I have to loop through the appellant the first method and passing in the ID number, for example
methodA
Browse the methodA results
Call methodB passing methodA.ID
results of methodB
close the loop
now, the problem I have is that methodB returns a query and I want to be able to return the results of methodB as a unique query structure. I don't know how many times I will do a loop through the results of methodA, maybe twice, he could by ten times. Thus, the results of calling methodB could be very large.
How can I add methodB results in a single query structure?
I finally had to create a monster query with joins in about three tables, but it works.
-
Function that return the name of the current report
Hello
Anyone know if there is a function that returns the name of the current report?, similar to GET_APPLICATION_PROPERTY (CURRENT_FORM) in the forms.
Tnks,
LEFMHello
You can use the builtin: SRW. GET_REPORT_NAME
This function returns the file name of the running reporthttp://www.Oracle.com/webapps/online-help/reports/10.1.2/topics/htmlhelp_rwbuild_hs/rwrefex/PLSQL/builtins/SRW/srw_get_report_name.htm
NOTE: it is not the name of the RDF file. Is the name defined in the reporting name property.
Concerning
-
I need a query that returns the average amount of characters from text colum in MS SQL.
I need a query that returns the average amount of characters from text colum in MS SQL.
Could someone show me how?Sorting, I need of the
DATALENGTH
function
-
Looking for an example of "function that returns the error text.
Environment: APEX 3.1.1.00.09 on AIX 5.3
I'm looking for an example implementation of the posting of the "function that returns the error text.
I would like to write a database function that does the validation logic and return the text of the error.
Is it possible to create multiple lines of text of error based on error conditions?
I'm trying to use it at the end of the input data to go on the set of the 'document' to the entry and highlight all error conditions encountered before the 'document' is subject to additional processing.
I wrote the function and reference it in a posting as ' validate_stuff (: P3_DOC_SEQ); »
I have an error message "validate_stuff is not a procedure or is not defined.
The object is a function, not a procedure. It is defined to return a parameter VARCHAR2 hoped posting if it is not NULL.
When I run the SQL function * more and spend in a number of documents are returned the correct error messages.
Any direction is greatly appreciated.
-garyHi Gary,.
You must RETURN the result of the function:
BEGIN RETURN validate_stuff(:P3_DOC_SEQ); END;
Andy
-
a function that returns the type with a table joint!
Good day to all,
I have a function that returns a type.
so I select it as:
Select * from table (function (param1, param2))
now I want to combine this with a table so that the settings for the service we get from the join table. Is this possible? And how?
I tried different options without success.
something like:
Select *.
table table (function (b.column1, b.columnb) x), tablea b
where x.a = b.col
Is this possible?
Thanks in advance?user564819 wrote:
something like:
Select *.
table table (function (b.column1, b.columnb) x), tablea b
where x.a = b.colIs this possible?
Somehow...
SQL> create or replace type TIntegers is table of integer; 2 / Type created. SQL> SQL> --// our sample pipeline simply spews 2 numbers for eevry number input - simple SQL> --// to use for the testcase below SQL> create or replace function FooPipe( n number ) return TIntegers pipelined is 2 begin 3 pipe row( trunc(n) ); 4 pipe row( trunc(n)*-1 ); 5 return; 6 end; 7 / Function created. SQL> SQL> with dataset( n ) as( 2 --// ignore this part as it only builts a base table 3 --// for us to use to select values for input to 4 --// to the pipeline - in "real world" use this table 5 --// will already exist 6 select 7 level 8 from dual 9 connect by level <= 10 10 ), 11 pipe_line( n, array ) as( 12 --// we run the pipeline as a nested table column 13 --// in the SQL projection - the CAST is important 14 --// in order to establish the nested table type 15 select 16 d.n, 17 cast( 18 FooPipe(d.n) as TIntegers 19 ) 20 from dataset d 21 ) 22 --// we now use a standard query to unnest the nested table column 23 select 24 p.n, 25 pipe_val.* 26 from pipe_line p, TABLE(p.array) pipe_val 27 / N COLUMN_VALUE ---------- ------------ 1 1 1 -1 2 2 2 -2 3 3 3 -3 4 4 4 -4 5 5 5 -5 6 6 6 -6 7 7 7 -7 8 8 8 -8 9 9 9 -9 10 10 10 -10 20 rows selected. SQL>
Not sure I like it. What is the real problem that this method (driving a pipeline with input of a base table rows) is supposed to address? There may be a simpler and more elegant approach...
-
I was curious to know why once I declare my throw on the method declaration clause, it does not appear on the window of the client interface of the editor of the AOS?
To work around this problem, I have to do the following:
1. in the MyAmImpl.java
+ ' public void methodA() {+
+ try {+
+ / / code that throws exceptions.
+} catch (Exception ex) {+
+}+
+}+
2 open the editor of AOS, expose the method on the client interface
3. return to the MyAmImpl.java and change metodA() to:
Public Sub methodA() throws Exception {}
a code that throws the exception
}
4. open the MyAm.java interface
change of the
Public Sub methodA()
TO
Public Sub methodA() bird exception
is this a bug?
Thank you
WesTry a local. It will work :)
Ideally local class sup for all your needs.
Vincent
-
SQL QUERY THAT RETURNS THE PL/SQL
Hello
I'm putting in 4.2 below apex
DECLARE
date of frdate: =: P22_FROMDATE;
date date: =: P22_TODATE;
l_date1 varchar2 (11): = to_char(frdate,'dd-mon-yyyy');
l_date2 varchar2 (11): = to_char(todate,'dd-mon-yyyy');
v_sql varchar2 (32000);
v_Name varchar2 (4000): = months_name (frdate, todate);
char (1) of the v1: = q "[']";
number of lbr1 (6): =: P22_FROMBRANCH;
number of LBR2 (6): =: P22_TOBRANCH;
number of M1 (6): = 11;
Start
v_sql: ='SELECT * FROM (SELECT LBRCODE, PRDACCTID, MN, AVGX FROM (SELECT LBRCODE, PRDACCTID, MN, SUM (BALL) BALL, COUNT (MN) DAYS, ROUND (SUM (BAL) count (MN), 2) AVGX ';))
v_sql: = v_sql | "FROM (SELECT LBRCODE, PRDACCTID, TO_CHAR (BALDATE,'|)) CHR (39) | ' MM' | CHR (39) |') ' | ' ||'|| CHR (39) | » _'|| CHR (39) |' | ' || «TO_CHAR (BALDATE,'|)» CHR (39) | ' AAAA '. CHR (39) |') MN, BALL ';
V_SQL: = V_SQL | "(SELECT Q2. LBRCODE, Q2. PRDACCTID, T1. BALDATE, T_OST_NEW (Q2. LBRCODE, Q2. PRDACCTID, T1. BALDATE) BALL ';
V_SQL: = V_SQL | "FROM (select TO_DATE('||) Chr (39) | l_date1 | Chr (39) | «, » || CHR (39) | ' DD-MON-YYYY ' | CHR (39) |') baldate FROM DUAL Union all the ';
V_SQL: = V_SQL |' select (TO_DATE('||) Chr (39) | l_date1 | Chr (39) | «, » || CHR (39) | ' DD-MON-YYYY ' | CHR (39) |') + level) double baldate ';
V_SQL: = V_SQL |' connect by level < = (TO_DATE('||) Chr (39) | l_date2 | Chr (39) | «, » || CHR (39) | ' DD-MON-YYYY ' | CHR (39) |') -TO_DATE('||) Chr (39) | l_date1 | Chr (39) | «, » || CHR (39) | ' Dd-mon-yyyy ' | CHR (39) |')) ) Q1,';
V_SQL: = V_SQL | "(SELECT LBRCODE,'|) ' (rpad (prdcd, 8,'|)) V1 ||'' || v1 |') || LTRIM (rpad('|| v1 ||) » x'|| V1 | «, 25, » || v1 | » 0' || v1||'),'|| v1 | » x'|| v1 |')) prdacctid OF D009021 WHERE the LBRCODE between ' | : P22_FROMBRANCH |' and ' | : P22_TOBRANCH | "AND moduleinfo =' | TO_NUMBER(:P22_SELECTLIST);
V_SQL: = V_SQL |') ((Q2)) GROUP BY LBRCODE, PRDACCTID, MN))';
V_SQL: = V_SQL | "PIVOT (MAX (AVGX) (MN) IN (';))
V_SQL: = V_SQL | V_NAME;
V_SQL: = V_SQL |')) ORDER OF LBRCODE, PRDACCTID ';
RETURN V_SQL;
END;
I created all the elements of the required page
I get the error message like missing expression
to test, I created a function to return the query, it works very well know to return a query that gives me desired report
am I missing something?
Help, please
HEMU wrote:
Hello Sir
Sorry to bother you again
I tried to use «function that returns colon-delimited topics»
and I got following error
unable to determine query headings: ORA-06550: line 1, column 138: PLS-00103: Encountered the symbol ";" when expecting one of the following: . ( ) , * % & = - + < / > at in is mod remainder not rem => <> or != or ~= >= <= <> and or like like2 like4 likec between || multiset member submultiset The symbol ")" was substituted for ";" to continue.
failed to parse SQL query:
can take you a look at page901 once again please and a function named months_namex
is it feasible that I'm looking for?
The immediate cause of this error is simply incorrect report headings function call syntax:
return months_namex(to_date(:p901_fromdate,'dd-mon-yyyy'),to_date(:p901_todate,'dd-mon-yyyy')
This should be:
return months_namex(to_date(:p901_fromdate,'dd-mon-yyyy'),to_date(:p901_todate,'dd-mon-yyyy'));
However there is no
months_namex
function defined in the workspace. -
That means the "unexpected internal application error?
Hello world
I just saw this message for the first time tonight. Nobody knows what it really means?
"An unexpected internal application error has occurred. Please contact < MyCompanyName > and provide reference # for further investigation. »
This message seems not familiar to me at all. I do not know where Apex becomes my company name of. Any ideas?
Thank you
KimHi Kim,
I assume you are using the example of database Application or similar application. This message is displayed by the 'manipulation function Error' demand. Go to "Edit Application Properties"-> "Error Handling"-> "error handling function. The referenced function is a stored function or package in the database that contains the code needed to handle the error in the application. It allows you to map errors in a new text of the error. See http://www.inside-oracle-apex.com/apex-4-1-error-handling-improvements-part-1/ and http://www.inside-oracle-apex.com/apex-4-1-error-handling-improvements-part-2/
Concerning
Patrick
-----------
My Blog: http://www.inside-oracle-apex.com
APEX Plug-Ins: http://apex.oracle.com/plugins
Twitter: http://www.twitter.com/patrickwolf -
Dynamic action - show/hide area based on LOV that returns the ID
Hi people,
This should be simple, so someone who works with dynamic actions.
I have a LOV based on query below:
Agenda: P200_KOD is based on LOV that displays KOD and returns the ID.select OBJECT_ID, KOD from x_data x; retuns: ID KOD ---------------------------- 492961 BMW 492964 VOLVO 492960 MERCEDES 492963 VOLKSWAGEN 492959 SKODA
On my page, I have also 1 region called TEST_REGION.
I want to put in place a testament of shich dynamic action SHOW/HIDE a TEST_REGION based on the value selected in the order of the day: P200_KOD (LOV). Region should be shown if displayed (KOD) selected ID value begins with '% V '.
By other words, if following query returns any folder, then the SHOW, HIDE it on the other:
How can I define a condition of dynamic action fires, for article: P200_KOD?select * from x_data x where x.kod like 'V%' and x.object_id = :P200_KOD;
Thank you
TomasHello
One way:
Create an advanced dynamic action.
Name: Region to hide
Event: change
Selection type: item (s)
Items (s): P200_KOD
Condition: Expression of JavaScript
Value:$(this.triggeringElement).children("option:selected").html().substring(0,1) !== "V"
Action: hide
Fire on the Page loading: true
Hide all items on the page on the same line: No.
Action of false: show
Fire on the Page loading: true
Display all items in the page on the same line: No.
Selection type: region
Region: TEST_REGIONKind regards
Jarihttp://dbswh.webhop.NET/dbswh/f?p=blog:Home:0
-
How to set a value that returns the value zero to O
Hello, I have a xml field that returns null... I want 0 to replace the null value... How do in implementing in shape... pls let me knowUse
If set to NULL, it replaces with 0, VAL else displayed. -
Script that returns the name of the user
Hello, I have a fairly complex script that exports the text of an InCopy document. Is InCopy CS3 and is running on a Windows 2003 platform. It would be useful as this script to find out who is the user, that is who runs the export. Has anyone written a script that removed the username and group ads, the OS, or in fact InCopy. The solution, I think, perhaps by calling an external script that queries the operating system and returns this kind of data. Any thoughts on this topic would be appreciated. Thks, Wil
On Windows, you can get the name of the user like this:
Alert ($.getenv ("username"));
or
alert ((Folder.temp + "") .slice (12, -14));
Kasyan
-
Request report - use the function that returns the cursor
My requirement is to create a report, which the source will be a function that returns a cursor (the type of cursor is ref cursor).
How this can be done?
for example. function my_func (pol_no in number) return cur_type < ref cursor >
Edited by: viveks on October 27, 2009 10:09Better to look at a function that returns a query, or use a hose to treat your cursor returned, because the APEX at the moment can NOT handle the sliders in reports...
Thank you
Tony Miller
Webster, TX -
Function that returns the results of a select statement
Hello
I would like to create a feature on the famous HR Departments oracle table to select * from him. I don't know how to do it.
Is someone can help me?.
Thank youOracle stored functions cannot return result sets directly but can return the REF CURSOR. Please read [optimize result set retrieval using ODP.NET and Ref Cursor | http://www.oracle.com/technology/pub/articles/mastering_dotnet_oracle/williams_refcursors.html] which gives complete examples in PL/SQL for the side Server and VB. NET client side.
Maybe you are looking for
-
C7280 cannot scan on windows 7
I can't scan from C7280 laptop with windows 7. Everything worked fine with XP. Center of HP can't run or re-install. I tried all the HP diagnostics and driver downloads. I can scan to a memory device, but not wireless to the computer. Computer d
-
How do you remove the info from the album after adding it correctly in Windows Media Player?
I ripped a CD of mixed music for my Windows Media Plaer (Vista 6 SP2). Trying to add information of the artist of a song (by searching on the Internet), I have added information to the entire CD of songs. Now, I would like to delete information app
-
r5 aurora Office 2009 for electric diagram.
I bought a desktop computer aurora r5 which dosent have power supply hard drive or soundblaster audio card. like I said the lights should be hung. I don't know where to plug them something like im not a computer geek both in the game so I jumped if a
-
Loading Windows 7 on new hard drive
Hi everyone, I have a Toshiba laptop comes with windows 8. I had to put a new hard drive in it and want to install windows 7 on it. I have a new installation for windows 7 ult oem that has never been used. It starts to load windows files and past
-
I already had Internet AT & T U-verse using a Wireless Modem Arris IPDSL NVG510 gateway. My laptop HP running Windows 8.1 and the HP LasrJet Pro P1102w wireless Prnter systematically and automatically connected to the wireless network NVG510 with no