Select list (LOV)
HelloIs it possible to display a blank for a list of value? It currently displays a % sign when I only want to show an empty value? I activated the value "Null display" but did not specify a 'display value Null. How to display only one value blank or empty? Do not want to specify a "display Null value.
Thank you
Hello
Entered a character space in 'Value Null to display' will do the trick (but typically something like - select a value--is easier to apply).
Greetings,
Roel
http://roelhartman.blogspot.com/
You can reward this response in marking it as useful or Correct ;-)
Tags: Database
Similar Questions
-
Select list LOV (error ORA-01722: invalid number)
Hello
I use this procedure to insert data into a table through a submit after processes.
I kept getting this error during the presentation of the page.CREATE OR REPLACE PROCEDURE PR_INS_TMP_STUDENTS( v_tmp_stu_id_in IN NUMBER ) IS BEGIN INSERT INTO TMP_STUDENTS ( stu_id, stu_name_last, stu_name_first, stu_name_middle, stu_name_suffix, stu_name_prefer_last, stu_name_prefer_first, sch_id ) VALUES ( v_tmp_stu_id_out, V('p50100_stu_name_last'), V('p50100_stu_name_first'), V('p50100_stu_name_middle'), V('p50100_stu_name_suffix'), V('p50100_stu_name_prefer_last'), V('p50100_stu_name_prefer_first'), V('p50100_sch_id') ); END;
I go back to sch_id which is a list of number type selection (3.0). The LOV selection list has the following attributes:ORA-01722: invalid number Error Insert Failed!
Here's the code for the LOV:Display extra value: No Dynamic Translation: No Number of Columns: 1 Display Null: Yes Null Display Value: blank Null Return Value: blank
I don't know why I kept ORA-01722: invalid number during the presentation of the page. Everyone ran through this issue?SELECT distinct(site_id || ' - ' || initcap(lower(site_name))) site_desc, site_id ret_val FROM sa.SITE_DEMOGRAPHICS@sis order by 2
Hello
First of all, you should also use nv ('itemname') for numeric values-, make sure you use v() instead of V() for others.
If the p50100_sch_id can be null, the return value will be "null %" - which could be the cause of the error.
In such cases, I tend to do something like -1 of the value zero, then do a test for that, in the code - if the value is - 1, I replace NULL
Andy
-
How to use a Select list on a second primary key column in a tabular presentation?
Hello
I created a tabular presentation located on the details page of the user (form), that allows to manage roles for this user.
The shape of table contains 3 elements:
-> a checkbox
-> user (PK) column is hidden, and its default value is generated by a function pl/sql (to submit the time), which refers to the element to username.
-> the role of the column is displayed as a named select list LOV: add you a line, choose a role, submit, etc..
But my ROLES table (not created by me...) contains 2 columns: USER and GRANTED_ROLE.
The USER is the primary key, but a user can have multiple roles (= one line per role).
GRANTED_ROLE is the second primary key, so that we can differentiate between one line of another.
At the moment my tabular form has only one primary key (USER), so the GRANTED_ROLE can display as a list select.
But, for this reason, in my opinion, remove the button do not work: all the lines of the user have the same key, so when I select a few lines to remove these, all lines in the form of tables are deleted.
I don't know how my button Delete could recognize the subkey to remove only selected rows...
Or maybe I should use a different type of region?
Thanks for your help!
FannyIn the process of ApplyMRD, try to specify the 'secondary key' column in the section "Source: Multi line Update and Delete"to the second column key in tabular form.»
I have not tested this with your situation, but worth it.
-
Select list THAT LOV based on the selection of the Parent list
HelloI'm pretty new to APEX and which seems to be a pretty basic question, but I don't know how to do it.
So, I have two items in the selection list on my page and I need to dynamically change LOV in the second list based on the value of one of the parents.
I think this question been here before, so could someone just tell me the answer?
Thank you very much
Leo.
Leo_Y wrote:
I'm pretty new to APEX and which seems to be a pretty basic question, but I don't know how to do it.
So, I have two items in the selection list on my page and I need to dynamically change LOV in the second list based on the value of one of the parents.
I think this question been here before, so could someone just tell me the answer?
To get the right answer, you must ask the right question.
Integrated support in cascade LOV is addressed in the documentation.
-
Hello
I searched for the answer for a while now, but could not find a solution to my problem. It's a rather trivial issue, but after dealing with more urgent problems, I stuck with it and I can't move forward I use Apex 4.2.1
OK, lets start with a description.
I have two selection lists. After making a choice in the first, I would like to than the second value to change. It is not cascade LOV case, however, at least I don't.
Let me give you an example. Suppose we have a table with name and default to the occupation.
Name By default occupancy John Doctor Mark Firefighter George Firefighter Tom Concierge End user first selects the name in the first list, then the occupation of another. It's perhaps not clearly in the example given, but the order of the questions.
What I want is to force a change in the second value in the list after a choice in the first. So after the name is chosen, the occupation should switch to the default.
The assignment is the most typical, but not the only one. So I want the end user to be able to change the occupation if necessary. Tom of sense is not to be janiotor, it can be whoever he wants this is why it is not cascade LOV problem.
I tried with dynamic action - definition of value and then refresh. It works when the second selection list is the text field. I can't find a way to make it work with another selection list.
Hope you can help.
Concerning
AEMs salvation,
What I wanted with display and return value, you usually have a list of selection like this query:
SELECT occupation d, occp_id r
OF professions
If your return value is an identifier. To use the text as return value is rather rare. Where my question, because obviously you must select the return value in your query, NOT the display value.
So let me explain what is a set value. It takes the value of the server by using your query and AJAX in the background, then uses Javascript to set the value of the item in the browser.
At this point your selection list still has the OLD value in the session. Then, you do a refresh and the element uses the old value, and it seems that nothing happens.
So solution:
-clear default values, you don't need those
-get rid of refresh it in your DA
Kind regards
Joni
-
Loading list select cascade lov
I have three selection list each with a parent lov cascade, except the first.
1 - TOOL
2 - CATEGORY
2. - IN SUBCATEGORY
Of these 3 elements of selection list... what I save is the "return value" of the subcategory, which is an identifier. If the problem appears when I try to change the information after I save it. I tried to extract the information in the "source type" box with an "sql return value" as well as the sector 'default value', but he did show errors when I want to create a new record... So I wonder if I can bring data with javascript or otherwise... Thank you
Best regards, bernardoHello Bernardo.
the problem on your page 3 is that P3_CATEGORY is not automatically by a column of data. That's why when you view an existing record he won't show anything. And because the value is NULL, your 3rd LOV (P3_CATEGORY_ID) won't find something because P3_CATEGORY is null or an invalid value.
You have two options:
(1) add the CATEGORY in the database column to your table of PROBLEMS or
(2) use a calculation or process to extract the CATEGORY based on your subcategory (P3_CATEGORY_ID) and fill P3_CATEGORY with this value. This calculation/process to trigger after the process of "fetch".See my calculation of example on page 3. In addition I also put P3_TOOL as "Page to go" for P3_CATEGORY_ID LOV, because you always have to specify all the columns that are used in the SQL statement 'Cascading LOV Parent éléments' or 'Page to present '.
Hope that gives you a direction.
Concerning
Patrick
-----------
My Blog: http://www.inside-oracle-apex.com
APEX Plug-Ins: http://apex.oracle.com/plugins
Twitter: http://www.twitter.com/patrickwolf -
problems with customization select lists and popup LOVs
Hello
I have 2 problems on selection lists and popup LOVs.
The first is on a list in tabular form.
It must be created with APEX_ITEM. SELECT_LIST_FROM_LOV or similar and take its values of a named LOV.
This worked fine, but now it should also have the possibility to enter a free value.
I tried to accomplish this by creating an APEX_ITEM. POPUP_FROM_LOV, but there is a problem with the function which is called the icon of the right arrow to the input field (for eg. genList_f11_5()).
If the line is added by addRow, then it works fine, but if the line is not empty
Then the function call is as genList_f11_$ _row () and the input field becomes worthless, when an LOV is selected.
The other problem is on a list of selection that should have the opportunity to enter a custom value and
It should also be able to select multiple values. I tried to implement this in a text box that contains the selected values, and a multiple select list, with an event handler in each option. The user can click on options and they would be copied into the text box. The problem is that I couldn't make the event handler works in Internet Explorer.
I would like ideas on one of these problems.
TiinaHello
It can be created at APEX_ITEM. TEXT.
APEX_ITEM also generates the name attribute that I use the jQuery selector in the sample.
Use jQuery UI autocomplete just similarly as in my example with APEX_ITEMKind regards
Jari -
LOV selection list with submit the value Null
I have a select list with submit in which another fileld fills based on the selection. I have the TEXT Null in the LOV "Select Vendor" value but I do not know how to set the Null VALUE, while I get this error:
ORA-01722: invalid number
Calculation of default value of the element of error ERR-1019: page = 2 name = P2_VEND
Ok
I tried the following to the default value of the select list with submit without result:
Replace (: P2_VEND, '%' | 'null %', null)
Thanks in advance.Hello
You can set the NULL value - 1 (or any other provider code which may not exist).
Greetings,
Roelhttp://roelhartman.blogspot.com/
-
Problem with the selection list dynamic LOV using bind variables
I have the following SQL to fill a selection list:
Select d, ch from
(
Select ft. FAMT_NAME d, pi. R FAM_ID_T of FAMILY_TRA ft
Join the ck list
on ck.family = ft.famt_name and ck.newseq in (: NEWSEQ_QUERY_SQL)
)
Where NEWSEQ_QUERY_SQL is a part of the application that is defined by a calculation of page and essentially returns a list of values NEWSEQ based on some parameters of the user query. For example:
Select distinct (ck.newseq) in the ck list where rownum < 20
The query above works fine with SQL Developer and returns two columns needed (display_value, return_value)
However, it returns no line, when it is used to fill the LOV to a selection list.
If I replace the: NEWSEQ_QUERY_SQL with a list of NEWSEQ hard-coded, it works:
Select d, ch from to)
Select ft. FAMT_NAME d, pi. FAM_ID_T r
of FAMILY_TRA ft join checklist ck on (ck.family = ft.famt_name and ck.newseq in ('K0242900', 'K0217200'))
) ;
I can even replace: NEWSEQ_QUERY_SQL with hard-coded SQL and it works:
Select d, ch from
(
Select ft. FAMT_NAME d, pi. R FAM_ID_T of FAMILY_TRA ft
Join the ck list
on (ck.family = ft.famt_name and ck.newseq in (select ck.newseq from the list ck where rownum < 20))
)
But if there is a connection variable (: NEWSEQ_QUERY_SQL), it doesn't.
Selection lists are driving me crazy! They seem incredibly capricious.Hello:
You cannot link a "sql statement" that bind the value you're trying to do.
P2_FAMILY_LIST must be the SQL statement you executed for the LOV. Something likeselect d, r from ( select ft.FAMT_NAME d, ft.FAM_ID_T r from FAMILY_TRA ft join checklist ck on (ck.family = ft.famt_name and ck.newseq in (select ck.newseq from checklist ck where rownum < 20)) )
CITY
-
LOV SQL: How to configure a selection list to get all the records
Hello
I use Oracle 10 g with APEX 2.0.
Here's my question:
I have a report and I use 3 text fields and a selection list to search in a join of two tables. The selection list is composed of a "list of values" and the parameter is used in the SQL sentence, has a numerical value.
Table of results after the join operation looks like this:
Field1 Field2 Field3 Field4 (assuming that the field3 is used in the select list).
21 has this NL 1000
21 bis as 1001-vb
33 so 1012 ct
What I want to do is put another pair of the value of the parameter in the select list to let the user choose the "ALL" items mentioned in the selection list, so that the search returns all records without taking this select list-field into account.
Is it possible to do it with SQL and LOV? Do I need other functions? or configurations?
Thanks in advance,
SedefHi user630478!
I always use a selection with submit list and the option to get a NULL value for such things. To solve your problem do the following:
1.) create two named LOVs. As you have already done and another for all values.
2.) to submit your selection list must be configured to display a NULL value e.g. it shows EVERYTHING with the value 0.
3.) create two conditional branches that work with your selection list. Which show normal results, if a user has clicked on a normal value and the second should act only if a user has clicked on the WHOLE.
4.) write a process triggering the LOVs in your selection from one to the other list. This process should only be fired if the second conditional branch has been activated.As I understand it that's maybe what you want to know.
Yours sincerely
-
Values of the cascading select list is not displayed because the ampersand &; in LOV
Hello
I use the LOV example Denes Kubicek http://htmldb.oracle.com/pls/otn/f?p=31517:119 cascading
and I have a problem when my ename has an & in the name. In this case no values appear in the select list cascading. The application process, I use looks like this:
< pre >
BEGIN
OWA_UTIL.mime_header ("text/xml", FALSE);
HTP.p ('Cache-Control: non-cache');
HTP.p ('Pragma: non-cache');
OWA_UTIL.http_header_close;
HTP.prn ("< select >");
HTP.prn ("< option value ="' | 1 |) "" > ' | '- all employees-' | ' < / option > ");"
FOR c IN (SELECT ename, empno
WCP
WHERE mgr =: cascading_selectlist_item_2)
LOOP
HTP.prn ("< option value ="' | c.empno |) '">' || c.Ename | ("< / option >");
END LOOP;
HTP.prn ("< / select >");
END;
< / pre >
What should I change to make it work?
JacobJacob,
What happens if you change your application process on like this:
DECLARE v_ename VARCHAR2 (200); BEGIN OWA_UTIL.mime_header ('text/xml', FALSE); HTP.p ('Cache-Control: no-cache'); HTP.p ('Pragma: no-cache'); OWA_UTIL.http_header_close; HTP.prn (''); END;
Do you still have the same result?
Denes Kubicek
-------------------------------------------------------------------
http://deneskubicek.blogspot.com/
http://www.Opal-consulting.de/training
http://Apex.Oracle.com/pls/OTN/f?p=31517:1
------------------------------------------------------------------- -
selection list loading using the ondemand/ajax process data
Guys,
Ive has a selection list that has a query default LOV (select jobname d, jobid r of the work) but now iam trying to create application processes to pass new values LOV (like select ename d, empno from emp by 1 r) replacing the previous lov when a button is clicked
any idea please?
Apex 4.2.x
Kind regards
Gor_Mahia wrote:
good idea to use the function in the pipeline, but I really want to use ondemand/ajax call here I don't mind spending extra energy so long as its feasible
I never mentioned in pipeline functions.
A dynamic LOV can be created as either a static SQL query:
select ename l, empno v from emp order by 1
or in the body of a function that returns a SQL query:
declare lov_sql varchar2(4000); begin if :foo > :bar then lov_sql := 'select dname l, deptno v from dept order by 1' else lov_sql := 'select ename l, empno v from emp order by 1' end if; return lov_sql; end;
This will allow you to create a dynamic data source for the LOV using some logic is required. LOV options can be modified using standard dynamic action of refreshment. There is no need to create an additional On demand process or write complex AJAX code. Use declarative when possible.
"Less code is less than bugs. Seek ways to write less code. "- Tom Kyte
-
How a select list to cascaded in a table?
Hello
I would like to know how to create a pick list cascading tabular.
In the screenshot next, for example, when select "2081: Alice Fan", the next filed should watch only "ID: name of the element" belongs to Alice.
Usually I do this simply for an article by implementing the SQL query and cascade LOV parent as follows.
However, I can't find it in the form of tables?
One can help with the solution?
I hope that this can be done to reload partially after the first field had changed, but not to present an entire page.
Thank you!
Alice
Hi AliceFan-Oracle,
AliceFan-Oracle wrote:
Please see application 81653, page 2 (Test in the navigation menu).
It's the ERT_TABLE_Item.
If 'point ERT ID' is cascaded by ERT ID,
When select "2221" ERT ID, it takes only the concerts "2521" and "2541" at the point of the ERT ID.
When select "2222" ERT ID, it takes only the concerts '2561"in ERT item ID.
ID ERT and ERT tabular item ID are columns 29th and 30th.
Check your Application-> Page 2 81653 on your instance of apex.oracle.com. I implemented the LOV cascading using the solution of Jari.
Reference: APEX Blog of Jari: Article Cascading select list in the form of
Here are the steps how this is implemented:
- Edited your Page attributes-> section JavaScript-> 'Function and Variable global statement' has added the following code:
(function($){ /*** Cascading select list ***/ $.fn.htmldbCascade=function(parent,onDemand,options){ options=$.extend({ trigger : false, extrVal : false, nullShow : false, nullValue : "", nullDisplay : "- Select -", disAlias : "DIS", retAlias : "RET", loadingTxt : "Loading ...", loadingCss : {"width":"80px"} },options); return this.each(function(i){ var self=$(this); var lParent=$(parent).eq(i); var lSelfVal=self.val(); if(!lSelfVal){lSelfVal="";}; if(!lParent.data("htmldbCascade")){ lParent.change(function(){ var lParentVal=$v(this); if(!lParentVal){lParentVal="";}; $.extend(options.loadingCss,{"height":self.parent().height()}); self .hide() .empty() .parent() .find("div.ui-autocomplete-loading") .remove() .end() .append($("",{"html":options.loadingTxt,"css":options.loadingCss}) .addClass("ui-autocomplete-loading")); if(options.nullShow){ appendOpt(self,options.nullDisplay,options.nullValue); }; $.post("wwv_flow.show",{ p_flow_id:"&APP_ID.", p_flow_step_id:"&APP_PAGE_ID.", p_instance:"&APP_SESSION.", p_request:"APPLICATION_PROCESS="+onDemand, x01:lParentVal },function(jd){ var lExists=false; $.each(jd.row,function(i,d){ if(d[options.retAlias]===lSelfVal){lExists=true;}; appendOpt(self,d[options.disAlias],d[options.retAlias]); }); if(options.extrVal&&!lExists){ appendOpt(self,lSelfVal,lSelfVal); }; self .val(lSelfVal) .show() .parent() .find("div.ui-autocomplete-loading") .remove(); if(options.trigger){self.trigger(options.trigger);}; },"json"); }).data("htmldbCascade",true).trigger("change"); } }); /*** Append option ***/ function appendOpt(pThis,pDis,pRet){ pThis.append( $("",{"html":pDis,"value":pRet}) ); }; }; })(apex.jQuery);
- Edited your ERT_ITEM_ID column and added the following code to query LOV:
SELECT NULL d, NULL r FROM DUAL WHERE 1 = 2
- Application G_TEMP element created in shared components-> section elements of enforcement with Protection of Session State"set to"Unrestricted ".
- Created AJAX callback information Page at the request of GET_ERT_ITEM_ID process with the following code:
DECLARE l_sql VARCHAR2(32700); BEGIN IF APEX_APPLICATION.G_x01 IS NOT NULL THEN APEX_UTIL.SET_SESSION_STATE('G_TEMP', APEX_APPLICATION.G_x01); l_sql := ' SELECT ERT_ITEM_ID||'': ''||VENDOR_ID DIS, ERT_ITEM_ID RET FROM ERT_TABLE_ITEM WHERE ERT_ID = :G_TEMP ORDER BY 1 '; APEX_UTIL.JSON_FROM_SQL(l_sql); ELSE HTP.prn('{"row":[]}'); END IF; APEX_UTIL.SET_SESSION_STATE('G_TEMP', NULL); END;
- Created the dynamic action named "Set LOV cascade after refresh and onload", with the following attributes:
Event: After refresh
Selection type: region
Region: Update purchase order (15)
Condition: No strings attached
Action: Run the JavaScript Code
Fire on loading the Page: Yes
Code:
$("[name=f30]").htmldbCascade( "[name=f29]", "GET_ERT_ITEM_ID",{ nullShow:true, nullDisplay:"- Select -" });
Assigned items: no
- 'Action' button "ADD a line" changed "defined by the dynamic Action. Created another dynamic action named "Cascading select list Set for the new line" with the following attributes:
Event: click on
Selection type: button
Region: ADD Row
Condition: No strings attached
Action: Run the JavaScript Code
Fire on loading the Page: No.
Code:
apex.widget.tabular.addRow(); $("[name=f30]:last").htmldbCascade( "[name=f29]:last", "GET_ERT_ITEM_ID",{ nullShow:true, nullDisplay:"- Select -" });
Assigned items: no
Kind regards
Kiran
-
PLSQL code in the selection list
My query is:
I have a room list of table names that contain information about the rooms
capacity seated
name of the rooms are fetch in the select list: P1_ROOM_NAME that returns the id of the element room hidden
: P1_ROOM_ID that is used for the third Select: P1_NO_OF_PARTICIPANTS
I get the error message by filling: P1_NO_OF_PARTICIPANTS
NO DATA FOUND AND I LIKE INVALID VARIABLE
I know some people found data are due to: P1_ROOM_NAME IS NOT SELECTED first
the loading of the page.
Any idea for the request to: P1_NO_OF_PARTICIPANTS
sample data and used queries
create the table room_list
(number of room_id,
room_name varchar2 (100),
sitting_capacity
);
insert into room_list values(1,'a',3);
insert into room_list values(2,'a',1);
: P1_ROOM_NAME
SELECT ROOM_NAME, ROOM_ID AS DID R
OF ROOM_LIST
To select the list I used
: P1_NO_OF_PARTICIPANTS
Lov used cascading point P301_ROOM_ID
DECLARE
l_sitting_capacity varchar2 (50);
Start
SELECT SITTING_CAPACITY from l_sitting_capacity
OF ROOM_LIST
WHERE ROOM_ID =: P301_ROOM_ID;
BECAUSE me IN 1.l_sitting_capacity
loop
RETURN
"I select as view, I like back"
the double ';
end loop;
end;
Hi Reema,
ReemaPuri wrote:
I wanted to show the numbers in the list of values up to not passed as a parameter.
for example
If the capacity is 3 then lov it should show 1,2,3
Try this example
SELECT LEVEL AS D, LEVEL AS R FROM DUAL CONNECT BY LEVEL <= (select 3 from dual);
Here, instead of Select 3 of double replace your query giving you room capacity
Hope this helps you,
Kind regards
Jitendra
-
Passing the value of the SQL query select list
Hello
In my application users have in their homepage to a region which has two simple things, a part of LIST SLECT lov function and a BUTTON
There is also another page which has a normal life to report which shows the employees.
Homepage the user can select certain number of Department in its 'SLECT-LIST' and click 'open '.
For example: If the user has selected a DEP_NUM_5 and click on the BUTTON it will be redirected to the page of a report and gets only showed the employees belonging to the Department 5.
The report page contains a simple SQL query, and I understand that somehow I must pass the value in the SELECT LIST, where I now have the '?
How can I do this, where should I start?
Of course I would really appreciate an example of code, if anyone has time to do a.
select "EMP_ID", "EMP_FORNAME", "EMP_SURNAME", "DEP_NUMBER" from EMP E where E.DEP_NUMBER = ????????
Hi Sozua,
1. create an item hidden on the page where you have the report.
I say P2_DEPT_NO
2 assign to that in your sql query
select "EMP_ID", "EMP_FORNAME", "EMP_SURNAME", "DEP_NUMBER" from EMP E where E.DEP_NUMBER = :P2_DEPT_NO
below the area source ther is also an option
Elements of page to submit-> put this element in this.
for example;
Page to submit items: P2_DEPT_NO
3. change your button
Action: Redirecting to page of this application
Page: 2 / / assuming that page 2 is the report page
Place these items: P2_DEPT_NO
with these values: & P1_SELECT_LIST. assuming that selection list is on page 1
Hope this helps you,
Kind regards
Jitendra
Maybe you are looking for
-
BlackBerry smartphones changing a bunch of emails from closed to open
How to highlight all emails in my box in (for the day, week or yesterday) and mark them open at the same time
-
How to hide several overlapping with low opacity?
I have several shapes that overlap, each has opacity to 30%. How can I hide the so that they do not bleed outside the circle? I tried compound merger, joining the paths and their group before making a mask, but none of these options seem to do what I
-
I use a common phrase and get an error. Why?
Hey!I hope someone can help a little or a lot!I'm not in expressions at all and that would explain why I don't see the "misstake (?)' myself here, but maybe do you.I copy a code of expression of several tutorials and get an error. When I change a lit
-
My new power supply work with my motherboard?
Hello I reasontly bourght a few upgrades for my PC. I bourght an i7 870 and an AMD 5670 + a new power supply So my question, what ive in doubt, my new PSU(CX-500) work with my motherboad (MS-7613(Lona-GL8E)? Thanks in advance René Tyrsted
-
Hi, I'm trying to synchronize several still images of a sequence of movement to music.I have it configured for audio devices and the icon of the snap is off, but still it seems to only move in increments of 1 second.Can someone help me out here pleas