Populating Combo Box list value In Multiple Row
Hi,
i to have the same problem .
I have used add_list_element to populate the list value of the combo box in multiple row.
I am selecting the list value from the database where the combo box value will be different for each row. However, when i do this.
All the previous row combo box list value will follow the combo box value in the last row. How can i resolve this?
i tried with lov but hasnt had any sucesss.in case of LOV can we make the list to appear automatuically and select a value????i havent had much sucesss over it??
is thr any work around for this apart from lov?
Hi,
which product or technology are you talking about ?
Frank
Similar Messages
-
Combo Box - List Value Property
I have a combo box in a form (Forms 10G) which is populated at runtime using values from a parameter table.But when I generate the form it gives a warning message that the list item property has to be filled .
The combo box should display only the values from the database but it should not have any default values.
How can I supress the warning message and avoid entering the list values proeprty at design time.
Thanks in Advance.The warning is part of forms functionality, but is just that, a Warning, and the form should compile if not an error exists. Not sure if there's a way to suppress it, and You can simply leave the list with no values in Your design, as You will provide them at runtime. If coding is ok Your list should display the values You extract from the DB
-
Regarding input combo box list of values
Hi,
I am using JDev 11.1.1.5.0
I used the input combo box list of values in adf application based on VO.When I type a value in the input combo box and press TAB key,it gives first item of that list rather than that entered value and when I open the list, it shows the repeating values of the first item.
Please suggest me some solutions.Hi,
hard to say based on your description. Try with 11.1.1.6 or 11.1.17 and if it reproduces, provide a test case based on the HR schema. Is that an option ? Then send it my way in a zip file renamed to "unzip". My mail address is in my OTN profile, just follow the named link left to this reply
Frank -
Programmatically Change Combo Box List
Hello,
I searched heavily on these forums and found answers that were close, but I cannot quite figure out the following:
I have a large number of individual RF assemblies, most having the same test requirements. My plan is to create a combo box (or similiar) from which the assembly number can be selected. This box will then provide a numeric value to a case structure, which will then provide the need test parameters and what not.
I know the combo box list can be populated with a property node and the property node fed by an array. It is my hope to be able to put this info in a spreadsheet file that can be updated as necessary and then imported into the VI at run time. Therein lies my problem.
Using the strings and value[ ] property, I can make the combo box work correctly, but I cannot figure out how to import the spreadsheet into the proper format to feed the property node. I've tried various spreadsheet import schemes offered on these forums, but none quite hit it. I've tried to figure it out on my own, but I'm just spinning my wheels.
Any help would be appreciated.
Thanks.
Attachments:
PullDown_Module.vi 30 KBHello,
I've attached a VI that I think will help you. I actually used the Index & Bundle Cluster Array function, which I don't think I've ever used before. Anyway, this function gets the two arrays of strings from my tab-delimited text file and manipulates them into an array of clusters containing two strings each, which is the data type required by the StringsAndValues[] property of the Combo Box:
I hope this gets you started in the right direction. Good luck!
-D
Message Edited by Darren on 03-17-200602:18 PM
Darren Nattinger, CLA
LabVIEW Artisan and Nugget Penman
Attachments:
Combo_Box_Screenshot.jpg 100 KB
Combo_Box.vi 27 KB
data.txt 1 KB -
Combo box list update or insert restriction
Dear all,
I have a list item which type is combo box.
it shows the Departments list from the department table at run time.
i populate at through a procedure at runtime.
problem
the user could update the list by writing something into it.
i want to force the user to just select a value from the list, not update or insert.
i change the properties of the list item which prevent insertion or updation,
but it disable the selection from the list as well.
how to prevent the user to write something in the combo box list while giving him the
selection authority using the combo box list item?
Thanks and Regardsthank you dear,
but i want to use the combo box instead.
for popup list there is a problem of the null value,
you must assign a value to the popup list and set its required property to true for doing so.
and the combo box do not need this. and my desired functionality require it.
Edited by: Muhammad on Feb 28, 2010 3:10 AM
Edited by: Muhammad on Feb 28, 2010 3:21 AM -
How To Concatenate Column Values from Multiple Rows into a Single Column?
How do I create a SQL query that will concatenate column values from multiple rows into a single column?
Last First Code
Lesand Danny 1
Lesand Danny 2
Lesand Danny 3
Benedi Eric 7
Benedi Eric 14
Result should look like:
Last First Codes
Lesand Danny 1,2,3
Benedi Eric 7,14
Thanks,
David JohnsonStarting with Oracle 9i
select last, first, substr(max(sys_connect_by_path(code,',')),2) codes
from
(select last, first, code, row_number() over(partition by last, first order by code) rn
from a)
connect by last = prior last and first = prior first and prior rn = rn -1
start with rn = 1
group by last, first
LAST FIRST CODES
Lesand Danny 1,2,3
Benedi Eric 7,14Regards
Dmytro -
Add items to a combo box list if not in existing list
I'm trying to set up a combo box for an expense report form. I want users to be able to select an account from an existing combo box list or to add an account to the list if it doesn't exist already.
Ideal situation:
For example, the user has "Office Supplies" and "Meals - Business Related" as existing options in the combo box. They need to enter a parking expense, which doesn't exist on the list, so they type in "Parking" in the combo box. They attempt to advance to the next field. A message box pops up and says, "Do you want to add "Parking" to your list of expense options? They click "Yes" and the combo box will now include Parking in the future.
Any assistance would be greatly appreciated!George,
Do you know of a way to save the list addition to the original file without saving any new form data with it? In other words, I would like the item to be on the list when the document is opened in the future, but if they just save it, it will save with the form data they've just entered.
Thanks! -
Concatenate a column value across multiple rows - PDW
We are using PDW based on SQL2014. We require an efficient logic on how to concatenate a column value across multiple rows. We have the following table
T1
(CompanyID, StateCD)
Having following rows:
1 NY
1 NJ
1 CT
2 MA
2 NJ
2 VA
3 FL
3 CA
We need a code snippet which will return following result set:
1
CT,NJ,NY
2
MA,NJ,VA
3
CA,FL
We have tried built-in function STUFF with FOR XML PATH clause and it is not supported in PDW. So, we need a fast alternative.Hi Try this:
SELECT * INTO #ABC
FROM
SELECT 1 AS ID,'NY' AS NAME
UNION
SELECT 1 AS ID,'NJ' AS NAME
UNION
SELECT 1 AS ID,'CT' AS NAME
UNION
SELECT 2 AS ID,'MA' AS NAME
UNION
SELECT 2 AS ID,'NJ' AS NAME
UNION
SELECT 2 AS ID,'VA' AS NAME
UNION
SELECT 3 AS ID,'FL' AS NAME
UNION
SELECT 3 AS ID,'CA' AS NAME
)A
CREATE TABLE ##CDB (ID INT, NAME NVARCHAR(800))
DECLARE @TMP VARCHAR(MAX),
@V_MIN INT,
@V_MAX INT,
@V_COUNT INT
SELECT @V_MIN=MIN(ID),@V_MAX=MAX(ID) FROM #ABC
SET @V_COUNT=@V_MIN
WHILE @V_COUNT<=@V_MAX
BEGIN
SET @TMP = '' SELECT @TMP = @TMP + CONVERT(VARCHAR,NAME) + ', ' FROM #ABC
WHERE ID=@V_COUNT
INSERT INTO ##CDB (ID, NAME) SELECT @V_COUNT AS ID ,CAST(SUBSTRING(@TMP, 0, LEN(@TMP)) AS VARCHAR(8000)) AS NAME
SET @V_COUNT=@V_COUNT+1
END
SELECT * FROM ##CDB
OR
SELECT * INTO #ABC
FROM
SELECT 1 AS ID,'NY' AS NAME
UNION
SELECT 1 AS ID,'NJ' AS NAME
UNION
SELECT 1 AS ID,'CT' AS NAME
UNION
SELECT 2 AS ID,'MA' AS NAME
UNION
SELECT 2 AS ID,'NJ' AS NAME
UNION
SELECT 2 AS ID,'VA' AS NAME
UNION
SELECT 3 AS ID,'FL' AS NAME
UNION
SELECT 3 AS ID,'CA' AS NAME
UNION
SELECT 5 AS ID,'LG' AS NAME
UNION
SELECT 5 AS ID,'AP' AS NAME
)A
CREATE TABLE ##CDB (ID INT, NAME NVARCHAR(800))
DECLARE @TMP VARCHAR(MAX),
@V_MIN INT,
@V_MAX INT,
@V_COUNT INT
SELECT @V_MIN=MIN(ID),@V_MAX=MAX(ID) FROM #ABC
SET @V_COUNT=@V_MIN
WHILE @V_COUNT<=@V_MAX
BEGIN
SET @TMP = '' SELECT @TMP = @TMP + CONVERT(VARCHAR,NAME) + ', ' FROM #ABC
WHERE ID=@V_COUNT
SELECT @V_COUNT AS ID ,CAST(SUBSTRING(@TMP, 0, LEN(@TMP)) AS VARCHAR(8000)) AS NAME INTO #TEMP
INSERT INTO ##CDB (ID, NAME) SELECT ID, NAME FROM #TEMP WHERE NAME<>''
DROP TABLE #TEMP
SET @V_COUNT=@V_COUNT+1
END
SELECT * FROM ##CDB
Thanks Shiven:) If Answer is Helpful, Please Vote -
Reg : Concatenation of a column value with multiple rows... URGENT
Hello,
Could any of u help me in concatenating a column value with
multiple rows ???
For ex : I've the following data from emp table :
DEPTNO ENAME
10 KING'S
30 BLAKE
10 CLARK
10 TOM JONES
30 ALLEN
30 JAMES
20 SMITH
20 SCOTT
20 MILLER
10 MILLER
20 rajeev
I want the following output :
deptno Concat_value
10 KING'S,CLARK,TOM JONES,MILLER
20 Rajeev,MILLER,SMITH,SCOTT
30 BLAKE,ALLEN,JAMES
Thanks in Advance,
SriniHello Naveen,
Thanks for ur answer. But I need a single SQL query for getting
what I want. I know the solution in PL/SQL.
Please try it in a single SQL....
Thanks again,
Srini -
Please - immediate help needed parsing csv values into multiple rows
Hello, we have a very immediate need to be able to parse out a field of comma separated values into individual rows. The following is an example written in SQL Server syntax which does not work in Oracle.
The tricky part is that each ROUTES can be a different length, and each CSV can have a different number of routes in it.
Here is an example of the table ("Quotes") of CSV values I want to normalize:
TPNUMBER ROUTES
1001 1, 56W, 18
1002 2, 16, 186, 28
Here is an example of what I need it to look like:
TPNUMBER ROUTES
1001 1
1001 56W
1001 18
1002 2
1002 16
1002 186
1002 28
Here is the "Tally" table for the query below:
ID
1
2
3
4
5
6
7
And finally, here is the query which parses CSV values into multiple rows but which does not work in Oralce:
SELECT TPNUMBER,
NullIf(SubString(',' + ROUTES + ',' , ID , CharIndex(',' , ',' + ROUTES + ',' , ID) - ID) , '') AS ONEROUTE
FROM Tally, Quotes
WHERE ID <= Len(',' + ROUTES + ',') AND SubString(',' + Phrase + ',' , ID - 1, 1) = ','
AND CharIndex(',' , ',' + ROUTES + ',' , ID) - ID > 0
It may be necessary to use a cursor to loop through the CSV table and process each row (a loop within another loop...) but this is beyond my comprehesion of PL/SQL.
Many thanks in advance for your advice/help.
apkNot sure what you are trying to do with the last step, but this should work for the first part. I assume you would use sqlldr but I just did inserts instead. You might need more than 5 "routes" in the csv. You could put some reasonable max on that number of columns:
SQL>create table t_csv
2 (TPNUMBER varchar2(20),
3 ROUTE_1 VARCHAR2(5),
4 ROUTE_2 VARCHAR2(5),
5 ROUTE_3 VARCHAR2(5),
6 ROUTE_4 VARCHAR2(5),
7 ROUTE_5 VARCHAR2(5),
8 ROUTE_6 VARCHAR2(5) );
Table created.
SQL>INSERT INTO t_csv (TPNUMBER,ROUTE_1,ROUTE_2) values( '1001 1', '56W', '18' );
1 row created.
SQL>INSERT INTO t_csv (TPNUMBER,ROUTE_1,ROUTE_2,ROUTE_3) values( '1002 2', '16', '186', '28');
1 row created.
SQL>create table t_quotes(
2 tpnumber NUMBER,
3 routes VARCHAR2(5));
Table created.
SQL>DECLARE
2 L_tpnumber NUMBER;
3 L_route VARCHAR2(5);
4 begin
5 for rec in (select * from t_csv) loop
6 L_tpnumber := SUBSTR(rec.tpnumber,1,INSTR(rec.tpnumber,' ')-1);
7 L_route := SUBSTR(rec.tpnumber,INSTR(rec.tpnumber,' ')+1);
8 insert into t_quotes values( L_tpnumber, l_route );
9 if rec.route_1 is not null then
10 insert into t_quotes values( L_tpnumber, rec.route_1 );
11 end if;
12 if rec.route_2 is not null then
13 insert into t_quotes values( L_tpnumber, rec.route_2 );
14 end if;
15 if rec.route_3 is not null then
16 insert into t_quotes values( L_tpnumber, rec.route_3 );
17 end if;
18 if rec.route_4 is not null then
19 insert into t_quotes values( L_tpnumber, rec.route_4 );
20 end if;
21 if rec.route_5 is not null then
22 insert into t_quotes values( L_tpnumber, rec.route_5 );
23 end if;
24 end loop;
25 end;
26 /
PL/SQL procedure successfully completed.
SQL> select tpnumber, routes from t_quotes;
TPNUMBER ROUTE
1001 1
1001 56W
1001 18
1002 2
1002 16
1002 186
1002 28
7 rows selected. -
Table control list box. different values in each row of the list box
Hi all,
i have a requirement to display text box in table control. Each row of list box should contain different values.
i tried with the below code but the values are not getting populated in list box. please give your ideas.
I tried with list box which is having same values in all rows, it is working fine.
loop at itab.
select vbeln from ZSD_PS_BLAWB into ZSD_PS_BLAWB-vbeln
where BLAWBNO = itab-BLAWBNO and
BLAWBDT = itab-BLAWBDT and
CTRNO = itab-CTRNO.
if sy-subrc = 0.
index = 1.
list3-key = index.
list3-text = ZSD_PS_BLAWB-vbeln.
append list3 to list2.
index = index + 1.
endif.
endselect.
clear index.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
ID = 'ITAB-VBELN'
VALUES = list2
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.
modify itab.
endloop.
Thanks in advance.Hi,
this is code example for listbox
TYPE-POOLS vrm .
DATA: lt_vrm_values TYPE TABLE OF vrm_value.
DATA: wa_vrm_values TYPE vrm_value.
PARAMETER p_list AS LISTBOX VISIBLE LENGTH 10.
INITIALIZATION.
wa_vrm_values-key = 'Key1'.
wa_vrm_values-text = 'Value1'.
APPEND wa_vrm_values TO lt_vrm_values.
wa_vrm_values-key = 'Key2'.
wa_vrm_values-text = 'Value2'.
APPEND wa_vrm_values TO lt_vrm_values.
wa_vrm_values-key = 'Key3'.
wa_vrm_values-text = 'Value3'.
APPEND wa_vrm_values TO lt_vrm_values.
AT SELECTION-SCREEN OUTPUT.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = 'P_LIST'
values = lt_vrm_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.
To fill it with data from DB, just do select in INITIALIZATION and put that values with same alghoritmus.
Manas M.
P.S.: This is very easy question, you should use search ... -
Populating a combo box using values in a table
I am trying to populate a drop down box with values from a table. I have got so far.
The combo box is populated however the values in the box are blank.
Can some suggest the necessary modifications?
$query="select distinct(house_type) from tbl_accommodation";
$stmt = ociparse($conn, $query);
ociexecute($stmt);
echo '<select name="house_type">';
echo '<option value = "-1">Select:</option>';
while($row=ocifetch($stmt)) {
echo '<option>' . $row['house_type'] . '</option>';
echo '</select>';
ThanksThe ocifetch() function needs ociresult() to get the data. See
http://us.php.net/manual/en/function.oci-result.php
You might want to use oci_fetch_assoc() instead.
while($row=oci_fetch_assoc($stmt)) {
echo '<option>' . $row['HOUSE_TYPE'] . '</option>';
}For associative arrays, use the column name in upper case.
NB Oci_fetch_assoc() is a PHP 5 function. If you don't have it, then
you are using PHP 4 which has a much older version of the OCI8
extension. I'd recommend upgrading PHP, or just replacing the old
OCI8 with a newer one. See other recent threads about how to do this. -
Setting value in input combo box list of values programmatically.
Hi,
I have the following requirement.
I have a combo box LOV defined in the column of application table. Whenever the user is trying to change this value, I need to check for a condition and invoke a warning popup with yes/no button and allow the user to change if dialog outcome is 'yes'. If the outcome is 'No', then i need to reset the combo box to its original value. To do this, in the valuechangelistener of LOV, I am invoking the warning popup and control will coming out of the valuechangelistener and dialog listener will be called.
How do i set the combo box value in dialog listener ? and How do I retain the existing value of the LOV if user clicks on 'No' button.
Jdev Version : Build JDEVADF_11.1.1.7.0_GENERIC_130226.1400.6493
Thanks in advance.
HarishYou could, for example. store both of them (old value, along with new one) in the pageFlowScope. You can do that in the valueChangeListener (before calling popup), and use them in the dialog listener...
-
Help needed on combo-box dynamic values??
Hi ,
i need to populate values in 2 combo-boxes where the values
in the second combo is dependent on the first .. from db ...
i.e if i select a value in 1 combo then the values in the second combo should be populated accordingly from the db..
pls suggest on this.You can use onchange event of the first combo box, then you can submit a form sending the first combo box value, then response filling the second combo box.
If you don't want to make a request, you should use ajax to get data from database. -
Hi All,
I'm developing a Form which has BP Code and a ComboBox which, after entering a valid Supplier in the BPCode EditText, updates the ComboBox with the Supplier Catalog Numbers of all the Items where the CardCode (in OITM) matches the BPCode. I have this working for the first change of BPCode but when the BPCode changes I want to update the ComboBox ValidValues. I have tried many methods but cannot remove the ValidValues which are already there. I have tried linking the ComboBox to a DataTable, clearing the DataTable and rebinding but this doesn't seem to work either.
Any help on removing ValidValues from a list when I don't know what is already there (as the VV list is now out of scope) or adding a data bound ComboBox would be most appreciated.
Thanks in anticipation,
DavidHi David,
Try following
'get the reference to the state combo box
oCombo = oForm.Items.Item("combo box unique id").Specific
'remove existing items if any
'before adding new items
For Flag = 0 To oCombo.ValidValues.Count - 1
oCombo.ValidValues.Remove(0, SAPbouiCOM.BoSearchKey.psk_Index)
Next
After this, use a recordset or datatable to retrieve the records, and than a loop to add valid values to the combo box.
Rahul
Maybe you are looking for
-
Taking long time to start when weblogic 11g admin server
Hi When I ran following command in linux 64-bit environmnt to start weblogic 11g admin server, it is taking such a long time (some time it is taking one and half hour, some time it is taking 24 hours and still showing work under process) $HOME/Middle
-
Is it possible for the labels of new fields to not line up with already existing fields?
I am attempting to create a form where some of the labels are longer than others. Unfortunately, it appears that all labels have to match up exactly with each other. So, when I create a new field and extend the length of the label, it extends the len
-
Where do I put passcode in 3g to activate bluetooh in car
where do I put passcode in iphone to activate handsfree
-
Hello, I want the content part of my website run the length of the borwser but have the page background at the top and bottom of content. (basically have the webpage appear as a banner the middle of the screen ontop of a tiled bakground) I have been
-
Revaluation of production orders at actual prices
Dear All, My client want to revaluate production orders at actual prices, but we have only one costing version for plan and actual. Exactly I don't know how to revaluate production orders. As we have only one version, I want to change the activity ra