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     Redirect after running focexec

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Redirect after running focexec
 Login/Join
 
Silver Member
posted
I'm trying to capture the results of my focexec for use in an ASP.net procedure. I'm not sure of the syntax or how it can be done. For example:


TABLE FILE CAR

BY CAR

IF CAR EQ 'TOYOTA'

ON TABLE SAVE AS FILE1

END

-RUN


-READ FILE1 &THECAR.A10.


-**Would like to take results of focexec to my .Net page


<%

response.redirect "https://MyURLGoesHere.aspx&THECAR="&(THECAR)&""

%>
 
Posts: 36 | Registered: December 21, 2005Report This Post
Virtuoso
posted Hide Post
I would use:
TABLE FILE CAR
BY CAR
IF CAR EQ 'TOYOTA'
ON TABLE SAVE AS FILE1
END
-RUN
-READ FILE1 &THECAR.A10.
-HTMLFORM BEGIN
<html>
<script>
location.href="https://MyURLGoesHere.aspx?THECAR=!IBI.AMP.THECAR;"
</script>
</html>
-HTMLFORM END


And don't forget a default action if there are no records.


Alan.
WF 7.705/8.007
 
Posts: 1451 | Location: Portugal | Registered: February 07, 2007Report This Post
Silver Member
posted Hide Post
Thanks Alan. I will test and let you know the results. Incidentally, if I had more than one variable to pass to the .NET program would the syntax be:


location.href="https://MyURLGoesHere.aspx?VAR1=!IBI.AMP.VAR1?VAR2=!IBI.AMP.VAR2;"
 
Posts: 36 | Registered: December 21, 2005Report This Post
Virtuoso
posted Hide Post
Exactly. But don't forget the semi-colon after VAR1! A variable comes in as !IBI.AMP.variable; .


Alan.
WF 7.705/8.007
 
Posts: 1451 | Location: Portugal | Registered: February 07, 2007Report This Post
Silver Member
posted Hide Post
Alan: The procedure seems to work fine with one variable being passed to the next page. However when I try to pass two variables:


I printed it out three ways:

-SET VAR1 = '12345';

-SET VAR2 = 'ABCDE';


A - location.href="https://MyURLGoesHere.aspx?VAR1=!IBI.AMP.VAR1;"

B - location.href="https://MyURLGoesHere.aspx?VAR2=!IBI.AMP.VAR2;"

C - location.href="https://MyURLGoesHere.aspx?VAR1=!IBI.AMP.VAR1;?VAR2=!IBI.AMP.VAR2;"

Option A and B print out fine, But option C prints out: 12345?VAR2=ABCDE


I can't seem to break out the second variable.
 
Posts: 36 | Registered: December 21, 2005Report This Post
Virtuoso
posted Hide Post
Sorry

That's me being inattentive.

location.href="https://MyURLGoesHere.aspx?VAR1=!IBI.AMP.VAR1;&|VAR2=!IBI.AMP.VAR2;"

replacing the second ? with an &|.

The ? starts the string and the first name/value pair,and all subsequent name/value pairs are separated with the &. The concat because otherwise WF thinks its an &var. Then your request.querystring can pick up VAR1 and VAR2.

This message has been edited. Last edited by: Alan B,


Alan.
WF 7.705/8.007
 
Posts: 1451 | Location: Portugal | Registered: February 07, 2007Report This Post
Silver Member
posted Hide Post
Thanks Alan. It worked perfectly.
 
Posts: 36 | Registered: December 21, 2005Report 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     Redirect after running focexec

Copyright © 1996-2020 Information Builders