@DbColumn Question

Hello,

I have two fields in my form and both are “dialog Lists”. The first called “TeamName” and the second called “ProdCode”. Users are allowed to add to both lists. A “ProdCode” is unique to a team.

I have created a view “ViewSelection” with first column displaying TeamName and second the ProdCode.

I use the following command to populate the Dialog list:

For Team Name:

@Unique(@DbColumn(“”:“nocache”; “”; “ViewSelection”; 1))

For ProdCode:

@Unique(@DbColumn(“”:“nocache”; “”; “ViewSelection”; 2))

The problem is ProdCode for all teams show up.

IS THERE A WAY TO SORT ONLY PRODCODE’S ASSOCIATED WITH THE SELECTED TEAM??

tHANKS

Ram B.

Subject: @DbColumn Question

You need to use @DBLookup based on the Team to get the Product Codes.Create a view with 1st column sorted and displaying the Teams, 2nd column displaying the Product Codes.

So your Team (dialoglist-formula as choices) field would have the formula :

@DBColumn(“Notes”:“Nocache”;“”;“ViewSelection”;1);

Also remember to check the field property called “Refresh Fields on Keyword Change” on 2nd tab.

And the Product Code (dialog list-formula as choices) field would have the formula as

@DbLookup(“Notes”:“Nocache”;“”;“NEWVIEWNAME”;Team;2;[FAILSILENT])

and remember selecting the field property called “Refresh choices on Document Refresh” on the 2nd tab.

cheers !!

Ashish

Subject: Thanks: @DbColumn Question

Thanks works wonderful.

Ram