Focal Point
[CLOSED] FOC1517 error

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

June 27, 2018, 01:42 PM
ratios
[CLOSED] FOC1517 error
Hi Fellow Focusers!

I need some help here. I have an application was was built in Apps Studio 8009. I'm trying to convert it to our new version 8202M. When I click on a link that should open up an html file and pass a variable named account_number, I keep getting a FOC1517 error. Anyone seen this before? What can I do to get rid of it? Any help will be greatly appreciated. See error image below.

Also here's the section of code that creates the link. This file runs perfect at run time, its when I click the link that I get the error.

PS. this all worked perfectly in the 8009 version.

TYPE=DATA,
     COLUMN=N3,
     TARGET='mapoutput',
     FOCEXEC=1_patient_bed_recommendation.htm( \
     ACCOUNT_NUMBER=ACCOUNT_NUMBER \
     ),
$


This message has been edited. Last edited by: FP Mod Chuck,


WebFOCUS App Studio 8202M
Windows, All Outputs
June 27, 2018, 02:02 PM
BabakNYC
Are you running these from the Domain or leaving them on the ibi/apps directory?

Does this open in App Studio without error?


WebFOCUS 8206, Unix, Windows
June 27, 2018, 04:12 PM
ratios
quote:
Are you running these from the Domain or leaving them on the ibi/apps directory?


I'm running it in the ibi/apps directory. Yes it opens up and runs with no error until I click my link


WebFOCUS App Studio 8202M
Windows, All Outputs
June 28, 2018, 03:47 AM
Wep5622
You're running an HTML file as if it were a FOCEXEC. No wonder the interpreter complains.

You probably should use URL= instead of FOCEXEC= in your drilldown.

That, or your HTML file also contains FOCUS code, in which case it should have a .fex extension and wrap the HTML inside -HTMLFORM BEGIN and END statements.


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
June 28, 2018, 07:54 AM
BabakNYC
Are you saying that in 8009 this drill down actually works? Was the FOCEXEC= hand coded? I don't think App Studio will allow you to set an HTM file to Execute Procedure from the GUI.


WebFOCUS 8206, Unix, Windows
June 28, 2018, 08:53 AM
ratios
quote:
Are you saying that in 8009 this drill down actually works?


Hi BabaNYC, yes it does work in 8009. Yes the FOCEXEC was handcoded.


WebFOCUS App Studio 8202M
Windows, All Outputs
June 28, 2018, 09:09 AM
BabakNYC
Then 8009 was allowing a technique that's not quite legit. Sometimes, those back doors get locked without notice. Any possibility you'd consider changing your approach? Perhaps there's an easier way to accomplish the same thing that won't put you in an unsupported/undocumented technique. What does the HTM file accomplish? A drilldown usually passes a value to another report/chart.


WebFOCUS 8206, Unix, Windows
June 28, 2018, 12:39 PM
Doug
Is this in a "-HTMLFORM BEGIN / END" code block?
June 29, 2018, 09:44 AM
ratios
quote:
Then 8009 was allowing a technique that's not quite legit. Sometimes, those back doors get locked without notice.

Ok thanks guys. I'll start the process over in 8202M and see what I can accomplish.


WebFOCUS App Studio 8202M
Windows, All Outputs
June 29, 2018, 09:45 AM
ratios
quote:
Is this in a "-HTMLFORM BEGIN / END" code block?

Hi Doug, No its not.


WebFOCUS App Studio 8202M
Windows, All Outputs
June 29, 2018, 12:28 PM
Hallway
Try replacing your drill down with this:
  
TYPE=DATA,
    COLUMN=N3,
    TARGET='mapoutput',
    URL=/ibi_apps/run.bip?( \
    BIP_REQUEST_TYPE='BIP_LAUNCH' \
    BIP_folder='IBFS:/WFC/Repository/[path to the folder that contains your report]/' \
    BIP_item='1_patient_bed_recommendation.htm' \
    ACCOUNT_NUMBER=ACCOUNT_NUMBER \
    ),
$

Of course making sure that BIP_folder contains the correct path to the folder that has your htm file in it.


Hallway

 
Prod: 8202M1
Test: 8202M4
Repository:
 
OS:
 
Outputs:
 
 
 
 
July 03, 2018, 12:18 PM
ratios
Thanks Hallway, I'll try that.


WebFOCUS App Studio 8202M
Windows, All Outputs