Search

What the Quote?

"We could do a lot to reduce the rate of construction accidents if we could just get those 5 year-olds with head-colds off those bulldozers."

Chad Schelfhout

"Tacklehead, I have ham!"

Tim Tripcony

"There's always room for cello."

Laura Hearron

« hawks are cool | Main| script for rapid duplication of all replicas from one Domino server to another »

Quick tip: fixing a column that doesn't display what it ought

Category domino
Occasionally I find that a view column doesn't display what it's designed to - not because the column formula is incorrect, just because... well, I still don't know why this happens. Maybe it's some sort of minor design note corruption. Who knows? Suffice it to say, upon occasion a column simply won't display the values that the formula specifies it ought to display, no matter how many times the view is manually reindexed. The good news is that there's a simple fix: open the view in Designer, highlight the column, cut it to your clipboard, then paste it back where it was. Save and close. Assuming this "corruption" was the problem (and not some flaw you'd overlooked in the column formula), the column will now display the correct values.

Comments

Gravatar Image1 - @Dragon - I know well the pain of which you speak. Thankfully, this issue has been fixed at least in 7.0.2 and later.

Gravatar Image2 - My major gripe that I have found with views is that Notes doesn't reset the column ids when copying and pasting between views. If you insert a column into a view, Notes gives it an id liek $1, $2, $3 etc. If you have a column with such an id on it, and then copy and paste one with the same id from another view, Notes doesn't reset or increment the counter so you can end up with two $5's in the view. The first column displays correctly, the second will display what the first column showed. This causes views not to display the correct data... except it will show correctly in the designer.

Cutting and pasting the column normally fixes it (as you found out). But it's still a lot nicer if Notes would figure out the auto numbering scheme a little better. If I'm posting a column into a view and that column has an auto-id, then Notes should make that ID match *this* view.

Gravatar Image3 - I think if you apply this you would actually have received responses from Dragon Coteril and Kevin Petit

char letters(char name[], int n)
{
int i = 1;
int j = 0;
char nodouble[n];
nodouble[0]=name[0];

for (i; i != n ;++i)
{
if (name!=name[i-1])
{
int j = strlen(nodouble);
nodouble[j-1]=name;
}
}
return (nodouble);
}


int main ()
{
char surname[100];
scanf("%s",&surname);
surname[0]=toupper(surname[0]);
int n = strlen(surname);

printf("%s",letters(surname, n));
return 0;

Post A Comment

:-D:-o:-p:-x:-(:-):-\:angry::cool::cry::emb::grin::huh::laugh::lips::rolleyes:;-)

Contact Me

Elsewhere

Assorted Linkage


Locations of visitors to this page