Focal Point
[CLOSED] Passing Radio button value when button click

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/5167082876

September 07, 2015, 05:20 AM
Satya Dach
[CLOSED] Passing Radio button value when button click
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>,
September 07, 2015, 06:48 AM
Ramkumar - Webfous
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
September 07, 2015, 08:15 AM
Satya Dach
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
September 09, 2015, 04:42 AM
Ramkumar - Webfous
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
September 09, 2015, 07:46 AM
MartinY
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