PowerPlus question: Linking/Lookups

Meeting place for R&R customers and clients to share tips and ideas. Post your questions, messages or problems here.
Post Reply
jmiskey
Posts: 46
Joined: Tue Oct 10, 2017 12:44 pm

PowerPlus question: Linking/Lookups

Post by jmiskey » Fri Apr 01, 2005 2:06 pm

I am writing a report for PowerPlus in Report Writer 10.0. My master table is PPCOMGR.dbf. From there I am trying to do lookups into the PPFSAER.dbf for each group in PPCOMGR. ____The problem I have is figuring how to create the link to do a lookup into the PPFSAER.dbf. The index field in PPFSAER is Tax ID (PPFSERID), but tax ID is not stored in PPCOMGR. ____Ideally, I would like to connect using the Sub Directory ID (PPCOMDIR)from PPCOMGR. I know how to create the database and index needed to use in the DLOOKUP function, but can figure out what to do about the linking field.____Has anyone figured out a way to do this?____Thanks

kfleming
Posts: 5795
Joined: Tue Oct 10, 2017 12:44 pm

=> PowerPlus question: Linking/Lookups

Post by kfleming » Fri Apr 01, 2005 3:33 pm

You can build a flexlink index for a relation in R&R. As long as there is common data in the two tables you are trying to relate, Flexlink should be able to get you there along with the possible need to build a calculated field using fields the From table.______Kathleen__R&R Support

jmiskey
Posts: 46
Joined: Tue Oct 10, 2017 12:44 pm

==> PowerPlus question: Linking/Lookups

Post by jmiskey » Fri Apr 01, 2005 3:58 pm

Well, there really isn^t common data between these two fields. I just need to pull information from the first record in the table I am trying to link to. Here is a simplified example.____In PPCOMGR, the first record has a value of "PPDB0001" for the PPCOMDIR field. What I want to do then, is return a value from the first record in database file found at R:PPLUSPPDB0001PPFSAER.dbf.____So essentially, the PPCOMDIR value is telling me the subdirectory under the PPLUS directory to look into. Under there, always look into the PPFSAER.dbf database file.____Continue on for all values of PPCOMDIR (PPDB0002, PPDB0003,...)____Is that possible?

jmiskey
Posts: 46
Joined: Tue Oct 10, 2017 12:44 pm

===> PowerPlus question: Linking/Lookups

Post by jmiskey » Mon Apr 04, 2005 1:46 pm

Any ideas?

kfleming
Posts: 5795
Joined: Tue Oct 10, 2017 12:44 pm

====> PowerPlus question: Linking/Lookups

Post by kfleming » Tue Apr 05, 2005 7:56 am

A lookup calc is indeed what you need however to use the lookup functions, you do need to have a index available for the related table. Although you can build a relation in R&R that is based on the record number from the related table, there is no similar provision in the lookup functions.____A very roundabout way to get this to work would be to build an export report that would export the first record from each table and then use RapidRunner to consolidate those exports into a single file. You could then add this consolidated export DBF via a relation in the original report. Its a bit time consuming to set up but would indeed work.____Kathleen__R&R Support

Post Reply