Display Selected Options
Scenario:
Page 1: (Main movieclip on Frame 10)
Has 5 buttons(movieclips).
Movieclip - Has 3 states >> active, over, selected
onRelease the user goes to the selected state of the movieclip and movieclip is disabled.
User has to select any number of options and then proceed to the next page.
Ex: User selects option 1,2 and 3.
Question:
How do I display in Page 2(Main movieclip on Frame 20) what options the user had clicked or selected?
Please show the code for both Page 1 and Page 2.
your terminology is confusing.
there's one main timeline or movieclip. that's the timeline you see when you create a new fla.
you have some movieclip (you're calling Main) that's on frame 10 of the main timeline?
Similar Messages
-
Display Select option in module pool screen
What are the Function modules used to display Select option type fields in a module pool screen?
hi,
You can use the SELECT-OPTIONS statement to place a group of fields on the screen that allows users
to enter complex selections. The selection may be a single value, or any form of interval
Selection ranges are stored in programs using an internal table.
The ABAP statement SELECT-OPTIONS <selname> FOR <field> declares an internal table called
<selname>, containing four fields - SIGN, OPTION, LOW, and HIGH. The fields LOW and HIGH have
the same type as the field <field>.
The SIGN field can take the value 'I' (for inclusive) or 'E' (for exclusive).
The OPTION field can contain relational operators (EQ, NE, LE, LT, GE, GT), pattern operators (CP,NP), and operators that allow you to enter intervals (BT, NB).
SELECTION-SCREEN BEGIN OF BLOCK conn WITH FRAME TITLE text-001.
PARAMETERS pa_car LIKE wa_sflight-carrid OBLIGATORY.
SELECT-OPTIONS: so_car FOR wa_sflight-carrid,
SELECTION-SCREEN END OF BLOCK conn.
Hope this helps, Do reward. -
Displaying Selection option values in header using alv-factory
Hi all,
I am using alv factory class 'CL_SALV_TABLE'.
I want to display selection-option values on my header.
I have creted grid using class 'CL_SALV_FORM_LAYOUT_GRID' and am displaying other values.
But am facing problem in displaying selection option values.
Any pointer on this will be GR8.
Thanks & Regards.
Yats.Hi,
Use this sample code.
form top_of_the_list_main changing lv_grids type ref to cl_salv_table.
*Creating instances of the clases
data : lv_grid type ref to cl_salv_table,
lv_header type ref to cl_salv_form_element,
lv_layout type ref to cl_salv_form_layout_grid.
move lv_grids to lv_grid.
*Creating the layout object
create object lv_layout.
*Setting the Header Text
lv_layout->create_label(
row = 1
column = 1
text = text-008 ).
lv_header = lv_layout.
lv_grid->set_top_of_list( lv_header ).
endform. " TOP_OF_THE_LIST_MAIN
Loop it and keep changing the row and colom..Pass the selection option to the text field.
Regards
Ansair -
Problem in displaying selection options in report
Hi Team,
There is a report running in production. It has one select option for data element PROJ-PSPNR.
But the requirement changes and the selection option should be for PROJ-PSPID instead.
I started changing the code in development box and deleted the selection text in text element for previous select option and put the description of the new one.
In development it is showing perfect. I transported the transport request to quality and pre-production.
In quality also it is looking fine. But in pre-prod, the text option of the select option is not coming. Besides the icon on the button at the right of two text boxes of that select option is also not showing.
(The button on which we click to input multiple values in the select option).
Now I am in a fix. Why this is happening and what I should do?
MainakHi Mainak,
Do the follwing steps:
1) check that selection-text of that select-options are transported or not.
2) if tranported may be some activation problme.....for that you need to do on thing.
go to your pre-production box, there in the report generate the program again by
program-->Generate.... it will genereate the your program. so that the missing will appear.
Thanks! -
How to display selected options in lookup F4 query selection screen
i have to provide selected options infoprovider specific than all values from database.
in our company let there is PMACTIVITY TYPE and there is 140 activities, for aspecific group of our manager /users reports designed
they have specific list of activities ,can i restrict by some ways to show only those relevant options in F4 selection screen
Regards
satish -
How to transport a select - option screen in dialogue programme
hi Techies
I have Created select-option field in dialogue program ( With the help of SUBSCREEN)
Now i need to Transport this Select option Field To Live Server ....
Poblem is select-option field is not updating in Live server ....
i have changed some logic in the flow logic of select-option screen. (Just added the F4 help in flow logic)
while transporting it is fetching the standrd select option field & Flow logic...
not the changed one ..........?????????
plz suggest me possible way to accomplish my requirment.
Regards
PrasadHI,
check these links for sample codes
Display Select option in module pool screen
Select-Option Extension box in Module Pool
http://sample-code-abap.blogspot.com/2008/06/select-option-in-module-pool-screen.html
Regards,
Anirban -
Select Options in custom controller
Hi,
Any one please let me know how to put select options on custom container. I need to display select options based on the input a tree and a report should be displayed in the same screen along with input screen.
So I planned object oriented program to split screen to display tree and report. and again I split left side container to 2 containers. Now I want put the selection screen on left top container.
Please help.
ChandraWhat you can do is the following:
Define a Container Object on one side of the screen to place the ALV Tree, and a Subscreen area on the other side, so you can place your select-options right there:
You can define the select-options this way:
SELECTION-SCREEN BEGIN OF SCREEN 100 AS SUBSCREEN.
SELECT-OPTIONS : s_ebeln FOR ekko-ebeln ,
s_ebelp FOR ekpo-ebelp .
SELECTION-SCREEN END OF SCREEN 100 .
And then in the flow logic of your dynpro, assign this selection screen to your subscreen area. (Called SUB1 in this case)
call subscreen sub1 including sy-repid '0100'.
Regards -
Default Values for Select-options In Webdynpro-ABAP
Hi Freinds,
Kindly,Help me in setting the Default values for the Select-options in Webdynpro ABAP.
Here the Node and the Attributes are Created Dynamically, and then Displayed Select-options Component View.
Regards,
Xavier.PXavier Reddy Penta sent me this question via email and I answered it directly yesterday. Here is the solution that I provided to him, so that it is stored with the original question:
I believe your problem is that you are not setting the value into the range correctly. You are setting it directly into the field symbol of the range like such:
<FS> = L_STRING2.
But ranges are deep objects. They have four fields: Sign, Option, High, and Low. This is from the online help:
1. sign of type c and length 1. The content of sign determines for every row whether the result of the condition formulated in the column is included or excluded in the entire resulting set for all rows. Evaluable values are "I" for include and "E" for exclude.
2. option of type c and length 2. option contains the selection option for the condition of the row in form of logical operators. Analyzable operators are "EQ", "NE", "GE", "GT", "LE", "LT", "CP" and "NP" if column high is initial, and "BT", "NB" if column high is not initial. With the options "CP" and "NP", the data type of the columns low and high must be of the data type c, and special rules apply for entries on the selection screen.
3. low of the data type defined after FOR. This column is designated for the comparison value or the lower interval limitation.
4. high of the data type defined after FOR. This column is designated for the upper interval limitation.
So when you are moving the value into the field symbol you are setting it into the sign column.
Here is an example of how you can access the components of the range:
* create a range table that consists of this new data element
lt_range_table =
wd_this->lv_sel_handler->create_range_table(
i_typename = l_typename ).
IF l_fieldname = 'CARRID'.
FIELD-SYMBOLS: <tab> TYPE INDEX TABLE,
<struct> TYPE ANY,
<wa> TYPE ANY,
<option> TYPE char2,
<sign> TYPE char1,
<high> TYPE ANY,
<low> TYPE ANY,
<wa_values> TYPE ANY.
ASSIGN lt_range_table->* TO <tab>.
APPEND INITIAL LINE TO <tab> ASSIGNING <wa>.
ASSIGN COMPONENT 'OPTION' OF STRUCTURE <wa> TO <option>.
ASSIGN COMPONENT 'HIGH' OF STRUCTURE <wa> TO <high>.
ASSIGN COMPONENT 'LOW' OF STRUCTURE <wa> TO <low>.
ASSIGN COMPONENT 'SIGN' OF STRUCTURE <wa> TO <sign>.
<sign> = 'I'.
<option> = 'EQ'.
<low> = 'AA'.
ENDIF. -
Select-options/range in screen
Hi all,
I just wanted to display select-options in the screen numbered 1000,
by putting which control can i do this ??........
regards
Joseif u want to pass values in the selection screen use
Ex:
selection-screen begin of block b1
select-options : p_matnr for mara-matnr.
selection-screen end of block b1.
else if u want to pass while execution of program
use Ranges
Ex: ranges: p_matnr for mara-matnr.
Pass variables
p_matnr-low, p_matnr-high....................
Regards,
Ajay -
Select Option on Module Pool screen
How to display select options on Module Pool screen ?
Via the search functionality, you will find something like :
SELECTION-SCREEN BEGIN OF SCREEN 101 AS SUBSCREEN.
SELECT-OPTIONS: S_CARRID FOR SPFLI-CARRID,
S_CONNID FOR SPFLI-CONNID.
SELECTION-SCREEN END OF SCREEN 101.
and to use a CALL SELECTION-SCREEN xxxx in your module pool.
regards,
Hans -
Hiding Select options on a selction screen
hi,
How to Hide Select options on a selction screen
thnks.hi,
eg:-
select-options: sel_mat for mard-matnr no-display.
select-options: sel_plnt for mard-werks.
in this the sel_plnt will appear and sel_mat will not be seen on the selction screen. there are many options avaliable with select-options..
Like
[OBLIGATORY / NO-DISPLAY]
[VISIBLE LENGTH vlen]
[NO-EXTENSION]
[NO INTERVALS]
[MODIF ID modid] ... .
reward points if useful and mark answered if u got the answer -
How can I re-display my selected option?
In my jsp, I gain option values for a list of 'types' and 'names'
If the currentType = null I do not show the form that accepts the 'names'.
When a type is selected the Action class calls the getMethod in the ActionForm
and upon success returns to the jsp page and presents the 'name' form.
Unfortunately the 'type' form redisplays the first type in the list and not the
currentType.
Question. How can I set the selected option in my form to display the currentType?
<!-- Access session bean for picklist types -->
<jsp:useBean
id="typesBean"
scope="session"
class="com.aaa.zzz.refdata.beans.CPartyTypesBean" >
<jsp:setProperty name="typesBean" property="*" />
</jsp:useBean>
<%
CPartyTypesBean typeBean = (CPartyTypesBean) session.getValue("typesBean");
String[] PicklistTypes = typeBean.getTypes();
%>
<!-- Access Form Bean (ActionForm) for current Name & Type -->
<jsp:useBean
id="pb"
scope="session"
class="com.aaa.zzz.refdata.beans.CPartyPicklistBean" >
</jsp:useBean>
<jsp:setProperty name="pb" property="*" />
<%
String currentType = pb.getType();
String currentName = pb.getName();
%>
<html:form action="/typeAction" focus="type">
<table>
<tr>
<td WIDTH="20%">
Picklist Type
</td>
<td WIDTH="30%">
<select name="type">
<%
for(int i=0; i<PicklistTypes.length; i++)
out.println("<option>" + PicklistTypes[i] + "</option>");
%>
</select>
</td>
<td WIDTH="20%">
<html:submit property="submit" value="GetType"/>
</td>
<td WIDTH="30%">
</td>
</tr>
</table>
</html:form>
<%
if (currentType != null)
%>
<html:form action="/nameAction" focus="name">Thanks Beattris, I guess 'selected' is the obvious answer but what I was looking for was
how to apply 'selected' to the loop that prints my options.
However I figured it out and did this:
<%
for(int i=0; i<PicklistTypes.length; i++)
String sel = null;
if(currentType != null && currentType.compareTo(PicklistTypes)==0)
sel = " SELECTED>";
else
sel = ">";
out.println("<option value=" + PicklistTypes[i] + sel + PicklistTypes[i]+"</option>");
%> -
Clearing the displayed value for a SELECT-OPTION
How do I clear the displayed value of a SELECT-OPTION?
I have 2 SELECT-OPTIONs on my screen (standard basic report program screen). I use code like this to populate the drop-down boxes for each one.
=====
AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_prgrp-low.
PERFORM fill_prgrp_values.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_prctr-low.
PERFORM fill_prctr_values.
=====
The value the user picks for the first SELECT-OPTION will affect what values I put in the drop-down list for the second SELECT-OPTION.
If a user enters a value for the second SELECT-OPTION, and then goes back and changes the value of the first SELECT-OPTION, then I want to do two things:
1. Create a new set of values for the drop-down list for the second SELECT-OPTION (no problem; working fine);
2. Clear the displayed value from the second SELECT-OPTION that the user entered previously. That value became invalid when the user picked a new value for the first SELECT-OPTION.
How do I clear that second displayed value?
I have tried CLEAR and REFRESH for the second variable using the formats s_prctr, s_prctr[], and s_prctr-low. They will erase the values of the internal table or part(s) of it, but the displayed value stays on the screen.
I need to clear out the displayed value so the user will either leave it blank or enter or select a new value.
I am using F4IF_INT_TABLE_VALUE_REQUEST to build the drop-down lists, and it works fine, but I do not see any function module to clear the displayed value off the screen.
Thanks for your help.Sorry, but calling DYNP_VALUES_UPDATE did not work. This is how I coded it.
fld_reset_rcd-fieldname = 'S_PRCTR'.
fld_reset_rcd-stepl = sy-stepl.
CLEAR fld_reset_rcd-fieldvalue. " re-initialize s_prctr
CLEAR fld_reset_rcd-fieldinp. " what goes in here?
APPEND fld_reset_rcd TO fld_reset_tbl.
CALL FUNCTION 'DYNP_VALUES_UPDATE'
EXPORTING
dyname = 'ZFI_GL_BALANCE_NGL'
dynumb = '1000'
TABLES
dynpfields = fld_reset_tbl
<Added code tags>
I have discovered that CLEAR and REFRESH of s_prctr will clear it somewhat. If I enter multiple values, ranges, etc., they will all be cleared, EXCEPT for the one single value that is displayed on the main screen. It is not cleared and it remains if you push the button to display the pop-up to enter ranges, etc.
To devrath.sampat -- Thanks for your example for building the drop-down list, but that is not the problem I am having. I am already able to build it just fine.
To repeat my problem, if I:
1. first enter / select a value for the first SELECT-OPTION s_prgrp
2. then enter / select a value for the second SELECT-OPTION s_prctr
3. And finally go back and select a new value of the first SELECT-OPTION s_prgrp from its drop-down list,
when I do, the program needs to clear the value displayed on the main screen for the second SELECT-OPTION s_prctr (any additional values, ranges, etc., are cleared by CLEAR and REFRESH, if I go look; but not the value shown on the main screen).
Edited by: Scott Crosby on Feb 14, 2012 4:20 PM
Edited by: Suhas Saha on Feb 15, 2012 12:03 PM -
Select-options in display mode
Hi
How to set the SELECT-OPTIONS in display mode by default
regards
Srinivashiii
for every LOW and HIGH value of select option you can use a code like given below..
First initialize your select option with some values then use following code
AT SELECTION-SCREEN OUTPUT .
IF s_docno IS NOT INITIAL .
LOOP AT SCREEN.
IF screen-name CS 's_docno'.
screen-input = 0.
MODIFY SCREEN.
ENDIF. " IF screen-name CS 'p_docno'.
ENDLOOP. " LOOP AT SCREEN.
regards
twinkal -
HI ABAP Gurus,
In selection screen i want to make selectoption/parameter field in displaymode( User cant change that field it shud appear but in display mode).
Plz help me regarding this.
I am using At selection-screen output for this as declaring Modif id in slect-option/parameter. but its not working.
Regards,
Shakyaassign that field to a modif id abc .
and do the coding as
at selection screen output.
loop at screen.
if screen-group1 = 'ABC'.
screen-input = '0'. "<----to enable display mode
modify screen.
endif.
endloop.
execute this code
tables likp.
select-options : s_vbeln for likp-vbeln modif id ABC,
s_erdat for likp-erdat modif id PQR,
S_LFART FOR LIKP-LfART MODIF ID XYZ.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'ABC'.
SCREEN-input = '1'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'PQR'.
SCREEN-input = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
regards,
vijay
Maybe you are looking for
-
Online Rebuild Index Vs Shrinking With Compact Segment with Release space
Hi All, I want to know which is the better option from these as far as availabiltiy of index is concerned I have been doing online INdex rebuild and haven't faced much problems but new to Shrinking What Grid COntrol says about shrinking is "This will
-
Schedule lines not generated after MRP run
Dear All, I am trying to create Schedule lines through MRP run , but instead system creates MRP element PRqRel and its PurRqs when i check in MD04 , the following are the prerequisite i done before MRP run , but still Schedule lines are not generat
-
Translate the entire web page as a single pdf page in Acrobat X
Acrobat X has changed the way it interprets web pages. With acrobat 7 and 8, it would translate the entire web page as a single pdf page. With Acrobat X the calculation is gone. Is there a fix or work around this?
-
anyway to view packet payload of captured alerts from ios ips ?
-
stopped working. I run Windows 7 Home Premium and Itunes v10.2.1.1. Windows tries to say that if it can find a solution it will, but it never does. Very frustating indeed... Any ideas anyone! Stuart