Using radio buttons to load movies
I'm trying to have a radio button load a movie if it is
checked. I can't seem to get this to work.
RButtonGroup1.rawValue gives the value of the raid button. This should help you determine the value selected in each radio button group.
For the total calculation I would use sample code like following....this is JS code in "Calculate" event of the total field.
var tot = 0;
if (RButtonGroup1.rawValue != "") tot = tot+RButtonGroup1.rawValue;
if (RButtonGroup2.rawValue != "") tot = tot+RButtonGroup2.rawValue;
if (RButtonGroup3.rawValue != "") tot = tot+RButtonGroup3.rawValue;
//finally
this.rawValue = tot; //you will have total assigned to this field
if you still have difficulty please attach a sample in your response.
Similar Messages
-
Using Radio Buttons in widget to store Data
I am building my 2nd widget and I am curious to know if anyone has used radio buttons within the edit mode to change/modify/set variables before. I don't want a radio button widget. I want a complex menu widget that will hide/show selected items within my playbar such as the forward button.
Currently I am using User variables to determine all the hide/shows for my playbar. But I would like to make it more user friendly by having a visual widget people could use to turn buttons on off, set url's for help documents etc. And have everything be based on a per slide basis. just wondering if anyone has done anything like this in the past.
The other part of this is, can I use a widget to construct User variables. In As2 I was able to create variables in root and then set those accordingly without having to add them to every projects user variables. But it appears in AS3 it is not possible to create a variable of a clip/objects parent is anyone familiar with this?
Thanks ahead of time.
zsrcHi zsrc,
If you're using WidgetFactory then here's a post that might give you the information that you need.
http://www.infosemantics.com.au/widgetking/2010/11/widget-properties-how-theyre-used/
As far as the code you'd write in your circumstance, a radio button's selected property tells you if it's... well... selected. So you can write that to a widget property like so:
properties.MyPropertyName = myRadioButton.selected;
That line would be inside the saveProperties template method as mentioned in the article above.
override protected function saveProperties():void
properties.MyPropertyName = myRadioButton.selected;
Then you can read that property back when the widget is in the published Captivate movie.
override protected function enterRuntime():void
if (properties.MyPropertyName == true) {
// The Radio Button was selected. Do stuff
} else {
// The Radio Button wasn't selected. Do stuff? -
How do I search a site using radio buttons
I am trying to search a site using radio buttons. I have one table and 5 columns. I have 5 radio buttons marked like 01, 02, 03,04,05. I am using Dreamweaver cs5 php, when I click the radio button 01 I will like to get the response with all 01 files. I will like to mention that the file names are like 01-010-1, 01-010-2 and than 02-020-1 and so fourth I do not know how to write the advance query
This is what I have
SELECT QBF, ADDRESS, NATSO, TSOCNT, PDF (this re my db columns)
FROM alldwgs (this is my table)
WHERE QBF like %colname% (this is the column that contains the file names 01-010-1 etc)
ORDER BY QBF ASC
I don’t know what to write on the variable box
Name: colname
Type: text
Default value: 01
Run time value: $_GET['QBF']
I hope that you understand my question I am new to this. Thank you very much for your responseThank you for your reply. I am new to editing a pdf and using these programs. I have subscribed to Acrobat XI Pro. When I try to edit the document it directs me to LiveCycle. I cannot move the table in LiveCycle. It won't let me, and I cannot make changes in XI Pro as I did in the trial as it directs me to edit in LiveCycle. Am going in circles.
-
How to use Radio Buttons in SAP BI 7 for a set of three fields?
Dear SAP Gurus,
We are using SAP BI 7. We need to use Radio button to select one field name (out of a set of three fields) which
appeared on selection screen.
The scenario is; we have three fields
1) Field Name A
2) Field Name B
3) Field Name C
Now, we need to select one field(using Radio button) from the above and later the report related to the above
selected field should be displayed.
The three reports will be as follows:
1) Report A
2) Report B
3) Report C
if Field Name A is selected then Report A will be displayed,
if Field Name B is selected then Report B will be displayed and
if Field Name C is selected then Report C will be displayed.
To display the report we have two cases;
1) There will be a common selection screen and all the three reports will come in single workbook but in seperate worksheet.
2) There will be a common selection screen and all the three reports will come in same worksheet, one after the other.
Is it possible to create the report in this manner, if yes, please suggest the steps.
Regards,
DV.I think you would just use commands to do the following:
1. Hide report Analysis Item 2 and Analysis Item 3 if the 1st button was pushed.
2. Hide report Analysis Item 1 and Analysis Item 3 if the 2nd button was pushed.
3. Hide report Analysis Item 1 and Analysis Item 2 if the 3rd button was pushed.
Hope that helps... -
How to disable the inputfield using radio button dynamically in module pool
How to disable the inputfield on the screen using radio button dynamically in module pool.
Please suggest .
Thanks.
Edited by: Lavanya YH1504 on Jul 30, 2010 1:20 PMI got it thank you.
LOOP AT SCREEN.
if screen-GROUP1 = 'LA1'.
If RADIO1 = 'X'.
SCREEN-INPUT = '0'.
MODIFY SCREEN.
ELSEIF RADIO2 = 'X'.
screen-input = '1'.
ENDIF.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDMODULE. " STATUS_0100 OUTPUT
Edited by: Lavanya YH1504 on Jul 30, 2010 1:51 PM -
How to use Radio buttons in WAD to select different condition in a query
Hi Guru,
I am new to WAD, I want to use radio buttons in selection screen of query for different selections based on selection criteria. I am aware of executing different queries using different radio buttons. but i want to use single queries for different radio button selections.
I have found some relevant topic to it but not got exact solution. Please guide me.Hi Avinash,
Drag a DropDown webitem into your template. Under DropDown webitem properties, Data Binding -> Fixed List of Options.
Fixed Option -> Action -> Command via Command Wizard, Command -> Commands for Data Providers -> Data Provider Commands for Filter Values -> SET_SELECTION_STATE_SIMPLE. Data Provider Affected -> choose the main DP Query here. Characteristic -> choose Employee Group characteristic here as present in your DP Query. Sign -> INCLUDING, Operator -> EQUAL_SELECTION, Equals -> MEMBER_NAME, Member Name -> specify the value here i.e. Employee1 etc.
Repeat above Fixed Option step for Employee2, Employee3 etc. selections. For 'All' option choose Command CLEAR_SELECTION_STATE with Data Provider Affected as the main DP Query & Characteristic as Employee Group.
--Priya -
Issue in using radio button in module pool
For same field I need 2 different search help. Based on radio button on screen I need company codeu2019s from different table. Issue is, at execution radio button remains blank. Radio button works only when I use them in PAI under CASE SY-UCOMM. WHEN u2018DONEu2019. IF Normal_Run = u2018Xu2019u2026u2026
Can I use radio button with the below code. Please refer the below code.
PROCESS ON VALUE-REQUEST.
FIELD COMP_CODE MODULE POPULATE_COMP_CODE.
MODULE POPULATE_COMP_CODE INPUT.
IF REPEAT_RUN = 'X'.
PERFORM COMP_CODE_POPULATE.
ELSEIF NORMAL_RUN = 'X'.
PERFORM COMP_CODE_POPULATE_N.
ENDIF.
ENDMODULE.
FORM COMP_CODE_POPULATE .
SELECT COMP_CODE
FROM ZIFRS_D_PROCESS
INTO CORRESPONDING FIELDS OF TABLE VALUES_TAB_CC
WHERE PROC_NAME = 'DEPRECIATION RUN'.
READ TABLE VALUES_TAB INDEX 1.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = 'COMP_CODE'
DYNPPROG = PROGNAME
DYNPNR = DYNNUM
DYNPROFIELD = 'COMP_CODE'
VALUE_ORG = 'S'
TABLES
VALUE_TAB = VALUES_TAB_CC.
ENDFORM. " COMP_CODE_POPULATION
FORM COMP_CODE_POPULATE_N .
CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
EXPORTING
TABNAME = '/BI0/SCOMP_CODE'
FIELDNAME = 'COMP_CODE'
DYNPPROG = PROGNAME
DYNPNR = DYNNUM
DYNPROFIELD = 'COMP_CODE'.
ENDFORM. " COMP_CODE_POPULATE_N
Moderator Message: Please use "code" tags to format the code snippet.
Edited by: Suhas Saha on Nov 23, 2011 5:13 PMHi
You need to make the Grouping for these Radio button on the screen
Search for how to make Radio buttons grouping
radio buttons in screen painter
http://help.sap.com/printdocu/core/print46c/en/data/pdf/BCDWBTUT/BCDWBTUT.pdf
and search for Radio button Group in this document
assign a Function Code for one of the radio buttons(It allows for only one Radio Button)
This triggers automatic PAI so when you take the F4 Help this is readily available
In TOP include make sure you define the variables corresponding to the Radio buttons on the screen and also provide default value X to one of the Radio buttons
Hope this serves your purpose
Cheerz
Ramchander Rao.K -
Related selects using radio button
Hi All,
I wanna use radio button with three options and one dropdown
box .
my problem is i wanna choose option from radio button and run
the related query to get the values into dropdown box and then
choose the value from drop down and submit it to another page.
Any ideas ? please help me.
Thanks in advanceGoogle coldfusion related selects and adjust the javascript
so that you are using radio buttons instead of a select.
I recently posted my own code. Look for the keyword
etiologydetail. -
Using radio button to go to marker
Hi,
I'm using Director Mx for Windows. When the user checks a
radio button (cast member "bon"), I want the movie to jump to a
certain marker ("start"). I'm currently using the script below,
(which uses the hilite property) that I thought would solve the
problem, but nothing happened when I tried it.
on mouseUp me
if member("bon").hilite = TRUE then go to "start"
end if
end
Does anyone have any idea of what might work? Thanks so
much.> on mouseUp me
> if member("bon").hilite = TRUE then go to "start"
> end if
> end
Your code should work, though half of what's there is
unnecessary.
Simplification:
on mouseUp
if member("bon").hilite then go "start"
end
That extra "end if" won't cause problems here, but in more
complex scripts
it can really get you in trouble. You only need that if
you're doing more
than one command within the "if" or "else" if there is one.
You can
generally tell if something like that is extra by the fact
that the
auto-indentation is off. Every "end if" should be at the same
indentation
as its matching "if". If it isn't, then something is wrong.
As for the other changes, the "me" is only necessary if
you're actually
going to use it in the script. Leaving it in is harmless, but
just extra.
The "= TRUE" is unnecessary in most cases, because saying "if
A" is exactly
the same as saying "if A = TRUE". And the word "to" is never
needed in a
"go" statement. (These are optional changes that won't cause
or fix any
problems, but saves a bunch of extra typing.) -
Can't get Simple button to Load Movie Clip
Hi I've looked around for the answer to my question on this
forum
but havent found it so here it goes. I am working on this
company's
Flash site that was built by an outside studio. I am using
CS3.
The url to the site is
http://www.bubbakeg.com.
(this link will take you to the main page click the shadow
graphic
on the left under Bubba and this will take you to the site I
am speaking
of. The site is basically 5 different pages or movie clip.
What I am
trying to do is basically change the "Spring Break" middle
graphic
(which is a Movie Clip) on the HOME page and add a simple
button
that will direct the user to a new page. When I replaced the
graphic
with a new Movie clip there was no problem but I have added
a
button to load a new page (movie clip) and nothing happens.
This
button is in the movie clip of the new graphic which is
called up
when the page loads. If i take this button and just put it
on the
Main Stage in Scene 1 by itself it works and loads the page
(movie clip). It does not however when it is embeded in the
Movie
Clip. The Flash site is basically 5 different Movie Clips
loaded into
an "Empty Clip". This empty clip has a timeline with each of
the
clips labeled and with their respective sized placeholders.
And
when you click on either the links on the Nav bar or the
graphic
for each page it loads that movie clip on the main page. It
seems
like the button only wants to work on the main timeline. I
have
even replaced the code for the "Contact" button with the code
for the new button and it worked (opening new page). Here is
the
code for the new button that does not work:
on (release) {
_root.contentHolder.myHeight = 307;
_root.contentHolder.newLoc = 9;
heightAnimation();
I know the location and height from the above code are
referring to the placement and sizing of each movie clip
in the "Empty Clip". As i said before this heightAnimation
and the resizing of the new clip works fine when the
button resides in Scene 1 on the Main Timeline but not
within the new movie clip (graphic Ive created.)
I will upload the main chunk of the code that resides
in Scene 1 on the first frame of the "Actions" layer.
If anyone has any ideas I would appreciate it very much!
Please let me know if I can provide anymore info.
Thanks!
Gregchange:
function newLayerBT_CLICK(MouseEvent):void{
to:
function newLayerBT_CLICK(e:MouseEvent):void{ -
Using Radio Buttons in queries.
Dear Experts,
I am working on some queries which has radio button option in R/3.
I need to develop the same queries in BI 7.0.
Do i need to develop separate queries for each radio button or is there any other option to do ?
Say for instance, i need to develop some queries based on different dates like
Loading date, actual good movement date, ETA date like.For all the dates radio buttons are provided in R/3 reports.How to inculcate the same in BI 7.0.
pls suggest .
Thanks in advance.
Regards
GK Ddoes it need to look identical or just have the same functionality?
if its just the functionality you can just do it with one and make the selection variables optional...its probably a better idea to try and train the users on the BEx interface as it will benefit everyone in the long term -
Using radio button selection in multiple tables
Hello All,
I've got a bit of a design issue and it being a Friday my brain is a bit foggy and I can't seem to figure out a solution.
what I want to do is have 3 tables. The user should only be able to select one line from any of the three tables.
I can do this by having events that clear down selection on the two other tables on any selection of the third, but the select buttons of tables don't really give the UI impression that only one row can be selected. To do this I'd like to use the radio button element.
so
table A
choice - name
(o) - Anne
(o) - Bob
(o) - Charlie
Table B
choice - name
(x) - David
(o) - Ellen
(o) - Fran
Table C
choice - name
(o) - George
Here the entry in table B for David is selected. But any selection of any of the other options should deselected.
My thoughts are to use a radio button ui element, bind the "selected" value to a unique id for each row/table (an attribute of the node element for each table) and the value to a common shared attribute (not table specific).
Any better ideas - and certainly any which would mean I'm not going to have to maintain a lookup table of my unique ids and node elements to find out which one is selected?
Cheers,
ChrisOk - here's how I did it.
I created another lookup table which had a guid and reference to the element.
in the each elements I had a guid which I bound to the key for selection property of the radio button in the table.
I then bound the selected key property to an attribute that was common to all elements.
in my "processing" logic I read the selected key, read the lookup table - and therefore got the reference to the selected element.
Would have been an awful lot easier if I could have used a reference to the element itself as the "key" - but that was required to be a character field.
[image showing radio button selection working across multiple tables|http://i51.tinypic.com/bi79dx.jpg]
End result works quite nicely.
Cheers,
Chris -
Using radio buttons to populate a text field
Hi
This is my first time creating Adobe Forms and my first time using JavaScript as well. One of the questions on my form asks about Ethnicity and I have about 15 choices for which I created radio buttons. I want the user's choice to populate a textfield, but am not sure how to write the code that will do this. Any help would be greatly appreciated. ThanksIf you set the export value (aka Button Value, Radio Button Choice) of each radio button to the text you want to show up in the text box, the custom calculate script for the text box, which you should set to read-only, can be simply:
(function () {
// Get the value of the radio button group, as a string
var s = getField("Ethnicity").valueAsString;
// Set this field's value to the text associated with the selected radio button
event.value = s === "Off" ? "" : s;
If none of the radio buttons is selected, the text field will be blank. Change "Ethnicity" above to the actial name of the radio button group. -
Using radio buttons to set the value of a text field
I have a set of three radio buttons on a form (a performance evaluation). If I select the "1" button, I want 1 to populate in the text field. The same goes for "2" and "3"
I have not been able to code the buttons correctly for this scenario, and can't figure out how to do it.
From a previous post, I was able to get check boxes to do what I want, but they won't really work because I can't set them so that only one back may be selected.
Can this be done?
Thanks!The information for this specific case isn't anywhere. The best that you can do is understand what triggers each of the events, then ask yourself which of those triggers are pertinent to your current issue.
http://help.adobe.com/en_US/livecycle/es/LiveCycle_Designer_Scripting_Basics.pdf ...
The above link contains a great deal of information regarding how to use scripts within Livecycle Designer. The section that you would be most interested in in order to learn about the available events can be found under "Events >> List of Events".
You needed to use the initialize event so that the text field would be updated when the document was opened. This ensure that the text field has the value of the default radio button when it is opened for the first time.
You needed to use the change event so that, when the use selects a different radio button, the text field is updated with the new value.
That's about it. That PDF file that I link to above is a bit long, but it's a great place to get a good grasp of the basics of scripts.
If you have any further questions, feel free to ask. =) Have a good one.
- Scott -
Using radio button in a where clause
Dears,
I'd like to filter my result using the value of a radio button in my where clause.
Could you tell me if is it the right way to do? i get an issue in my code below
DECLARE
v_counter INTEGER := 0;
v_line VARCHAR2 (4000);
v_rec_in_row INTEGER := 12;
lpar varchar2(50);
BEGIN
HTP.prn ('<table>');
HTP.prn ('<tr>');
HTP.prn ('<td>');
lpar:=v('P48_LVAR');
CASE
WHEN lpar='SERVERS'
THEN
FOR c IN
( SELECT CASE
WHEN SERVER_MARK='SUN'
THEN '<table width="">'
|| '<tr><td><a href="#WORKSPACE_IMAGES#New Image.GIF"><img src="#WORKSPACE_IMAGES#New Image.GIF"/></td></tr>'
|| '<tr><td style="text-align:center"><h1>'
|| SERVER_NAME
|| '</td></tr></a></table>'
WHEN SERVER_MARK='HP'
THEN '<table>'
|| '<tr><td><a href="#WORKSPACE_IMAGES#New Image.GIF"><img src="#WORKSPACE_IMAGES#hp.GIF"/></td></tr>'
|| '<tr><td style="text-align:center"><h1>'
|| SERVER_NAME
|| '</td></tr></a></table>'
END AS emp
FROM SERVERS
WHERE CASE
WHEN v('P48_RA_ENV')='ALL' THEN SERVER_ENV LIKE '%'
WHEN v('P48_RA_ENV')='PROD' THEN SERVER_ENV LIKE '%PROD%'
WHEN v('P48_RA_ENV')='UAT' THEN SERVER_ENV LIKE '%UAT%'
WHEN v('P48_RA_ENV')='DEV' THEN SERVER_ENV LIKE '%DEV%'
END)Thx
CelioAcharya,
Tjis is all my code, i change it a little , it works fine in sqlworkshop but when I execute it in my page i don't get result
DECLARE
v_counter INTEGER := 0;
v_line VARCHAR2 (4000);
v_rec_in_row INTEGER := 12;
lpar varchar2(50);
BEGIN
HTP.prn ('<table>');
HTP.prn ('<tr>');
HTP.prn ('<td>');
lpar:=v('P48_LVAR');
CASE
WHEN lpar='SERVERS'
THEN
FOR c IN
( SELECT CASE
WHEN SERVER_MARK='SUN'
THEN '<table width="">'
|| '<tr><td><a href="#WORKSPACE_IMAGES#New Image.GIF"><img src="#WORKSPACE_IMAGES#New Image.GIF"/></td></tr>'
|| '<tr><td style="text-align:center"><h1>'
|| SERVER_NAME
|| '</td></tr></a></table>'
WHEN SERVER_MARK='HP'
THEN '<table>'
|| '<tr><td><a href="#WORKSPACE_IMAGES#New Image.GIF"><img src="#WORKSPACE_IMAGES#hp.GIF"/></td></tr>'
|| '<tr><td style="text-align:center"><h1>'
|| SERVER_NAME
|| '</td></tr></a></table>'
END AS emp
FROM SERVERS
WHERE SERVER_ENV LIKE CASE
WHEN v('P48_RA_ENV')='ALL' THEN '%'
WHEN v('P48_RA_ENV')='PROD' THEN '%PROD%'
WHEN v('P48_RA_ENV')='UAT' THEN '%UAT%'
WHEN v('P48_RA_ENV')='DEV' THEN '%DEV%'
END)
LOOP
v_line := v_line || c.emp || '</td><td>';
v_counter := v_counter + 1;
IF v_counter = v_rec_in_row
THEN
HTP.prn (v_line);
HTP.prn ('</td></tr><tr><td>');
v_line := NULL;
v_counter := 0;
END IF;
END LOOP;
HTP.prn (v_line);
HTP.prn ('</td></tr></table>');
WHEN lpar='ZONES'
THEN
FOR c IN
( SELECT '<table>'
|| '<tr><td><a href="#WORKSPACE_IMAGES#New Image.GIF"><img src="#WORKSPACE_IMAGES#New Image.GIF"/></td></tr>'
|| '<tr><td style="text-align:center"><h1>'
|| ZONE_NAME
|| '</td></tr></a></table>'
emp
FROM ZONES)
LOOP
v_line := v_line || c.emp || '</td><td>';
v_counter := v_counter + 1;
IF v_counter = v_rec_in_row
THEN
HTP.prn (v_line);
HTP.prn ('</td></tr><tr><td>');
v_line := NULL;
v_counter := 0;
END IF;
END LOOP;
HTP.prn (v_line);
HTP.prn ('</td></tr></table>');
WHEN lpar='ALIAS'
THEN
FOR c IN
( SELECT
'<table>'
|| '<tr><td><a href="#WORKSPACE_IMAGES#New Image.GIF"><img src="#WORKSPACE_IMAGES#New Image.GIF"/></td></tr>'
|| '<tr><td style="text-align:center"><h1>'
|| ALIAS_NAME
|| '</td></tr></a></table>'
emp
FROM ALIAS)
LOOP
v_line := v_line || c.emp || '</td><td>';
v_counter := v_counter + 1;
IF v_counter = v_rec_in_row
THEN
HTP.prn (v_line);
HTP.prn ('</td></tr><tr><td>');
v_line := NULL;
v_counter := 0;
END IF;
END LOOP;
HTP.prn (v_line);
HTP.prn ('</td></tr></table>');
WHEN lpar='FS'
THEN
FOR c IN
( SELECT
'<table>'
|| '<tr><td><a href="#WORKSPACE_IMAGES#New Image.GIF"><img src="#WORKSPACE_IMAGES#New Image.GIF"/></td></tr>'
|| '<tr><td style="text-align:center"><h1>'
|| FS_NAME
|| '</td></tr></a></table>'
emp
FROM FS
LOOP
v_line := v_line || c.emp || '</td><td>';
v_counter := v_counter + 1;
IF v_counter = v_rec_in_row
THEN
HTP.prn (v_line);
HTP.prn ('</td></tr><tr><td>');
v_line := NULL;
v_counter := 0;
END IF;
END LOOP;
HTP.prn (v_line);
HTP.prn ('</td></tr></table>');
END CASE;
END;
Maybe you are looking for
-
Opening .pdf files in IE 10 & 11
We have online modules in an LMS. Learners cannot open the .pdf attachments in these modules if they are using IE 10 or 11 as their browser. There is lots of discussion of this problem in other forums and fairly sophisticated solutions have been off
-
My ipod wont display anything, just a black screen.
i took it off of the charger yesterday and the display wouldnt work, i tried resetting it, but my laptop wont recognise it and i cant tell if it's charging anymore
-
ME21 Purchase order number.
hi friends, i am in the process of writing a BDC program for transaction ME21 to create P.O, to run in Background via JOB through Batch input session method. The purchase order number is generated internally, that means until P.O is
-
Regarding invoice blocked for payment
Hello gurus I have done the MIRO and invoice is blocked say any reason now when i check the F-53 and make a payment for the this it is working fine where i can able to make a payment for this the requirement is when the invoice is blocked the RE invo
-
Dear All, We are going to use 802.1x PEAP and with MSCHAPv2 for authentication. The problem is we dont have and trusted CA server in our setup. So clents will not be able to verifiy the server certificate . Is there way to avoid checking of server si