How to populate values in List Box in Adobe form
Hi,
How to populate values in List box in adobe forms?
Thanks
RB
if you want to display a fixed values in the dropdown you can use list box ui and can specify values there
or if u want to display values from the context node of the webdynpro
1. Drag and drop a Value Help Drop-down List element from the Web Dynpro Library tab to the Body Pages pane.
2. Drag and drop your node from the Data View tab onto it. This action binds the layout element to the corresponding node.
with regards
shanto aloor
Similar Messages
-
How to show value in list box on screen.
Hey,
I'm trying to write a little program to select a value from a listbox on a screen...
Filling the listbox, no problem. But showing the value on screen, and using the selected value isn't working...
So when i select a value, directly after the listbox 'closes', the selected value disappears...
I read already different threads regarding this topic, but i don't see a solution :(.
Below you find the code. Anyone sees where the problem is?
Screen number = 300.
PROCESS BEFORE OUTPUT.
MODULE status_0300.
Module init_dropdown_box.
PROCESS AFTER INPUT.
MODULE user_command_0300.
REPORT ztesttom2 .
TABLES: zbadgelinks.
TYPE-POOLS vrm.
DATA values TYPE vrm_values WITH HEADER LINE.
data: name type vrm_id.
DATA ok_code LIKE sy-ucomm.
DATA save_ok LIKE sy-ucomm.
DATA init.
DATA it_badgelinks LIKE zbadgelinks OCCURS 0 WITH HEADER LINE.
START-OF-SELECTION.
SELECT * FROM zbadgelinks INTO TABLE it_badgelinks.
CALL SCREEN 300.
*& Module status_0300 OUTPUT
* text
module status_0300 output.
SET PF-STATUS 'ST_0300'.
SET TITLEBAR 'TB_0300'.
endmodule. " status_0300 OUTPUT
MODULE init_dropdown_box output.
IF init is initial.
name = 'LB_SEL_PC'.
loop at it_badgelinks.
values-text = it_badgelinks-description.
values-key = it_badgelinks-id.
append values.
endloop.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = name
values = values[]
EXCEPTIONS
id_illegal_name = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
endif.
init = 'X'.
ENDMODULE.
*& Module user_command_0300 INPUT
* text
module user_command_0300 input.
CASE OK_CODE.
WHEN 'BACK'. LEAVE TO SCREEN 0.
WHEN 'EXIT'. LEAVE TO SCREEN 0.
WHEN 'CANC'. LEAVE TO SCREEN 0.
WHEN 'CB_CANCEL'. leave to screen 0.
WHEN 'CB_OK'.
READ TABLE it_badgelinks WITh KEY ID = it_badgelinks-id.
IF SY-SUBRC = 0.
MESSAGE I398(00) WITH 'ID: ' it_badgelinks-id
'Description: ' it_badgelinks-description.
ENDIF.
WHEN 'SEL_PC'.
CALL FUNCTION 'VRM_GET_VALUES'
EXPORTING
id = name
IMPORTING
VALUES = values[]
EXCEPTIONS
ID_NOT_FOUND = 1
OTHERS = 2
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDCASE.
endmodule. " user_command_0300 INPUT
Thanks in advance,
Kind Regards,
TomHi,
Please check the below modified code of yours.
Now the value is retained in the list box.
REPORT ztest_cert.
TABLES: t511t.
TYPE-POOLS vrm.
DATA: lb_sel_pc(80).
DATA values TYPE vrm_values WITH HEADER LINE.
DATA: name TYPE vrm_id.
DATA ok_code LIKE sy-ucomm.
DATA save_ok LIKE sy-ucomm.
DATA init.
DATA it_t511t LIKE t511t OCCURS 0 WITH HEADER LINE.
START-OF-SELECTION.
SELECT * FROM t511t INTO TABLE it_t511t WHERE sprsl = 'EN'.
CALL SCREEN 300.
*& Module status_0300 OUTPUT
text
MODULE status_0300 OUTPUT.
SET PF-STATUS 'ST_0300'.
SET TITLEBAR 'TB_0300'.
ENDMODULE. " status_0300 OUTPUT
MODULE init_dropdown_box OUTPUT
MODULE init_dropdown_box OUTPUT.
IF init IS INITIAL.
name = 'LB_SEL_PC'.
LOOP AT it_t511t.
values-text = it_t511t-kotxt.
values-key = it_t511t-konst.
APPEND values.
ENDLOOP.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = name
values = values[]
EXCEPTIONS
id_illegal_name = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ELSEIF init = 'X'.
<b> lb_sel_pc = values-text.</b>
ENDIF.
init = 'X'.
ENDMODULE. "init_dropdown_box OUTPUT
*& Module user_command_0300 INPUT
text
MODULE user_command_0300 INPUT.
data: l_code like values-key.
CASE ok_code.
WHEN 'BACK'. LEAVE TO SCREEN 0.
WHEN 'EXIT'. LEAVE TO SCREEN 0.
WHEN 'CANC'. LEAVE TO SCREEN 0.
WHEN 'CB_CANCEL'. LEAVE TO SCREEN 0.
WHEN 'CB_OK'.
clear: it_t511t.
lb_sel_pc = l_code.
READ TABLE it_t511t WITH KEY konst = lb_sel_pc.
IF sy-subrc = 0.
CLEAR values.
values-key = it_t511t-konst.
values-text = it_t511t-kotxt.
MESSAGE i398(00) WITH 'ID: ' it_t511t-konst
'Description: ' it_t511t-kotxt.
ENDIF.
WHEN 'SEL_PC'.
CALL FUNCTION 'VRM_GET_VALUES'
EXPORTING
id = name
IMPORTING
VALUES = values[]
EXCEPTIONS
id_not_found = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ELSE.
<b> l_code = lb_sel_pc.
READ TABLE it_t511t WITH KEY konst = lb_sel_pc.
CLEAR values.
values-key = it_t511t-konst.
values-text = it_t511t-kotxt</b>.
ENDIF.
ENDCASE.
ENDMODULE. " user_command_0300 INPUT
Thanks & Regards
Praba -
I have an adobe form with a bunch of list boxes. For each list box, I don't want anything selected by default and do not want to put in an extra entry like 'select an item' since I need these to be required fields. So I would like nothing selected by default but force the user to pick an item from the list. What is the easiest way to do this? thanks
Any guidance on this would be greatly appreciated. thx
-
My aim each time when I click on button1 then only one instance of Form2 exist with updated string or else if I design with other controls in Form1 and Form2.
Below example success for the first time by clicking button1, any other times it does not work (updated) that textBox1.Text to Form2's label.text.
How can I handle this?
public partial class Form1 : Form
public Form1()
InitializeComponent();
private bool CheckOpened(string name)
FormCollection fc = Application.OpenForms;
foreach (Form frm in fc)
if (frm.Text == name)
return true;
return false;
private void button1_Click(object sender, EventArgs e)
Form2 frm2 = new Form2(textBox1.Text);
if (!CheckOpened("Form2"))
frm2.Show();
else
frm2.label1.Text = textBox1.Text;
public partial class Form2 : Form
public Form2(string str)
InitializeComponent();
label1.Text = str;You should first check if the Form is open, then only create a new instance if it's not open. Based on your code, I'd redesign CheckOpened so that it returns the opened instance, or null if it's not open. In button1_click, check the return value. If it's
null, create a new instance, otherwise use the returned refernce to make the modification, either by directly accessing label1, or indirectly by adding a property to Form2 that changes label1.text in the property-set method.
However, instead of searching for an open form, I'd just store a reference to it in a class level variable when it's created. So you just check for null if it's open. Additionally you must set it to null when handling Form2's FormClosed event.
Armin -
How to enter values in JList box and JTable ???
Hi friends...
i am new to Swing
SInce i am using Netbeans IDE 5.5
and there is easy to do swing programming using this IDE
now i am confused using JTable and JList box
since i used method Insert in AWT
but how to add values in LIST BOX ( JList )
ex.
JList list = new JList( );
list.add(mystringvalue, ? );
here it ask for component so what should i write here..
when i write here this, gives error.
what to do to insert string or vector or object in JList
and to enter value in JTable
THankshi Ghanshyam,
i am also new to swing i was just wondering are you using the swing palette to create your interface
by the look of the code
JList list = new JList( );
list.add(mystringvalue, ? );you may not be because every JList is put in a JScrollPane
but if you do want to do it through the palette there is an option in properties - model which you can uses to add in values.
and if your looking to get info. from a database look up
AbstractListModel &
AbstractTableModel
the is a lot of info on the internet (example net beans CarTableModel) is a
good start off
happy hunting.
JJ -
How to hold the value in List box.
Hi All,
On my screen painter Screen I am displaying the Sold to party and ship to party with thier address.
I am also displaying the Shipping condition based on ship to party. To display the shipping condition i am using list box. Once the user enter the sold to party automatically all the field is going to populate in their respective fields. I am facing the problem that, The list box getting populated with shipping condition but once you choose the shipping condition and hit the enter the list box getting refreshed. I am using this code in PAI event. And I can Only use this in PAI.
The Function i am using for list box is CALL FUNCTION 'VRM_SET_VALUES'.
Pls suggest me how to hold the value in List box.
Thanks,
RakeshHi,
Now i am using in PBO.
the code below in in PBO.It is still not holding the value.
if list[] is initial.
perform SHP_COND.
endif.
form SHP_COND .
*DATA: SHOP(80).
clear : GT_VSBED, list.
refresh : GT_VSBED, list.
select vsbed
from knvv AS K
into table GT_VSBED
where Kvkorg = vbak-vkorg "Kkunnr = GV_STPH
and K~vtweg = vbak-vtweg
and K~spart = vbak-spart.
select VSBED vtext
from TVSBT
into table list
for all entries in GT_VSBED
where spras = sy-langu
and vsbed = GT_VSBED-VSBED.
*break-point.
NAME = 'SHP_CON'.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = NAME
values = LIST[]
EXCEPTIONS
ID_ILLEGAL_NAME = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
endform. " SHP_COND
Thanks,
Rakesh -
How to capture the multiple value in list box
Hi forums,
How to select the multiple values in list box and how to catch that values in OnInputProcessing.
Regards,
Ravi.Hi,
A possible method is:
Get all fields of the form
CALL METHOD request->get_form_fields
CHANGING
fields = table_fields.
loop over the fields
LOOP AT table_fields INTO wa_fields.
test the name of the field
CASE wa_fields-name.
WHEN 'test'.
retrieve the value of the field
test = wa_fields-value.
endcase
endloop.
Eddy -
How to populate values into a Listbox on selection screen
Hi All,
Please any one let me know how to populate values (for ex.01,02 and 03) in a list box of selection screen..
Thanks,
VijayTry this code ...
REPORT ZLISTBOX.
TYPE-POOLS: VRM.
TABLES SPFLI.
TABLES SSCRFIELDS.
DATA flag.
DATA: NAME TYPE VRM_ID,
LIST TYPE VRM_VALUES,
VALUE LIKE LINE OF LIST.
PARAMETERS PS_PARM LIKE SPFLI-CARRID AS LISTBOX VISIBLE LENGTH 5
USER-COMMAND fcodex.
data: i_spfli type spfli occurs 0 with header line.
PARAMETERS PQ_PARAM LIKE SPFLI-connid AS LISTBOX VISIBLE LENGTH 15
USER-COMMAND
fcodey.
*DS AS CHECKBOX USER-COMMAND FLAG.
INITIALIZATION.
NAME = 'PS_PARM'.
DATA T TYPE I VALUE 0.
SELECT DISTINCT carrid into corresponding fields of table i_spfli FROM
SPFLI.
loop at i_spfli.
VALUE-KEY = i_spfli-CARRID.
VALUE-TEXT = i_spfli-CARRID.
APPEND VALUE TO LIST.
endloop.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
ID = NAME
VALUES = LIST.
AT SELECTION-SCREEN.
if sy-ucomm eq 'FCODEX'.
REFRESH LIST.
CLEAR LIST.
PQ_PARAM = ' '.
NAME = 'PQ_PARAM'.
SELECT * FROM SPFLI WHERE CARRID = PS_PARM.
VALUE-KEY = SPFLI-connid.
VALUE-TEXT = SPFLI-connid.
APPEND VALUE TO LIST.
ENDSELECT.
endif.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF SY-UCOMM NE 'FCODEX' OR SY-UCOMM NE 'FCODEY'.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
ID = NAME
VALUES = LIST.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
START-OF-SELECTION.
clear i_spfli.
refresh i_spfli.
select * into table i_spfli from spfli where carrid = ps_parm and connid
= pq_param.
loop at i_spfli.
WRITE: / 'CITY FROM:', I_SPFLI-CITYFROM, 'CITY TO :',I_SPFLI-CITYTO,
'DEPARTURE TIME :', I_SPFLI-DEPTIME.
ENDLOOP. -
How to get value from list item
Hi all,
How to get value from list item?
I have a problem with the List Item object
in the Oracle forms.
How can I retrieve the selected item from
a list ?
I didn't find any function like 'list.GET_
SELECTED_ITEM()'...
thanks
BalaHello,
You get the value as for any other Forms item:
:value := :block.list_tem ;Francois -
How to populate values for a new field in target infoprovider
Hi Experts,
am new to BI. i would like to know on how to populate values for a new field in the target cube with start rotuine.In my case, i have a source infoprovider, which has 3 fields and a target infoprovider, which has 5 fields. i need to populate the new 2 fields in start routine. i dont want to populate using Field routine and am using 3.5 version. please assist with code on how to solve this issue.
Thank you,
Chitra.
Edited by: Chitra_BI on Jun 13, 2011 10:23 AMDebug the standard code and see where the other fields are getting update. you can use the similar approach and area to code for the new field.
Regards,
Lalit Mohan Gupta. -
Combo/ list box in Adobe Reader on iPhone 5
I have exported to an interactive PDF which contains radio buttons, text fields, combo boxes and list boxes. This form is to be viewed on an iPhone in Adobe Reader. All the form objects work except for the combo/list boxes. They appear and a selection can be made but the selection is not displayed in the box. I have tried to enlarge the box, thinking it was too small to display the text.
Can someone please tell me if there is a compatibility issue or a work around for this problem.
Thanks!
GemmaI tested one of my interactive PDF forms, and it works fine in Reader on iPhone 5. Here is what a list box looks like:
If you're having problems with Adobe Reader for iOS, I'd post questions on the Reader for iOS forum here:
http://forums.adobe.com/community/adobe_reader_forums/ios -
How to fill the values in List Box?
Hi Experts,
Can anyone explain me how to fill the values in the List Box such that the value should be from the table?
For Example : Fill the EmpID from table T1 into the ListBox?
Thanks in Advance,
Regards,
Raghuhi,
and u doing it through report means from se38 than here is code...
DATA : BEGIN OF itab OCCURS 0,
matnr LIKE mara-matnr,
END OF itab.
DATA : ok_code LIKE sy-ucomm.
CALL SCREEN 0200.
*& Module STATUS_0200 OUTPUT
text
MODULE status_0200 OUTPUT.
SET PF-STATUS 'Z200'.
ENDMODULE. " STATUS_0200 OUTPUT
*& Module USER_COMMAND_0200 INPUT
text
MODULE user_command_0200 INPUT.
CASE ok_code.
WHEN 'BACK' OR 'UP' OR 'CANC'.
LEAVE PROGRAM.
ENDCASE.
ENDMODULE. " USER_COMMAND_0200 INPUT
*& Module mat_val INPUT
text
MODULE mat_val INPUT.
SELECT matnr FROM mara INTO CORRESPONDING FIELDS OF TABLE itab
WHERE matnr BETWEEN '000000000000000101' AND '000000000000000109'.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'MATNR'
VALUE_ORG = 'S'
tables
value_tab = itab
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDMODULE. " mat_val INPUT
<b>And this is flow logic..</b>
PROCESS BEFORE OUTPUT.
MODULE status_0200.
PROCESS AFTER INPUT.
MODULE user_command_0200.
PROCESS ON VALUE-REQUEST.
FIELD itab-matnr MODULE mat_val. -
How to move up the List Box for para. values in the "Edit Values" window?
Hi,
I am using Crystal Reprots 11.
I create 10 subreports, and each subreport contains a Parameters Field.
The 10 subreports are put in 10 footer sections in increasing order, i.e. subreport1, subreport2, subreport3, ..., subreport10.
When I use "Print Preview" to take a look at the whole report, CR prompts a "Edit Values" window for selecting parameter values.
Maybe because I created subreport3 & subreport4 after I completed other subreports, the List Box with the values required to select for subreport3 & subreport4 were located at the bottom of the "Edit Values" window.
How to move List Box with the values required to select for subreport3 & subreport4 up to the proper location (based on the order of subreports) in the "Edit Values" window?
Thank you in adavance.Hi,
Yes, that is true. The subreport parameters are prompted in the order you insert the subreport.
The only way to fix this is to save subreports from 5 through 10 (Right-click subreport > select Save Subreport as) first.
So, now all you have is Subreports 1, 2 and 3. Go ahead and add the Subreports from 5 to 10 in order and the prompts should be in order too.
-Abhilash -
How to populate values in a Listbox parameter in selection screens
I have a parameter(as list box) field in selection screens. And now I want to populate a list from a ztable field values. How to do that.
Thanks in AdvanceHi,
You have to use the FM VRM_SET_VALUES.
Check this example..
TYPE-POOLS: vrm.
PARAMETERS: p_test TYPE char4 AS LISTBOX VISIBLE LENGTH 10.
DATA: t_data TYPE vrm_values.
INITIALIZATION.
DATA: s_data TYPE vrm_value.
<b>***Here you to have to do the select and populate the internal table
***t_data.</b>
s_data-key = 'ABCD'.
s_data-text = 'First four'.
APPEND s_data TO t_data.
s_data-key = 'EFGHI'.
s_data-text = 'Second four'.
APPEND s_data TO t_data.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = 'P_TEST'
values = t_data
EXCEPTIONS
id_illegal_name = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
START-OF-SELECTION.
WRITE: / p_test.
Thanks,
Naren -
SetSelectedValue for multiple values in List Box
Hi,
I want to set the selectedValue for multiple values in the List Box. If i use setSelectedValue for all the values, it just highlights the last one.
Can anyone tell me how do i highlight multiple values in the List Box?
Scenario:
I have one screen where the List Box and "Go" button is placed. When i select multiple values in the list box and hit "Go" it should display what i have selected in the List Box.
Note: List Box is generated dynamically.
Thanks,
Naresh VsetSelectedValue as the name indicates will set one value and in your case since you are using it multiple times it would pick the last value.
When the user selects multiple values from the list box and clicks on Go you can capture those values in the controller for processing. What are you trying to achieve by resetting all the selected values on the same listbox ?
Maybe you are looking for
-
I have been using Logical Database DBM to get the MRP Lists for materials (MD05). Is there a similar Logical database for the MD04 counterpart? Problem with MRP lists, the data is static until I run MRP, with MD04, I see the realtime result every tim
-
Form Variables Don't Pass for Some Clients
Recently, I've noticed some problems on one of my pages where form field variables aren't passing to my action page. As far as I can tell, this is a new problem. This is the error I'm getting: Error resolving parameter FORM.EMAIL The specified form f
-
plz help me Moderator's note: IMEI number removed. Avoid revealing the IMEI number of your phone as this is a unique identification number for your Nokia phone. It is best that these numbers are kept for personal viewing to prevent unwanted inconveni
-
Any business Object for CJ92?
Hello friends, cam any one of u tell me the standard business object for the transaction CJ92? or any BADI / BTE ? I want to trigger my workflow on saving WBS. Thanks, Romanch
-
i took video of a friends wedding and uploaded it to my imac 27. I want to burn a dvd of the video that i captured. iMovie is pointing me to an application iDVD is this a program that I need to purchase? I am running Lion on this iMac27.