Element of change based on the value in LOV
I'm trying to disable the item (text box), based on the value of the LOV. And it doesn't seem to work.
Is it possible to see what is happening in the level of the events? The LOV is perhaps not "changing" ing?
Dynamically change the item values
Patrick Wolf-Oracle responded to the question - get the firebug.
Looking at the console I discovered that the returned of LOV value includes spaces. Resolved issues.
Tags: Database
Similar Questions
-
error message Popup on change based on the value of selectlist
Hello
I am new to Oracle Apex. I have a selectlist in my page. I need popup, an error message when the value is changed according to the value of selectlist. For example, the selectlist can have "Approved", "Rejected", "Started", value "not started". When I changed the value "Rejected" if it is already "approved" a popup/inline error message should appear and say that we cannot change "Approved" to "rejected". Similarly, I need to have 5 these validations on the fly (when the selectlist is changed). Also when the condition is the error value will not change (in the previous example, the value will not change to 'Rejected'). Is there a way to do this?~ Best regards,.
Nadège
Hi Jeevin,
You can use jQuery or Javascript to manage validations customized to your selection list onchange.
Something like
OnChange = "your_custom_function (this.value); »
and you can define your function as
function your_custom_function (value1)
{
If (value1 == "Rejected")
Alert ('Test Alert');
}
Logic may be all you need.
It may be useful
Thank you
Sunil Bhatia
-
Rows should be changes based on the value of the user
Hi Experts,
In my reports to the Table has more than 1000 rows and 5 columns as below
Date - Media - Station - MediaSpend (Amount) - PlugAmount_
10/10/09 - AAA - DAC - 100-20 (Eg., 100 / User_Value)
10/10/09 - AAA - FAB - 150-30 (Eg., 100 / User_Value)
.
.
Our requirement is we (User) a column need to enter User_value (perhaps number or decimal).
based on User_Value the PlugAmount must be changed IE MediaSpend / User_Value
Examine if User_Value = 5 then all the values of the PlugAmound line should change, as wise whenever the user changes User_Value the PlugAmount also changes.
Please help me, how can I solve this problem.
Thanks in advance
Oldia...
Published by: oldia on October 20, 2009 04:58
Published by: oldia on October 20, 2009 05:00
Published by: oldia on October 20, 2009 05:01If the writing/sets of users quick dash User_value then edit dashboard box INT type prompt, for example write 1 in the edit column formula, put a label and set variable presentation, for example name pv_int_var.
Responses in the PlugAmount * MediaSpend/@{pv_int_var}*.
where @{pv_int_var} is a variable presentation.
You can avoid division by zero:
{Case when @{pv_int_var} = 0 then null else MediaSpend/@{pv_int_var} end
Concerning
Goran
http://108obiee.blogspot.com -
fill in the selected field of text based on the value of lov
Hello
Depending on the value selected in lov, I want to fill another text field. Here is the code I wrote
Of the PFR:
If (PageContext.isLovEvent ())
{
String lovInputSourceId = pageContext.getParameter (SOURCE_PARAM);
If ("lovCategory".equals (lovInputSourceId))
{
java.util.Hashtable lovResults = pageContext.getLovResultsFromSession (lovInputSourceId);
if(lovResults!=null)
{
= (String) lovResults.get ("lovCategory"); value string
amobj.categorycode (value);
}
}
}
Code AMImpl:
{} public void categorycode (string code)
sundryCodeVOImpl vobj = getsundryCodeVO1();
vobj.setWhereClause ("lookup_code =" + "'" + code + "'" ' ");
vobj. Reset();
vobj.executeQuery ();
String desc = vobj.first ().getAttribute("Description").toString ();
String attr = vobj.first ().getAttribute("Attribute1").toString ();
testEOViewImpl vobj1 = gettestEOView1();
vobj1. GetCurrentRow () .setAttribute ("CodeDescription", DESC);
vobj1. GetCurrentRow () .setAttribute ("PurchasingCategoryCd", attr);
vobj1. ExecuteQuery();
}
With this code, updates to the code attributes, PurchasingCategoryCd values get inserted in the database table, but they now appear in the text fields when a value is selected in lov.
Please tell me what is the error that I do.
Thank you
SunnyHi sunny
Going through the thread, it seems that the application of LOV VO has three columns viz A, B and C. You want to put the value of the B column to a text field, if this is the case. Simply create a LOV mapping for column B.
Also I suggest you take a messagestyledtext for the B field as value comes form LOV himself.
Thank you
AJ -
How to disable a page based on the value of another element on the Page element?
Hello
How can I turn a page element using javascript based on the value of another element on the page?
Eg: P1_TEXT want to be disabled if the value in P1_LCOK = "LOCK".
How can I do this using javascript. I want this implemt on loading the page.
Kind regards
BenzPut this function in the page header:
and call it in the footer:
f_disable_item;
Denes Kubicek
------------------------------------------------------------------------------
http://deneskubicek.blogspot.com/
http://www.Opal-consulting.de/training
http://Apex.Oracle.com/pls/OTN/f?p=31517:1
------------------------------------------------------------------------------ -
Change the Label element based on the value of another element
Hi guys,.
I need to put a label of point (A) based on the value of another article (B). I did the following:
I created a dynamic action.
When B changes:
1. present the value of B
Article 2-updated
Is element A label: myitem & b.
Any ideas?
Best regards
FatehHis work! Check it out now
Just do it
$('#mylabel').children('label').children('span').text($v('P1_A'));
Published by: VC on June 9, 2012 11:21
-
Change the type of region based on the value of the element
Hi all
Is it possible to change a type of model of a region based on the value of the page element?
For example, if I have a template type for the area has as the type of model and the region to hide/show for area B as hide/show as well.
I want that type of region B model will be replaced by a type of custom template based on the value of an element in A region.
Is this possible?
Enjoy your entries.
Thank you!Spriya wrote:
Hi all
Is it possible to change a type of model of a region based on the value of the page element?
For example, if I have a template type for the area has as the type of model and the region to hide/show for area B as hide/show as well.I want that type of region B model will be replaced by a type of custom template based on the value of an element in A region.
Is this possible?N ° you either need to have 2 instances of region B, based on different models and make one of them conditionally based on the value of the area A; or to develop a unique model with a structure that is flexible enough to be used in both cases and change its appearance and behavior, for example, Exchange classes in dynamic Action.
-
Display text different box color based on the value of the element
Hello
Someone knows how to change a color of text box is based on the value of the element?
for example. If the element has the value = 0, display framed in red, or white.
Is this possible?
Thank youOpps above was a bad code...
Assume that the element that will have a value of 0 is P1_ABC then use the code below
if( $v('P1_ABC') == '0') $x('P1_ABC').style.backgroundColor='red'; else $x('P1_ABC').style.backgroundColor='white';
Kind regards
Shijesh -
change the color of line based on the value of column 5 Apex in the classic report
Version of the apex 5.0.0.00.31
Standard universal theme
Page theme default template
Classic report
Foldable report template
Hello
I know this question has been asked several times here, but I'm working on 5 Apex and need to know the correct way to do it in this version.
I need to change the color of the text of the entire line (no background color) based on the value in one of the columns of the classic report. I have just two conditions, if the value of column = Yes, color should be red, otherwise it must be green.
I am new to jscript and css, so appreciate if someone can tell me the solution with steps.
I have already checked this link that changes the value of the column, need to do something similar to the whole line.
https://tylermuth.WordPress.com/2007/12/01/conditional-column-formatting-in-apex/
Hi coolmaddy007-Oracle,.
Here's an example set up on the apex.oracle.com according to the specifications you gave: https://apex.oracle.com/pls/apex/f?p=35467:1
Version of the apex 5.0.0.00.31
Standard universal theme
Page theme default template
Classic report
Foldable report template
Here is how it is done:
Create a dynamic action with the following specifications:
Name: Give the appropriate name
Event: After refresh
Selection type: region
Region: select your region classic report
Condition: No strings attached
Action: Run the JavaScript Code
Fire on loading the Page: Yes
Code:
$('td[headers="JOB"]').each(function() { if ( $(this).text() === 'MANAGER' ) { $(this).closest('tr').find('td').css({"color":"red"}); } if ( $(this).text() === 'SALESMAN' ) { $(this).closest('tr').find('td').css({"color":"green"}); } if ( $(this).text() === 'CLERK' ) { $(this).closest('tr').find('td').css({"color":"blue"}); } });
NOTE: Download the selector appropriate for your knowledge $('td[headers="JOB"]') case using firebug/browser development tools.
Items concerned: leave blank.
PS: Changed the example to change the color of text instead of the background color.
I hope this helps!
Kind regards
Kiran
-
Toggle controls simple form based on the value of an element
Is it possible to toggle the controls on simple form based on the value of an element?
for example, if P21_stat = 1 5 controls behave as type "View as text (saves the State)", otherwise they must be of type "text field"?
No work around if not?Hi Alex,
Look at the definition of the article page, you will find a 'readonly' section where you can specify a condition that this point should be readonly (in all other cases, it is a normal entry point).
brgds,
Peter-----
Blog: http://www.oracle-and-apex.com
ApexLib: http://apexlib.oracleapex.info
Work: http://www.click-click.at -
Deactivating a page element based on the value of another element on the page
Hello
I have a page element I want to turn off if the value of another article (drop-down list item) is set to a specific value. I followed the example in the book 'Pro Oracle APEX"(p.320) in this regard. He ordered me to do this in the HTML form element attributes for the element section:
OnChange = "htmldb_item_change (this); html_DisableOnValue (This, 'Closed', 'P3_PRIORITY', 'P3_ASSIGNED_TO'); »
It works very well. It disables the element I want to disable. HOWEVER, it does not neutralize the article unless the element with the onchange attribute is changed.
How can I add features to disable the second element, even if the first element does not change, but contains the value 'Closed' when the user of the first load of the page?
Thanks for your help and your insight!
-ReidHello Reid,
The easiest way would be to (also) a Condition only read the item that you want to disable.
Greetings,
Roelhttp://roelhartman.blogspot.com/
-
How ItemRenderer change for DataGrid column based on the value of this column?
Hello! I am trying to create a DataGrid that has a component Button to register when the value of this column is 'Open', then a label saying full when the value of this column is "Full". But Im having a hell of a time he find.
Here's my MXML with 2 different inline installation of components for different rendering engines point 2:
<? XML version = "1.0" encoding = "utf-8"? >
"" < mx:Application xmlns:mx = ' http://www.adobe.com/2006/mxml ' layout = "absolute" >
< mx:Component id = "RegFull" >
< mx:VBox horizontalAlign = "center" verticalAlign = "middle" >
< mx:Label id = 'Full text' text = "Full" / >
< / mx:VBox >
< / mx:Component >
< mx:Component id = "RegButton" >
< mx:VBox horizontalAlign = "center" verticalAlign = "middle" >
< mx:Button label = "Save" / >
< / mx:VBox >
< / mx:Component >
< mx:DataGrid id = "scGrid" width = "100%" height = "100%" number of lines = "4" >
< mx:dataProvider >
< mx:Object label = "Status" data = 'Open' / >
< mx:Object label = "Status" data = "Full" / >
< mx:Object label = "Status" data = 'Open' / >
< mx:Object label = "Status" data = "Full" / >
< mx:Object label = "Status" data = 'Open' / >
< mx:Object label = "Status" data = "Full" / >
< / mx:dataProvider >
< mx:columns >
< mx:DataGridColumn id = "RegCol" headerText = "Reg" dataField = "data" / >
< / mx:columns >
< / mx:DataGrid >
< / mx:Application >
How can I dynamically use the right of itemrenderer based on the value of the field? THANKS FOR ANY HELP PROVIDED!
The best
StephenYou can have more than 1 column renderer engine. There are two ways to do this. One way would be to use States. A State for each possible value in the data. Since you either want a button (data == 'open') or a label (data == 'Full') by using the States wouldn't be a bad choice.
Alternatively, you can use a canvas instead of a VBox. Make a label and a button with horizontalCenter = "0" "0" = red to make them each other. Make it visible according to the data value:
where dataField is the value of the property dataField on this converter DataGridColumn.
-
Textarea conditional display based on the value of the checkbox.
Hi all
I have a question regarding the conditional display of an article based on the value of the checkbox.
I have a checkbox in a region, which is a STATIC LOV:; Y and the text box in the same region. Now I want to show this textarea only if the check box is selected. ??
Please suggest how to achieve this.
Thank you
DC
Hello
I guess that you are 4.2 Apex as you haven't shared the same.
- Create a dynamic Action on change of box which should present the value of the checkbox and update the TextArea element.
- Then continue as conditional Textarea with checkbox value.
BR,
Patrick
-
Can a single button cause multiple targets, based on the value of the point?
I have a button on a form and based on the value of an element, when clicked, pages must be accessible. Is this possible to do? If so, any ideas are greatly appreciated.
Request Express 3.1.2.00.02It's pretty simple to do using conditional branches. Create a branch to the place of the appropriate branch (for example on submit: after treatment...) for each target page and series PL/SQL Expression condition for each branch:
:request = '
' and : = its replacement by < button_name >, < nom_element > and < item_value > with the values appropriate to your application (and change the '=' in the expression of the agenda if some other condition is used). The integrated attribute REQUEST contains the name of the button that submits the page.
-
Can the color of the text based on the value
I searched for a way to change text color based on the value fields
If Textbox =, then A will be blue
If Textbox = B, then B will be red
I just need help get the fi then code work, change of color after it is easy
Any Suggestions...
To change the boder, add the following script to the exit event:
If (TextField1.rawValue is "Desired value")
TextField1.border.edge.color.value = "255,0,0";
.
.For the fill color, add the following script to the exit event:
If (TextField1.rawValue is "Desired value")
TextField1.border.fill.color.value = "255,0,0";
Maybe you are looking for
-
reset the settings to the printer... still no print... more haven't added any items to the menu bar... they went bar & customize window title bar changed...
-
Setting up file sharing: ⁄ iMac MacBook Air two 10.11.4
I really messed up things and don't know what sharing arrangement I should or can enter. The Finder sees different another Mac, but that's all. Maybe I should start from scratch - but back to a 'clean slate '? I would be grateful for any comments. TH
-
Problem with playing MP4 on a T60 1951-46U; problem does not exist on a T60 2623 - 4
I have three renovated seller ThinkPad T60 systems running XP Pro/SP3: two of them are T60 1951-46U, the third is a T60 2623-4. A T60 1951-46U exposes a problem using VideoLan worm 2.0.7 to read MP4 files: video and game ok background music but the s
-
Am no longer able to choose a printer. Default printer (DellV305) disappeared! It is always loaded into my computer, but I am unable to what anyone due to the print spooler error.
-
Lack of driver for 'Network controller' in my Inspiron 14Z 5423
Hello Can someone help me please. I had to install Windows 7 after a hard disk failure. All my drivers are installed, except one. In my device manager under "Other devices" there is a "network controller" that says that the driver is not installed. I