Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Passing Radio button value when button click
Go
New
Search
Notify
Tools
Reply
  
[CLOSED] Passing Radio button value when button click
 Login/Join
 
Member
posted
I have fex file like below
-SET &CHK_MSG1=&chk_msg_1;
-SET &CHK_MSG2=&Chk_msg_2;
-SET &CHK_MSG3=&chk_msg_3;



-IF (&CHK_MSG1 EQ 1 AND &CHK_MSG2 NE 2 AND &CHK_MSG3 NE 3) THEN GOTO DISP_BGN1;

-IF (&CHK_MSG1 NE 1 AND &CHK_MSG2 EQ 2 AND &CHK_MSG3 NE 3) THEN GOTO DISP_BGN2;

-IF (&CHK_MSG1 NE 1 AND &CHK_MSG2 NE 2 AND &CHK_MSG3 EQ 3) THEN GOTO DISP_BGN3;


-TYPE &CHK_MSG1

-TYPE &CHK_MSG2

-TYPE &CHK_MSG3

-EXIT



-DISP_BGN1

APP HOLD henkel_mng_db

DEFINE FILE CAR
MSG/A100 = 'THIS MESSAGE IS FOR RELEASE1';
END

TABLE FILE CAR
SUM
MSG AS 'Note'
WHERE COUNTRY EQ 'ENGLAND';
ON TABLE HOLD AS BRT_MSG1
END

-RUN
-EXIT


-DISP_BGN2

APP HOLD henkel_mng_db

DEFINE FILE CAR
MSG/A100 = 'RELEASE2 MESSGAE';
END

TABLE FILE CAR
SUM
MSG AS 'Note'
WHERE COUNTRY EQ 'ENGLAND';
ON TABLE HOLD AS BRT_MSG1
END

-RUN
-EXIT


-DISP_BGN3

APP HOLD henkel_mng_db

DEFINE FILE CAR
MSG/A100 = 'TECHNICAL ERROR';
END

TABLE FILE CAR
SUM
MSG AS 'Note'
WHERE COUNTRY EQ 'ENGLAND';
ON TABLE HOLD AS BRT_MSG1
END

-RUN
-EXIT

from the HTML launch page when I click submit button I want to pass the value of Radio button, but when I am trying in HTMl it is asking for other 2 radio button options to be selected.

How to get this working, I am using 8.0.8

Thanks in advance for help

This message has been edited. Last edited by: <Kathryn Henning>,
 
Posts: 19 | Registered: June 26, 2015Reply With QuoteReport This Post
Guru
posted Hide Post
Not clear with your requirement.

Still If HTML page forces you to select any parameter dont have it as a mandatory parameter. Choose the input element and mark the "Is Seletion Required" property as No or Not set.


Thanks,

Ramkumar.
WebFOCUS/Tableau
Webfocus 8 / 7.7.02
Unix, Windows
HTML/PDF/EXCEL/AHTML/XML/HTML5
 
Posts: 394 | Location: Chennai | Registered: December 02, 2009Reply With QuoteReport This Post
Member
posted Hide Post
I have 3 Radio Buttons, after running the HTML if I select first button and click submit it is not running asking to select other 2 buttons as well


WebFOCUS 8.1
Windows, PPT
 
Posts: 19 | Registered: June 26, 2015Reply With QuoteReport This Post
Guru
posted Hide Post
Ok. Thank you. Now also not clear. Thanks.


Thanks,

Ramkumar.
WebFOCUS/Tableau
Webfocus 8 / 7.7.02
Unix, Windows
HTML/PDF/EXCEL/AHTML/XML/HTML5
 
Posts: 394 | Location: Chennai | Registered: December 02, 2009Reply With QuoteReport This Post
Virtuoso
posted Hide Post
Check properties of your radio button, their "Is Selection Required" is probably set to "Yes" as Ramkumar mentioned.

You can also add the following in your HTML script
function button1_onclick(ctrl) {

var rad = IbComposer_getCurrentSelection('radio1');

alert (rad);
}


This will display your radio selection values when button clicked.

Another thing is to add at the beginning of your fex before your -SET command:
-TYPE &chk_msg_1, &chk_msg_2, &chk_msg_3

-EXIT

-SET &CHK_MSG1=&chk_msg_1;
-SET &CHK_MSG2=&chk_msg_2;
-SET &CHK_MSG3=&chk_msg_3;


You must validate that your parameters are passed properly before trying to assign them to another parameter (which here is not necessary as I can see because you can work with the original parameters).


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
 
Posts: 2346 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Passing Radio button value when button click

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