IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    fex (generationg) html (calling to) fex
Go
New
Search
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Member
Posted
Hi All,
i need to generate a html that holds the values in a dropdown menu.
the selected values from the html should go as an input to another fex file.

I have no idea of how to do it. Is it anyway possible?


Webfocus 7.1.3
OS: WindowsXP
 
Posts: 5 | Location: Webfocus7.1.3 | Registered: July 31, 2008Reply With QuoteEdit or Delete MessageReport This Post
Master
Posted Hide Post
Suresh,

Here is a very short example:
  
-* File ibifil.fex
-* This creates a file of HTML options for a list box. The file is an ASCII file and its name is SOPT
DEFINE FILE CAR
NSEAT/I1=SEATS;
ASEAT/A1=EDIT(NSEAT);
RBSEATS/A30 ='<option value="' | ASEAT | '">' | ASEAT | '</option>';
END
SET HOLDLIST=PRINTONLY
TABLE FILE CAR
BY
RBSEATS
ON TABLE SAVE AS SOPT
END
-RUN
-* This creates the HTML which will include the SOPT file and execute the fex IBIEX
-HTMLFORM BEGIN
<form method="POST" action="/ibi_apps/WFServlet" >
<input type='hidden' name='IBIF_ex' value="ibiex.fex">
<Select name='SEATS' size=1>
!IBI.FIL.SOPT;
</SELECT>
<INPUT TYPE='submit' NAME='Submit' VALUE='Submit'>
-HTMLFORM END


The IBIEX.fex:
-* File ibiex.fex
TABLE FILE CAR
SUM SALES BY COUNTRY
IF SEATS EQ &SEATS
END


Daniel
wf 7.6/WinXP/IIS/SSA
www.wrapapp.com
www.srl.co.il

 
Posts: 591 | Location: Tel Aviv, Israel | Registered: March 23, 2006Reply With QuoteEdit or Delete MessageReport This Post
Platinum Member
Posted Hide Post
If you use html painter in dev studio, it's easy enough.
Assign an amper variable to hold the input data to your main fex. Then on html layout painter add the control to display your report. It will prompt you for the control to use for your &var. Pick the drop-down control. Then on the parameters tab on the right, choose how you want to populate the drop-down box - either by master or by fex. If you need to create a fex to produce the data to put on the drop-down, then create the fex like Danny's first Table request above and put that fex name on that drop-down parameter.
Good luck.


WF 7.1.3 WinXP
 
Posts: 153 | Location: Orlando, FL | Registered: October 17, 2006Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    fex (generationg) html (calling to) fex

Copyright © 1996-2008 Information Builders, leaders in enterprise business intelligence.