Search these areas:
Help
Support Forums
Product Info



-Introduction
-DataWeb: What's New
-Creating an Application
-The DataWeb Designer
-Application Management
-Data Tables
-Data Tables
-Views
-Templates
-Components
-Data Analysis
-Members
-Security
-Importing
-Exporting
-FTP
-JavaScript
-Object Model
-Full-Text Search
-Domain and Email Hosting
-HotBlock Modules
-Account Management
-Glossary
-New Responsive UI Module





DataWeb Help
Support Forums
Tutorial
Script Library
Knowledge Base

Home > Support

Support Forum



(More)How do I show just one record when clicking on a lookup item?
KevinNicholls asked:
Extension of discussion# 266

Suppose the field in my data region is a bound field like

DealID:SupplierContactID:SupplierID:Supplier_Name

And I want that record item to link to
/Supplier/default.view?Supplier_Name="#record.DealID:SupplierContactID:SupplierID:Supplier_Name#"

and show only the record for just that supplier? (by the way, my syntax does not work)
 
  dougl responded:
  I'm going to recreate your table structure to make sure the syntax in my example is correct. In the meantime, check out:
http://help.westside.com/default.view?Topic=ws00022
 
  dougl responded:
  Perhaps:

<a href="/supplier/default.view?Supplier_Name=#record['DealID:SupplierContactID:SupplierID:Supplier_Name']#"><ws:field name="DealID:SupplierContactID:SupplierID:Supplier_Name"><ws:caption>Supplier_Name</ws:caption></ws:field></a>
 
  matthewb responded:
  You might want to link on the PK of the suppliers table.  which would look like

<ws:field name="DealID:SupplierContactID:SupplierID" displaymodes="never" />
<a href="/supplier/default.view?SupplierID=#record['DealID:SupplierContactID:SupplierID']#"><ws:field name="DealID:SupplierContactID:SupplierID:Supplier_Name"><ws:caption>Supplier_Name</ws:caption></ws:field></a>
 
  dougl responded:
  also consider the following code to display 20 records when a view is in grid mode and only 1 record when a view is in all other modes:

<!--#
      var strMode = request.getParameter( "_mode", "grid" );
      var iPageSize = strMode.toLowerCase() == "grid" ? 20 : 1;
#-->
 
  KevinNicholls responded:
  Doug- Matt

Thanks guys- works like a charm
 
  dougl responded:
  DataWeb considers this issue closed.
If you have additional questions or comments about this issue, please open it again.
If you have questions about a different topic please open a new support question.

Thanks,
DataWeb Support
 
  Please Log On
or create your own DataWeb Account.
Affiliate | Partner | Terms of Use | Privacy Policy | Contact Us | Pricing | Bring DataWeb In-House    
DataWeb, 720 North 10th Street, A #145, Renton, Washington 98057 *425-583-5970* Fax 484-770-4706* Email Us