How to show valid field items based on previous selected field
I am trying to use BC Web Apps to help my customers find products for their specific motor vehicle.
By selecting the vehicle make and then the model. e.g. Chevrolet and then Camaro.
This will then bring up a table with all the cosponsoring equipment part numbers.
At the moment the closest I can get is two dropdown lists one with all the vehicle makes and another with every vehicle model.
If I select Chevrolet I only want to see Chevrolet models in the dropdown list.
Hi 2932464,
2932464 wrote:
Hi,
I have a set of text Field items in oracle apex:
Order Number
Revision Number
When we open the report, revision should be hidden.
Only when the user enters unique order number (non-duplicate order numbers), revision number should be visible.
If he enters duplicate order number, revision number should be hidden.
Please help.
Giving you example how to achieve this.
Step 1. Create three Page Items
1) P1_ORDER_NO - Text Field
2) P1_REVISION_NO - Text Field
3) P1_ENABLE_DISABLE_REVNO - Hidden,Value Protected - No
2. Create 3 Dynamic Actions
1) Disable revision number on page load
Event - Page Load
Action - Disable
Fire When Event Result Is - True
Selection Type - Item
Item - P1_REVISION_NO
2) Check duplicate order number
Event - Change
Selection Type - Item(s)
Item(s) - P1_ORDER_NO
Condition - is not null
Action - Execute PL/SQL Code
Generate opposite false action - Unchecked
Fire When Event Result Is - True
Fire on page load - Unchecked
Stop Execution On Error - Checked
Wait for Result - Checked
PL/SQL Code -
declare
l_count number;
begin
select count(*) into l_count
from emp
where empno = :P1_ORDER_NO;
if l_count > 0 then
:P1_ENABLE_DISABLE_REVNO := 1;
else
:P1_ENABLE_DISABLE_REVNO := 0;
end if;
end;
Page Items to Submit = P1_ORDER_NO
Page Items to Return = P1_ENABLE_DISABLE_REVNO
3 ) Enable and Disable Revision Number
Event - Change
Selection Type - Item(s)
Item(s) - P1_ENABLE_DISABLE_REVNO
condition - greater than or equal to
value - 1
Action - Disable
Fire on Page Laod - Unchecked
Generate opposite false action - checked
Selection Type = Item(s)
Item(s) - P1_REVISION_NO
Hope this helps you,
Regards,
Jitendra
DER_NO
Similar Messages
-
How to populate another page item based on cascading select lists?
Oracle 10gXE
APEX 3.2
I've created cascading select lists based on the examples (using Javascript and AJAX) that i've seen on this forum. Thanks for help on that!
Now that I have these LOV's being populated without needing to submit the page, how do I take the value that is presently in each LOV and concatenate them together to populate another page item? I'm trying to build the URL string that will execute an Oracle Report once the user clicks a button.
Previously, when I had multiple Select Lists with a submit, the URL was being put together using an After Submit Computation that would set the value for an item (P26_REPORT_URL) on the page. Notice that a report parameter (i.e. parameter name and Select List value) is only included if the user has provided a value. The page item that holds these values is then referenced by a button for URL redirect. The URL Target for the button currently is: javascript:popupURL('&P26_REPORT_URL.'), but will not work at the moment because P26_REPORT_URL page item is not changing based on what is selected in the LOVs. Since I'm not submitting anything (do I need to?), how do I put together the values needed?
Computation for P26_REPORT_URL:
DECLARE
l_param VARCHAR2(2000);
BEGIN
l_param := '&REPORTS_URL.&report=&P26_RPT_VIEW..rdf&desformat=&P26_DESFORMAT.&destype=cache';
IF REPLACE(:P26_OLO_CODE,'%'||'null%',NULL) IS NOT NULL THEN
l_param := l_param||'&p_olo_code=&P26_OLO_CODE.';
END IF;
IF REPLACE(:P26_BEG_DATE,'%'||'null%',NULL) IS NOT NULL THEN
l_param := l_param||'&p_start_dt=&P26_BEG_DATE.';
END IF;
IF REPLACE(:P26_END_DATE,'%'||'null%',NULL) IS NOT NULL THEN
l_param := l_param||'&p_end_dt=&P26_END_DATE.';
END IF;
IF REPLACE(:P26_ORG_CODE_2,'%'||'null%',NULL) IS NOT NULL THEN
l_param := l_param||'&p_org_code=&P26_ORG_CODE_2.';
END IF;
IF REPLACE(:P26_FLAIR_ORG_2,'%'||'null%',NULL) IS NOT NULL THEN
l_param := l_param||'&p_flair_org_code=&P26_FLAIR_ORG_2.';
END IF;
IF REPLACE(:P26_BUDGET_ENTITY_2,'%'||'null%',NULL) IS NOT NULL THEN
l_param := l_param||'&p_agy_code=&P26_BUDGET_ENTITY_2.';
END IF;
RETURN l_param;
END;Andy,
This is a great suggestion! After I posted, I started looking at a Javascript solution and figured it's probably what I had to do.
However, now the cascading select list no longer working for some reason after I added the function to concatenate the item values. When I remove the showReport() function the select list works again.
Here is what I have in the HTML Header portion of the page:
<script language="JavaScript" type="text/javascript">
function popupURL (url) {
w = open(url,"winLov","resizable=1,width=800,height=600");
if (w.opener == null)
w.opener = self;
w.focus();
function showReport()
var l_param = '&REPORTS_URL.&report=' + $v('P26_RPT_VIEW') + '.rdf&desformat=' + $v('P26_DESFORMAT') + '&destype=cache';
if ($v('P26_OLO_CODE' != '')
l_param += '&p_olo_code=' + $v('P26_OLO_CODE');
if ($v('P26_ORG_CODE_3' != '')
l_param += '&p_org_code=' + $v('P26_ORG_CODE_3');
popupURL(l_param);
function get_AJAX_SELECT_XML(pThis,pSelect){
var l_Return = null;
var l_Select = $x(pSelect);
var get = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=ORG_SELECT_LIST',0);
get.add('TEMPORARY_ITEM',pThis.value);
gReturn = get.get('XML');
if(gReturn && l_Select){
var l_Count = gReturn.getElementsByTagName("option").length;
l_Select.length = 0;
for(var i=0;i<l_Count;i++){
var l_Opt_Xml = gReturn.getElementsByTagName("option");
appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'), l_Opt_Xml.firstChild.nodeValue)
get = null;
function appendToSelect(pSelect, pValue, pContent) {
var l_Opt = document.createElement("option");
l_Opt.value = pValue;
if(document.all){
pSelect.options.add(l_Opt);
l_Opt.innerText = pContent;
}else{
l_Opt.appendChild(document.createTextNode(pContent));
pSelect.appendChild(l_Opt);
</script> -
How to create dynamic ed flash charts based on user selected fields in Orac
Hi all,
Can any of the experts please tellme "how to create dynamic ed flash charts based on user selected fields in Oracle apex".
Thanks
ManishHello,
Lots of different ways to do this, I blogged about one way (using a Pipelined function) here -
http://jes.blogs.shellprompt.net/2006/05/25/generic-charting-in-application-express/
Other options include using a PL/SQL function returning the string to use as the dynamic query etc.
Hope this helps,
John.
Blog: http://jes.blogs.shellprompt.net
Work: http://www.apex-evangelists.com
Author of Pro Application Express: http://tinyurl.com/3gu7cd
REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone! -
Form Personalization - Make field required based on LOV selection
Newbie here.
I am trying to make a field required based on the selection of the LOV that is next to it. Having a heck of a time with it.
The form i am working on is the Sub Invenntory form that you get to via Organization Items. We want the subinvnetory field to be manditory when subinv is selected from the LOV in the sources tab.
here is what i have so far:
CONDITION
Trigger Event: WHEN-VALIDATE-RECORD
Trigger Obj: ITEM_SUBINVENTORIES
Condition: ${item.item_subinventories.SOURCE_TYPE.value} = 3
Action
Type: Property
Object Type: Item
Target Object: ITEM_SUBINVENTORIES.SOURCE_SUBINVENTORY
Property Name: REQUIRED
Value: TRUE
The problem seems to be that i can't get the field to be required. It shows up yellow but still allows me to save w/ the field being blank.I do not know about the particular form that you are trying to personalize, but whenever I have created a condition, it has usually been in the following syntax:
:BLOCK_NAME.FIELD_NAME = 'VALUE'
For example, :MTL_SYSTEM_ITEMS.PRIMARY_UNIT_OF_MEASURE_MIR = 'SEAT'
Yours seems to be very much different from mine, but then again, I am not technical so I cannot comment intelligently on that aspect.
May be that is the problem.
Also, once you get it to work, you might want to also add a condition where the field is turned to un-required when the SOURCE_TYPE is NOT 3. -
Tcode to find the fields ,tables based on description of fields
hi folks,
tcode to find the fields ,tables based on description of fields,POINTS will be awarded for the answers ,plz give reply.Hello Kumar
Table DD03T contains the field descriptions.
Regards
Uwe -
Want 2 populate value in 2nd list item based on value selected in 1st list?
Want 2 populate value in 2nd list item based on value selected in 1st list?
Gaurav -
The 3rd list will not populate because nothing has been selected yet in list 2. The value in list 2 is null, so the loop to populate list (3) has nothing to load. Try the following below. This should seed your 2nd list so the 3rd list will populate.
You will have to declare first_record boolean and first_value to match DESCC.
first_record := true; -- NEW *****
Clear_List('BLOCK2.ITEM2');
FOR CurRec IN (SELECT UNIQUE DESCC DESCC FROM LUTT where LUTT.IDD = :BLOCK2.ITEM1)
LOOP
if first_record = true then -- NEW SECTION *****
first_value := CurRec.DESCC;
first_record := false;
end if;
Add_List_Element('BLOCK2.ITEM2',1,CurRec.DESCC,CurRec.DESCC);
END LOOP;
:block2.item2 := first_value; -- NEW *****
Clear_List('BLOCK2.ITEM3');
FOR CurRec2 IN (SELECT UNIQUE DESCC DESCC FROM LUTT where LUTT.DESCC = :BLOCK2.ITEM2)
LOOP
Add_List_Element('BLOCK2.ITEM3',2,CurRec2.DESCC,CurRec2.DESCC);
END LOOP;
My name is Ken, 1990 is when I started using Oracle Forms 3.0, character based in the Unix environments. And you are very welcome. -
How to show limited items based on a custom field
Is there a way to show only web app items based on the custom date field? For example, i want the module to only show web app item(s) whose "event date" is "today".... ?? Help please!
There has to be a jQuery plugin that can help you do that... just search on Google, Stackoverflow, etc...
There's one that SimpleFlame wrote via Kiyuko but it's a premium offering:
http://kiyuco.com/tutorials/create-a-web-app-driven-event-calendar -
How to sort web app items based on few fields of it on search result page?
I have a web app and its search. The search results are on multiple pages means it has pagination. My client's requirement is to have a feature which will sort results based on some web app items. for example we have a field price so when user select the price it needs to sort from high to low. Any one have idea how to do it?
I have just been playing around with this for something else, all you need to do is duplicate your price field into the weighting field and it will automatically sort from High to low for you.
Cheers
Duncan -
How to hide text field item based on true or false cases in oracle apex
Hi,
I have a set of text Field items in oracle apex:
Order Number
Revision Number
When we open the report, revision should be hidden.
Only when the user enters unique order number (non-duplicate order numbers), revision number should be visible.
If he enters duplicate order number, revision number should be hidden.
Please help.Hi 2932464,
2932464 wrote:
Hi,
I have a set of text Field items in oracle apex:
Order Number
Revision Number
When we open the report, revision should be hidden.
Only when the user enters unique order number (non-duplicate order numbers), revision number should be visible.
If he enters duplicate order number, revision number should be hidden.
Please help.
Giving you example how to achieve this.
Step 1. Create three Page Items
1) P1_ORDER_NO - Text Field
2) P1_REVISION_NO - Text Field
3) P1_ENABLE_DISABLE_REVNO - Hidden,Value Protected - No
2. Create 3 Dynamic Actions
1) Disable revision number on page load
Event - Page Load
Action - Disable
Fire When Event Result Is - True
Selection Type - Item
Item - P1_REVISION_NO
2) Check duplicate order number
Event - Change
Selection Type - Item(s)
Item(s) - P1_ORDER_NO
Condition - is not null
Action - Execute PL/SQL Code
Generate opposite false action - Unchecked
Fire When Event Result Is - True
Fire on page load - Unchecked
Stop Execution On Error - Checked
Wait for Result - Checked
PL/SQL Code -
declare
l_count number;
begin
select count(*) into l_count
from emp
where empno = :P1_ORDER_NO;
if l_count > 0 then
:P1_ENABLE_DISABLE_REVNO := 1;
else
:P1_ENABLE_DISABLE_REVNO := 0;
end if;
end;
Page Items to Submit = P1_ORDER_NO
Page Items to Return = P1_ENABLE_DISABLE_REVNO
3 ) Enable and Disable Revision Number
Event - Change
Selection Type - Item(s)
Item(s) - P1_ENABLE_DISABLE_REVNO
condition - greater than or equal to
value - 1
Action - Disable
Fire on Page Laod - Unchecked
Generate opposite false action - checked
Selection Type = Item(s)
Item(s) - P1_REVISION_NO
Hope this helps you,
Regards,
Jitendra
DER_NO -
Show or Hide Items based on radio value
I am trying to show and hide various Items based on the values of a radio button item. I have see the code and examples like
function Show_On_Radio_Value(pThis, pThat, pValue){
var rv = html_RadioValue(pThis);
if (rv == pValue) {
html_ShowItemRow(pThat);
} else {
html_HideItemRow(pThat);
The problem I am having is that I have 3 different values of the radio item and I want to display certain items based on each different value.
For example:
radio_value = 'Yes'
Show Item1, Item3, Item4
or
radio_value = 'No'
Show Item2, Item5, Item6
or
radio_value = 'Maybe'
Show Item1, Item2, Item4
I am fairly new to this so it might be easy, I just don't know how.
Any help would be appreciated.
--DGArie,
Thanks for the reply. I have tried it using the Show_On_Radio_Value function but I still can't get it to do exactly what I want. I have a working version here http://apex.oracle.com/pls/otn/f?p=25290 ,
The code I used for this demo app is:
[script language="JavaScript1.1" type="text/javascript"]
<!-- Hide
function Show_On_Radio_Value(pThis, pThat, pValue){
var rv = html_RadioValue(pThis);
if (rv == pValue) {
html_ShowItemRow(pThat);
} else {
html_HideItemRow(pThat);
function Hide_On_Radio_Value(pThis, pThat, pValue){
var rv = html_RadioValue(pThis);
if (rv == pValue) {
html_HideItemRow(pThat);
} else {
html_ShowItemRow(pThat);
// End Hide -->
[script]
In the HTML Form Element Attribute for the radio button:
onchange="Show_On_Radio_Value('P1_RADIO','P1_TEXTAREA','Maybe');
Hide_On_Radio_Value('P1_RADIO','P1_TEXTFIELD1','Maybe');
Hide_On_Radio_Value('P1_RADIO','P1_TEXTFIELD2','Maybe');
Hide_On_Radio_Value('P1_RADIO','P1_TEXTFIELD3','Maybe');
Hide_On_Radio_Value('P1_RADIO','P1_TEXTFIELD4','Maybe');
Hide_On_Radio_Value('P1_RADIO','P1_RADIOBUTTON','Maybe');
Hide_On_Radio_Value('P1_RADIO','P1_TEXTFIELD2','No');
Hide_On_Radio_Value('P1_RADIO','P1_TEXTFIELD4','No');
Hide_On_Radio_Value('P1_RADIO','P1_RADIOBUTTON','No');
The problem I see is that in the onchange event, the 'No' options are working because they appear last in the event.
Can you possibly provide an example using a Case statement?
Thanks,
DG -
How to show New calculated item in graph.
I created a new calculated item in column in pivot table. That new calculated item is not showing in line graph.
How to show that new column in graph.
ThanksGuys Please provide any pointers to achieve this. its very urgent for me.
Regards
Kris -
How to add new line item based on main item using crm_order_maintain
Hi All,
can you please provide a way to create a new line item based on main line item and save in crm transaction( in house repair order) by using crm_order_maintain(from SAP GUI).
Thanks,
vinod.Hi Vinod,
The relationship with main item is stored with CRMD_ORDERADM_I- Parent.
You need to pass the guid of main item to orderadm_i-parent. This will keep the relationship with main item.
Thanks
Ajay -
How to create Text Web item based on characteristics text!
Hi
In a template, I have a hierarchy object Region which is in the left panel, then on the right i have table displaying with dataprovider.
When the user select the hierarchy Region say Australia , then on the right I add the text web item, based on which the user selected, my text on righ side becomes australia, if they select Europe, then it should display europe.
Give me some solutions
Thanks
BI LearnerNo one answered...
-
How to create characteristics in BW based on generic datasource fields
hi ALL,
Actually, i created generic datasource based on database view in SAP R/3
Database view is created based on table LFA1.
Replicated the the datasource in SAP BW
Now, I have to create characteristics (master data) based
on generic datasource fields
Thanks in Advance.
Best Regards
M A MubeenHi Abdul,
for that you just create one charecterstic of Info object (with the same technical charecterstics of R/3 field).. and maintain master data..
now create one data source in BW side.. and select your data source and replicate data with your generic datasource...
and load the data..
regards
@jay -
Enable/Disable item Based Value from Select in Tabular Form
Hi Guys
I want to Disable text field in Tabular form, Based on the Select List Item Value.
Let's Say
I'm having one select lista and text box in each record in tabular form.
Select List having 2 items ... Add Text(return value 1) and No Text(return value 2)
if value =1 then i want to enable text box , so user can enter value.
if value=2 then text box won't allow to add text or will become disalbe.
Please Help
ThanksHi,
You can do this by using a small java script
<script language="JavaScript" type="text/javascript">
<!--
function FldEnableDisable(pThis)
if (pThis == 50)
$x('P2_TEXT').disabled=true;}
else
{ $x('P2_TEXT').disabled=false; }
//-->
</script>Here P2_Text is the text box whose value I am enabling or disabling based on the selected value from a List box. On The list box I have onChange="javascript:FldEnableDisable(this.value)" ( You can specify this under HTML Form Element Attributes)
Thanks,
Manish Jha
Maybe you are looking for
-
How to get extra information in server response "250 OK extra info here "
Hello all, I am using javamail to send e-mail messages via an SMTP server that responds in the following way when I finish sending my DATA: 250 OK <extra information here> How can I get the <extra information here> text using javamail? I am using jav
-
SkyDrive Pro and SharePoint 2010
Why SkyDrive Pro can no longer sync SharePoint 2010 libraries? I was using Windows 8 with Office 2013 and SkyDrive Pro had no problems with synchronizing content from SharePoint 2010. Now I installed Windows 8.1 with Office 2013 and it doesn't work a
-
Short battery life on Macbook Pro
My friend recently bought a Macbook Pro (15") and he's having problems with the battery life. He's only getting anywhere from 2:20 to 4:30 of battery life out of the optimal 7 after a full recharge...which to me is incredibly low. He's not running an
-
Hi Team, please help us in solving the belwo error in ESS. Where we are getting an error while viewing work entiranment tab in ESS saying that there are no data found for the CC. how to solve this. Regards, Vasu
-
Updating iPad photos from Photoshop Elements
When I select photo albums in Photoshop Elements using iTunes and then try to sync my iPad, the sync seems to hang up during the Photo phase. I tried resetting my iPad. that didn't help. Also, when I modify an abum in Elements, the modifications do