Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7704583
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T23:42:47+00:00 2026-05-31T23:42:47+00:00

I am populating a table with a vector however there are some empty cells

  • 0

I am populating a table with a vector however there are some empty cells in the vector and i want to only create a new row if a cell is not empty but the table does not like this because it wants the row numbers to increment by one

i.e
1,2,3,4,5

if it is empty it will be like THIS IS WHERE THE ERROR OCCURS
1,2,4,5

So how can i get it to not increment when a cell is empty and only wen a cell has content in there so it stays like

1,2,3,4,5

code

int it = 0;
        while(it < popLocatedErrorColumn.size())
        {
            if(popLocatedErrorColumn[it] != "")
            {
                DCS_GET_HTMLKIT_REPETITION(uldtable, uldRow,NULL,it);
                if(uldRow.getItem("locatedError"))
                    uldRow.getItem("locatedError")->setValue(popLocatedErrorColumn[it]);
            }
            it++;
        }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T23:42:49+00:00Added an answer on May 31, 2026 at 11:42 pm

    Use a second integer index to keep track of the current row number.

        int it = 0, index = 0; 
        while(it < popLocatedErrorColumn.size())
        {
            if(popLocatedErrorColumn[it] != "")
            {
                DCS_GET_HTMLKIT_REPETITION(uldtable, uldRow,NULL,index);
                index++;
                if(uldRow.getItem("locatedError"))
                    uldRow.getItem("locatedError")->setValue(popLocatedErrorColumn[it]);
            }
            it++;
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

im populating the data in the combo box using dataset tables...with some table name..now
I am populating an array with variables from a table. For some reason, it
I am populating a table based on a javascript function. I want to limit
populating table with initial data: additionsTable.setModel(new AdditionalDocsTableModel(addDocuments)); constructor of the model: public AdditionalDocsTableModel(List<MyDocument> docs)
i have this table POSITION: CREATE TABLE `position` ( `idposition` bigint(20) NOT NULL AUTO_INCREMENT,
I'm having some weird issues with dynamically populating a table in Javascript. Behold the
I am populating a table with query results and I want the style of
We need to stop populating a table with records, and just update 1 row
I am populating a data table which in turn populates a checkboxlist. I want
I have a feed that is populating a single text field in a table

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.