Solved

How to select the whole column from a view?

Posted on 2006-06-20
8
308 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Problem "Can you help me recover my changes?  I double-clicked the attachment, made changes, and then hit Save before closing it.  But when I try to re-open it, my changes are missing!"    Solution This solution opens the Outlook Secure Temp Fold…
For beginners of Lotus Notes user this is important to know about the types of files and their location supported by IBM Notes. Mostly users are unaware about how many file types are created and what their usages are. This Article is fully dedicated…
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.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

911 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

24 Experts available now in Live!

Get 1:1 Help Now