As part of the conversion effort of my web sites to v40, I am starting to
heavily use rowsets.
Probably due to my incomplete understanding of the rowset internal
mechanisms, I am facing a behavioral issue when trying to use 2 rowsets
simultaneously.
Let's first make the case:
I want to display a sophisticated list of promotional rates for a list of
hotels. The rates list should be wrapped in the hotels list.
Ie
1. hotel1
1.1 Rate 1
1.2 Rate 2
2. hotel2
2.1 Rate 3
2.2 Rate 4
Given the volume of data for both hotels and rates required to build the
lists, I am creating two rowsets: 1 for the list of hotels, 1 for the list
of rates. The rowset for rates contains one column that holds the hotel id.
The display fuse loops on the rates rowset and use the property rowset using
the rowset.findrow method to fetch the hotel data when there is a change in
the hotel id and display the hotel data prior to listing the rates for that
property.
While the dump method shows that proper data have been retrieved and stored
in the two rowsets, the dump collection method of the collection holding a
rate row after next(self) is executed shows rate data that do not belong to
the record that are stored in the rate rowset according to the dump(self)
method.
Configuration:
MacOSX 10.3.9
4D standalone 2003.7
Active 4D 40b8
Rowsets created from selections
Most of the column data in both rowsets are generated from library methods.
Help is welcome
--
Robert Ernens
Look2BookOnline® - HCTBA Consulting
99c Résidence Les Bois du Cerf
91450 Etiolles
Tél.: +33.870.58.95.80
GSM : +33.6.11.78.44.68
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/