specification for dependency-driven fields for Mobile Request

This is requirement 52 in HPQC: Develop Constrained Item List.

The Mobile Device Service Catalog Request contains three drop-down fields to refine the order.

Phone Vendor, called Provider.

Provider then should constrain the next two fields:

  • Device, which is the mobile phone or similar mobile device
  • Plan, which is the data or calling plan for the provider

At present, both of these constrained fields have a dynamic Reference Qualifier, using the javascript call to the method u_db692_mobile_device_vendor()

This method returns the currently chosen value of Provider.

And now, my problems and questions.

Problem 1: I can set AT&T set as the default Provider. This properly constrains Device and Plan to a set that is associated with u_provider=AT&T. However, if you change the Provider to another value, I want Device and Plan Lookup Select Boxes to be regenerated with Reference Qualifier called again.

Problem 2 solved: I set no default Provider, and Allow None. I would expect this to de-constrain-ify the Device and Plan. Instead it seems to do a full constrain and allow none to show. Perhaps because it's looking for Vendor=None. I fixed this with a revision to u_db692_mobile_device_vendor()

Problem 3: I seem to have a problem between Client Scripts versus Script Includes. The Script Includes let you use current. to access the values on the form. The Client Scripts disallow current., and instead allow you to use g_form. to get the values on the form. But I cannot find any method to force recalculating the Reference Qualifier.

Problem 4: I added javascript logging to my Reference Qualifier javascript method, and it seems like it's actually getting called when I change Provider, but the listings for Device and Plan do not update.

Idea 5: I had a brainstorm. Many of the forums I've seen about dynamic Reference Qualifiers talk about Reference forms. I'm wondering if I simply cannot use Lookup Select Boxes, and have to change the form to use Reference input boxes.