Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


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

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[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, 2015Report 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, 2009Report 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, 2015Report 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, 2009Report 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: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

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-2020 Information Builders