I'm attempting to create a Radio button in a HTML report that enables other controls conditioned on which button value is selected. For example, if the options on my radio button are 'CustomerID', and 'All CustomerID', I'd like an edit control to pop up when 'CustomerID' is selected, so I can manually type in a CustomerID. 'All CustomerID' would default to include all IDs. I've been able to do this in the text editor version of my report as seen below.
-IF &CUSTOMERID EQ _FOC_NULL THEN GOTO ALLCUST ELSE GOTO CUST; -CUST WHERE ORDERS.ORDERS.CUSTOMERID EQ '&CUSTOMERID'; -ALLCUST
How do I replicate this in HTML? ThanksThis message has been edited. Last edited by: FP Mod Chuck,
March 11, 2020, 01:55 PM
MartinY
You have several options depending on your ability on coding.
In your HTML canvas/composer add your radio button (to select either All or specific customer) and a text box (for customerID entry) Then using either radio button Event handler or Task/Animations control the display or not of the entry control field and its value
Could be as simple as per below. In a domain, create a new Text Editor, paste below code then save as .htm type file
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
March 11, 2020, 02:54 PM
Mike in DeLand
Does it have to be a radio button? Why can't you have a regular dropdown box and add the "All" option to it?
Webfocus 8 Windows, Linux
March 12, 2020, 02:06 PM
MartinY
Could also be, but from what I understand there is only two choices : All or Specific CustID. And when the second is selected ModGuy wants to have an entry box to provide the CustId and not a list of all CustID
But your option is also valid if you want to provide a list of all CustID from which you pick from
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