Focal Point
[Solved]Joins in AppStudio

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

October 27, 2014, 01:46 PM
Greg
[Solved]Joins in AppStudio
So I have my join built and I can see it in the procedure, and run it with out errors.

But how do I get the join fields to show up in the object inspector so I can put them in my report?

The only fields in the object inspector are from initially selected data source.

I am guessing it is something stupid I am just not seeing it.

Only my second day in AppStudio.

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


prod: WF 7.7.03 platform IIS on Windows 2007, databases: Oracle, , MSSQL

October 27, 2014, 02:04 PM
MartinY
If your JOIN is properly built it should be there.

The JOINed table "become" the last segment of the master table; scroll down maybe.
JOIN
 INNER EMPLOYE2.EMPINFO.EMP_ID IN EMPLOYE2 TO UNIQUE EMPDATA.EMPDATA.PIN
 IN EMPDATA TAG J1 AS J1
 END
TABLE FILE EMPLOYE2
PRINT
     EMPLOYE2.EMPINFO.EMP_ID
     J1.EMPDATA.PIN
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
$
ENDSTYLE
END



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
October 27, 2014, 02:48 PM
Greg
There is no joins in the code.
If I try to paste it in the source, I get an 'Error
parsing report req....'

>JOIN<
JOIN

pop up and I can not get back to the gui.


prod: WF 7.7.03 platform IIS on Windows 2007, databases: Oracle, , MSSQL

October 27, 2014, 03:18 PM
MartinY
Have you built the JOIN with the GUI ?
If so, have you ran it once built (it will check if it's a valid JOIN) ?
Then, if valid, have you saved it ?

From that point, you should have a JOIN if you open it in text editor.


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
October 27, 2014, 03:40 PM
Greg
I built the join in the GUI. It passes with no error.
I click save. I can see the join code at the bottom of the fex.

But the fields from the joined tables are not in the field list in the object inspector.


prod: WF 7.7.03 platform IIS on Windows 2007, databases: Oracle, , MSSQL

October 28, 2014, 07:23 AM
MartinY
Hi Greg,
Once you add a report right after the JOIN where the selected file is the parent file of the JOIN, the child is not becoming the last "segment" of the parent ?

Using the code in my previous post, once you open it with the GUI, EMPDATA is shown as the last segment of file EMPLOYE2.

Finally, if not, you may need to open a case and have remote assistance.


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
October 28, 2014, 07:39 AM
Greg
There is something strange going on with it. I can not see the join in the code at all in AppStudio.

In Dev 8 I can see the join code but non of the joined fields are in the fields tab of the object inspector.


prod: WF 7.7.03 platform IIS on Windows 2007, databases: Oracle, , MSSQL

October 29, 2014, 02:44 AM
StuBouyer
Greg,

You won't bve able to see the JOIN code from the Report tab, but you will see the effect as mentioned.

Have a look at the "Procedure View" control and you will have the option to open the JOIN in "Native Canvas" or "Text Editor". If you already have the JOIN open in "Native Canvas" you can press the "Show/Hide" to see the code in a Pop up. Otherwise you have to close the Join tab and reopen in "Text Editor"

I have noticed in App Studio 8009 that selecting any objects above the last Report is a bit hit and miss - but not sure if that is due to my dodgy mouse or not.

Also make sure that your JOIN obcject doesn't drop below the Report Object in the Procedure Viewer. Seems that you can drag and drop object now and I'm having issues moving things by mistake.


Regards

Stu


WebFOCUS 8.2.03 (8.2.06 in testing)
October 29, 2014, 11:15 AM
Greg
Its not your mouse. If I try to click on a join in the procedure panel it automatically jumps back to report.

If I type anything in the code. Even simple comment, it will not let me click on the report tab until I remove whatever I type.


prod: WF 7.7.03 platform IIS on Windows 2007, databases: Oracle, , MSSQL

October 31, 2014, 01:07 PM
Greg
It appears (at least for me) that you can not add the joins after the report painter is open and you have started on a report. You have to add the join from the procedure viewer first, then choose new report.


prod: WF 7.7.03 platform IIS on Windows 2007, databases: Oracle, , MSSQL

November 04, 2014, 08:28 PM
StuBouyer
Greg,

I've had some "luck" with adding/selecting components in the Procedure viewer by left clicking the component and while holding down the left button, click and hold the right button.

Then you can release the left button and select the option in the menu you want.

Also it appears that I get better responses when the App Studio window is maximized.

Definetly weird behaviour and I'll be raising a case when I finish outlining the bahaviour.

Cheers

Stu


WebFOCUS 8.2.03 (8.2.06 in testing)