Focal Point
[SOLVED] InfoAssist JOIN

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/4567039096

November 20, 2018, 04:28 PM
Doug
[SOLVED] InfoAssist JOIN
Is the following possible:
JOIN FIELD1 IN FILE1 TO FIELD1 IN FILE2 TAG J001 AS J001
JOIN FIELD1 IN FILE1 TO FIELD1 IN FILE3 TAG J002 AS J002

The reason that I ask is that when I do this, I only see the fields from line two of the two JOINs.

Or, do I need to do something like the SQL CLE, when I do the first JON and HOLD it, the do another JOIN from that to FILE3?

FILE3 is a synonym to an Excel Spreadsheet.

An explanation behind your 'Yes' or 'No' would be appreciated.

Thanks, Doug

This message has been edited. Last edited by: Doug,




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
November 20, 2018, 04:57 PM
Doug
Update:

I did a TABLE FILE request / HOLD FORMAT FOCUS on FILE3 to create a FOCUS file, with the synonym. And the JOIN works as above Yea!.

the question remains: Why didn't it work from the Synonym for the Excel file? My quest continues...

This message has been edited. Last edited by: Doug,
November 20, 2018, 05:02 PM
FP Mod Chuck
Doug

This looks like it was done correctly. Do a ? JOIN after the request and see what it shows.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
November 20, 2018, 05:05 PM
Doug
The ? JOIN shows that the three files are JOINed. But only the fields from the 2nd JOIN are available in IA.

I'll be back on this on Monday... I'm off to California...

This message has been edited. Last edited by: Doug,
November 21, 2018, 07:50 AM
MartinY
Could it be as ridiculous as you are missing the END after each JOIN...


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
November 26, 2018, 03:17 PM
Doug
quote:
Could it be as ridiculous as you are missing the END after each JOIN...

Actually, the END statement is only needed on a multi-line JOIN. It's not required in the code in my original post... Unless something has changed with that. If so, What Changed?

The code in my original post was simplified code taken from the IA Generated code, which did not work when using it as IA generated it (IA generated Multi-line statements with the END as the terminator of each JOIN), simplified down to single line JOINs for the sake of the FP display.




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
November 26, 2018, 03:26 PM
MartinY
quote:
simplified down to single line JOINs for the sake of the FP display

Hasn't thought that you did that.


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
November 26, 2018, 04:10 PM
Doug
OK, that wasn't clear. The case remains that the JOIN, done as the two single line JOINs or 'as IA created them as multi-line JOINs' didn't work.
November 27, 2018, 03:25 AM
Tony A
Trying to reproduce your exact situation (Excel source files and using IA) and it works fine.

I created a workbook with three worksheets, each with two columns of data.

The first row is a header row to provide field names.

The first column is named "FIELD1" the second column is named "FILE#_FIELD2" where # relates the worksheet number.

After creating the synonyms for the three worksheets, I could open IA using the first worksheet and the used Data/Join to add the other two.

Result was all three files are displayed in field selector.


T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
November 29, 2018, 09:33 AM
Doug
Thanks Tony, Chuck, and Martin,

That clarified this and I got it to work as it should.