TableView reload on demand

Hi,
is there a possibility to get the index of the currently visible rows in a tableview? I want to do a 'dynamic' reload during scrolling. This means i have to know if i am at the end of the ObservableList to start a new Database query to get the next data records and add them to the ObservableList.
There is no access to the integrated scrollbar. focusedIndexProperty and selectedIndexProperty dont work for me.
Any ideas? Thank you!

I have implemented this in the past with a custom ObservableList implementation that keeps track of the data items in memory. The simplest form of this can be achieved by overriding size() and get(int i). When get(int i) is called, you simply check what the current 'max' value is, and if the given i value is nearing (or exceeding) the max, you can asynchronously pull down more information, and start reporting a new size() value as the data comes down into the list. I was planning to eventually come up with a robust, reusable version as part of the [DataFX project|http://www.javafxdata.org]. I'll try to do this as soon as possible.
-- Jonathan

Similar Messages

  • TableView - support for datasource (on-demand loading and JDBC)

    Hi,
    I'm new to JavaFX and I was wondering if anybody knows any good practices for TableView with large datasets. Any API extension that supports datasources for on-demand loading and JDBC. Or any good tutorial, example or ideas. I was looking at DataFX but I don't see any datasource for JDBC in the javadocs even when it's mention their website.
    Thanks in advance, any help or ideas are appreciated.

    Hello,
    here is some pseudocode for your requirement.
    max pagesize is 100 per query request
    i=0
    While(!Lastpage)
    request.startrownum=i;
    response=LeadQuery(request);
    Lastpage=response.lastpage;
    i+=100
    }

  • How to set sectionindextitlefortableview without reloading tableview

    Hi,
    i want to set sectionindextitlefortableview to nil in some case.I mean at first i will display that indexing then in some case i will have to remove that indexing with out reloading the table...Please help me out....

    Have you tried reloadSectionIndexTitles?
    \- Ray

  • FIOS TV Multi Room DVR Video On Demand errors

    I recently activated FIOS TV (already had FIOS Internet and Freedom phone) and received 5 STBs (1-QIP7216-1 DVR, two HD STBs a second HD DVR (QIP-6400 and a standard def STB) connected via COAX (MoCA) to an Actiontec Gen2 wireless router. Since the TV service install 1 month ago I have been on the phone with FIOS tech support at least a dozen times trying to resolve intermitent internet connectivity problems and most recently issues with FIOS TV features (i.e. Video on demand and multi-room DVR configurations). The Video on Demand issues would manifest as VOD_6 (request timeouts). Each time I worked with tech support to reset the router, power off the STB, etc and sometimes the VOD service would activate.
    Last week VOD failed again and the FIOS tech I spoke to was havnig difficulties remotely connecting to my STBs (a common situation from previous tech support calls). He dispatched a technician to visit my home to check DB levels for each of my STBs. The field tech arrived two days ago and brought a new QIP7216-1 and a new router. It took over an hour for him to get them working even with help from remote support (they couldn't "see" the STBs). Once they were able to flush out the issues, he departed but unfortunately he left without enabling the multi-room DVR functionality. I called FIOS support yesterday and the remote technician had significant difficulties getting the "system" to recognize my configuration and he eventually broke off our call so he could escalate to Video support. He called me back hours later once he felt that they had resolved all the configuration issues and when I checked everything seemed to be working.
    This morning I tried to program my DVD from my Verizon cellphone (this was working last week) and the DVR displayed a message that my account was not authorized. I called into FIOS support and the automated service attempted repair which included a "reload" of the STB firmware. Once the automated system felt I should be able to continue I noticed that the Video on Demand error VOD_5 happened when I tried to select it and now the option for Remote DVR programming is nolonger available on any menu!
    I called back to tech support and the technician had me unplug and restart the STB but he was having issues remotely accessing the STB. He broke off the call explaining that he needed to escalate to Video Networking specialists and I'm awaiting his call back.
    I am wondering if my experience is common and whether someone else has encountered (and resolved) these frustrating issues. I can't believe that Verizon expects users to have to re-boot routers and STBs anytime a feature is accessed. Hopefully one of the Verizon employees who monitor these forums can see some commonality and suggest a course of action that will bring relief. I have spent more hours troubleshooting my configuration than I've enjoyed the entertainment offerings, Please help! 

    Hi gr8scot,
    Since my original post I can attest that I've made it through 2 weeks without any error messages or unavailable features (fingers and toes crossed) . I can identify with your frustration and hope that once they exorcise the demons from your configuration (if you hang on) it seems that eventually the solution stabilizes. 
    In my case I found some help by contacting the Verizon Customer Relations team at 800-483-7988. Once I got these folks engaged I can say that my blood pressure returned to lower levels as they were in daily communications with me until I was satisfied that my issues were resolved. 
    It's unfortunate that it had to get to that point for me (and for you too) but it was fairly apparent that something about my equipment configuration was confused within the Verizon FIOS provisioning applications (my issues seem to have developed around the time of any equipment or service changes). I spoke to some very dedicated and personable FIOS tech support agents (unfortunately I actually got to know them very well after spending hours on the phone). It was clear to me that they were doing the best that they could and the issues were way above their toolset and my big beef was the lack of communication that happened once the first level folks had to pass the problem off to either the "network group" or the developers. 
    Good luck and hope we both can eventually get to enjoy our entertainment systems.

  • Dynamic class reloading in modular web application

    Hi.
    My web application has these requirements:
    A. Functional modularization (like plug-ins). Modules will be simple jars containing application logic classes: dto beans, business logic services, dao (jpa), framework stuff (Struts2), etc...
    B. At runtime and without restarting the application "class loading" must be aware of classes inside new, changed and removed modules.
    C. Some of these jars will be outside the web application folder (WEB-INF/lib), possibly outside the container itself too.
    My question:
    1. Can I achieve all or some of my requirements with a Java web application?
    2. How should I manage the modules?
    3. Do I need some special web container feature (maybe osgi)?
    4. Can I use a custom class loader in my application?
    The architecture objectives are:
    I. Provide scalability.
    II. Efficient development process (independent deployment and no application restart required).
    III. Better production support (no application restart required for changes).
    More on the architecture:
    a). Functional scalability, meaning this that my application may functionally grow up to an indeterminate number of small functional modules.
    b). Modules will be developed, deployed and maintained independently so the application discovers and loads classes on demand.
    c). Avoid a big .war file containing all the small modules because a small change in one module would involves deploying all the other modules (possibly hundreds o even thousands of them) and restarting the application.
    d). Above point involves dynamic class reloading.
    I guess this is addressed by OSGI (looks like heavy to deal with), Jigsaw (still under development) and maybe others. I think the key point is the class loader. I will develop a custom class loader but maybe you have some advice for me before starting to develop.
    Thanks and regards.

    Classes maintained by the container should not be loaded by an application. You want the container to read those classes and react accordingly. Most of those classes are read when the container starts up a container restart will be required. Trying to leverage another container within a container does not sound like it will be worth (if you can get it to work).
    Perhaps you should state the problem that you are trying to solve with these modules so that others may suggest more feasible solutions to achieve your target goals.

  • Problem on refreshing tableview's content

    Hi everyone!
    I'm developing a program using BSP and MVC based on tutorial_4_mvc.
    The program functions is basically insert, update and delete records on a transparent table using a tableview element.
    I defined tableview using the following parameters:
    <htmlb:tableView id              = "result"
                     design          = "ALTERNATING"
                     headerText      = "Header Text"
                     footerVisible   = "TRUE"
                     onRowSelection = "onRowSelection"
                     table           = "<%= t_dados_table %>"
                     visibleRowCount = "3" >
    For tableview collums, I used the following parameters:
      <htmlb:tableViewColumns>
        <htmlb:tableViewColumn columnName          = "APROGRUP"
                               width               = "100"
                               horizontalAlignment = "left"
                               title               = "Grupo de Aprovação de Programa"
                               type                = "input" >
        </htmlb:tableViewColumn>
        <htmlb:tableViewColumn columnName          = "DSCEN"
                               width               = "100"
                               horizontalAlignment = "left"
                               title               = "Descrição"
                               type                = "input" >
        </htmlb:tableViewColumn>
        <htmlb:tableViewColumn columnName          = "delete"
                               horizontalAlignment = "center"
                               title               = "Delete Item"
                               type                = "button"
                               onCellClick         = "delete" >
        </htmlb:tableViewColumn>
      </htmlb:tableViewColumns>
    The insert and update functions works just fine. So as the first time I search for a record and fill the tableview with the results. But the real problem is:
    The first time I fill the tableview, it works just fine! But when I try to search for a second code or when I have to delete a tableview's record I can't display the correct information.
    Example:
    1     1
    2     2
    3     3
    When I delete the "1   1" record on the tableview, it returns displaying:
    1    1
    2    2
    and seems like I've deleted the wrong record, but looking at the transparent table, the result is:
    2    2
    3    3
    This means that the logic for delete is correct and it's working no problem.
    BUT the tableview is displaying the wrong data.
    Anyone has been in a similar situation?

    Hi Hoffmann,
    my server cache is already set to "0". The browser cache has the same value. I tried to overwrite de value on this two fields and activate again, but the problem remains.
    There is any chance of this problem be a simple configuration mistake?
    When I change the type from "INPUT" to "TEXT" on the tableViewColumn property all the functions works just fine!
    But when I try to use the "INPUT" statement, the fields came with the old value, and the only way to update them is reloading the tableview element using an empty internal table and then reloading again with the filled internal table.
    For now, I'm using this way, but must be another way.

  • IPad demanding passcode when there isn't one!

    I got my iPad at the end of June from the Apple online store. A few weeks later, for no apparent reason, it requested a password for security settings, which I had not set. Since I could access the itunes store from my computer, this wasn't a major problem, so I learned to live with it. Then, three weeks ago, it requested a passcode to gain any access at all. As there seemed no alternative, I went through a complete reset, and had to reload all my apps, without any saved data (the one upside to this was getting to play "Angry Birds" all over again!). For three weeks that was OK, but now, out of the blue, it's demanding a passcode again, so I'm having to do a total reset again. Has anyone else encountered this? Looks as if I'll have to take it back to Apple

    Are you sure someone isn't turning it on when you're not around? I have never seen anyone complain about that happening and have never seen it happen to anyone else.

  • I cannpt play BBCiPlayer, C4 on Demand, etc through Firefox, but I can on Internet Explorer

    Mostly I use BBC iPlayer, but sometimes I go to C4 on Demand or other similar sites. For about two weeks now, I select a programme on any of the BBC tv channels and a caption comes up "This content does not seem to be working, try again later". The same happens on other demand sites. I have reloaded Adobe Flash and Java script, but it makes no difference. I have just tried Internet Explorer and find I can get i Player

    BBC actually has more than one method of streaming audio, and in the UK video, are you in the UK (including for BBC purposes IOM & Channel Isles).
    I am guessing you are using the Flash Player streams, note if you do that FlashPlayer uses different plugins for Firefox and Internet explorer.
    Test BOTH browsers on the adobe site using
    *http://www.adobe.com/software/flash/about/
    * see also [[managing the flash plugin]]
    Also ensure Javascript is enabled, and try clearing any site cookies and the browser cache (including iplayer cookies if applicable)

  • Why when I unselect the 'warn when sites try to redirect or reload' it re-selects itself when I close & open again.w

    everytime I open ffox I have to go into Advance option and un-select the "warn me when sites try to redirect or reload pages" and re-select "make ffox my browser". I also tried selecting 'allow third party cookies' with "from visited' or Always but it changes back to Never when I close the options window, I can actually see it change a split second before.I have noticed these in the last couple of months and I dont think it was from anything I did cause I barely do any tinkering. What is going on? Any ideas?

    Also, could you check the Windows Control Panel for a malware program named Search Protect or SearchProtect? You may need to do a general review and cleanup if that has crept in, since it usually indicates you got a big bundle of crap with some freebie.
    I suggest:
    (1) Open the Windows '''Control Panel''', Uninstall a Program. After the list loads, click the "Installed on" column heading to group the infections, I mean, additions, by date. This can help in smoking out undisclosed bundle items that snuck in with some software you agreed to install. Take out as much trash as possible here.
    (2) Then, in Firefox, check for any other unrecognized or nonessential extensions and disable them. Open the '''Add-ons page''' using either:
    * Ctrl+Shift+a
    * "3-bar" menu button (or Tools menu) > Add-ons
    In the left column, click Plugins. Set nonessential and unrecognized plugins to "Never Activate".
    In the left column, click Extensions. Then, if in doubt, disable (or Remove, if possible) unrecognized and unwanted extensions.
    Often a link will appear above at least one disabled extension to restart Firefox. You can complete your work on the tab and click one of the links as the last step.
    (3) If the above doesn't work, you can search for remaining issues with the '''scanning/cleaning tools''' listed in our support article: [[Troubleshoot Firefox issues caused by malware]]. These on-demand scanners are free and take considerable time to run. If they finish quickly and especially if they require payment, you may have a serious infection. I suggest the specialized forums listed in the article in that case.

  • BSP - TableView overwritten by input fields in same page

    Hi everybody!
    We try to implement a page with a tableview, loading datas in the onCreate with a CallFunction, and then looping on itself to modify the datas before saving in a cookie:
    OnCreate
    OnInitialize <--
    Layout          |
    Processing -
    The tableView is displaying a table "T".
    There is an input field "F" in the table.
    We have a "reset to 0" button in the page affecting the field F of table T.
    The reset is done in OnInputProcessing.
    Problem : when reseting, the TableView displays the input field value, and not 0. Yet, when debugging, I can see that T contains 0, in the Layout execution.
    So I guess the page input fields are overwritting the  table of the tableView.
    Thanks a lot in advance, best regards
    François

    Thanks a lot for your reply
    This is what happens more in details:
    In my page, I have a table with a modifiable column, that maybe I want to reset:
    Let's suppose I have typed "1" in many rows, but aftewards, I want to reset to 0.
    Layout:
            <htmlb:groupBody>
              <%-- TableView with columns description table  --%>
              <htmlb:tableView id              = "tvX"
                               table           = "<%= requisition %>"
                               design          = "ALTERNATING"
                               headerVisible   = "TRUE"
                               keepSelectedRow = "TRUE"
                               visibleRowCount = "15"
                               fillUpEmptyRows = "true"
                               onHeaderClick   = "MyEventHeaderClick"
                               onRowSelection  = "MyEventRowSelection"
                               selectionMode   = "LINEEDIT"
                               width           = "100%"
                               iterator        = "<%= tv_iterator %>" >
                <htmlb:tableViewColumns>
                  <htmlb:tableViewColumn columnName = "BANFN"
                                         title      = "N° Demande d'achat"
                                         sort       = "true" >
                  </htmlb:tableViewColumn>
                  <htmlb:tableViewColumn columnName = "MENGE_VAL"
                                         title      = "Quantité modifiée"
                                         type       = "INPUT" >
              <htmlb:button id      = "init"
                            text    = "Init"
                            onClick = "onInputProcessing(init)" />
    OnInputProcessing :
    Nothing (so when clicking on "Init", we come back on the same page into OnInitialization)
    OnInitialization:
        loop at requisition into wa_requisition.
          wa_requisition-menge_val = 0.
          modify requisition from wa_requisition.
        endloop.
    The page still displays the "1" whereas I see "0" in debug in the Layout.
    I suppose the tableView is displayed not only from the table "requisition" but from a table corresponding to the inputs in page, which is initialized in the OnCreate part, but not in the On Initialization.
    The iterator is the standard one.
    Do you have an idea?
    Best regards

  • Went to your 'help' section and asked "where is the reload button?" and now I am being told my question is too long. very screwed up folks.

    Where is the "reload" button?
    WHY HAVE A 'DETAILS' BOX THAT HOLDS 345 CHARACTERS WHEN YOU COME BACK AND DEMAND THAT I REDUCE IT TO 255 CHARACTERS? HOW STUPID IS THAT? I had an explanation written out but the system won't accept it.
    Christ, now it's telling me that my question is too long and I don't even know how to get back to the question to reduce the number of characters in it. This is truly screwed up folks.

    By default the Stop, Go and Reload buttons are combined and attached to the right hand edge of the location bar.
    When you are typing in the location bar it will show the Go button. When a site is loading it shows the Stop button. At other times it shows the Reload button.
    If you want separate buttons, right-click on a toolbar and choose Customize, you can then drag and drop the stop or reload buttons and place them elsewhere. If you place them in the order "Reload-Stop" on the right hand edge of the location bar they will be combined again. For more details on customizing the toolbar see https://support.mozilla.com/kb/How+to+customize+the+toolbar

  • Does changing RRM DCA reload radios?

    Hello,
    It appears that in LWAPP changing the power levels on APs causes their radios to reload. This was not the case with IOS APs.
    Does anyone know whether modifying RRM DCA (from Auto to On-Demand via WCS Radio Parameters template, holding power level constant, DTPC off) cause an interruption in service?
    Should I expect that DCA will run one more time even though its already been running Auto?
    Thanks,

    Thanks Rupert,
    I only meant the radios, not the APs themselves, will reload (reset) with a power level change VIA the WCS template.
    Are you saying the radios *will not* go down/up if global/individual power changes are done from the WLC GUI?
    I have 14 controllers I want to make this change to (DCA to On-Demand via the radio parameter controller template). I have seen that if I include a power change in this template the radios will go down/up, and result in packet loss (approx. 9 PINGs, in this case due to the client going to the A-side after a B-side change). I imagine the loss would be the same with only one radio (i.e. 1231G APs).
    If I only modify the DCA element (to On-Demand) within the radio parameter controller template, can I expect power level changes will *not* occur?
    Thanks again,

  • Htmlb:tableView - automatic refresh

    <b>Hi,</b>
    I use htmlb:tableView  to display data.
    Have you any idea how to do automatic refresh to the tableView ?
    <b>Thanks, Natalia.</b>

    Here is the Sample code which reload every 2 seconds..
    Look at the ouput:
    http://grizzlyweb.com/webmaster/javascripts/examples/refresh.htm
    <html>
    <head>
    <title>Refresh JavaScript Example</title>
    <noscript>
    <meta http-equiv="refresh" content="2">
    </noscript>
    <script language="JavaScript">
    <!--
    var sURL = unescape(window.location.pathname);
    function doLoad()
        // the timeout value should be the same as in the "refresh" meta-tag
        setTimeout( "refresh()", 2*1000 );
    function refresh()
        window.location.href = sURL;
    //-->
    </script>
    <script language="JavaScript1.1">
    <!--
    function refresh()
        window.location.replace( sURL );
    //-->
    </script>
    <script language="JavaScript1.2">
    <!--
    function refresh()
        window.location.reload( false );
    //-->
    </script>
    </head>
    <!--
        Use the "onload" event to start the refresh process.
    -->
    <body onload="doLoad()">
    <script language="JavaScript">
    <!--
        document.write('<b>' + (new Date).toLocaleString() + '</b>');
    //-->
    </script>
    </body>
    </html>
    For more detail look at the below link..
    http://grizzlyweb.com/webmaster/javascripts/refresh.asp
    <i>* Reward each useful answer.</i>
    Raja T

  • UITableView not reloading the Data

    Hello,
    I am new to Xcode and i am facing problem with UITableview , What my app is doing is getting the list of the items from internet and show in (View 1) which have UITableView and working good (no problem in it) now after that as soon i click on any item it takes to (View 2) which shows Selected Item Details and i have Grouped Style UITableView (4 Sections and each have 3 rows and each rows have UITextField) in it. this step also work fine now as soon i go back to (View 1) and select any other item and when i see (View 2) the data in rows didn't changed below is the following code :
    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    NSString *MyCell = [NSString stringWithFormat: @"%d:%d", [ indexPath indexAtPosition: 0 ], [ indexPath indexAtPosition:1 ]];
    cell = [tableView dequeueReusableCellWithIdentifier:MyCell];
    if (cell == nil) {
    UITableViewCell *cell = [[[UITableViewCell alloc ] initWithFrame: CGRectZero reuseIdentifier: MyCell] autorelease ];
    cell.selectionStyle = UITableViewCellSelectionStyleNone;
    // Creating UITableField In Each Rows of Each Sections
    [self CreateUIFieldWithData:indexPath :cell];
    return cell;
    now after i have facing the problem what i did is below :
    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    NSString *MyCell = [NSString stringWithFormat: @"%d:%d", [ indexPath indexAtPosition: 0 ], [ indexPath indexAtPosition:1 ]];
    UITableViewCell *cell = [[[UITableViewCell alloc ] initWithFrame: CGRectZero reuseIdentifier: MyCell] autorelease ];
    cell.selectionStyle = UITableViewCellSelectionStyleNone;
    // Creating UITableField In Each Rows of Each Sections
    [self CreateUIFieldWithData:indexPath :cell];
    return cell;
    after doing this everything is working fine and data is reloading also but but this is creating a new problem is that if i open the view 2 for adding the new item and as soon i enter the something in UITextField and scroll down and scroll up everything which i type is gone. i know why its doing that but i m stuck now and i don't know what to do.

    I m using Multi-View Based Template
    so can you tell me how to delete the data from reuse queue??
    also let me show the code which is adding the UIFieldText and data on it.
    below is the code for View 2
    - (void) CreateUIFieldWithData:(NSIndexPath *)myPath:(UITableViewCell *)myCell{
    if (myPath.section == 0) {
    if (myPath.row == 0){
    UITextField *myField1 = [[UITextField alloc] initWithFrame:CGRectMake(10, 10, 280, 25)];
    myField1.placeholder = @"App Name";
    myField1.tag = 101;
    if (isEdit == TRUE){
    myField1.text = [CopyArrInfo objectAtIndex:2];
    NSLog(@"Field 1 : %@" , [CopyArrInfo objectAtIndex:2]);
    [myField1 addTarget:self action:@selector(DoneKeyBoard:) forControlEvents:UIControlEventEditingDidEndOnExit];
    if (myCell != nil) {
    [myCell.contentView addSubview:myField1];
    [myField1 release];
    AppName = (UITextField *)[myCell viewWithTag:101];
    // Section 0 Row 2
    if (myPath.row == 1){
    UITextField *myField2 = [[UITextField alloc] initWithFrame:CGRectMake(10, 10, 280, 25)];
    myField2.placeholder = @"App Target Audience";
    myField2.tag = 102;
    if (isEdit == TRUE){
    myField2.text = [CopyArrInfo objectAtIndex:4]; // App Target Audience
    [myField2 addTarget:self action:@selector(DoneKeyBoard:) forControlEvents:UIControlEventEditingDidEndOnExit];
    if (myCell != nil) {
    [myCell.contentView addSubview:myField2];
    [myField2 release];
    TargetAudi = (UITextField *)[myCell viewWithTag:102];
    // Section 0 Row 3
    if (myPath.row == 2){
    UITextField *myField3 = [[UITextField alloc] initWithFrame:CGRectMake(10, 10, 280, 25)];
    myField3.placeholder = @"App Competitor";
    myField3.tag = 103;
    if (isEdit == TRUE){
    myField3.text = [CopyArrInfo objectAtIndex:5]; // App Competitor
    [myField3 addTarget:self action:@selector(DoneKeyBoard:) forControlEvents:UIControlEventEditingDidEndOnExit];
    if (myCell != nil) {
    [myCell.contentView addSubview:myField3];
    [myField3 release];
    Competition = (UITextField *)[myCell viewWithTag:103];
    if (myPath.section == 1) {
    if (myPath.row == 0){
    UITextField *myField4 = [[UITextField alloc] initWithFrame:CGRectMake(10, 10, 280, 25)];
    myField4.placeholder = @"App Description";
    myField4.tag = 104;
    if (isEdit == TRUE){
    myField4.text = [CopyArrInfo objectAtIndex:3]; // App Description
    [myField4 addTarget:self action:@selector(DoneKeyBoard:) forControlEvents:UIControlEventEditingDidEndOnExit];
    if (myCell != nil) {
    [myCell.contentView addSubview:myField4];
    [myField4 release];
    AppDescription = (UITextField *)[myCell viewWithTag:104];
    if (myPath.section == 2) {
    if (myPath.row == 0){
    UISlider *mySlider1 = [[UISlider alloc] initWithFrame:CGRectMake( 126 , 0, 150, 50)];
    mySlider1.maximumValue = 10;
    mySlider1.minimumValue = 1;
    mySlider1.tag=201;
    if (isEdit == TRUE){
    NSString *mOrg = [CopyArrInfo objectAtIndex:6];
    [mySlider1 setValue:[mOrg integerValue]]; // Original
    mySlider1.continuous=NO;
    myCell.textLabel.text = @"Originality";
    if (myCell != nil) {
    [myCell.contentView addSubview:mySlider1];
    [mySlider1 release];
    Org = (UISlider *)[myCell viewWithTag:201];
    if (myPath.row == 1){
    UISlider *mySlider2 = [[UISlider alloc] initWithFrame:CGRectMake(126, 0, 150, 50)];
    mySlider2.maximumValue = 10;
    mySlider2.minimumValue = 1;
    mySlider2.tag =202;
    if (isEdit == TRUE){
    NSString *mSim = [CopyArrInfo objectAtIndex:7];
    [mySlider2 setValue:[mSim integerValue]]; // Simple
    NSLog(@"Count : %i" , [CopyArrInfo count] );
    mySlider2.continuous=NO;
    myCell.textLabel.text = @"Simplicity";
    if (myCell != nil) {
    [myCell.contentView addSubview:mySlider2];
    [mySlider2 release];
    Simply = (UISlider *)[myCell viewWithTag:202];
    if (myPath.row == 2){
    UISlider *mySlider3 = [[UISlider alloc] initWithFrame:CGRectMake(126, 0, 150, 50)];
    mySlider3.maximumValue = 10;
    mySlider3.minimumValue = 1;
    mySlider3.tag =203;
    if (isEdit == TRUE){
    NSString *mFunc = [CopyArrInfo objectAtIndex:8];
    [mySlider3 setValue:[mFunc integerValue]]; // Function
    mySlider3.continuous=NO;
    myCell.textLabel.text = @"Functionality";
    if (myCell != nil) {
    [myCell.contentView addSubview:mySlider3];
    [mySlider3 release];
    Function = (UISlider *)[myCell viewWithTag:203];
    if (myPath.row == 3){
    UISlider *mySlider4 = [[UISlider alloc] initWithFrame:CGRectMake(126, 0, 150, 50)];
    mySlider4.maximumValue = 10;
    mySlider4.minimumValue = 1;
    mySlider4.tag =204;
    if (isEdit == TRUE){
    NSString *mPro = [CopyArrInfo objectAtIndex:9];
    [mySlider4 setValue:[mPro integerValue]]; // Profit
    mySlider4.continuous=NO;
    myCell.textLabel.text = @"Profitable";
    if (myCell != nil) {
    [myCell.contentView addSubview:mySlider4];
    [mySlider4 release];
    Profit = (UISlider *)[myCell viewWithTag:204];
    if (myPath.row == 4){
    UISlider *mySlider5 = [[UISlider alloc] initWithFrame:CGRectMake(126, 0, 150, 50)];
    mySlider5.maximumValue = 10;
    mySlider5.minimumValue = 1;
    mySlider5.tag =205;
    if (isEdit == TRUE){
    NSString *mFun = [CopyArrInfo objectAtIndex:10];
    [mySlider5 setValue:[mFun integerValue]]; // Fun
    mySlider5.continuous=NO;
    myCell.textLabel.text = @"Fun";
    if (myCell != nil) {
    [myCell.contentView addSubview:mySlider5];
    [mySlider5 release];
    Fun = (UISlider *)[myCell viewWithTag:205];
    if (myPath.section == 3) {
    if (myPath.row == 0){
    UILabel *myLbl = [[UILabel alloc] initWithFrame:CGRectMake(10, 10, 280, 25)];
    if (isEdit == TRUE){
    myLbl.text = [CopyArrInfo objectAtIndex:11];
    }else{
    myLbl.text = @"Not Updated Yet";
    if (myCell != nil) {
    [myCell.contentView addSubview:myLbl];
    [myLbl release];
    if (myPath.section == 4) {
    if (myPath.row == 0){
    UIButton *myBnt = [[UIButton alloc] initWithFrame:CGRectMake(10, 10, 280, 25)];
    if (isEdit == TRUE){
    [myBnt setTitle:@"Update" forState:UIControlStateNormal];
    }else{
    [myBnt setTitle:@"Submit" forState:UIControlStateNormal];
    [myBnt setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
    [myBnt setTitleColor:[UIColor redColor] forState:UIControlStateSelected];
    [myBnt addTarget:self action:@selector(Submit:) forControlEvents:UIControlEventTouchDown];
    if (myCell != nil) {
    [myCell.contentView addSubview:myBnt];
    [myBnt release];
    - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    if (section == 0){
    return 3;
    if (section == 1){
    return 1;
    if (section == 2){
    return 5;
    if (section == 3){
    return 1;
    if (section == 4){
    return 1;
    return 0;
    - (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section{
    if (section == 0){
    return @"App Information";
    if (section == 1){
    return @"App Description";
    if (section == 2){
    return @"App Feasibility";
    if (section == 3){
    return @"App Status";
    if (section == 4){
    return @"Actions";
    return 0;
    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    if (CopyArrInfo == nil) CopyArrInfo = [SelInfoArr copy];
    if ([CopyArrInfo count] > 1) {
    MyCell = [NSString stringWithFormat: @"i%:%d:%d",[CopyArrInfo objectAtIndex:1], [ indexPath indexAtPosition: 0 ], [ indexPath indexAtPosition:1 ]];
    }else {
    MyCell = [NSString stringWithFormat: @":%d:%d", [ indexPath indexAtPosition: 0 ], [ indexPath indexAtPosition:1 ]];
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:MyCell];
    if (cell == nil) {
    cell = [[[UITableViewCell alloc ] initWithFrame: CGRectZero reuseIdentifier: MyCell] autorelease ];
    cell.selectionStyle = UITableViewCellSelectionStyleNone;
    [self CreateUIFieldWithData:indexPath :cell];
    return cell;
    - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{
    return 5;
    - (void) viewDidAppear:(BOOL)animated{
    [TVD reloadData];
    NSIndexPath *mPath = [NSIndexPath indexPathForRow:0 inSection:0];
    [TVD scrollToRowAtIndexPath:mPath atScrollPosition:UITableViewScrollPositionTop animated:YES];
    [super viewDidAppear:animated];
    - (IBAction)Back{
    isEdit == FALSE;
    if (CopyArrInfo != nil) CopyArrInfo = nil;
    [self.parentViewController dismissModalViewControllerAnimated:YES];
    can you help me in that how to delete data from reuse que?
    as on VIew 1 i am just showing the view 2 like
    [self presentModalViewController:_View2 animated:YES];

  • Uitable view reloads 2x times OR view is pushed 2 times

    Hi!
    I am not really sure whats happening.
    Either my UITableView is reloading 2x, or the pushViewController is fired 2x times.
    If I am pushing the view, it appears, but is pushed again and loads the rest..
    any hints?
    I did also remove all [view reloadData] commands..
    my tableView is loading the data (XML Feed) in the viewDidLoad method.
    if I am loading the data before pushing the tableView (therefore not within viewDidLoad), the table stays empty.

    Hi Alex -
    Methods like viewDidLoad, viewWillAppear and viewDidAppear can be called more than once during the same view transition, though in my experience the first is much less likely to repeat than the other two. In these cases, I sometimes use boolean instance vars to lock out any code that should only run once. E.g.:
    - (void)viewDidAppear:(BOOL)animated {
    [super viewDidAppear:animated];
    if (!self.didAppear++) {
    // init data and/or reload table view
    NSLog(@"viewDidAppear");
    - (void)viewDidDisappear:(BOOL)animated {
    [super viewDidDisappear:animated];
    self.didAppear = NO;
    I'm not claiming this example is thread safe, though I'd only expect calls to come from the main thread. You might declare the boolean to be atomic if you tend to lose sleep over this type of question.
    On the other hand, pushViewController will only run twice if your code calls it twice. I can't guess how you're managing to do this. For instance, didSelectRowAtIndexPath is pretty good about not repeating. So if you're seeing an extra, unintended push transition, it's fairly safe to assume something's wrong with your code. Logging can be a big help in a case like this. E.g.:
    NSArray *stack = self.navigationController.viewControllers;
    // place this before and after each call to push or pop ViewController:
    NSLog(@"stack = %@", stack);
    If the above doesn't provide any clues, we might be able to help more if you posted any transition-related code (e.g. for the controller calling push and the controller being pushed).
    - Ray

Maybe you are looking for

  • Zen 4 - Zen 6.5 Inventory database upgrade fails

    Hi all, Have installed Zen 6.5 over a Zen 4 server (nw65) running inventory. Database is on a seperate oracle server. When I start inventory, it starts the database upgrade and then fails with a java exception part way through, and then says "stoppin

  • Capitol one platinum approved, now trying to figure out my next steps Please advise

    I also am new to this forum after many years of neglecting my credit I have made it a focus to rebuild my credit. I also have recently received my new Capitol one platinum card, and I am about to cut my first statement. I just wanted to thank everyon

  • Insert picture in MySQL using Netbeans 5.5

    Can anyone help me how to insert a picture in MySQL database by using Netbeans 5.5? I understand that we need to use BLOB as the data type, but how to make MySQL read the location of the picture? As an example, in table cars, I have set the datatype

  • Diffrent exchange rate at GR..........

    Hi, I have maintained an exchange rate.I have a PO which by default captures the same at the time of creation.I have not checked 'fixed rate'. I want to know that if the material is going to be received after 15 days and every day I am maintaining th

  • Discoverer Viewer Custom Servlet

    Every time a user makes a request to the viewer I must verify the parameters of the request and add some other parameters to it. In order to do this i create a new servlet that recives the request, does the verification and after that it fordwards th