List Manager (based on Popup LOV)
Hi allIM related to the item List Manager (function Popup LOV) work and I put as a source query select display_value , return_value of table and the popup works correctly but when I click on ADD in the list appears the return_value (e.g. ID) instead display_value (for example, descriptions).
Any suggestions?
Thank you
Alessandro
Hello
Here's how it works, if you want to add the description, then you will need to view and return the description then calculate the return value when you use the item later.
See you soon
Ben
http://www.munkyben.WordPress.com
Don't forget to mark the answers useful or correct ;)
Tags: Database
Similar Questions
-
How to disable the LOV Popup button in a list manager
I would like to disable or hide the LOV of Popup button in a list manager. The small button LOV Popup that appears before the buttons Add and Remove. Our users want to paste the text into the search and box only use the Add and Remove buttons.
I use APEX 4.0.2.00.07 and theme 10 - sand.
Thanks in advance for any help.
DPTry this one:
Or send me the HTML source of the page to mgoricki8 (at) gmail. com
BR,
Marko -
Hello
I use APEX 4.2.5.00.08 to my app.
I have a region of reports, where I display a column set. A column is the column attribute "display as" the value 'Popup LOV (LOV based query).
I press the button to retrieve the LOV, I get a popup of 450 x 400 pixels.
I go to the side of the model and navigate to "Popup list of values of model", where I can see in the section 'Window' attributes 'Width' and 'Height' value 450 and 400. I edit them and save them and there is nothing going on. I'm sure that the template belongs to my selected theme.
I saw in the HTML source code that is the called function:
<!--
function genList0_f07_$ _row)
{
w = open ("wwv_flow_utilities.gen_popup_list" +)
« ? p_filter ="+
"& p_name = ' + escape ('f07') +.
' & p_element_index = ' + escape ('0') +.
' & p_elem_id = ' + escape ('f07_0000').
' & p_form_index = ' + escape ('0') +.
' & p_max_elements = ' + escape ("") +.
' & p_escape_html = ' + escape ("") +.
' & p_ok_to_query = ' + escape ('YES').
' & p_flow_id = ' + escape ('114') +.
' & p_page_id = ' + escape ('100201') +.
' & p_session_id = ' + escape ('16021544706004').
' & p_eval_value = ' + escape ("") +.
' & p_translation = ' + escape ('NO') +.
' & p_lov = ' +.
' & p_lov_checksum = ' +.
' & p_item_id = ' + escape('-683997768') +.
' & p_column_id = ' + escape ('25022622060292812'),
"winLov,"
"Scrollbars = 1, resizable = 1, width =400, height =450"); "
If (w.opener is nothing)
w.opener = auto;
w.Focus ();
}
->I see that the values has not changed. I also connected and disconnected. I am inclined to believe that it is a bug of the APEX.
The only solution I think is to replace this function, which is NOT ideal.
Thank you
Digital
The parameters are generated only, nothing you can do about it because it does not use the model for these properties of the couple. Other things work fine for example the names of button or title window etc. I guess that, Yes, it is a bug. It's still there in the apex 5 too, I checked. The default values of the template do not match, the value in the generated code is always 400/450. So I guess it's pretty much a wait on 5.1.
Here's a fun hack to make it work well on your page (works in apex 5 too, because the code is always the same). Put this in the execute on loading of the page section:
(function(){ var _open = window.open; window.open = function(){ if ( arguments[1] === "winLov" ) { arguments[2] = "Scrollbars=1,resizable=1,width=500,height=700"; }; return _open.apply(window, arguments); }; })();
Change the settings to your liking. This will replace the existing window.open call, which is what the popup lov use and replace it with our own code. It does not interfere with other things. As the name of the new window is always "winLov" for the popup lov, it is the argument that is checked.
During the call to window.open to open a new window with the name "winLov", parameters are replaced with your own version of it. The window is called as usual, using the stored reference.
Edit:
Yes, do not use the trick of resizing. My hack can be a bit tedious, but it's much less invasive for the end user (see open, bam, resize. "Even gets funky on multiple monitors). Also, this thing in the popup lov template will affect each lov popup that you use in the application, which is much less interesting than my specific page code.
Edit2:
I did a little digging in the source code, and I don't know why it does not work. Popup lovs are actually equipped to deal with it. My guess is that the parameters are recovered only after that the lists were generated, causing the package variables global to use their default values instead of model parameters.
-
How to disable the popup LOV (query based LOV) tabular
Hello
I need help. I need to make a line in a table form the read-only AND disable the Popup LOV (LOV based query). As you can see in the code below all rows with a value of "AUD" becomes read-only. Column 5 is a Popup LOV (query based LOV), and must have become read only AND disabled also. Currently, the code performs the lines = "AUD" read-only, but the user can still click on the Popup LOV this line and select a value from the list, then updates the row.
All solutions?
function makeRowReadOnly() {}
{$('select[name="f06"]').each (function ()}
var row_val = $(this) .val ();
ROW_ID var = $(this).attr('id').substr (4);
If (row_val is "AUD")
{
$("#f02_"_+_row_id).attr ("readonly", true) .addClass ('row_item_disabled');
$("#f03_"_+_row_id).attr ("readonly", true) .addClass ('row_item_disabled');
$("#f04_"_+_row_id).attr ("readonly", true) .addClass ('row_item_disabled');
$("#f05_"_+_row_id).attr ("readonly", true) .addClass ('row_item_disabled');
$("#f06_"_+_row_id).attr ("readonly", true) .addClass ('row_item_disabled');
$("#f07_"_+_row_id).attr ("readonly", true) .addClass ('row_item_disabled');
}
else {}
$("#f02_"+row_id).attr ("readonly", false) .removeClass ('row_item_disabled');
$("#f03_"+row_id).attr ("readonly", false) .removeClass ('row_item_disabled');
$("#f04_"+row_id).attr ("readonly", false) .removeClass ('row_item_disabled');
$("#f05_"+row_id).attr ("readonly", false) .removeClass ('row_item_disabled');
$("#f06_"+row_id).attr ("readonly", false) .removeClass ('row_item_disabled');
$("#f07_"+row_id) .attr ("readonly", false).removeClass('row_item_disabled');
}
});
}Hi dekoke_i,
I tried this on my local instance of APEX 4.2:
function makeRowReadOnly() { $('select[name="f06"]').each(function() { var row_val = $(this).val(); var row_id = $(this).attr('id').substr(4); if (row_val == 'AUD ') { $("#f02_" + row_id).attr("readonly", true).addClass('row_item_disabled'); $("#f03_" + row_id).attr("readonly", true).addClass('row_item_disabled'); $("#f04_" + row_id).attr("readonly", true).addClass('row_item_disabled'); $("#f05_" + row_id).attr("readonly", true).addClass('row_item_disabled'); //make the popup-lov button readonly $('#f05_' + row_id).closest('tr').find('td span.lov a').addClass('row_item_disabled').unbind('click'); $("#f06_" + row_id).attr("readonly", true).addClass('row_item_disabled'); $("#f07_" + row_id).attr("readonly", true).addClass('row_item_disabled'); } else { $("#f02_"+row_id).attr("readonly", false).removeClass('row_item_disabled'); $("#f03_"+row_id).attr("readonly", false).removeClass('row_item_disabled'); $("#f04_"+row_id).attr("readonly", false).removeClass('row_item_disabled'); $("#f05_"+row_id).attr("readonly", false).removeClass('row_item_disabled'); //enable the popup-lov button $("#f05_"+row_id).closest('tr').find('td span.lov a').removeClass('row_item_disabled').bind('click'); $("#f06_"+row_id).attr("readonly", false).removeClass('row_item_disabled'); $("#f07_"+row_id).attr("readonly",false).removeClass('row_item_disabled'); } }
I hope this helps!
Kind regards
Kiran
-
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
-
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 -
disable the Popup LOV and its icon in a tabular form
Hello
My requirement is
I want to disable Popup LOV and tabular icon.
If I select the first value in column selection list 'A' then second column Empname disable window popup lov
and if I select 'B' and then select empname popup lov.
Kind regards
Arianne.
Hi ujwala1234,
ujwala1234 wrote:
I want to disable Popup LOV and tabular icon.
If I select the first value in column selection list 'A' then second column Empname disable window popup lov
and if I select 'B' and then select empname popup lov.
You can do it by using dynamic action.
Use the javascript code in the next thread to turn lov popup tabular icon.
Reference: How to disable the popup LOV (query based LOV) in the form
and related to put on over ReadOnly rank tabular thread
NOTE: instead of setting custom "row_item_disabled" CSS class use the integrated class APEX "apex_disabled."
If it is still impossible to solve, re - produce the question on apex.oracle.com and share the credentials from the workspace.
Kind regards
Kiran
-
Master the detailed report, complete the columns based on selection LOV
Hello
When creating a master form / retail, I chose "Edit in detail in tables on the same page." The form has a "report of the region" to select the list of employees.
The EMPNO column is filled with "Popup LOV (named LOV)". It works very well.
My requirement is, after selecting an employee, I want other retail JOBS & SAL table fields to be populated with the information of the employee for selected EMP table and must be posted immediately. Is this possible to do? If not, what other solution available to achieve the same functionality?
I tried this in Oracle.
workspace: test_ws_anand
user: anandgp
password: cable123
Watch ""list of skills "on the main menu. "
Thank you
-Anand
Hi Anand,
On the change of employee (employee selection) call Ajax via javascript and set the returned salary and job field.
Here you have two values to return: wages and employment, you can generate json and parse the json in javascript and set the values for the specific field...
Please see the sample code below
Step 1: Create the Ajax application process
Please check Procces Ajax, see line 7 How to assign a value to the variable sent by ajax call
Declare L_JSON_STR varchar2(4000) := null; P_SAL number ; P_JOB varchar2(50); lc_emp_no VARCHAR2(20); Begin lc_emp_no := WWV_FLOW.G_X01; -- code to fetch the salary and commission into p_sal and p_job variable based on selected employee; SELECT sal , job INTO p_sal , p_job FROM emp WHERE empno = lc_emp_no; -- build a JSON string to return L_JSON_STR := '{ "SAL": "'||P_SAL||'", "JOB": "'||P_JOB||'" }'; SYS.HTP.P(L_JSON_STR); End;
Step 2: Create the javascript function
First, you must extract the rowid for which you want to define the work and wages, see line 6, 7, and 8
Step 3 : from selection of employee call the function onchange="javascript:f_fetch_emp_dtls(this);"
Hope this helps you,
Kind regards
Jitendra
-
Action dynamic apex on popup lov
Hello
I have a popup lov in apex 4.1.1.00.23, I want to put some values after the selection of an item from the LOV. That is, select a certain customer and set variables based on customer ie customer...
I created a dynamic value on the evolution of the popup lov, but we note the change on the selection of a different value.
If I save the form and then come back shows the correct data, not just directly after changing the value after the value in the LOV POP.
Dynamic value is triggered on the evolution of the LOV POP to set some values, but it does not work!
Any help appreciated.
Thank you
David
Thank you
I managed to get this working:
Solution for anyone interested:
Create a dynamic action advanced popup lov
Event: change
Select a Type: element
Element was the popup lov
No condition
Now to update the items, I used the set value
Action: value
Parameters: Sql statement
SQL code
In page items to submit (popup lov name), it's the part that I had not before!
Item is updated.
-
Popup LOVs... where's the search value?
Someone had a bit of luck to dig into the background of the popup LOVs? Here's a question I'll try to find the answer to. I have half of the answer, but not all.
We have an external system that provides real-time data via webservices. Our goal (and we did that day no problem) is to consume the XML response from webservice with PL/SQL and then turn us these data into pipeline of what looks/walks/talks like a table or view using functions. The point here is to make these data available to Apex for various things, including the popup LOVs built on the pipeline functions.
The challenge is that some Web services provide a large amount of data (for example, a list of parties, who at this moment in our dev environment is only about 16 K records, but as we move forward, we know that these data grow to be a good lines 118K or more). Already at just 16K records, it takes a good 30 seconds for questioning.
Popup LOVs of apex seem to be based on the model that they perform an implicit request by all reviews and then apply the filter on the value of research (if there is a value entered). It is very good for LOVs against standard tables and views, but on larger volumes of data to a function in the pipeline against a data source that is out of our control... not very good.
We made a functional decision on some LOVs (such as a list of 118 K coins) that any user in their right mind really never would come into such LOV and simply browse through the records. They would already have an idea of a reference number or description of the part they would search by. Our strategy was so to the LOV follow these steps:
1 return at any line if the user did enter no search criteria.
2 manipulate the LOV dynamically if the user did enter search criteria such as the result is * pre set * filtered first through the webservice (it accepts input parameters). This greatly improves performance and so far we have work * for Apex regular page elements * but not for tabular forms (which is where my question arises.
Here is an example of such a definition LOV:
RETURN ext_parts_util.get_parts_lov_sql (p_search_val = > apex_application.g_x02);
By trial and error, we have found that when the user is in the popup LOV and enters data in the search field and click the "Search for", the value they use to search land behind the scenes on the server in apex_application.g_x02.
Thus, within this service, we return a SQL string that looks like one of two things:
1. If apex_application.g_x02 is null, we return to this (a dummy SQL statement that returns no rows):
Select "," Ruy where double 1 = 2.
2. else (there is a search value), we call our webservice in pipeline function and pass it apex_application.g_x02:
Select part_number d, part_number table r (my_package.my_function (p_part = > '%' | apex_application.g_x02 |)) '%'))
The pipeline works calls the Web service and passes the value of searching with wildcard characters of apex_application.g_x02 and the Web service itself filters the data down, ahead. This improves performance greatly for us.
Now, here's the problem and the real question... above fantastic work for Apex points page. But for a popup LOV in tabular form, it's a no-go. In a tabular presentation, the popup LOV apparently differs significantly. The search does not value land in apex_application.g_x02 in this case, and we not were able to know where it ends. Popup LOVs in tabular forms also lack other declarative features (Don't they always with tabular forms, which appear to be three releases behind the common page elements?) GRRRR...) popup LOVs such as what makes them not get the first set of rows, etc then we can even use it to help discourage a wide open query.
Has anyone found where the search for value in a popup LOV in a sub form of table for the back-end that happens? Bottom line, this is what we are looking for so we can define these SQL LOV to refer to everything that is instead of apex_application.g_x02.
He got after all. I got to work with a DBA who could clear the SQL area and then watch as I performed a search in the LOV. Example:
SQLT AND EXECUTIONS
---------- ---------- --------------------------------------------------
Select 1 37.371843 / * generated * / D, R) (select
PART_NUMBER | ' -- ' || part_description d,
PART_NUMBER fofes_ext_parts_v r)
wwvlovinlineviewname where upper (D) as
'%'|| Upper(:WWV_LOV_RETURN_KEY_UTIL_1111) | » %'
It seems that the value in the search LOV popup on a tabular presentation of the land into a link called "WWV_LOV_RETURN_KEY_UTIL_1111" variable
-
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
-
From popup LOV filling of the other LOV
How to dynamically fill the LOV based on the value selected previously.
ex:
P1_ITEM:
Type: POPUP LOV
List of values definition: select deptno, deptno retired from the Department.
P2_ITEM:
Type: POPUP LOV
List of values definition: select empno, empno ret from emp where deptno =: NVL(:P1_ITEM,deptno)
Version: 4.2.2
Hi PT,.
Make sure first that your second item LOVs query contains your P1_ITEM somewhere in the where clause is dependend.
Then add an onchange dynamic action when P1_ITEM changes your first action is to PL/SQL:Code: NULL;
Items to submit P1_ITEM
Then add another action that refreshes your 2nd article.
Kind regards
Joni
-
Hi I have a situation where what a popup based on selection lov, for example I lov that got the user role list when I change user role that popup that will have inputtext where I can type the reason that the role of the user has change, I in jdeveloper 11.1.1.6.0
My lov is
I did it but I don't see no popup when I make choices in my lov
< af:selectOneChoice label = "#{bindings." Roleaccesscode.label}.
required = "#{bindings." Roleaccesscode.hints.Mandatory}.
shortDesc = "#{bindings." Roleaccesscode.hints.ToolTip}.
ID = "soc5" simple = 'true '.
contentStyle = "width: 140px;"
partialTriggers = "soc3".
valueChangeListener = "#{pageFlowScope.InternalUserBean.InternalTypeupd} '"
Visible = "true".
value = "#{pageFlowScope.InternalBean.selectType} '"
autoSubmit = "true" >
< af:forEach var = 'item '.
items = "#{pageFlowScope.InternalBean.childRolesupd}" >
< af:selectItem value = "#{point}" label = "#{point}" id = "tu7g" / >
< af:showPopupBehavior popupId = "popupMessage.
triggerType = 'action' / >
< / af:forEach >
< / af:selectOneChoice >
< af:popup id = "popupMessage" contentDelivery = "lazyUncached" >
< af:dialog id = "d109" type = "ok" >
< af:inputText value = "#{bindings." RoleReason.inputValue}.
label = "#{bindings." RoleReason.hints.label}.
required = "#{bindings." RoleReason.hints.mandatory}.
columns = "50".
maximumLength = "#{bindings." RoleReason.hints.precision}.
shortDesc = "#{bindings." RoleReason.hints.tooltip}.
ID = "it49" lines = "15" >
< f: validator binding = "#{bindings." RoleReason.validator} "/ >"
< / af:inputText >
< / af:dialog >
< / af:popup >
Well, I see the same popuo twice in your code!
Then you should never link a component (such as the popup) to a bean in PageFlowScope
Binding = "#{pageFlowScope.InternalBean.radioPopupLov}" > "
like you did. This produces errors like you see.
Timo
-
Passing request to a POPUP LOV from the previous page
Hi all
I'm stuck again:(et ses urgent...)
I have a popup LOV and I want to fill the values in computer science based upon REQUEST from the first page.
If I click CREATE on the first page POPUP LOV must display some values and if I click on UPDATE on the first page, he must fill out a different set of values.
When I navigate beyond this page and come back, the LOV should also have values based on the previous selected request.
To do this, I created a P_REQ component which stores the value of the request from the first page IE: P_REQ wil have to CREATE or update values.
Now I am able to pass this value to a selection list. However, a CONTEXTUAL list is not able to read this P_REQ value.
MY request for LOV is as below
Select d1 d, r r1
Of
(select name d1, r1, 'C' up_cr ID
OF THE customer
"WHERE statusid in (1,3).
Union
Select the d1, r1, 'U' up_cr ClientID name
OF Client_List)
where up_cr = decode(:P_REQ,'CREATE','C','U')
ORDER BY d1
Kindly help... Its Urgent...What are the parameters that you used for the calculation? All you need is to set the value of a page in the session before the popup element is called. With the help of a calculation that is running "Before Header" for this.
Andy
-
Hello
I have a Popup Lov key (description of the poster, returns the key value) and I want a default value. It is based on a list (user name, id).
I tried to put the id of the user logged on as default, but what I see on the screen in the field is the value of the id, not the username.
How can I pass the user id and see the user name?
Thank you.Oh! My bad, I thought you are talking about regualt lOVs not popups.
OK, so that's what you need to do, I tried it and it worked for me:
your popup LOV > default > type: body of the PLSQL function > and enter a query like:
declare
UID number.
Start
Select user_id from the uid of the user
where UPPER (username) = UPPER(:APP_USER);This should show username and retune userid.
Hope this helps,
Sam
Please give good answers by marking correct or useful.
Maybe you are looking for
-
Windows update error. Code 80244018 on Windows server 2008 64 bit
When I perform a windows update on my windows server 2008 64-bit, I get this error message:Code 80244018 Windows Update encountered an unknown error.I use as antivirus Symantec Endpoint Protection version 11.0. In my control panel configuration, auto
-
Original title: error code: ERROR_INTERNAL_SERVER_ERROR 16977927 where to install the patch tool from microsoft on vista windows update, as soon as I check my account I click Next and it's when I see the error code
-
Pavilion g6 1312tu: need drivers for pavilion g6 1312tu portable 32-bit Windows 7
I formatted by earlier OS 7, 32-bit window. After formatting, I can see in the Device Manager as other devices are missing, which are - (1) Ethernet Controller network controller (2) (3) PCI Device (4) Communication Simple PCI Controller (5) SM Bus
-
I get a black screen when I play videos in Windows Media Player and Windows Media Center.
Until recently, all worked well for a long time. Now when you try to watch live TV or a DVD, I get a black screen with sound in Windows Media Center and trying to watch a DVD in Windows Media Player I also get a black screen with sound. The controls
-
Lot SVG: where to add the code to resize the artboard?
I want to include a piece of code to get the artboard resized and then convert .eps and .ai files SVG.Not sure where it should go?Clues, let me knowTHANK YOU GUYS!------------------------------artboard resize codefor (i = 0; i < filesToProcess.length