Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] DropDown Master File Where Condition

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] DropDown Master File Where Condition
 Login/Join
 
Platinum Member
posted
I have a master file created on top of a stored procedure which accepts an input variable username. I need to be able to use the result output in the dropdown values. How do I do this?


  
TABLE FILE CONTRACT_LIST
PRINT
CONTRACTNAME
WHERE @WFUSERNAME = 'testuser'
ON TABLE HOLD AS CONTRACTLIST
END

 

-RUN

 

TABLE FILE db_contracttab
PRINT
CONTRACTNAME
WHERE CONTRACTNAME EQ &CONTRACTNAME.(FIND CONTRACTNAME IN CONTRACTLIST |FORMAT=A30).CONTRACT NAME:.QUOTEDSTRING;

END



Error occurred during Autoprompt processing
CONTRACTNAME
NoDB : (FOC205) THE DESCRIPTION CANNOT BE FOUND FOR FILE NAMED: CONTRACTLIST

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


App Studio Version 8202
windows Platform
SQL Server 2008/2012
 
Posts: 183 | Location: TX | Registered: January 22, 2007Report This Post
Member
posted Hide Post
Hi,

use ( APP HOLD APPNAME )


APP HOLD baseapp

TABLE FILE CONTRACT_LIST
PRINT
CONTRACTNAME
WHERE @WFUSERNAME = 'testuser'
ON TABLE HOLD AS CONTRACTLIST
END



-RUN


TABLE FILE db_contracttab
PRINT
CONTRACTNAME
WHERE CONTRACTNAME EQ &CONTRACTNAME.(FIND CONTRACTNAME IN baseapp/CONTRACTLIST |FORMAT=A30).CONTRACT NAME:.QUOTEDSTRING;

END

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


WebFOCUS 7x & 8x

 
Posts: 13 | Location: Toronto, ON, CA. | Registered: June 27, 2013Report This Post
Virtuoso
posted Hide Post
ATTENTION !!!

Using APP HOLD folder (as NARSA sample baseapp) may create problem if more than one user can execute your procedure "in the same time".

Both users will create and hold the file in the same location with the same name and potentially with different data since the WHERE clause is on the user name.
In result that user1 may see the data from user2 or vice versa.

Even this said, it will not work because the file must exist prior to the fex execution to have the autoprompt working which is not the case since it will exist only on fex execution.
The reason of that it's because autoprompt run prior to the file creation.

Try with the below and you will have the same error :
-* Part A
APP HOLD baseapp
END
TABLE FILE CAR
BY COUNTRY
WHERE COUNTRY NE 'ITALY';
ON TABLE HOLD AS COUNTRYLIST FORMAT FOCUS
END
-RUN

APP HOLD
END
-* End Part A

-* Part B
TABLE FILE CAR
PRINT CAR
      MODEL
BY COUNTRY
WHERE COUNTRY EQ &COUNTRY.(FIND COUNTRY IN baseapp/COUNTRYLIST |FORMAT=A10).Country:.QUOTEDSTRING;
END

But if you run the file creation first (Part A) then the second part (Part B) with the autoprompt, it will work because the file exist

Is this part of a Portal where other option than autoprompt may be used ?


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
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Guru
posted Hide Post
You can always use foccache to keep it specific for a user session to hold files.


-********************
Sandbox: 8206.10
Dev: 8201M
Prod:8009
-********************
 
Posts: 289 | Location: Houston,TX | Registered: June 11, 2004Report This Post
Virtuoso
posted Hide Post
quote:
Originally posted by vaayu:
You can always use foccache to keep it specific for a user session to hold files.

True, but autoprompt won't work anyway if the file doesn't exist at first prior to execution


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
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] DropDown Master File Where Condition

Copyright © 1996-2020 Information Builders