selection list dynamic default value
Hello worldI have a question about the dynamic selection lists.
I have a report of a table that displays records. Each record has different versions of data. So when you click on a folder you get to another page where you get some information on this record and where you can select the version of this information (using a selection list).
The selection list works very well and is set dynamically as follows:
Select distinct b.SID display_value,
return_value a.version_id
cn_pl_version a.,
cn_pl_std_peplanung b
WHERE a.version_ID = b.version_id AND
b.pe_id = "& P6_HELP_PRODET."
a.version_id desc order
My problem is that when I click on a folder that I always get the report filled with the oldest version of the current record, so I always choose the most recent version to the list manually. I always prefer to have the most recent version in the report.
The report query is:
Select
....
....
(select sum (stunden) in cn_pl_std_peplanung t02
where abt_id = '10'
and t02.pe_id = t1.pe_id
and t02.version_id = t1.version_id
and t02.idee_id = t1.idee_id) stunden_ir;
(select name from cn_pl_version u01
where u01.version_id = t1.version_id) Version
of cn_pl_std_peplanung t1, cn_pl_projektelemente z1, u1 cn_pl_version cn_pl_projektidee s1
where t1.version_id = ' & P6_VERSION_WAHL. »
and t1.pe_id = z1.pe_id
and z1.pe_id ='& P6_HELP_PRODET. »
Group of t1.pe_id, t1.version_id, t1.idee_id
' & P6_VERSION_WAHL.' is the element of the selection list
' & P6_HELP_PRODET.' is the ID of the current record
I don't know if you understand my problem, my English is not the best...
Thanks for any help!
Patrick
Hi Patrick,
What value choose it show list, when you create a branch to the page? That's the good?
If not, you must change your selection list, that the correct version is selected by default. You can set a 'default' value when you set the source of the element.
Otherwise, you may configure a sample application to http://apex.oracle.com.
Best regards
Chrissy
Tags: Database
Similar Questions
-
How to set values in a select list dynamically according to the user action
Hello
I'm new to Apex. With the help of Apex 4.0 on Oracle 10 g. In my page, I will have a list of selected countries. According to the user selection value I have to display the States / provinces of this country in another selection list. States have to fetch the state_list table and the province of province_list table.
Can someone tell me how to do this.
n advance thanksHello
LoV using cascading as detailed here http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/bldapp_item.htm#HTMDB05014Kind regards
-
Selection list: display null value
In a select list, I want to display the display value null as default in the selection list, whenever the form is opened.
Please suggest how to achieve this.
SanjayHello
Change the selection list and choose the option 'Display null value' like 'yes '. Do not mention any value in the default value field.
Concerning
Jean Claude -
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
-
Select the entry default value - 10.1.3 ADF
Hi Comunity working with 10.1.3 adf I have a method of filter VO with two values selectInputDate, filter works fine, but I need the default value for the selectinputsdates like this:
DD-MM-YYYY HH: mi in the current day.
All suggess.
Thank you.Hi Peter
Create a class of bean to manage with this method:
private oracle.jbo.domain.Date appCurrentDate;
dateDefaultFrom private date;
dateDefaultTo private date;private Date initDate() {}
java.util.Calendar c = Calendar.GetInstance ();
java.util.Date utilDate = c.getTime ();
St timestamp = new Timestamp (utilDate.getTime ());
return new Date (st);
}public Date getAppCurrentDate() {}
appCurrentDate = initDate();
Return appCurrentDate;
}public Date getDateDefaultFrom() {}
if(dateDefaultFrom== null) {}
dateDefaultFrom = initDate (0, 0, 0);
Return dateDefaultFrom;
}
Return dateDefaultFrom;
}public Date getDateDefaultTo() {}
if(dateDefaultTo== null) {}
dateDefaultTo = initDate (23, 59, 59);
Return dateDefaultTo;
}
Return dateDefaultTo;
}private Date initDate (int hora, min int, int seg) {}
java.util.Calendar c = Calendar.GetInstance ();
c.Set (Calendar.HOUR_OF_DAY, hora);
c.Set (Calendar.MINUTE, minutes);
c.Set (Calendar.SECOND, seg);
java.util.Date utilDate = c.getTime ();
St timestamp = new Timestamp (utilDate.getTime ());
return new Date (st);
}Then in the page jsp/jspx definition value var selectInputDate defaultValue:
DefaultValue = "${myBeanClass.dateDefaultFrom.value}" "
And
DefaultValue = "${myBeanClass.dateDefaultTo.value}" "
Good luck.
-
Hello
Can someone please let me know how to value to select list (display Null value: Yes, the Null value to display:--select--) through the text field and button.) When I enter a value in the text field and click the button, and then select field must be filled with the respective value.
I tried to make it through the writing of a query in the source and through dynamic action button, they are populating the value to select the list but we null is folded down, then we must click on the selection list to display the value, but I want the value that is returned to be visible visible null instead.
Kind regards
ShoaibHello
>
Can someone please let me know how to value to select list (display Null value: Yes, the Null value to display:--select--) through the text field and button.) When I enter a value in the text field and click the button, and then select field must be filled with the respective value.
>
a. What is the source of the LoV? Static? Dynamics?
b. the value that you set using point and button is the value display or the return value of the LoV? It should be the return value.
>
I tried to make it through the writing of a query in the source and through dynamic action button, they are populating the value to select the list but we null is folded down, then we must click on the selection list to display the value, but I want the value that is returned to be visible visible null instead.
>As you mention DA, you are on 4.x. But it is better to ask clearly the Apex version.
See you soon,.PS: What you have specified in the Retrun Null value?
Published by: Dominique on July 20, 2012 13:31
-
dynamic selection list hangs with php
Hi all
I can't get a list of dynamic selection of work in dreamweaver. It completely crashes whenever I try to add to my page. I found someone else in the forum who had the same problem, but no one ever answered. I've tried several things, including putting just the dynamic record and select on its own page with no other code in this regard. He always breaks DW. I also tried this coding myself by making a listmenu and change it so that the value of the option equals a value PHP echo. It crashed too much here. Does anyone have a piece of code with a selection list dynamic work that uses a recordset that I could look at? This way I can see where I am going wrong. All I'm trying to do is to get a simple drop-down menu select list of employee names, so anyone can choose their name for advice. This is a table, a set of records 2 fields (first and last name).
Using DW CS3, php & MySQL, windows XP Pro
Any help would be really appreciated!
That's all! Thanks a lot for your help!
-
creation of selection using comma-separated values list
Hi all
I have the column in the database containing values separated by commas
for ex: Pune, Mumbai, Bangalore...
I want to create the selection list using higher values.
for ex: Pune
Mumbai
Bangalore
Please help me on this issue.
Thanks in advance,
JitendraHello
Try the following
select regexp_substr(YOUR_FIELD_NAME,'[^,]+', 1, level) display_value, regexp_substr(YOUR_FIELD_NAME,'[^,]+', 1, level) return_value from YOUR_TABLE connect by regexp_substr(YOUR_FIELD_NAME, '[^,]+', 1, level) is not null
Concerning
Graham
Published by: gpc on February 1, 2012 11:27
-
Problem to hide/show the selection list
Hi all
I try to hide three Select lists based on value of a select list. I use the following javascript function in the html header:
< script >
function Show_On_Selectlist_Value (pThis pLabel pThat, pValue) {}
var rv is $x (pThis) .value;.
alert (rv);
var Elm = $x (pThat);
var lbl = $x (pLabel);
If (rv == pValue) {}
html_ShowElement (pThat);
html_ShowElement (pLabel);
} else {}
html_HideElement (pThat);
html_HideElement (pLabel); }
}
< /script >
Then I on the main list select form element attributes in html, the following point:
OnChange = "Show_On_Selectlist_Value ('P2_REPORT_TYPE', 'P2_PETITION_REASON', '388 pétitions', 'L_P2_PETITION_REASON'); Show_On_Selectlist_Value ('P2_REPORT_TYPE', 'P2_STATUS', 'Traffic court referrals', 'L_P2_STATUS'); »
which works very well. However, when I add a third item in the list Select, nothing happens, the list is not hidden or shown accordingly:
OnChange = "Show_On_Selectlist_Value ('P2_REPORT_TYPE', 'P2_PETITION_REASON', '388 pétitions', 'L_P2_PETITION_REASON'); Show_On_Selectlist_Value ('P2_REPORT_TYPE', 'P2_STATUS', 'Traffic court referrals', 'L_P2_STATUS'); Show_On_Selectlist_Value ('P2_REPORT_TYPE', 'P2_PETITIONER_TYPE', '388 pétitions', 'L_P2_PETITIONER_TYPE'); »
Is there a limit to the number of select list items? All ideas/advice are appreciated. Using Apex 3.0. Thank you.Hi Marc,
There are several ways why something can be hidden by default when the page loads:
1 style = "" view: no ' on the "..." Attributes"setting of the element/label
2 - a style definition on the page that uses the ID of the element or the label of the values as the selector (for example: #P1_ITEM1 {.. style...})
3 - javascript, which is actually what does your codeWithout being able to see your page, it is difficult to think that he can be (and there may be other options as well). Is it likely to be a STYLE tag somewhere on your page?
Andy
-
jQuery to update the background color select list
I have this element in a tabular presentation.
< select name = "f15" id = "f30" autocomplete = "off" >
< option value = "" selected = "selected" > < / option > "
ROSE < option value = "PINK" > < / option >
< option value = "SILVER" > SILVER < / option >
< / select >
I try to use jQuery to f30 in the table, then for each item in this table cross list items and set the background color for what is in the value field.
But I can't even the value of each item in the selection list. This.Value and $(this) .val () return null.
This is my small effort:
$("[name="f15"]').each (function () {}
line = apex.jQuery (this) .closest ('tr');
Alert ('value =' + This.value);
Alert ('value =' + $(this).) Val());
. style.backgroundColor $(this) = this.value;
$(this) .css ({backgroundColor: this.value});
$(this) .css ("background-color", "red");
});
Hello
$("#f30>option").each(function() { console.log(this.value); });
-
NVL selection list does not not on the place where clause in query
Ok. APEX 4.2...
Im having problems with my selection lists and NULL values... I see that it has come time and time again...
I have a tabular presentation, with a query based on a selection list. The selection list has the ability to '- Show All -'... The value of the selection list is a number, and the display is words... (for reference the LOV query is: select status, batch from pmt_stat_lookup by 1)
Initially I had problems with null and invalid numbers like ' display Null = 'Yes' and the problem of null % ', so have used the code in this blog to remove the NULL values... Display Null = & amp; #34; Yes & amp; #34; and the problem of null % | Inside Oracle APEX by Patrick Wolf
Then in the application of my report, I have a where clause clause that checks the value of the selection list... WHERE batch = nvl(:P11_STATUS_SELECT,STATUS_ID)
everything works almost fine, and I can choose a status, or I choose - see the All-, but the query will not include the lines where the State is null.
(I also see that maybe I should be, use the case statement instead of the NVL on where clause, but not sure of the syntax. In addition, NVL was used somewhat in the different reports in the application...)
For reference, the code of the old blog that I as a process page is:
BEGIN
FOR rItem IN
(SELECT NOM_ELEMENT
OF APEX_APPLICATION_PAGE_ITEMS
WHERE APPLICATION_ID = TO_NUMBER(:APP_ID)
AND PAGE_ID IN (TO_NUMBER(:APP_PAGE_ID), 0)
AND LOV_DISPLAY_NULL = 'Yes'
AND LOV_DEFINITION IS NOT NULL
-change here
AND LOV_NULL_VALUE = '% null | '%'
)
LOOP
IF V (rItem.ITEM_NAME) = "% null | '%'
THEN
Apex_Util.set_session_state (rItem.ITEM_NAME, NULL);
END IF;
END LOOP;
END;
Thank you very much
Richard
Richard,
Perhaps this example can help you solve your problem.
https://Apex.Oracle.com/pls/Apex/f?p=63838:2
Jeff
-
Hi Experts,
I use the apex 4.0 version
I have 2 areas in my page.
1 region html that displays select list (my_list), item (Go) button
Selection list gets the values of LOV (TYPE)
LOV query is like that...
Select the item d, section demo_items r
Union all
Select 'ALL', 'ALL' double r d
When I run the page selection list has values like this...
Item1
Item2
Item3
ALL THE
2 region of graph
Application of graph is like this...
Select from demo_items where item =: P1_my_list
Based on, select chart value list will generate.
If only 1 value of select user select list and click on the GO button above query works fine.
But my requirement is...
If the 'ALL' user select from the list of selection, I need to spend 3 values(item1,item2,item3) to the top of the query.
To select multi, I can use APEX_UTIL. Function STRING_TO_TABLE (item1, item2, item3 values lie in the demo_items table, but the value is not in the table demo_items)
Please can someone help me out in this... How to select selection list value to query if the value selected in the list is "ALL".
Thanks in advance...mn123 wrote:
Hi joel,.
Thanks for your reply...
keyword 'ALL' cannot be applied to the column level, it seems...This isn't what I said at all - I was hoping you could see the problem for yourself, but alas...
Well, if we were to express your where clause as it is currently based on Boolean logic, it might look like this:
A.B.C+D
where
A => supplier = :p2_supplier B => purchase_date Between To_date (Nvl (:p2_frmdt ,To_char (Add_months (Sysdate ,-6) ,'MM-DD-YY')) ,'MM-DD-YY') And To_date (Nvl (:p2_todt ,To_char (Sysdate, 'MM-DD-YY')) ,'MM-DD-YY') C => itemname = :p2_listitem D => :p2_listitem = 'ALL'
You can see that, in the cases to be true (i.e. p2_listitem = 'ALL') this setting overrides other parts of the where clause, because the GOLD [+] operator has a lower priority than AND [..] (see http://en.wikipedia.org/wiki/Logical_connective#Order_of_precedence for more details). That's why you return all the results, even if you provide a value for: p2_Supplier.
The solution is to explicitly mark the predicates with parentheses:
A.B.(C+D)
And so your where clause now becomes:
supplier = :p2_supplier And purchase_date Between To_date (Nvl (:p2_frmdt ,To_char (Add_months (Sysdate ,-6) ,'MM-DD-YY')) ,'MM-DD-YY') And To_date (Nvl (:p2_todt ,To_char (Sysdate, 'MM-DD-YY')) ,'MM-DD-YY') And (itemname = :p2_listitem OR :p2_listitem = 'ALL')
Do you see the difference between the two? In fact, if you re - examine original post of Alex and a later message by Gaetano, they off explicitly mark the relevant attributes that use GOLD operators within the parenthesis.
Published by: Joel_C on November 26, 2011 14:56
-
Setting the default value for a dynamic selection menu
Hi I have a php with 2 forms to this topic page, you feed on the other to achieve a lock down (manufacturer > model). The menu then select I have a static default value 'Select a model aircraft', I want to set a value for the first menu select dynamic to read "select the manufacturer. When I add a static value to my list, it tells me I alreay have a dynamic behavior on this menu and choose another. I've included the code for two menus. Thank you in advance, I know it must be a stupid question, but it has left me speechless.
Tom
This is the menu that I want to add static value defaults to.
< td width = "667" > < select name = "airMake" style = "" width: 200px; "" OnChange = "This.Form.Submit (); "id ="airMake">
<? PHP
{}
? >
< option value = "<?" PHP echo $row_rsAirManufacturer ['aircraft_manufacturer']? > "<?" PHP if (!) strcmp () ($row_rsAirManufacturer ['aircraft_manufacturer'], ((isset($_POST["airMake"]))? $_POST ['airMake'] :""))) {echo "selected =-'selected\'" ;}?})) > > <? PHP echo $row_rsAirManufacturer ['aircraft_manufacturer']? > < / option >
<? PHP
} While ($row_rsAirManufacturer = mysql_fetch_assoc ($rsAirManufacturer));
$rows = mysql_num_rows ($rsAirManufacturer);
If ($rows > 0) {}
mysql_data_seek ($rsAirManufacturer, 0);
$row_rsAirManufacturer = mysql_fetch_assoc ($rsAirManufacturer);
}
? >
< / select >
< table >
< /tr >
< / table > < / make >
< do action = "quoteResult.php" method = "post" name = "quoteForm" > "
< table width = "100%" border = "0" cellpadding = "5px" >
< b >
< td width = "260" style = "color: #000;" text-align: right; "> aircraft model: < table >
< td colspan = "2" > < span id = "spryselect2" >
This is the menu that works properly.
< select name = "airModel" style = "" width: 200px; "id ="airModel">"
< option value = "" <? " PHP if (!) () strcmp ("", ((isset($_POST["airMakeField"]))? ") $_POST ['airMakeField'] :""))) {echo "selected =-'selected\'" ;}?} > > < / option >
<? PHP
{}
? >
< option value = "<?" PHP echo $row_rsAirModel ['aircraft_model']? > "<?" PHP if (!) strcmp () ($row_rsAirModel ['aircraft_model'], ((isset($_POST["airMakeField"]))? $_POST ['airMakeField'] :""))) {echo "selected =-'selected\'" ;}?})) > > <? PHP echo $row_rsAirModel ['aircraft_model']? > select a model airplane < / option >
<? PHP
} While ($row_rsAirModel = mysql_fetch_assoc ($rsAirModel));
$rows = mysql_num_rows ($rsAirModel);
If ($rows > 0) {}
mysql_data_seek ($rsAirModel, 0);
$row_rsAirModel = mysql_fetch_assoc ($rsAirModel);
}
? >
< / select >
-Change
-
Dynamic action to select a default value
I'm struggling with a concept of dynamic action. I'm trying to set the default values under certain circumstances.
If no selection is made in groups of KPIS, I want one for the area of selection around the bulb.
If no selection is made in high-level KPI, then I want the premiera 'selected' with the area around the bulb.
My goal is to do two things here. First of all, visually indicate which item has been selected via a click or default action. And second, select first occurrence of KPI according to if something has clicked or if anything has been clicked again.
Three scenarios I see:
(1) user opens page 586: 'Safety and training' must be selected. And OSHA training should be chosen
(2) click on 'Monitoring': monitoring must be chosen and should therefore "warning fire late" as the first in the category.
(3) the user clicks 'Detectors of CO2' late under surveillance: surveillance remains selected in the KPI group and the selection moves the late fire alarms to CO2 detectors, late.
When I say selected, I'm talking about the little box around the bulb. It would be even better if the box around the text went too if possible.
And Yes, you are allowed to make changes to the application.
Login to apex.oracle.com
number of App 73911
bulbcharts workspace
user guestdev / charts
TC-army wrote:
I'm struggling with a concept of dynamic action. I'm trying to set the default values under certain circumstances.
If no selection is made in groups of KPIS, I want one for the area of selection around the bulb.
If no selection is made in high-level KPI, then I want the premiera 'selected' with the area around the bulb.
My goal is to do two things here. First of all, visually indicate which item has been selected via a click or default action. And second, select first occurrence of KPI according to if something has clicked or if anything has been clicked again.
Three scenarios I see:
(1) user opens page 586: 'Safety and training' must be selected. And OSHA training should be chosen
(2) click on 'Monitoring': monitoring must be chosen and should therefore "warning fire late" as the first in the category.
(3) the user clicks 'Detectors of CO2' late under surveillance: surveillance remains selected in the KPI group and the selection moves the late fire alarms to CO2 detectors, late.
When I say selected, I'm talking about the little box around the bulb. It would be even better if the box around the text went too if possible.
And Yes, you are allowed to make changes to the application.
Login to apex.oracle.com
number of App 73911
bulbcharts workspace
user guestdev / charts
The 'small box around the bulb' is the focus rectangle. It is in fact to choose a bulb before you click on it, not saying the current selection (click on a light bulb and then press tab to see this in action). For accessibility reasons, it is best to let this behavior of the browser by default alone.
Maintaining the metaphor of the light bulb, I used dynamic actions and CSS to apply a glow effect to indicate the bulbs that exist currently "on". Details to follow when I have more time...
-
Can not set a value by the executed dynamic action on the page element "selection list."
I created an agenda of the page 'list of selection' and I want to when I change a value in another element of the page set only 'screen '.
I created a dynamic action on the page element "selection list" for this.
These are the dynamic action attribute:
When:
======
Event: change
Selection type: point
Article: P29_PURCHASE_ORDER
Condition: No strings attached
Advanced:
========
Scope of the event: static
Identification:
==========
Action: Set
The ' Action Page when the changed value "attribute of the element of 'list of selection' = 'None', and when I run form the dynamic action run and set the value for once and do not update the value according to the change in the article"list of selection. "
Note: when I change the previous attribute of 'Redirect and set', dynamic action run and properly value, but the value was hidden soon
I want to value when the value of change of select list according to this change successfully.
Please, advice me,
Best regards
Mustafa Ezzat
Hello
you set the value of the 'Page elements to submit' to P29_PURCHASE_ORDER?
Then, the SQL statement would use the current selected value.
This is the help text says: "specify a list separated by commas of the elements of the page that will be submitted to the server and therefore available for use in your"SQL statement"," PL/SQL Expression"or"Body of the PL/SQL function".»
Kind regards
Erik-jan
Maybe you are looking for
-
force firefox to use a profile of specfic
I installed 2 profiles, 1 for work and 1 for the private home and I have this problem when clicking on links outside that for example like MS outlook applications and shortcuts firefox and the firefox profile manager appears and ask me to choose a pr
-
How can I make a web VI using web UI Builder
Hello I installed a web user interface generator and now I'm trying to get rid of it through the tutorials. My biggest problem is that I can't understand the concept of creating web pages, And my + requirement is I have a servo and running this engin
-
LED constant name does not match between window Panel and attribute popup
Edit a range of gui (file .uir) in CVI, I double click on a LED and change the name of the constant. The name in the Panel summary attribute on the right of the IDE indicates the wrong name. What causes this? I had copied and pasted the other LEDs
-
email set up for windows live mail
I am quite frustrated with the email TP application. I have successfully set up gmail and partially successful implementation of live.mail... Can someone explain why I do not receive my downloaded and visible "junk e-mail" folder in the email app? So
-
I'm a really small mobile ad (28 x 90) it has 4 frames and must be animate. I made the announcement in Illustrator to keep the image and the text as clean as possible. I brought in photoshop, but its all pixelated. How to create a gif animated images