Return the value of the DB display in a Popup Lov (selected)
HelloI use a Popup Lov to select a value and check in the DB (it works), but I do not know how to return this value as selected in the popup Lov and keep the other options available to select again.
Any ideas?
Thank you in advance,
Alan Martini
Hi Alan,
OK - keep in mind that this will affect each using the popup LOV page
Text on the page popup LOV template, under the body of Page attributes, I removed the onload = "first_field ()" let fair: style = "margin: 0;" "
Then, as part of Page footer text below that, I added:
<script type="text/javascript">
var aa = document.getElementsByTagName("A");
if (aa)
{
aa[0].focus();
}
</script>
It's just a collection of tags 'A', and if there is at least one, it shifts the focus to the first. My previous SQL makes the value currently selected one in the list, so this should be the same as that. As the item has focus, the user has just need to press ENTER to select this option.
Andy
Tags: Database
Similar Questions
-
Digital Format on column displayed as a Popup LOV mask
APEX 4.2 using theme 24. In a tabular presentation, I have a column that is defined in the table as number 4 and I display as a Popup LOV. I want to display on the initial load data form left padded with zeros - 0000 format mask. The Popup LOV gray on the ability to set the format mask. If I change it to a text field I can define the mask and display it as I want. I need to allow users to choose one of the LOV based on another table where the column is defined as a character. When the value is selected in the LOV it appears with the full left 4 digits padded with leading zeros, which is what I want. However as I said on the initial load of data the leading zeros are not displayed. It's really just a matter of Visual for the users, it is part of a GL account number and users are accustomed to seeing the full figures as if it was the character. And please do not suggest I change the column in the table of characters too much process on the side server use it as a number.
Thanks for the feasible suggestions!
Therese
Theresas wrote:
APEX 4.2 using theme 24. In a tabular presentation, I have a column that is defined in the table as number 4 and I display as a Popup LOV. I want to display on the initial load data form left padded with zeros - 0000 format mask. The Popup LOV gray on the ability to set the format mask. If I change it to a text field I can define the mask and display it as I want. I need to allow users to choose one of the LOV based on another table where the column is defined as a character. When the value is selected in the LOV it appears with the full left 4 digits padded with leading zeros, which is what I want. However as I said on the initial load of data the leading zeros are not displayed. It's really just a matter of Visual for the users, it is part of a GL account number and users are accustomed to seeing the full figures as if it was the character. And please do not suggest I change the column in the table of characters too much process on the side server use it as a number.
Simply select it in the source region like query:
... to_char(col, 'fm0000') col_alias ...
-
By pressing certain buttons trying to create symbols in Spanish, I made my desktop display go sideways (portriat view)
I don't know where start return to the normal display (options under 'view' that will do that.
Help!
Press Ctrl & Alt keys and use the arrows to rotate back.
-
Popup LOV selected the value not in session state
I have a pop LOV element on a page in my application. Once the item has been selected in the list presented, I would like to use as part of a select statement. Select statement failed. It turns out that the value I want the popup THAT LOV is not being saved in session state, so of course the select statement fails. I determine this by clicking on the session menu item in the developer bar - the item itself presents itself, but the value is empty.
What would cause a popup LOV value choice not finish by in session state, and how do I make sure he gets there?
Thank you!
If you need the value in a SQL report, you can just set "Elements of Page to submit" in your report to your LOV element definition. Otherwise, create a dynamic fire action when your LOV is changed with a set of pl/sql null process action; then set Page elements to send to your LOV element.
Alternatively you could do it manually with your own function/Manager javascript using the '$s' Apex API by creating a dynamic action that JavaScript is triggered then the loading of the page:
$("#PXX_YOUR_LOV").on('change',function(){ var getValue=$(this).val(); $s('PXX_YOUR_LOV', getValue); });
Changing the value in LOV only updates the HTML code, the element must be submitted to the server so that the value that will be put in session state. The gurus can explain more, but the above methods are what I use depending on the situation.
see you soon,
John
-
Must pass the new parameter to page popup LOV
Hi all
I try to pass additional parameters of base page-to-page Popup LOV. In my basic page, I also have 5 columns and 3 rows.
My requirement is based on the refrence to the selected line in the popup LOV page, I have to do a validation.
I tried the logic of value form, but it did not work.
I tried with getCurrentRow(). But he was always returns the reference of the top row.
Help, please... It is urgent...
If you want to get the value in the window of LOV, you must join a controller with the LOV window.
In this controller, to help
Dictionary passiveCriteriaItems = pageContext.getLovCriteriaItems)
You can get the value mapped from basic page.
Sushant-
-
The display "Display value" in a popup LOV
Hi all
I wonder if you could help me with this question. I have a LOV similar to this:
Select the name display_val, id return_val
< Table >;
I want the LOV and form to display the display value "" and not the code. If I use LOV field type, it works, it displays the significant value to the field at a time, shape the LOV.
The LOV having too many values, I need to go to a popup LOV. If I use the popup LOV the LOV will work ok, however, the form displays the ID
How can I make the form to display the value of the end user and not the ID?
Thank youYou must set the element type ' Popup LOV key (description of the poster, returns the key value).
-
Want to change my screen external external screen to the mirrored display option.
I'm trying to connect my Acer laptop to my Sony with HDMI TV. When I plugged the the area of the external screen HDMI cable appeared offering me 3 choices; display mirroring, extended or external only. I took an external display only. However, instead of showing the screen of the laptop to the TV, two screens were black. The signal wasn't going to the TV. So I thought I could at least change external display only to in reverse, so if nothing shows up on the TV, then at least the screen will become not empty for the laptop. But now when I connected the HDMI cable to the laptop monitor and the TV are empty, so I can't change the settings. I can't return the new display detected, where I could change the setting. When I unplug the HDMI cable to get my rear monitor, the external screen does not give me the 3 options because there is no HDMI cable. How do I get external display to change the only mirrored external display option?
http://www.GeekWithLaptop.com/how-to-connect-laptop-to-TV
http://www.online-tech-tips.com/computer-tips/how-to-connect-your-laptoppccomputer-to-your-TV/
http://www.ehow.com/how_2377831_use-TV-monitor-laptop.html
Read the info on the links above.
See if that solves the problem.
See you soon.
Mick Murphy - Microsoft partner
-
Popup LOV - add values in the textfield
Hello
I have a little problem with my popup lov.
whenever you select a value from the pop-up window, the previous value of the textfield object is replaced with the new.
But what I want is to add values separated by a comma (for several emailadresses, like "[email protected], [email protected],...") »).
necessarily to do this (or desired), by clicking on the icon for the second time, the search field should not contain the value actually (if it is done, the lov is filtered by this value).
any suggestions? :(A standard popup LOV will not give you this functionality. You must create your own custom context menu LOV. If you can, you must use a LOV shuttle instead of popup. This one is more manageable. See this example if it helps:
http://Apex.Oracle.com/pls/OTN/f?p=31517:166
I use for the selection of two of my customers email addresses and they are happy with it.
Denes Kubicek
-------------------------------------------------------------------
http://deneskubicek.blogspot.com/
http://www.Opal-consulting.de/training
http://Apex.Oracle.com/pls/OTN/f?p=31517:1
------------------------------------------------------------------- -
I have the following code for a popup lov
What I want to do is to display the result of the first statement select in redselect a,b from ( select '1' res, htf.escape_sc(su.sukey) a, htf.escape_sc(su.sukey) b from udm_su su, udm_lde lde where su.ldeid = lde.ldeid and su.sukey in (select su_generic from vrp_cfg_gensuconv) and lde.ldekey = :F140_LDEKEY union select '2' res, htf.escape_sc(su.sukey) a, htf.escape_sc(su.sukey) b from udm_su su, udm_lde lde where su.ldeid = lde.ldeid and su.sukey not in (select su_generic from vrp_cfg_gensuconv) and lde.ldekey = :F140_LDEKEY ) order by res, a, b
and the second in blue
See you soon
GusGus C wrote:
Apex 3.2Don't have around 3.2 to experiment. If the above does not work in 3.2, then I am inclined to think that it won't. Which is strange, because the indications are that the restrictions were unconstitutional in APEX 4.0:
- {: identifier of the thread = 1338180}
- {: identifier of the thread = 2126522}
Part of the problem is that LOVs rendered as select list (which is the most frequent) cannot contain any HTML elements (+ {: identifier of the thread = 898835} +), but the less common popup LOV.
If it is an essential requirement, then 2 possibilities come to mind:
1. fairly complex model changes of Page/LOV popup to include JavaScript/AJAX that will run for this list, include the number of entries must be of each color and navigate through the options add styles require.
OR
2. use a report on a pop up, rather than a LOV page.
Both look like more trouble than it's worth.
-
Popup lov to return the display value instead of the value of "return"?
I have the popup following LOV (retrieves the first set of lines and filters)
SELECT empname d, EMPLID R
X
WHERE OPERATING_UNIT =: P1_OU
AND DEPTID =: P1_DEPTID
Union
SELECT "there is no list" d, r null
OF THE DOUBLE
WHERE THERE IS NO
(SELECT 1
X
WHERE OPERATING_UNIT =: P1_OU
AND DEPTID =: P1_DEPTID);
I want the popup to show "there is no list" If the sql returns no rows, indicating to the user to change their selections for P1_OU and P1_DEPTID. However, when I try to test it in the Apex, if the user selects this message, null is not returned to the form, instead, the text of the message is returned. Is there anyway I can make it work properly? I appreciate the help. Thank you.
Suni
Published by: suni1 on February 19, 2010 12:43You can put in a position to submit the calculation for your LOV as element that is your LOV = "there is no list" then put it to NULL w/PL/SQL
CASE WHEN :My-Item != 'no list exists' THEN :My-Item ELSE NULL END
-Bob
Published by: Bob37 on February 19, 2010 16:06
-
create popup LOV values depends on the return values of select tabular list
Hello
My requirement is
In a table, first column is selection list and second column is LOV Popup.
I want to create if select user from the selection list value 'A' then displays the popup LOV values.
If the user selects 'B' values in the select list and then display nulls within the popup LOV.
Kind regards
Arianne.
Hi ujwala1234,
ujwala1234 wrote:
In a table, first column is selection list and second column is LOV Popup.
I want to create if select user from the selection list value 'A' then displays the popup LOV values.
If the user selects 'B' values in the select list and then display nulls within the popup LOV.
Use the Popup LOV cascading given by Jari wool in this blog: Blog APEX of Jari: pop-up list of the 'waterfall' Article on slot form of
Write your Popup LOV query such as if, 'A' is selected it returns other values it will return null value.
Kind regards
Kiran
-
Hi Experts,
I have a page in which I want to show the textual elements and the crumbs of bread according to the requirement on page load.
To do this, I gave the condition for navigation buttons and text elements bar as below:
Condition type: there is no
Expression 1: select null from ms_contracts where contractor_id = UPPER (v ('APP_USER') and contract_expiry_dt < sysdate)
The text value of the element (display only): ' your contact has expired, prents get it renewed. Position to renew the update below the new end date '
Above solution does not work for me. I guess there is no need to create dynamics of Action I want this to happen on the page load.
Ask that you please guide me.
Thank you.
Thierry
Hello
Have you tested your query do not return all rows using SQL workshop for example?
Not the condition watch Object Exists, when the query do not return all the lines.
BTW, it's better to use bind variable: APP_USER function v. APP_USER is also always capitalized
select 1 from ms_contracts where contractor_id = :APP_USER and contract_expiry_dt < sysdate
Kind regards
Jari -
reload the page when SQL query returns a value
Hello world
the title of this discussion may seem strange, but I'll try to explain why I need this:
A user has the ability to connect on my APEX application. There are several tabs in my application that are visible only if a certain SQL statement returns a value which is not the case by default. The user has also the ability to download a file that is transferred to an external system that analyzes the file and writes the data in the database. During this writing process - which may take several minutes - conditions for some of the tabs to show the will becomes real (-> the query will return a value). When the user refreshes the page manually, the tabs will be displayed. However, I want the tabs will appear automatically when the condition is met.
Is it possible to refresh the page as soon as the query returns a value? It is perhaps possible to check it on the client side and trigger a refresh of the page when the condition is met. It would be even better if only the tabset has been updated, but refreshing the full page is fine as well.
Thank you!
Here is an overview of how it can be done
This is possible thanks to a dynamic action being performed on a timer.
View default tabs and dynamic action hide them on loading the page if they are not to be considered
Create a dynamic action that will execute your query every 5 seconds or more
If the query returns data, you can use the dynamic action to show your tabs using javascript
-
Returns the value of column line
Greetings! I currently have a request we will tell
SELECT value, period FROM MAS_CFUS_KEYACM_CONTROLDATA ORDER BY cf_keyword_ID
RESULTS
Period value
--------------------------
100.0002 1 JANUARY 14
-35.68 1 DECEMBER 14
-1943.67 NOVEMBER 1, 14
678.0013 OCTOBER 1, 14
This continues for about 15 results by cf_keyword_ID.
I'm looking to return the VALUE first in a new column called PREV1, the second value of PREV2, third in PREV3 and so on. The same goes for the dates. And all this for only the first 10 values of each cf_keyword_ID. Can anyone suggest the best way to achieve this?
Thank you!!
Hello
This is called pivoting. Because I don't have a copy of your table test, I'll use scott.emp to illustrate.
This shows the first 3 employees for each job, in order by hiredate, along with their hiredates:
WITH relevant_data AS
(
SELECT ename, job, hiredate
row_number () taken OVER (PARTITION OF work
ORDER BY hiredate
) AS r_num
FROM scott.emp
)
SELECT *.
OF relevant_data
PIVOT (MIN (ename) AS ename
MIN (hiredate) AS hiredate
FOR r_num (1, 2, 3)
)
ORDER BY job
;
Output:
WORK 1_ENAME 1_HIREDATE 2_ENAME 2_HIREDATE 3_ENAME 3_HIREDATE
--------- ---------- ----------- ---------- ----------- ---------- -----------
ANALYST FORD 3 December 1981 SCOTT April 19, 1987
The CLERK SMITH December 17, 1980, 3 December 1981 JAMES MILLER January 23, 1982
MANAGER JONES 2 April 1981 BLAKE 1 May 1981 CLARK June 9, 1981
PRESIDENT KING November 17, 1981
SELLER ALLEN 20 February 1981 WARD 22 February 1981 TURNER 08-Sep-1981
There are actually more than 3 SECRETARIES and SALESMEN. Which does not cause an error; the only first 3 are shown.
As you can see, having less of 3 does not cause any errors, either.
For more info on pivots, see the FAQ of the Forum:
Re: 4. How can I convert rows to columns?
I hope that answers your question.
If this isn't the case, please post a small example of data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and also publish outcomes from these data.
Explain, using specific examples, how you get these results from these data.
If yod post rather a problem using scott.emp, then you need not display the sample data; just results and explanations.
Always say what version of Oracle you are using (for example, 11.2.0.2.0).
See the FAQ forum:
-
XML - ORA-19025: EXTRACTVALUE returns the value of a single node
Hello
I'm new to XML DB. Can someone help me with the below XML
I use the following XML... (I pasted a part only of it coz I need data only up to this article)
XML
--------------------
<? XML version = "1.0" encoding = "UTF-8"? > < SOAP - ENV:Envelope xmlns:SOAP - ENV = "http://schemas.xmlsoap.org/soap/envelope/" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-."
example"container ="http://www.w3.org/2001/XMLSchema"> < SOAP - ENV:Body >
< ns:PicklistWS_GetPicklistValues_Output xmlns:ns = "urn: crmondemand/ws/list dropdown /" >
< ListOfParentPicklistValue xmlns = "urn: / xml/crmondemand/list of choices" >
< ParentPicklistValue >
< language > ENU < / language >
< ParentFieldName > plProduct_Team < / ParentFieldName >
< ParentDisplayValue > Marketing On Demand < / ParentDisplayValue >
< ParentCode > Marketing On Demand < / ParentCode >
< Disabled > N < / disabled >
< ListOfPicklistValue >
< PicklistValue >
Escalation of OCP/SME < code > < code >
Escalation of OCP/SME < DisplayValue > < / DisplayValue >
< Disabled > N < / disabled >
< / PicklistValue >
< PicklistValue >
Ask fusion < code > < code >
Merge request < DisplayValue > < / DisplayValue >
< Disabled > N < / disabled >
< / PicklistValue >
Code
---------
SELECT distinct
EXTRACTVALUE (value (SR), ' / ParentPicklistValue/ListOfPicklistValue/PicklistValue/Code ','xmlns = "urn: / crmondemand/xml/list of choices"') AS display.
Return EXTRACTVALUE (value (SR),'/ ParentPicklistValue/ListOfPicklistValue/PicklistValue/DisplayValue ',' xmlns = "urn: / crmondemand/XML/picklist"'),.
EXTRACTVALUE (value (SR), '/ ParentPicklistValue/ParentDisplayValue','xmlns = "urn: / crmondemand/XML/picklist"') AS parent_display,
EXTRACTVALUE (value (SR), '/ ParentPicklistValue/ParentCode','xmlns = "urn: / crmondemand/XML/picklist"') AS parent_return
TABLE (XMLSEQUENCE ((EXCERPT)
WEB_SERVICE (' <? xml version = "1.0" encoding = "UTF - 8" standalone = "no"? > < envelope soap: xmlns:soap = "http://schemas.xmlsoap.org/soap/envelope/")
xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" container = "http://www.w3.org/2001/XMLSchema" >
< soap: Body >
< PicklistWS_GetPicklistValues_Input xmlns = "urn: crmondemand/ws/list dropdown /" >
Type < FieldName > < / FieldName >
Service request < RecordType > < / RecordType >
< / PicklistWS_GetPicklistValues_Input >
< / soap: Body >
"< / envelope soap: >.
(' document / urn: crmondemand/ws/list dropdown /: ' GetPicklistValues, Id_de_la_session).
"/: soap envelope / soap: Body / * / * / * ',' xmlns:soap ="(http://schemas.xmlsoap.org/soap/envelope/'))) SR "
ERROR
---------
ORA-19025: EXTRACTVALUE returns the value of a single node
UNDERSTANDING
---------------------------
As my Xpath only points until the node - ParentPicklistValue and not the child nodes under it. That's why, when I try to interview the child nodes - / ParentPicklistValue/ListOfPicklistValue/PicklistValue/Code, I get the error mentioned above.
REQUIREMENT
-----------------------
Can someone help me to receive the values of the mother and child values based on xml and query above.Hello
It's a classic ;)
You need a second XMLSequence who shreds the collection of PicklistValue in relational lines:
select extractvalue(value(sr2), '/PicklistValue/Code', 'xmlns="urn:/crmondemand/xml/picklist"') AS Display , extractvalue(value(sr2), '/PicklistValue/DisplayValue', 'xmlns="urn:/crmondemand/xml/picklist"') AS Return , extractvalue(value(sr1), '/ParentPicklistValue/ParentDisplayValue', 'xmlns="urn:/crmondemand/xml/picklist"') AS parent_display , extractvalue(value(sr1), '/ParentPicklistValue/ParentCode', 'xmlns="urn:/crmondemand/xml/picklist"') AS parent_return from table( xmlsequence( extract( WEB_SERVICE( ... ) , '/soap:Envelope/soap:Body/ns:PicklistWS_GetPicklistValues_Output/ListOfParentPicklistValue/ParentPicklistValue' , 'xmlns="urn:/crmondemand/xml/picklist" xmlns:ns="urn:crmondemand/ws/picklist/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"' ) ) ) sr1 , table( xmlsequence( extract( value(sr1) , '/ParentPicklistValue/ListOfPicklistValue/PicklistValue' , 'xmlns="urn:/crmondemand/xml/picklist"' ) ) ) sr2 ;
What is your version of the database BTW?
10.2 and upward, you can use the XMLTable.
Maybe you are looking for
-
Account that a single email can be activated at the same time?
Hello I have two e-mail accounts on the Mail for some time (virginmedia.com and outlook.com). Today, for some reason any Mail keeps asking for the password of the email blank and does not seem to recognize the password (which works fine if I connect
-
Tecra M5: ConfigFree profile missing autoswitch using Vista
I am running Win Vista on my Tecra M5, but can't seem to find the setting to activate the profile Configfree detector. On Windows XP, this definition has been in configfree, allowing you to switch automatically to a specific network profile depending
-
Pavilion dv &: what is the MAX RAM for my Pavilion dv7
I currently have two 2 GB memory pieces for a total of 4 GB for my Pavilion dv7 and want to know what my laptop max RAM can handle and what type of RAM I should buy. Serial No. [personal information] Win 7 Home Premium 64 - bit OS : Processor Process
-
How can I remove my password so that all can use my pc
want to be able to have everyone using my computer in my household
-
Big problems; Maybe someone can help. When I download, even if everything looks OK on my screen of Rhapsody, once that I disconnect my Sansa Clip +, each song actually was written twice. In addition, all previous songs on my music video were crushed