Solved

How to select the whole column from a view?

Posted on 2006-06-20
8
306 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
Comment Utility
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
Comment Utility
Oooh, bad English:  you're -> your
0
 
LVL 13

Accepted Solution

by:
CRAK earned 50 total points
Comment Utility
@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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
LVL 21

Expert Comment

by:shuboarder
Comment Utility
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
Comment Utility
@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
Comment Utility
that's what I meant CRAK - thanks for clarifying
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

For Desktop Techs: How to retain a user's Notes configuration data when swapping out the end user's computer. (Assuming that you are not upgrading to a completely different version of Notes client) All you need to do is: 1) install Notes o…
Notes Document Link used by IBM Notes is a link file which aids in the sharing of links to documents in email and webpages. The posts describe the importance and steps to create a Lotus Notes NDL file in brief.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

763 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

8 Experts available now in Live!

Get 1:1 Help Now