Ok, here's what I did.
We have a Guided AdHoc screen with an option for users to save their query selection. We also have a domain called Personal Content that users can save these selections to (they have to navigate to their My Content folder within that domain). So I created a procedure to retrieve the .htm files in the Personal Content directory for that specific user:
-SET &USR = CNCTUSR('A7');
-SET &USR = LOCASE(&USR.LENGTH, &USR, 'A&USR.LENGTH');
-TYPE &USR
-SET &WHEREPATH = '/WFC/Repository/Personal_Content/~'|&USR;
TABLE FILE WF_REPOSOBJ
PRINT OBJNAME
COMPUTE PC_URL/A200 = 'http://servername/ibi_apps/views.bip'|'?'|'BIP_REQUEST_TYPE=BIP_RUN'|'&'|'BIP_folder=IBFS:'||PRT_PATH||'&'|'BIP_item='||OBJNAME;
-*WHERE PRT_PATH CONTAINS 'PERSONAL_CONTENT' AND PRT_PATH CONTAINS &USR
WHERE PRT_PATH CONTAINS '&WHEREPATH'
AND OBJNAME CONTAINS '.htm'
ON TABLE PCHOLD FORMAT XML
END
I then added a dropdown box to my HTML file and loaded the OBJNAME as the display and PC_URL as the value (with a "no selection" option enabled).
I then had to add this java script to my file in the Embedded JavaScript/CSS tab:
var noselection = this.options[this.selectedIndex].value;
if (noselection == 'FOC_NOSELECTION')
{return;}
else
{
iframeAdHoc_sub.open( this.options[ this.selectedIndex ].value, '_self');
}
When a user selects the filename from the dropdown list it automatically opens that file into the frame.
WebFOCUS 8007