Your SAS programs, embedded in web apps and elsewhere

Stored process to display custom form in iframe always goes to index page of Stored process Web Appl

Reply
Occasional Contributor
Posts: 18

Stored process to display custom form in iframe always goes to index page of Stored process Web Appl

Hi, 

 

    We have 2 stored processes. First Stored process which creates a custom input form to accept the input parameters from user. When user submits this form , it executes second stored process which generates the report corresponding to given inputs. This is working perfectly fine. 

 

  Now we want to display the custom form in left iframe and upon submission of the form , second stored process should generate map in right iframe. To fulfill this requirement , we have created third stored process as given below. However , whenever we execute this stored process it creates 2 frames but displays SAS Stored process Web application index(home) page instead of custom form in left iframe. Could you please help me to figure out the root cause for displaying this index page instead of custom form in iframe and possible solution to this problem?

 

 

Stored Process code :

------------

%*let stpname=/Prod/Stored Processes/Test/DMM_Map_Visualization3;

%let stpname=%2FProd%2FStored+Processes%2FTest%2FDMM_Map_Visualization3;

data _null_;
format infile $char256.;
input;
infile = resolve(_infile_);
file _webout;
put infile;
cards4;
<HTML>
<head><title>Frame test</title></head>
<table style="width:100%">
<tr>
<td width="50%">
<iframe scrolling="no" width="40%" height="1000"
src="http://ServerName/SASStoredProcess/do?_action=form,properties,execute&_program=&stpname.&_target=rightside"
name="leftside">
</td>
<td width="50%">
<iframe src="" name="rightside" width="60%" height="1000">
</iframe>
</td></tr>
</table>
</HTML>
;;;;
run;

Ask a Question
Discussion stats
  • 0 replies
  • 191 views
  • 0 likes
  • 1 in conversation