-Collapse +Expand
Paradox
Search Paradox Group:

Advanced
Paradox To/From
To/FromCODEGuides
Paradox Store
PRESTWOODSTORE

Prestwood eMagazine

April Edition
Subscribe now! It's Free!
Enter your email:

   ► MB LobbyCorel Paradox / ObjectPAL Coding BoardParadox Reports Topic   Print This     

changing non master table in report data model

changing non master table in report data model in Paradox Reports topic (part of our Corel Paradox / ObjectPAL Coding group).

Quick Search: changing   changing non   changing non master   table report   data model  
Shores
Bologna, -- IT

Hi!

I'm already using the ReportOpenInfo variant of the open method to change the master table that is used on a report, as to permit the user to restrict on which records to run the report on (something like "print the address book of clients beginning with letter A").

I was wondering if there is a way to replace a table in the report's data model with another one, since there are times when it would be nice to filter the child table in a 1 to Many relation; for example, if I want to print the list of invoices with the associated payments, but I need to see payments status as if we were two months ago: I cannot put this filter on invoices, since this would exclude, for example, invoices that have no payment in the requested range, and I should instead pre-filter the list of payments that would be used as a child table.

dmRemoveTable/dmAddTable cannot be used for this purpose, as they make the UI object become disconnected from the fields; I would need something as dmReplaceTable (that doesn't exist!Big Grin!) which can replace a table in the dm with another WITHOUT losing association of the various fields...

Any ideas?Big Grin!Thanks!

Frelance IT consultant and programmer since 1991: www.atipica.it

 Posted 15 years ago (Thread Starter)
Comment Quote
About Shores
Visit Profile
Approved member.
Member subscribes to this thread with a verified email.

Post ID #14500, 2 replies
Thread Started 2/16/2011 9:11:49 AM
View Counter=3948
Last Reply Posted 2/22/2011 4:57:02 AM)
Location=Bologna, -- IT 
Joined=17 years ago   MB Posts=11   KB Comments=3  
Shores
Bologna, -- IT

No ideas? :)

Frelance IT consultant and programmer since 1991: www.atipica.it

 Posted 15 years ago (Thread Starter)
Comment Quote
About Shores
Visit Profile
Approved member.
Member subscribes to this thread with a verified email.

Post ID #14501 (Level 2) and Parent is 14500
Reply Posted 2/22/2011 3:59:16 AM
Location=Bologna, -- IT 
Joined=17 years ago   MB Posts=11   KB Comments=3  
Most Recent Post
Daniel Fought
Prestwood IT
Home office in Fresno, CA.

I would probably make the child table the results of a query and run the query prior to opening the report.  That way you dont have to replace the table. 

Interesting problem though.  Since paradox can replace the table in a datamodel without loosing the field links, it should be possible to do this interactivaly.  Of course if the table structure is different field links would be lost.  For example, if the child table is not available when the report opens paradox gives you the opprotunity to find or replace the table in the datamodel.

 

Dan Fought
Senior Programmer Analyst
Prestwood IT Solutions
http://www.prestwood.com

 Posted 15 years ago
Comment Quote
About Daniel Fought
Visit Profile
Approved member.
Member subscribes to this thread with a verified email.
About Daniel Fought
Danial Fought is a senior programmer analyst with Prestwood IT where he develops custom Windows software and custom websites. When Dan is not coding for clients, he participates in this online community. Coding specialties include Paradox/ObjectPAL, MS Access, Visual Basic, and VS.Net/VB.Net.

Post ID #14502 (Level 3) and Parent is 14500
Reply Posted 2/22/2011 4:50:37 AM
Location=Home office in Fresno, CA. 
Joined=24 years ago   MB Posts=401   KB Posts=12   KB Comments=4  

Revive Thread!

Add a comment to revive this old thread and make this archived thread more useful.

Write a Comment...
Full Editor
...
Sign in...

If you are a member, Sign In. Or, you can Create a Free account now.


Anonymous Post (text-only, no HTML):

Enter your name and security key.

Your Name:
Security key = P1213A1
Enter key:
Icon: A Post    Thread    Idea    Important!    Cool    Sad    No    Yes    Includes a Link...   
Thread #14500 Counter
3948
Since 2/16/2011
Go ahead!   Use Us! Call: 916-726-5675  Or visit our new sales site: 
www.prestwood.com


©1995-2026 Prestwood IT Solutions.   [Security & Privacy]