Programatically populate a listbox in a PDA
Is it possible to populate a listbox programatically on a PDA? For my application, I have to record data for a specified number of parameters. These parameters are stored in a file that I can access at a later time to input more data. I can check this file for what parameters already have data. What I need to do is if a particular parameter already has data stored in it I need to remove it from the listbox so I don't have the option to change this data. This would be easy if property nodes were available in the PDA module. Can the items in the listbox be changed programatically?
Thanks,
AJL
While there are no property nodes, there are "property VIs". These can be found in the application control palette and I believe one of them does set listbox strings. If it exists, it might only be available for 7.1.
Also, there are more "property VIs" available .here
Try to take over the world!
Similar Messages
-
How to Populate a listbox based on another listbox selection. Please help!
Hi Experts,
I have a requirement where I have two listboxs(dropdown list) in a selection screen. I have to populate the second listbox based on the selected item from the first listbox. How to do this?
I have created a listbox in a selection screen using
Parameters: p_soldto as listbox visible length 30 user-command chg,
p_shipto as listbox visible length 30.
Then I have tried to look at the value of item selected from first listbox in AT SELECTION-SCREEN OUTPUT, But I am not getting any value of p_soldto.
I think I am doing something wrong. I think I have to use some event handling like on selection of an item from listbox. But I don't see any such event handing in ABAP.
Please give me some code example.
Please help!
Thanks
GopalHI,
Check this program, it is using a list box and filling values into it at initilization event.
<b>REPORT ztest2.
TYPE-POOLS : vrm.
tables: bkpf.
DATA : values TYPE vrm_values.
DATA : wa LIKE LINE OF values.
PARAMETERS : list_box(10) TYPE c AS LISTBOX VISIBLE LENGTH 10.
PARAMETERS: dd type bkpf-BSTAT user-command abc.
select-options: a for bkpf-bukrs MODIF ID buk.
select-options: b for bkpf-belnr MODIF ID SEL.
at selection-screen output.
If list_box = 2.
loop at screen.
if screen-group1 = 'SEL'.
screen-input = 0.
modify screen.
endif.
endloop.
endif.
INITIALIZATION.
wa-key = '1'.
wa-text = 'Orange'.
APPEND wa TO values.
wa-key = '2'.
wa-text = 'Red'.
APPEND wa TO values.
wa-key = '3'.
wa-text = 'Blue'.
APPEND wa TO values.
wa-key = '4'.
wa-text = 'Gray'.
APPEND wa TO values.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = 'LIST_BOX'
values = values
EXCEPTIONS
id_illegal_name = 1
OTHERS = 2.</b>
Regards, -
How to populate a listbox with key in a table control
I have the following code:
MODULE carga_huecos INPUT.
DATA: BEGIN OF li_huecos OCCURS 0,
key(40) TYPE c,
text(80) TYPE c,
END OF li_huecos.
DATA: BEGIN OF estru_hueco OCCURS 0,
hueco LIKE zmov_wm-hueco,
END OF estru_hueco.
CLEAR: li_huecos, estru_hueco.
REFRESH: li_huecos, estru_hueco.
SELECT lgpla
FROM lagp
INTO TABLE estru_hueco
WHERE lgnum = 'WWM' AND
lgtyp = i_zmov_wm-almacen.
LOOP AT estru_hueco.
li_huecos-key = estru_hueco-hueco.
li_huecos-text = estru_hueco-hueco.
APPEND li_huecos.
CLEAR li_huecos.
ENDLOOP.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = 'I_ZMOV_WM-HUECO'
values = li_huecos[]
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.
I see that internal table li_huecos has the values I need. But vrm_set_values function is not working. I need this values to be seen in a table control field which I have defined as "listbox with key". The name of the internal table associated to the table control is "I_zmov_wm" and the field is HUECO.
After function is executed sy-subrc = 0 but no value is seen in the list.
Thanks.hi ,
instead of this
LOOP AT estru_hueco.
li_huecos-key = estru_hueco-hueco.
li_huecos-text = estru_hueco-hueco.
APPEND li_huecos.
CLEAR li_huecos.
ENDLOOP.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = 'I_ZMOV_WM-HUECO'
values = li_huecos[]
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.
add this
data : name type vrm_id .
LOOP AT estru_hueco.
li_huecos-key = estru_hueco-hueco.
li_huecos-text = estru_hueco-hueco.
APPEND li_huecos.
CLEAR li_huecos.
ENDLOOP.
name = 'I_ZMOV_WM-HUECO' .
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = name
values = li_huecos[]
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.
regards
Deepak. -
How to dynamically populate a listbox with the values in the database
Hi,
How do dynamically populate the list box with the values in the oracle database. I want to load the list box at run time.Plz anybody help me out to find a solution for this problem.
Thanks in advance...
Regards,
Shiva.u can wite code like this..on jsp page
<%
ResultSet rs = stmt.executeQuery("select vender_name from vendors");
%>
<select name = "vendorlist">
<%
while(rs.next()){
String vname = rs.getString(1);
%>
<option value="<%=vname%>"><%=vname%></option%>
<%
rs.close();
%> -
How to programatically populate data in ADF shuttle component?
Hi,
Can anyone please let me know the code for programatically pouplating data into the shuttle Oracle ADF shuttle component using ArrayList object? I have my data(records) in an Arraylist object and I am using JDEVADF_11.1.1.3.PS2_GENERIC_100408.2356.5660.
Thanks,
VikasHave a look at this thread:
http://baigsorcl.blogspot.com/2010/10/creating-shuttle-component-in-oracle.html
Thanks,
Navaneeth -
XML - programaticly data to ListBox
Hello. I am new to flex.
I am interesting. I have data in .XML and Load it into
DataGrid.
When I click on item I take out from dataGrid some rows and
show then on some controls on other panel.
So how can I throught AS take dgRows.Selected.Item or from
XML and populate List.
Thanks.
(This is not the topic. But do you have some good book to
recommend.)Hello. I am new to flex.
I am interesting. I have data in .XML and Load it into
DataGrid.
When I click on item I take out from dataGrid some rows and
show then on some controls on other panel.
So how can I throught AS take dgRows.Selected.Item or from
XML and populate List.
Thanks.
(This is not the topic. But do you have some good book to
recommend.) -
Populate a listbox using javascript
I want to populate a list box using Javascript .
I have a following script:
// Place all prepopulation data into a single data structure
var TrainData = { 12002:{ StationFrom: "New Delhi", StationTo: "Bhopal", Stn: ["MTJ", "AGC"]
12004:{ StationFrom: "NDLS", StationTo: "Lucknow" }};
function SetFieldValues(cTrainName)
this.getField("TrainFromName").value = TrainData[cTrainName].StationFrom;
this.getField("TrainToName").value = TrainData[cTrainName].StationTo;
this.getField("TrainStn").value = TrainData[cTrainName].Stn;
I'm able to get data (MTJ, AGC) using this.getField("TrainStn").value = TrainData[cTrainName].Stn; to a text box
whereas i require this data into a list box.
Let me know how to do this?You use the setItems method of the combo box or list.
There are some good examples of how to do this at this thread:
https://forums.adobe.com/thread/1197859 -
How to populate listbox on a screen and get the selected record.
I have place a edit box and converted to listbox .
It should diplay T001-Bukrs values.
When the user selects a value I should get the selected value ...
How can I do that?
The screen is a '0100'. not the normal 1000 selection screen.
Regards.
Erkan.Hi
You can try something like this to populate the listbox
type-pools: VRM.
data: l_t_values type vrm_values with header line,
l_wa_ce_conc type pa0001.
clear: l_wa_ce_conc,
l_t_values.
refresh: l_t_values.
select cod_ce_conc
des_ce_conc
into corresponding fields of l_wa_ce_conc
from pa0001
l_t_values-key = l_wa_ce_conc-cod_ce_conc.
l_t_values-text = l_wa_ce_conc-des_ce_conc.
append l_t_values.
endselect.
call function 'VRM_SET_VALUES'
exporting
id = 'p0061-cod_ce_conc' <=== Your Dynpro field
values = l_t_values[]
exceptions
id_illegal_name = 1
others = 2.
if sy-subrc <> 0.
message e398(00) with text-001.
endif. -
How are listbox and radiobutton items working in oracle forms?!?
Hi all.
I need some help over may be a standard case in every real project.
Imagine i have a db table PERSONS -> PERSONID, NAME, TOWNID, MATRIALSTATUSID
and table TOWNS -> TOWNID, TOWNNAME
and table MATRIALSTATUS -> MATRIALSTATUSID, NAME
And i have a standard oracle form with text item person name, listbox item with many towns (from TOWNS table) and the town of the concrete person is selected when the form is inited, after that we can change it by selecting other town and saving it to db.
The same is with matrial status but lets make it as radio group with 3 buttons married, not merried, divorced.
So my questions is how to populate the listbox(radiogroup) for 1 person by selecting data from other preferenced tables. And most important how this data is populated in the list box for example i.e. every town name is indexed in some way or what. I am a java developer and for example in java the control listbox item has two attributes the name(string) that is displayed in the listbox and a index binded for that name, and i work with indexes and show strings. I read about LOV but couldn't understand how to "index" the populated values. Is it possible.
And please can you give me some example of how to load (populate + set current town), change and (if it is possible) "index". The same case appears to be valid with radio buttons and check boxes.
You could give me some tutorials too, i cant find simple and focused on the problem examples.
Thank you.
Best Regards.Hi,
well here is what i done for now.
First I created recordGroup with query SELECT GENDER, GENDERID FROM GENDERS (I want to select all genders and place them in listbox)
After that i created Listbox and on triger when-new-form i placed this code:
DECLARE
it ITEM:=FIND_ITEM('PERSONS_DETAILS.GENDER');
BEGIN
CLEAR_LIST(it);
POPULATE_LIST(it, 'RG_LIST');
DEFAULT_VALUE(NULL, 'GLOBAL.PERSONID');
IF :GLOBAL.PERSONID IS NOT NULL THEN
SET_BLOCK_PROPERTY('PERSONS_DETAILS', ONETIME_WHERE, 'PERSONID=' || :GLOBAL.PERSONID);
GO_BLOCK('PERSONS_DETAILS');
EXECUTE_QUERY;
:GLOBAL.PERSONID:=NULL;
END IF;
END;
Imagine i have a main form PERSONS that displays general information about many persons (the data is retrieved from PERSONS db table). The form PERSONS displays PERSONID, PERSON FIRSTNAME and PERSON LASTNAME. When a user double click on some row from the PERSONS FORM( i have tabular datablock that displays the person data) other form 'PERSONS_DETAILS' must be displayed with detailed information about the selected person. The data about the selected person is loaded well but i want gender to be listbox and the user can change it if he wants. So i have TABLE GENDERS 1:N with PERSONS and the table has GENDERID AND GENDER. When the user double clicks on single person i must populate the list with all possible genders from the GENDERS table and set the gender of the selected person. How to do that?
P.S.: The example with gender is not very good because it could be only male female, but don't worry about it. You may think about gender list as townlist :)
It finds me the GENDER LIST and populates it. After that i take the personId (that is global variable and comes from previous form) and displays all the data for the person with id personid.
When i compile the form it gives me :
FRM-30351: No list elements defined for list item.
List GENDER
Edited by: user9536806 on Nov 19, 2008 3:01 AM -
How can I show 2 fields in a Listbox ?
In my datatable I have a field "firstname" and a field "lastname". How can I manage to get "firstname lastname" shown in the listbox?
I have not seen any way that creator allows you to do this directly from the query view. However i know of two option that i believe will produce the result that you are looking for.
1. Concatenate the fields from the sql query, for example in MySQL there is a function "concat" that allows you to display multiple fields (with strings if you like) as one column in the result.
eg: select user_id, concat(firstname," ",lastname) from users
the above works in mysql and i believe that there would be an equivilant function in other databases as well.
2. Use a programming code to reset the text in the options array/arraylist that is used to populate the listbox. This solution however takes away from the nice drag and drop features that i love about creator.
hope this helps -
How to populate an empty SUN DS with entries from Windows AD?
Hi,
Can someone guide me on the step by step of populating an empty DS on SUN with entries from Windows AD?
Though i read the docs i'm unable to proceed, and would appreciate if someone could throw some light on this topic.
Thanks in advance
mdHello,
How about using a listbox with glyph?
1. select the folder
2. populate the listbox with files in the selected folder
3. set "unchecked" glyph for all the items (files)
4. when double clic on an item, chnage the corresponding glyph to "checked"
5. when selection is done, clic ok
6. then filtre the array depending on the glyph
See attached example in LV 8.6
When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"
Attachments:
list.vi 17 KB -
Item on the listbox cant be selected. PLS HELP.
hello! i am a newbie to ABAP development.
I followed the listbox steps stated on the RSDEMO_DROPDOWN_LISTBOX because I want to populate my listbox (I created from the screen painter) with the data from a table. It was successful and I can see the data now. Problem is when I am selecting an item of the listbox, it wont be selected. the only thing always selected is the first item on the listbox? what is happening? I do not understand. PLS HELP.
big thanks.
TYPE-POOLS: VRM.
DATA: VALUE TYPE VRM_VALUES WITH HEADER LINE.
DATA: DD1(20).
DATA: INT_SPFLI LIKE SPFLI OCCURS 10 WITH HEADER LINE.
SELECT * FROM SPFLI INTO TABLE INT_SPFLI.
START-OF-SELECTION.
SET SCREEN 100.
MODULE PBO OUTPUT.
LOOP AT INT_SPFLI.
VALUE-TEXT = INT_SPFLI-CITYFROM.
APPEND VALUE.
ENDLOOP.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
ID = 'DD1'
VALUES = VALUE[].
ENDMODULE.
MODULE PAI INPUT.
CASE SY-UCOMM.
WHEN 'BTNEXIT'.
LEAVE PROGRAM.
ENDCASE.
ENDMODULE.<b>THIS IS A FOLLOW UP QUESTION.</b>
I have listbox DD1 and I populated that with SPFLI-CITYFROM data. I used SELECT DISTINCT statement so that it will not repeat same entry on my list box. It was successful but then on the 2nd time and on the succeeding times you click on the listbox (trying to select other item), the listbox shows all the city entries from the SPFLI-CITYFROM. The SELECT DISTINCT takes effect only at first because as I have said on the 2nd and succeeding times you click the listbox, it will show you all entries of SPFLI-CITYFROM. why is that? i dont understand.
im sorry if i sound so dumb. im a newbie.<b> big thanks to all. </b>
TYPE-POOLS: VRM.
DATA: VALUE TYPE VRM_VALUES WITH HEADER LINE.
DATA: DD1(20).
DATA: INT_SPFLI TYPE STANDARD TABLE OF SPFLI WITH HEADER LINE.
SELECT DISTINCT CITYFROM FROM SPFLI INTO CORRESPONDING FIELDS OF TABLE INT_SPFLI.
START-OF-SELECTION.
SET SCREEN 100.
MODULE PBO OUTPUT.
LOOP AT INT_SPFLI.
VALUE-KEY = INT_SPFLI-CITYFROM.
APPEND VALUE.
ENDLOOP.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
ID = 'DD1'
VALUES = VALUE[].
ENDMODULE.
MODULE PAI INPUT.
CASE SY-UCOMM.
WHEN 'BTNEXIT'.
LEAVE PROGRAM.
ENDCASE.
ENDMODULE. -
Populating Listbox in JSP!
Hi folks,
Im new to JSP and have been trying to figure out how to populate a listbox using JSP code.
I was hoping to get names from a database and add these names to the listbox.
Any help or suggestions would be greatly appreciated.
Thanks in Advance..The FormattedDataSet can easily do this with a couple lines of code. Check out the java docs and live demo with sample code at http://www.fdsapi.com
-
How to re-paint a listbox, and to display ohms symbol w/text
Hi All,
Please help me build a string which includes characters from the Roman alphabet and the ohms symbol. I thought I'd done this before, but perhaps not.
The plan is to populate a listbox with such strings and set cell BG color to indicate test pass/fail. BG color of all cells can be "cleared" (changed to default) by setting the color of cell (-2,-2) (thanks again becktho!)...
... but to see the change requires listbox to be re-painted. Was hoping for a nice way to force repaint (besides re-size/re-pos.)
Any help would be appreciated!
When they give imbeciles handicap-parking, I won't have so far to walk!In Labview, switch to the Symbol font, then double click to make a label or comment, and type shift-W. This makes W.
Also, unicode 03A9 is the code for ohms.
- tbob
Inventor of the WORM Global -
Exception in programatically created tree table
Hi All
I programatically populate the data for the tree table using TreeModel and ChildTreeProperty classes.
I get the below exception
javax.faces.model.NoRowAvailableException.
1. Please share any ideas on this exception.
2. Can you please guide me to an Oracle doc for programatically implementing a tree table?
Thanks,
RaghuramOpen the jar with WinRar for example and verify if it is ok.
(Maybe it's corrupted)
Maybe you are looking for
-
Regarding alv report with check boxes
Hai, i have four check boxes as input named new,rejected,accepted and all.these four four check boxes information is nothing but the information that displayed under one field in my internal table.if i click the new check box means that corresponding
-
How can I reinstall the app store?? Help
When my iPad updated I lost my app store..how can I reinstall
-
Having problems installing my linksys wrt54g v8 router with my verizon DSL internet connection. On the step where the computer checks the internet connection I get an error message saying. Unable to detect internet connection or something like that.
-
Hi All: I work in BW and trying to write routines and having difficulties in internal tables. I have Internal table 1 and internal Table 2 with purchase order as key field.For the same orders I need some fields from table 1 and some from table 2 to f
-
Hi All, I have a query. I have gone to transaction code va05 for open order report. In open order there are two ststus for open orders 1) Not Delivered 2) Partially Delivered Now my client's requirement is how many quantities are open for a not d