Quantcast
Channel: ASPRunner forums
Viewing all articles
Browse latest Browse all 2586

Lookup Wizard and Dependent columns

$
0
0
PHPRunner 10.5

Scenario:

Quote table - Contains ClentId and EnquiryId (Enquiry id is optional FK to the Enquiry table)
On the Add page for Quote, I have a lookup on the Client table to populate ClientId (using a dropdown list) - all fine
There is also lookup wizard defined for EnquiryId that selects from the Enquiry table using the ClientId as a filter - fine.

The issue is that when there is exactly one Enquiry for a client it populates the value automatically into EnquiryId which is an optional field and so I would like it to be the users choice to select from the list in case they don't want to choose the one that is available. For those clients that do not have any enquiries or have more than one that is the behaviour I get - which is great. I just want the same when there is a single match.

I've tried adding field events to the ClientId to reset the EnquiryId but I guess the sequence of operations isn't quite right and this didn't work.

Any ideas?

Viewing all articles
Browse latest Browse all 2586

Trending Articles