How to detect if loading the page from start or back?
My Widget has 3 pages, sailing in the following order:
Page 1-> page 2-> page 3
Loading page 1, I make a web service call to retrieve a json object that I record in a file on the device.
Page 2 and page 3 read the file to view its data.
There are 2 other how to get to page 1:
(1) starting of widget
2) press return on page 2
For 1), I want to retrieve the json web service
For 2), I want to retrieve the json in the file (no web service calls)
How can I detect if page1 loads from 1) or (2)?
I found a solution.
Use the blackberry.system.event.onHardwareKey event, I can intercept the previous page 2 key, set the page1 location.href + value of query string indicating that I'm back from page 2.
Tags: BlackBerry Developers
Similar Questions
-
How to configure Jdeveloper for the page from right to left - Arab
Dear all,
I'm using Oracle Jdeveloper 11 g, how can I display the page from right to left (Arabic language)
and also the built in message for validation and errors, how to display it in the Arabic language.
The best and best wishes,you use Trinity - config.Xml... and mention
http://download.Oracle.com/docs/CD/E15051_01/Web.1111/b31973/ap_config.htm
chk for righttoleft -
Pop - up when I double click the icon of firefox on the desktop, the home page and control of two-page fact sheet page. How to stop taking control in the page from to appear repeatedly when I double click the icon of firefox?
You can solve this problem with the file blocklist.xml was forced to update.
See:
-
Search bar on the Macbook Air doesn't work, will allow me to load the pages of Favorites and links to these pages, but not let me google from the bar or manually enter Web sites, however, it works perfectly fine on the guest user. Have you tried restarting and it still does not work.
The problem should be solved now.
Otherwise:
OS X
iOS
Workaround for problems with the Safari address bar
http://osxdaily.com/2016/01/05/fix-Safari-freezing-address-bar-use/
-
JavaFX how to use WebView load the local HTML page?
JavaFX how to use WebView load the local HTML page?
If the HTML code of the files in the class path, which is in the package, the load using one of the following ways:
String url = Main.class.getResource("/html/index.html").toExternalForm(); engine.load(url);
The above methods can only load files outside the class path!
-
How to assign a value to a control to display after loading the page?
I use JDeveloper 10.1.3.3 using ADF.
How can I run a support bean method to populate a control immediately after loading the page. My intention is to populate a control hidden with the session id. The code that I would run is something like this:
FacesContext ctx = FacesContext.getCurrentInstance ();
ExternalContext ectx = ctx.getExternalContext ();
HttpSession mySession = ectx.getSession (false) (HttpSession);
String sessionId = mySession.getId ();
Where would I put this code?
Thank you
John
Published by: John Matozzi, October 28, 2008 15:47Hi John,.
create a method called getSessionId returning a string in your bean support.
public String getSessionId(){ FacesContext ctx = FacesContext.getCurrentInstance(); ExternalContext ectx = ctx.getExternalContext(); HttpSession session = (HttpSession) ectx.getSession(false); return session.getId(); }
then in your page you can use the link editor to call the method and display its value.
Brenden
-
How to change the color of the page from white to gray in Indesign?
While working on a document, the white pages (not cardboard) appears too bright for my eyes. Is it possible to change the color of the pages from white to medium gray at the level of the display that only is that gray should not appear when printing the pages in a document?
Thank you
Altogether. Change the shade [paper]
-
How to send the page before loading the page header?
Hello
Is it possible to send the page before loading the page header. Because I have a sql report in the homepage itself that needs to be exported to excel.when, loading the page, the page elements will be set to NULL in the session that causes the output export empty.
Appreciate the help,
IDEOGRAMHello
Use according to the calculations of the header for these items.
It should workBR, Jari
-
Error "Could not load the page" when you click the backup and Restore Center
Original title: Save reestore center problems
OK so I need to restore my pc and when I click on the backup center and restoration he always says "Unable to load the page"... . How can I fix
try to reinstall the backup files if you have a windows disk to use to reinstall or if your computer has windows factory preintalled windows, you could reinstall striehgt from your computer
-
Normally, the previous page button moves a screen and the page down key moves one screen down. I hit a combination of keys by mistake and now the page up key load previous page while the next page button loads a page, I'll be back, mimicking the previous buttons and following. I can still use the SPACEBAR to go down one screen and the arrow keys, end and home work normally. The page of buttons function normally outside Firefox. What I've done and how to cancel it?
Have you tried to close and restart Firefox or restart the computer?
-
How can I down load my pictures from my camera phone?
How can I down load my pictures from my camera phone?
nexteli686
Look for the instructions of the manufacturer of the phone.
-
How to store images in the oracle database and get back on a jsff page in ADF?
Mr President.
How to store images in the oracle database and get back on a jsff page in ADF?
I have students and employees in my database and want to store their pictures against their ID.
How to do this?
Concerning
Tender,
You can check the links that explain this below.
https://tompeez.WordPress.com/2011/11/26/jdev11-1-2-1-0-handling-imagesfiles-in-ADF-part-2/
Johny tips: ADF: display image files from database as a popup in Application Web ADF
See you soon
AJ
-
Generic procedure to load the data from the source to the table target
Hi all
I want to create a generic procedure to load data of X number of the source table to X number of the target table.
such as:
Source1-> Target1
Source2-> Target2
-> Target3 Source3
Each target table has the same structure as the source table.
The indexes are same as well. Constraint are not predefined in the source or target tables.there is no involved in loading the data from the business logic.
It would simply add.
This procedure will be scheduled during off hours and probably only once in a month.
I created a procedure that does this, and not like:
(1) make a contribution to the procedure as Source and target table.
(2) find the index in the target table.
(3) get the metadata of the target table indexes and pick up.
(4) delete the index above.
(5) load the data from the source to the target (Append).
(6) Re-create the indexes on the target table by using the collection of meta data.
(7) delete the records in the source table.
sample proc as: (logging of errors is missing)
CREATE or REPLACE PROCEDURE PP_LOAD_SOURCE_TARGET (p_source_table IN VARCHAR2,
p_target_table IN VARCHAR2)
IS
V_varchar_tbl. ARRAY TYPE IS VARCHAR2 (32);
l_varchar_tbl v_varchar_tbl;
TYPE v_clob_tbl_ind IS TABLE OF VARCHAR2 (32767) INDEX OF PLS_INTEGER;
l_clob_tbl_ind v_clob_tbl_ind;
g_owner CONSTANT VARCHAR2 (10): = 'STG '.
CONSTANT VARCHAR2 G_OBJECT (6): = 'INDEX ';
BEGIN
SELECT DISTINCT INDEX_NAME BULK COLLECT
IN l_varchar_tbl
OF ALL_INDEXES
WHERE table_name = p_target_table
AND the OWNER = g_owner;
FOR k IN l_varchar_tbl. FIRST... l_varchar_tbl. LAST LOOP
SELECT DBMS_METADATA. GET_DDL (g_object,
l_varchar_tbl (k),
g_owner)
IN l_clob_tbl_ind (k)
FROM DUAL;
END LOOP;
BECAUSE me IN l_varchar_tbl. FIRST... l_varchar_tbl. LAST LOOP
RUN IMMEDIATELY "DROP INDEX ' |" l_varchar_tbl (i);
DBMS_OUTPUT. PUT_LINE (' INDEXED DROPED AS :'|| l_varchar_tbl (i));
END LOOP;
RUN IMMEDIATELY ' INSERT / * + APPEND * / INTO ' | p_target_table |
' SELECT * FROM ' | '. p_source_table;
COMMIT;
FOR s IN l_clob_tbl_ind. FIRST... l_clob_tbl_ind LAST LOOP.
EXECUTE IMMEDIATE l_clob_tbl_ind (s);
END LOOP;
RUN IMMEDIATELY 'TRUNCATE TABLE ' | p_source_table;
END PP_LOAD_SOURCE_TARGET;
I want to know:
1 has anyone put up a similar solution if yes what kind of challenges have to face.
2. it is a good approach.
3. How can I minimize the failure of the data load.
Why not just
create table to check-in as
Select "SOURCE1" source, targets "TARGET1", 'Y' union flag double all the
Select "SOURCE2', 'TARGET2', 'Y' in all the double union
Select "SOURCE3', 'Target3', 'Y' in all the double union
Select "SOURCE4', 'TARGET4', 'Y' in all the double union
Select 'Source.5', 'TARGET5', 'Y' in double
SOURCE TARGET FLAG SOURCE1 TARGET1 THERE SOURCE2 TARGET2 THERE SOURCE3 TARGET3 THERE SOURCE4 TARGET4 THERE SOURCE.5 TARGET5 THERE declare
the_command varchar2 (1000);
Start
for r in (select source, target of the archiving of the pavilion where = 'Y')
loop
the_command: = "insert / * + append * / into ' |" r.Target | ' Select * from ' | '. r.source;
dbms_output.put_line (the_command);
-execution immediate the_command;
the_command: = 'truncate table ' | r.source | "drop storage."
dbms_output.put_line (the_command);
-execution immediate the_command;
dbms_output.put_line(r.source ||) 'table transformed');
end loop;
end;
Insert / * + append * / into select destination1 * source1
truncate table SOURCE1 drop storage
Treated SOURCE1 table
Insert / * + append * / to select TARGET2 * in SOURCE2
truncate table SOURCE2 drop storage
Treated SOURCE2 table
Insert / * + append * / into select target3 * of SOURCE3
truncate table SOURCE3 drop storage
Treated SOURCE3 table
Insert / * + append * / into TARGET4 select * from SOURCE4
truncate table SOURCE4 drop storage
Table treated SOURCE4
Insert / * + append * / into TARGET5 select * from source.5
truncate table source.5 drop storage
Treated source.5 table
Concerning
Etbin
-
updating of the chart without loading the page
Hi friends,
I use apex 4.1. now I want to refresh only the graphic region I created the graphic area and I replaced the mentioned below instead of #CHART_REFRESH javascript code # in the Source of the region
JavaScript code
--------------------
< script type = "text/javascript" >
function RefreshChart()
{
Alert ('a');
var chart_name = ' #CHART_NAME #'.substring (1);
apex_RefreshChart (& APP_PAGE_ID, chart_name, 'en');
}
< /script >
and then I created an item_id is P7_X(date format), then created dynamic action if I change the P7_X(that_is_change_the_date).it of the order of the day will address the dynamic action, first of all submit P7_X point id throught plsql and then javascript call function (RefreshChart()) in the source.but region can't be able to call the javascript function in the source of the region.
kindly tell me how to call the javascript function if javascript works within the source of the region (region of graph)
If it's no way to tell me the procedure to see how cool the graphics area without load the page.kindly help me...Hi 888837,
Be a little more patient! He is a volunteer help forum where everyone also has a day job. Keep in mind that we probably don't sit in the same time zone and have different work schedules. If you need fast response time, then you should get in contact with the Support of Oracle.
That said, I had a look at your example. The only error, why it did not work was because you used two different date formats. Used for the switch of date dd/mm/yyyy and to the TO_DATE in the SQL statement, you use mm/dd/yyyy. Now I've changed two masks of DD/month/yyyy format to make it more transparent month. If I now enter on 2 February 2008 and leave the graphic field is getting updated with the expected data.
Concerning
Patrick
-----------
My Blog: http://www.inside-oracle-apex.com
APEX Plug-Ins: http://apex.oracle.com/plugins
Twitter: http://www.twitter.com/patrickwolf -
How can I insert and delete pages from a pdf with acrobat 10 X?
How can I insert and delete pages from a pdf with acrobat 10 X?
Otherwise, don't forget that your page thumbnails Panel is open and click the icon highlighted in this image, just under the title.
You will see a drop-down list with the options you need.
Maybe you are looking for
-
my favorite search engine cannot be found among the Add - ons.Other browsers out to add any user-defined what research enfine.Why Mozilla does not offer important characteristics of Thais? Kind regards
-
Equium P300 does not correctly identify the Play Station
I'm running Vista Home premium, Equium P300. When I plug my Sony PSP, it shows as a mass storage device. When I try to access it, I get a message telling me to format the drive. I formatted the memory stick duo via the PSP, if I try to format it thro
-
I downloaded Skype. I clicked on the configuration file, as said, so I wonder to connect, but I was not prompted to set my name or a password. Where should that entered?
-
Ability to save remote controls online
Please give possibility to save remote controls online and then restore it after factory reset. At the momment is not posible but I'm sure everybody wants this for some annoying sound even go through the installer as 3 remotes every time.
-
HP Simple Pass: Does not allow widows connect you
I just bought the HP ENVY 17. The simple HP goes I put my fingerprints and the web attempt to connect you but nothing has worked. I tried logon windos, but it doesn't work anymore. The Palm with the fingers are not displayed and now afer disable all