Solved

How to select the whole column from a view?

Posted on 2006-06-20
8
309 Views
Last Modified: 2013-12-18
Dear Experts,

I have use @DbLookup and @DbColumn to select the whole column.
But it doesn't work, I cannot get the value.
Is there any setting in the view or form is needed?

Thank You all

Have a nice day
0
Comment
Question by:edmondto2
  • 2
  • 2
  • 2
8 Comments
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 16949238
What's you're formula, and what does your view column look like?

@DbColumn will grab a whole column indeed, but watch out that you don't go over the 64K data limit (all text together). @DbLookup will only get part of a column.
0
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 16949271
Oooh, bad English:  you're -> your
0
 
LVL 13

Accepted Solution

by:
CRAK earned 50 total points
ID: 16949342
@DbColumn should do just that, unless it retrieves more than 64k of data: that will result in an error message.
The column number specified may also be affected if the view contains columns that contain constants or (solely) the formula's @DocChildren, @DocDescendants, @DocLevel, @DocNumber, @DocParentNumber, @DocSiblings, @IsCategory or @IsExpandable. Such columns are skipped in the column count, which might result in another error: for retrieving a non-existing column no.

If you catch the result in a variable, what does @Elements() return? Try something like this:

Lst := @DbColumn(...<your parameters>...);
@If(
   @IsError(Lst);
   @Prompt([ok]; ""; Lst);
   @Prompt([ok]; ""; @Text(@Elements(Lst)))

It should show the no. of retrieved rows!
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
LVL 21

Expert Comment

by:shuboarder
ID: 16949843
I believe you will also need the first column in your view to be sorted/categorised (either ascending or descending)
Certainly for the @DBLookup to work this is the case. This can be set under column properties second tab.

Just my $2.59 ;)
0
 
LVL 13

Expert Comment

by:CRAK
ID: 16950029
@DbColumn does NOT require sorting.
@DbLookup does, but it doesn't have to be the 1st column in the view. The provided keyvalue is matched with the first sorted column; even if that's e.g. the 3rd in the view!
0
 
LVL 21

Expert Comment

by:shuboarder
ID: 16950069
that's what I meant CRAK - thanks for clarifying
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
DAOS - Backup / Restore 2 185
HP DP 7.03 and lotus collaboration suite 9 3 156
Lotus notes email code 6 114
Domino Lotus Notes Client 4 70
This is an old article, please see an updated version of this article, located here: http://www.experts-exchange.com/articles/23619/Notes-8-5x-Windows-7-Notes-info-and-tips.html
  In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

816 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now