Solved

How to select the whole column from a view?

Posted on 2006-06-20
8
312 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Lack of Storage capacity is a common problem that exists in every field of life. Here we are taking the case of Lotus Notes Emails, as we all know that we are totally depend on e-communication i.e. Emails. This article is fully dedicated to resolvin…
This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

688 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