Problem responding to view being popped from navigation controller

I have a detail view controller which is pushed onto the application's navigation controller stack by a given parent controller. The user is able to select table values in the detail controller, which should update the parent controller when, and only when, the detail view is popped and the parent view is made visible again.
Is there a way to do this? I couldn't see any appropriate methods in UIViewController which would be called when the child view is popped. I've tried to make the parent controller conform the UINavigationControllerDelegate protocol and provided an implementation for willShowViewController method, but this method doesn't seem to get called when the view is displayed.
I'm not sure if I'm going about it the right way trying to implement the UINavigationControllerDelegate and there is a bug with my implementation, or there are better ways to go to implement this functionality, such as using a modal controller, etc.

m_userName wrote:
The user is able to select table values in the detail controller, which should update the parent controller when, and only when, the detail view is popped and the parent view is made visible again.
I don't understand why you require the update to be made only when the detail controller is popped, since during the time the detail controller is on top of the stack, the controller underneath isn't visible. It's common practice to pass data to the previous controller any time before the top controller is popped. Note that there's only a short interval between the time the top controller is removed from the stack and the time it's deallocated (unless you've retained that controller elsewhere, which should be avoided for best memory management).
That said, [viewDidDisappear:|http://developer.apple.com/library/ios/documentation/UIKit/R eference/UIViewControllerClass/Reference/Reference.html#//appleref/doc/uid/TP40006926-CH3-SW20] is called during that interval, so I think it would be a good choice for the requirement you described:
- (void)viewDidDisappear:(BOOL)animated {
[super viewDidDisappear:animated];
if (self.navigationController == nil) {
NSLog(@"%s: *POPPED* level=%d", _func_, level);
// pass the data here
The test for a nil navigationController pointer tells us whether the controller is actually off the stack when viewDidDisappear: runs. This is useful in case an instance of this controller class ever pushes another controller on top of it, since viewDidDisappear: will run in that situation as well. But in that case the controller doing the pushing remains on the stack, so its navigationController property won't be nil. If that property is nil when viewDidDisappear: runs, we know self has just been popped.
You can also find the above example in [Problem with text in detailTextLabel of UITableViewCell |http://discussions.apple.com/message.jspa?messageID=12495708#12495708], so if you build the code in that thread you can see how things work together.
- Ray

Similar Messages

  • The internal workings implicitly popping from Navigation Controller

    I'm just curious to how a Navigation Controller is working when you pop out from a child view to a parent view. The reason I'm asking is because I have this kind of set up:
    App Delegate:
    Creates Nav Controller and inits it with a Root View
    Root View:
    Just some table view that allows to drill down a row to "Second View" lets call it
    When I push the second view into the Nav's stack, it'll automatically create a back button to pop. I am noticing when I hit back, it displays the Root View but the view event methods, i.e. viewWillAppear, are not called. Why is this?
    Since this is the case, what is the best way for me to reload the table view's data when I do a pop?

    Hey Ray,
    Sorry for all the confusion previously. I didn't have my personal computer at work so I wasn't able to copy/paste the exact code snippets but I can assure you that my print logs are working correctly. I actually have figured out what my issue was and I'll present to you (and anyone else who have run into a similar problem) what my problem was and what I did to solve it.
    First of all, let me address your previous questions. I am creating my Nav controller and the root view in the app delegate via the applicationDidFinishLaunching method. So something like this:
    myViewController *vc = [[myViewController alloc] initWithNibName@"myViewController" bundle:nil];
    myNavController = [[UINavigationController alloc] initWithRootViewController:myViewController];
    This was not the issue. The issue stems from the design of my app.
    The *root view controller* is actually a view that acts as a *container for two other view controllers*. One of them a *UITableViewController that controls a UITableView*, and the other is a *UIViewController that controls a MKMapView*.
    The UITableView has the ability to drill down into another table view, which invokes some actions that updates the list from the first view. This all works fine as I'm seeing in my logs.
    The problem was when I pop back to the root view I don't see the list updated; this pop back I'm referring to is the "Back" UIBarButtonItem that gets prefabbed for me when I push something to the Nav controller's stack. From my logs, the UITableViewController's inherited method, viewWillAppear is not being invoked, therefore, the [self.tableView reloadData]; that I placed in there is not being called.
    For some reason, a light bulb went on in my head today to investigate the container's view controller! *What I found out was only the container view controller's view event methods was getting called*; so all the viewWillAppear, viewDidAppear, etc... that I did not previously implement wasn't getting called and not appearing in the logs.
    So now, in the container's view controller's viewWillAppear, I call the UITableViewController's viewWillAppear, and my UITableView's list gets updated. So it's all working perfectly now.
    Thanks!

  • Call a view's method from Component Controller.

    Hi
    Is it possible to call a view's method from Component Controller.
    Regards
    Nikhil

    Hi Tummuru,
    I have created an event in Component Controller by the name toMenuView. Now I created a method in which this event is getting fired. Foll. is the code of the method.
      public void fireToMenuView( )
       wdComponentAPI.getMessageManager().reportSuccess("fireToMenuView");
       wdThis.wdFireEventToMenuView();
    Now I have created an event handler "handleToMenuView" in the MenuView and subscribed the event handler to the event in Component Controller.
    The control is reaching to the fire event in component controller but not to the Event handler in view controller.
    What am I missing.
    Regards
    Nikhil

  • Problem with creating/viewing PDF's from InDesign CS3

    I have a problem with our PDF workflow and just cannot seem to resolve it.
    The problem is as follows: My coworker and I (both designers running CS3 on iMac's running 10.5.6 Leopard) work daily on producing documents and graphic layouts.
    Internally we can view and print PDF documents we create just fine with no troubles with the exception of our supervisor, who is running a mac with Tiger operating system. Our office environment is both Mac and PC. On may occasions he cannot print PDF's we create. Many times his prints will contain garbled characters, drop italics and formatting, replace fonts, or just print slowly.
    This problem is also happening to our editor who is offsite. This is a fairly serious problem for her, considering her job relies heavily on being able to view and open PDF files we create. She was able to send a PDF file which shows the garbled mess her printer spit out when she printed. Apparently there were pages upon pages of messy garbled text. When documents do print from her, they are usually very slow in printing, taking up to a minute or more to print each page.
    The sample of what she sent me is attached, and can also be found on my MobileMe iDisk at: http://public.me.com/rlcollier (document entitled Print Results.PDF)
    My question really to the community is obviously what might be causing these problems. Its very frustrating not being able to determine if its something we're doing ourselves thats causing some incompatability or corruption in these files, or if its the users systems themselves. I can say that Debra our editor has can have a garbled mess of a 4 page file from us, and then turn around and print a graphic heavy 90 page PDF with ease from Boeing. Our PDF's seem to be the only ones she struggles with. That being said, my inclination is that its something on our end.
    Any ideas of where to start looking? Any help at all would be greatly appreciated and welcomed. Thanks!

    I currently had our editor test printing of some of our files using both Foxit and Adobe Reader (as was suggested) in order to see if either made a difference in her printing ability and here is what she came back with:
    I tried to print out both these pdfs (David's is the one you reworked and Lisa's HESSM-3, both sent yesterday).
    With Adobe:  David's first page printed quickly, but it had errors (part of his pants didn't print, and there's an arbitrary shaded box in the text).  Page 2 didn't print--every time I tried it had a different "offending command" code.  Printing Lisa's HESSM  made it up to page 7 before problems showed up (stock photo only partially printed), and it stopped on page 8 (with the random "offending command" code).
    With Foxit:  Both David's and the HESSM pdfs printed completely and without error...but it took a long time.   David's 2 pages took about 3 to 4 minutes, and HESSM's 16 pages took close to 20 minutes.  The time is in the transfer of data to the printer; the physical printing  goes pretty quickly.
    I cant say that I believe email is the problem, although I cant rule it out. I've tested emailing vs. passing through our workgroup with my supervisor, and it does not make any difference in his ability (or lack of ability) to print our files. He was able to print to a different printer (an HP 4650 as opposed to a 4100) without troubles. He refuses to believe its a printer problem however because PDF files originating from our office are the only ones he has trouble with. Never has he had any trouble with a single PDF file produced from any other source. This is also the case for our editor who only has trouble with PDF files originating from either mine, or my coworkers systems.
    PS: I've attached both files that were referenced by our editor above for viewing/testing.

  • Problem with Live View being slow

    Since the latest update it now takes up to 20 seconds for the live view to appear in Dreamweaver. Is this usual - anyone else having this problem, How can I solve it? it's like working in mud!

    It may just be a temporary issue on their server. That's one of the main problems with referencing files you don't own, you are at the mercy of the owner's server status.
    If you can, I would suggest getting a copy of the font files you are using and keeping them on your own server to reference instead, it may cost you extra, but it's worth it.
    To be honest, I've never used Typekit and don't even know if that's possible, but I've had similar issues with Google Fonts in the past and will download fonts to be stored on my own systems now whenever it's critical that they are available whenever the website is (doesn't happen often, but).
    You just need both a .ttf and .otf version of the font to ensure it works when using the @font-face css rule. Converting a .ttf to .otf is pretty simple and can be done in a lot of places online. You would need to check with Typekit's user agreements to see if that's possible, but Google's are all open source and can be modified however you see fit.

  • I don't want the 'chat' option. how can I disable it? I often get the message that I am being disconnected from chat because i've logged on from another computer. I never use chat, and it just seems to be a problem. How can I get rid of it?

    I often get the message that I am being disconnected from chat because i've logged on from another computer. I never use chat, and it just seems to be a problem. How can I get rid of it?

    Don't expect any wonders. If you use it heavily with multiple applications running at the same time, nobody can help you. It's physics: more usage => higher energy consumption.
    Here you can find some tips to reduce the battery consumption. My tip: close applications if you don't need them right now and reduce screen brightness.

  • Everytime I use IE, first I have to click on the IE bar to allow blocked contect to display. What is the content that is being blocked from IE? viewers may not know what the problem is and see my site totally out of format.

    Everytime I use IE, first I have to click on the IE bar to allow blocked contect to display. What is the content that is being blocked from IE? viewers may not know what the problem is and see my site totally out of format.

    discoveriweb wrote:
    This is iweb development where after publishing, things look different in IE than other browsers. U r correct that this is due to IE software but is iWeb related. After all, one uses iweb not to just publish in Safari but for all browsers.
    Which means that you are only considering half of the problem, but that's your choice.
    I'm out.

  • Performance problem with slow VIEW from JDBC (fast from SQL Developer)

    Hi all,
    I'm experiencing following problem and would like to know if someone else also hit this one before and has a suggestion how to solve it:
    I have a pretty complicated SELECT statement that per definition returns only a few rows (~30). With no further optimization it takes ~20 seconds to return the full dataset in Oracle SQL Developer. If you add the */+ PUSH_PRED(name_of_some_inner_view) /* hint (hint is correct, stars got eaten by the OTN-forum syntax), the statement takes less than 0.5s to execute (still in SQL Developer). I saved the statement with the hint as VIEW. Selecting from the VIEW in SQL Developer is also fast.
    Now if I call the statement from JDBC (Tomcat webapp), I can see from the server console that the statement is 1:1 100% the same as the one I execute in SQL Developer. Nevertheless it takes about 20 seconds to complete.
    Here my details:
    SELECT banner FROM v$version;
    BANNER                                                                        
    Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production             
    PL/SQL Release 11.2.0.2.0 - Production                                          
    CORE     11.2.0.2.0     Production                                                        
    TNS for 32-bit Windows: Version 11.2.0.2.0 - Production                         
    NLSRTL Version 11.2.0.2.0 - Production                                          
    JDBC Driver used: some old odbc14.jar as well as current odbc6.jar for 11.2.0.2.0 from http://www.oracle.com/technetwork/da...10-090769.html
    SQL Developer: current version 3.2.20.09From my reading this could go wrong:
    - JDBC doesn't know the VIEW's column data types and Oracle behaves mysterious because of this (=there must be more to the SELECT than just the string, some meta-information)
    - For some reason the hint inside the VIEW is not used (unlikely)
    I also tried a Table Function/Pipelined table and selected from it as a workaround, but the result is the same: Selecting from Function is fast from SQL Developer, but slow from JDBC. All other statements that come from JDBC are as fast as they should be. I really don't know what to think of this and where the error might be.
    Is there some setting that tells Oracle not to use hints when called from JDBC?
    Thank you & Best regards,
    Blama

    Hi Bawer,
    that's what I'm thinking. Unfortunately I can't post it, as it is library code (not my lib). But in the debug-output I can see the SQL-String sent to the DB (which does include the hint).
    But I find the 2nd option you mention more likely anyway: Even if I put the hint into a VIEW and select from the view, the time-difference is there (it's even there if I use Table Functions/Pipelined table and select from the function).
    So I'd think it is more likely that something else is happening (e.g. Oracle is configured in a way that it does not use hints when called from JDBC or similar. Or the library sets some session options in order to prevent the usage of hints). But I don't know if there is even the possibility of doing so.
    Does the Oracle JDBC driver have the option to set these options?
    Does the Oracle DB have the option to set sth. like "ALTER SESSION SET dontUseHints = 'Y';"

  • My mac book gives electric shock through its entire body while being charged from AC out let. is there a solution to the problem? my other two friends are haveing the same problem who recently have purchased the same note books, its weird for APPLE

    My mac book gives electric shock through its entire body while being charged from AC out let. is there a solution to the problem? my other two friends are haveing the same problem who recently have purchased the same note books, its weird for APPLE products. Please give any solution.

    Is the MBP properly grounded?  Are you using the three prong plug?  If not, do so and your problems may disappear.  If not, do what SwankPeRFection suggests.
    Ciao.

  • Since I downloaded version 4 of Firefox, I'm having the following problems: Extremely slow at loading all web sites, can't view PDF files from web sites, and lots of unresponsive script messages. How can I fix this?

    I downloaded version 4 of Firefox this week and have been having problems since. Firefox is now extremely slow at loading all web sites. Trying to view PDF files from web sites crashes Firefox. I'm getting lots of unresponsive script messages. How can I fix this?

    I downloaded version 4 of Firefox this week and have been having problems since. Firefox is now extremely slow at loading all web sites. Trying to view PDF files from web sites crashes Firefox. I'm getting lots of unresponsive script messages. How can I fix this?

  • I have an iPhone 5 and email that is being deleted from trash is reappearing in trash a few minutes later.  Has anyone experienced this problem?

    I have an iPhone 5 and email that is being deleted from trash is reappearing in trash a few minutes later.  Has anyone experienced this problem?  Any suggestions as to how to correct it?

    Connect the iPod to your computer and look at the storage used by the various categories as shown in the colored bargarph in iTunes.
    Come back with the results.
    An "other" larger than about 1 1/2 GB indicates corrupted files.
    What is the Other on my iPhone and How to Remove It
    What is "Other" and What Can I Do About It?
    Also, go to Settings>General>Usage>Manage Storage and see what is using the storage

  • Emails are not being deleted from POP server

    I have an E75.
    When using Nokia Messaging on my phone, I am able to delete emails from my POP account.......at least it looks that way.
    Later, when I access my POP account using my computer, the emails are still there.
    Does anyone know how I can fix this problem?

    This is a POP account for my work - I cannot change it to IMAP.
    My phone has been syncing with it perfectly for almost 4 months.
    However, in the last week or so, it stopped working properly.
    Now, Nokia Messaging won't delete the email file off of the server.
    Message Edited by car2fast4you on 28-Oct-2009 02:47 PM

  • Facing problem in JavaStoredProc being called from plsql pass JPublisher

    I'm facing problems in calling java stored procedure from a plsql procedure.
    1) I have a plsql types
    create or replace type wwpro_api_portlet_instance
    as object
    portlet_inst_guid varchar2(60),
    provider_id number(38),
    portlet_id number(38),
    ref_path varchar2(100)
    create or replace type wwpro_api_portlet_instances
    as table of wwpro_api_portlet_instance
    2)I create java classes from JPublisher for these types as attached with this mail.
    3) There is a sql procedure where I create a instance of wwpro_api_portlet_instances with values populated in it.
    and then pass it to another procedure which is a CallSPec for the java class.
    Call Spec
    procedure export_data_internal
    p_http_url in varchar2,
    p_timeout in number,
    p_service_id in varchar2,
    p_proxy_host in varchar2,
    p_proxy_port in number,
    p_proxy_username in varchar2,
    p_proxy_password in varchar2,
    p_portal_version in varchar2,
    p_encryption_key in varchar2,
    p_message_lang in varchar2,
    p_export_id in varchar2,
    p_provider_id in varchar2,
    p_debug_level in number,
    p_portlet_instances in wwpro_api_portlet_instances
    )as language java
    name 'oracle.webdb.provider.web.ExportImportClient.exportData(
    java.lang.String,
    int,
    java.lang.String,
    java.lang.String,
    int,
    java.lang.String,
    java.lang.String,
    java.lang.String,
    java.lang.String,
    java.lang.String,
    java.lang.String,
    java.lang.String,
    java.lang.Integer,
    oracle.webdb.provider.web.PortletInstanceArray
    Procedure calling Call Spec
    procedure export_data
    p_export_id in varchar2,
    p_provider_id in number,
    p_portlet_instances in wwpro_api_provider.portlet_instance_table
    ) is
    begin
    --calling Call Spec
    export_data_internal
    p_http_url => l_provider.http_url,
    p_timeout => l_provider.timeout,
    p_service_id => l_provider.service_id,
    p_proxy_host => l_provider.dbtier_proxy_hostname,
    p_proxy_port => l_provider.dbtier_proxy_portnumber,
    p_proxy_username => l_proxy_info.username,
    p_proxy_password => l_proxy_info.password,
    p_portal_version => wwctx_api.get_product_version(),
    p_encryption_key => wwpro_util.get_encryption_key(p_provider_id, TRUE),
    p_message_lang => l_provider.language,
    p_export_id => p_export_id,
    p_provider_id => p_provider_id,
    p_debug_level => wwpro_util.get_debug_level,
    p_portlet_instances => l_portlet_instances <== Populated as I'm sure about it.
    //this gets 'EXP :ORA-29532: Java call terminated by uncaught Java exception: java.sql.SQLExc
    eption: Closed Connection'
    end export_data;
    4)Inside the Java class 'oracle.webdb.provider.web.ExportImportClient'.
    public static void exportData
    String url,
    int timeout,
    String serviceId,
    String proxyHost,
    int proxyPort,
    String proxyUser,
    String proxyPass,
    String portalVersion,
    String sharedKey,
    String messageLocale,
    String exportId,
    String providerId,
    Integer portalDebugLevel,
    PortletInstanceArray instances
    )throws Exception
    oracle.webdb.provider.v2.adapter.soapV1.SOAPException
    try
    conn = DriverManager.getConnection("jdbc:default:connection:");
    stmt = conn.createStatement();
    stmt.execute ("INSERT INTO d VALUES ('into ExportImportClient.exportData ')");
    stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData url :: " + url +"')");
    stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData instances:: " + instances +"')");
    // Prints this ==> FROM ExportImportClient.exportData instances:: oracle.webdb.provider.web.PortletInstanceArray@78e2087c
    stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData debugLevel:: " + portalDebugLevel +"')");
    stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData instances:: " + instances.length() +"')");
    //This Operation is giving the problem as any operation performed on this is clsing the Connection and comming out.
    //This has worked once but did not work after that, I tried this in the 10g as well as 901
    conn.commit();
    }catch(SQLException sqe){
    stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData sqe error :: " + sqe.getMessage() +"')");
    conn.commit();
    throw sqe;
    catch(Exception e)
    stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData exception error :: " + e.getMessage() +"')");
    stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData exception error :: " + e.getClass() +"')");
    conn.commit();
    throw e;
    Any reason what may be happening ? I have done the loadJava of the Jpublisher classes once in the database. After that I never made any changes to
    them, I just modify and upload the oracle.webdb.provider.web.ExportImportClient class.
    What Shold I try to over come this ?
    Also
    thanks
    rahul

    I'm facing problems in calling java stored procedure from a plsql procedure.
    1) I have a plsql types
    create or replace type wwpro_api_portlet_instance
    as object
    portlet_inst_guid varchar2(60),
    provider_id number(38),
    portlet_id number(38),
    ref_path varchar2(100)
    create or replace type wwpro_api_portlet_instances
    as table of wwpro_api_portlet_instance
    2)I create java classes from JPublisher for these types as attached with this mail.
    3) There is a sql procedure where I create a instance of wwpro_api_portlet_instances with values populated in it.
    and then pass it to another procedure which is a CallSPec for the java class.
    Call Spec
    procedure export_data_internal
    p_http_url in varchar2,
    p_timeout in number,
    p_service_id in varchar2,
    p_proxy_host in varchar2,
    p_proxy_port in number,
    p_proxy_username in varchar2,
    p_proxy_password in varchar2,
    p_portal_version in varchar2,
    p_encryption_key in varchar2,
    p_message_lang in varchar2,
    p_export_id in varchar2,
    p_provider_id in varchar2,
    p_debug_level in number,
    p_portlet_instances in wwpro_api_portlet_instances
    )as language java
    name 'oracle.webdb.provider.web.ExportImportClient.exportData(
    java.lang.String,
    int,
    java.lang.String,
    java.lang.String,
    int,
    java.lang.String,
    java.lang.String,
    java.lang.String,
    java.lang.String,
    java.lang.String,
    java.lang.String,
    java.lang.String,
    java.lang.Integer,
    oracle.webdb.provider.web.PortletInstanceArray
    Procedure calling Call Spec
    procedure export_data
    p_export_id in varchar2,
    p_provider_id in number,
    p_portlet_instances in wwpro_api_provider.portlet_instance_table
    ) is
    begin
    --calling Call Spec
    export_data_internal
    p_http_url => l_provider.http_url,
    p_timeout => l_provider.timeout,
    p_service_id => l_provider.service_id,
    p_proxy_host => l_provider.dbtier_proxy_hostname,
    p_proxy_port => l_provider.dbtier_proxy_portnumber,
    p_proxy_username => l_proxy_info.username,
    p_proxy_password => l_proxy_info.password,
    p_portal_version => wwctx_api.get_product_version(),
    p_encryption_key => wwpro_util.get_encryption_key(p_provider_id, TRUE),
    p_message_lang => l_provider.language,
    p_export_id => p_export_id,
    p_provider_id => p_provider_id,
    p_debug_level => wwpro_util.get_debug_level,
    p_portlet_instances => l_portlet_instances <== Populated as I'm sure about it.
    //this gets 'EXP :ORA-29532: Java call terminated by uncaught Java exception: java.sql.SQLExc
    eption: Closed Connection'
    end export_data;
    4)Inside the Java class 'oracle.webdb.provider.web.ExportImportClient'.
    public static void exportData
    String url,
    int timeout,
    String serviceId,
    String proxyHost,
    int proxyPort,
    String proxyUser,
    String proxyPass,
    String portalVersion,
    String sharedKey,
    String messageLocale,
    String exportId,
    String providerId,
    Integer portalDebugLevel,
    PortletInstanceArray instances
    )throws Exception
    oracle.webdb.provider.v2.adapter.soapV1.SOAPException
    try
    conn = DriverManager.getConnection("jdbc:default:connection:");
    stmt = conn.createStatement();
    stmt.execute ("INSERT INTO d VALUES ('into ExportImportClient.exportData ')");
    stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData url :: " + url +"')");
    stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData instances:: " + instances +"')");
    // Prints this ==> FROM ExportImportClient.exportData instances:: oracle.webdb.provider.web.PortletInstanceArray@78e2087c
    stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData debugLevel:: " + portalDebugLevel +"')");
    stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData instances:: " + instances.length() +"')");
    //This Operation is giving the problem as any operation performed on this is clsing the Connection and comming out.
    //This has worked once but did not work after that, I tried this in the 10g as well as 901
    conn.commit();
    }catch(SQLException sqe){
    stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData sqe error :: " + sqe.getMessage() +"')");
    conn.commit();
    throw sqe;
    catch(Exception e)
    stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData exception error :: " + e.getMessage() +"')");
    stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData exception error :: " + e.getClass() +"')");
    conn.commit();
    throw e;
    Any reason what may be happening ? I have done the loadJava of the Jpublisher classes once in the database. After that I never made any changes to
    them, I just modify and upload the oracle.webdb.provider.web.ExportImportClient class.
    What Shold I try to over come this ?
    Also
    thanks
    rahul

  • Trigger an event in the parent view, when popping a child view (Mobile)

    So from one view I'm pushing another view with some data:
    <s:Button label="Edit System" click="navigator.pushView(EditSystem, systems.selectedItem)"/>
    The problem I have is that in this other view I'm updating a view things in my sqlite database, so when I pop the 'EditSystem' view and return to the original, I want to run a function to requery the the sql so I can update a view things in the original view. But from what I can fugure Eventlisteners dont work across views? How do I trigger an event in the original view when I return from a child view via pop? 

    You should find this post useful: http://flexponential.com/2010/12/05/saving-scroll-position-between-views-in-a-mobile-flex- application/
    It demonstrates one way of saving and restoring data when pushing and popping a view.

  • Multi layer table view/navigation controller hierarchy best practice

    Hi,
    I am new to iPad/iPhone development and wondering what the best practice for multiple layers of table views is? I understand the principle of a navigation controller providing the framework for moving up and down a list but have not yet quite got my head around if you should have one navigation controller for the whole tree or several navigation controllers.
    In my app I need to have the following:
    Main view -> window view showing some interactive elements (picker, buttons etc.)
    Setup view -> Hierarchy managed by nav controller/table views
    The setup view needs to manage the following hierarchy...
    - Level A:
    - Global app variables (one table view)
    - Level B Items (table view showing list of items at belonging to Level B)
    - Level B Item 1 (table view showing list of items at level C belonging to level B item 1)
    - Level C Item 1 (table view showing list of items at level D belonging to level C item 1)
    - Level D Item 1 (table view showing list of items at level E belonging to level D item 1)
    - Level E item (table view for properties of item at Level E)
    - Level D Item n
    - Level C Item n
    - Level B Item n
    Each level in this has some properties and then a list of child items.
    What would be the best way of structuring this? I would assume that creating a class that extends a view controller for each level is a given but what about the control of the navigation? Should this be handled by one navigation controller or one per level? I think I know the right answer but have not seen a neat way of implementing
    I think I am also best off having each level in it's own xib but, once again, am not 100% sure that this is the best design pattern.
    Many thanks in advance for any help/pointers!
    Cheers
    jez

    Hi Julian,
    I have struggled with the same questions you are addressing. On a previous project we tried to model based on packages, but during the course of the project we encountered some problems that grew overtime. The main problems were:
    1. It is hard to enforce rules on package assignments
    2. With multiple developers on the project and limited time we didn't have time to review package assignment
    3. Devopelers would click away warnings that an object was already part of another project and just continue
    4. After go-live the maintenance partner didn't care.
    So, my experience is is that it is a nice feature, but only from a high level design point of view. In real life it will get messy and above all, it doesn't add much value to the development. On my neew assignment we are just working with packages based on functional area and that works just fine.
    Roy

Maybe you are looking for

  • Itunes tells me that it cann't read or write to my ipod touch when I have been doing so for a long time.  Why

    I have a 32 GB Ipod touch second generation (I believe) and suddenly iTunes is unable to read from or write to it.  It seems to work with my iPad.  I haven't changed anything that I am aware of and I have had iTunes restore it twice.

  • How to edit joomla templates in dreamweaver

    hi all. I am working with flex,when i crossed joomla its attracted me lot,they are providing so many templates i want to edit that templates (php)using dreamweaver and also want to create new templates using dreamweaver. can any one help to lead me..

  • Streaming XML to a log file

    Hello, I am investigating streaming XML into a log file for my system so that I can tag various elements that will allow for efficient reporting on errors, user events, login states etc..... As yet I have found it very unclear as to whether I can do

  • How to insert long query

    rs.Open "INSERT INTO staff (em_no,....... upto 60 variables)  values  '" & aa.Text & "' , '"&  upto 60 variable "'" , cn when i write upto 60 variable in text or int  one line is not enough for this its down to next line but not working what the righ

  • OSX Mountain Lion -1 Minute

    I am installing OSX Mountain Lion and it says -1 minute. Is this normal.