Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid LinkMaster Limitation on Child Alias
Message
De
16/12/1999 20:59:00
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Grid LinkMaster Limitation on Child Alias
Divers
Thread ID:
00305046
Message ID:
00305046
Vues:
73
Hi all, I know how to use grid with linkmaster and relationalexpr to show:
One-to-Many Relationship in Same Form.

But I want to sort the Child Alias in another order, but it will make the grid show no data!!

For example, a Library system, Checking a Book Borrow history:

Book [Book_ID, ...]
/|\
BookHis [Book_ID, BorrowDate, ....]

So, the grid designed as:

.Recordsource = [BookHis]
.LinkMaster = [Book]
.RelationalExpr = [Book.Book_ID]

It works fine, but of cos, the borrowdate will be shown as ascending order as Natural input..
But of cos, show the descending order on BorrowDate will be best..

Well, once I do the code:

Select BookHis
Set order to BorrowDate Descending
Thisform.refresh

Then, the grid data all disappear or show all data.. >_<
Since the grid allow user to add new record on BookHis, I can't change it to SQL-readonly cursor to show..
What should I do?!
The weak wait for chance, The strong bid for chance,
The clever notch up chance, but The merciful give you chance.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform