Conditional display based on the value of line
I have a report table with several lines on it. I need to post a link to another page of user action if a value in the line corresponds to an attribute of the user's role, so they can act on the item. Other display or update the document would not be able to run the link.
The logic of nickname would go something like this:
If user_role = role_this_line_item then
display approval_link
on the other
Hide approval_link
end if
I know how to write pl/sql to return to the display of the correct state of true/false, but I can't find out how to reference the value on the display line. I tried: role_this_line_item, role_this_line_item, #role_this_line_item # and none of them return one value other than false. How to refer to an attribute on the current line of the decision to hide/show correct?
Al
Al Wondra says:
I use V4.2.6 Apex in local installation of Oracle 11 g XE. I tried with IE, Firefox and Chrome. None has the conditional display.
The report is a standard report created using the Apex report wizard. I'm one of the columns (the ID of the line) changing to conditionally a link to a page to data entry. I only need one line at a time to be the active link. No line should have a link, if the user is not the role is required to perform this action.
You have described my question exactly, it seems, that the conditional rendering is applied to the entire column. I need that it is applied to specific lines. Some lines (1) will be the active link. All other lines does not display the link. Is this possible?
If you want the value of the ID to display for each row returned by the report, but only rendered as a link, if the condition is true? The values used in the State come "role_this_line_item" seems to be a value of a column in the report. "User_role" is also a column value?
The simplest option is to modify the column attribute display as for the Standard report columnID column and conditionally generate the link in the report query:
select ... , case when user_role = role_this_line_item then 'where DATA_ENTRY is the 'data entry page' target number or alias of the page.
Tags: Database
Similar Questions
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
Basic conditional script based on the number of lines in a text layer?
Just received help here to write a conditional script by using the font size of a text layer. Thank you all for this.
The next hurdle is a conditional script using the number of lines in a text layer in the differential. Far as I can tell it not the layer details which specify the number of lines. Just '\r' for a return in the idTxt descriptor. Nothing seems to stand for a soft return as far as I can tell. I'll probably have to be able to count the lines with soft and hard returns.
Any thoughts?
I was playing around with this a bit and here is a small script to determine the number of rows. This is based on the self in the head, that I calculated to environ.108 times the size of the font.
#target photoshop app.preferences.rulerUnits = Units.POINTS; var doc = activeDocument var tL = doc.activeLayer var h = tL.bounds[3]-tL.bounds[1] var per = ((h/5)-(tL.textItem.size))/tL.textItem.size var num = h/(tL.textItem.size *1.108) alert(Math.round( num))How to create table selectable line or not based on the value of the line
Hello.
JDeveloper 11.1.1.2
Is it possible to make a selectable table row or not based on a value in the line.
That is to say. lets say that the row contains a Boolean LOCKED = TRUE.
This line should not be selectable.
A line whose value LOCKED = FALSE should be selectable.
/ ErikErik,
No particular reason to disable a selection of lines for a particular line? If I'm an end user, I would be clicking on the same line of thought again and again my mouse does not ;) (call me dumb :)). How do you differentiate this line (using inlineStyle / styleClass) based on the value of line? In addition, you can disable the other buttons when a row with a particular value is selected (so that the user knows that the selected line is not treatable).
Arun-
How to conditionally display images based on the values of the variables
I am building a demonstration Captivate containing a slide branching that allows the user to choose which way they want to view; Once they are done, they come back on this slide branching, and I want a check mark to display the button/path that they have already completed.
I'm new to the use of variables and actionscript in Captivate, so I went the the documentation and the creation of variable is clear, as well as the use of conditional constructions, but I didn't know the instructions of scripts that look like they will allow me to display an image from the library when she is called in the conditional.
Is this possible? If so, a pointer to an appropriate documentation or sample code would be greatly appreciated.
Thank you
Josh
Hello
When you insert images of the box, you click the Options tab and give the image a name that you may recognize. Then clear the Visible check box. This allows to keep hidden until you want to show it.
However, note that even if all the image names are listed in the dialog box advanced Actions as being available for show, you will only be able to show an image if you run the fast Action of the blade where the image exists. So you will likely build a means by which you are setting up a variable to indicate that a section has been visited. Then create an action that is performed on slide enter to show the images based on the values of the variables.
See you soon... Rick
Useful and practical links
Captivate wish form/Bug report form
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
Dynamic action - set a value of element based on the selection of lines of report
Hi people,
Does anyone have an example how to set up a dynamic action, which could fill an element with the selected ID based on the selection of line of the report on the same page?
Demo:
http://Apex.Oracle.com/pls/Apex/f?p=19543:2
If I select an item in the report, then I would fill in 'Selected ID' element with the value of the selected report EMPNO line.
Later, I would use it for the display of parts of master / detail on the same page.
Thank you very much
TomasFor this sample page, add the following JS code to run when the page is loaded.
$('.highlight-row td').click( function(){ //fetch record id from the cell contents of first column in row id = $(this).parent().children('td:eq(0)').text(); //set page item to selected id $('#P2_SELECTED_ROW').val(id); });
Highlight the line in the standard State is based on the value in the column...
I'm trying to highlight the lines of a standard report based on the value of the TICKET_TYPE column.
I followed the post:
but the difficulty. I have the following error:
ORA-06550: line 1, column 34: PLS-00201: identifier 'SHRIMP' must be declared ORA-06550: line 1, column 7: PL/SQL: statement ignored
ERR-1025 expression PLSQL treatment error. SHRIMP = "SHRIMP".
My report query is:
Select T.TRIP_ID,
T.TRIP_ID trip_show,
T.TRIP_ID trip_select,
T.DAYS_AT_SEA,
T.NBR_OF_CREW,
T.TRIP_START_DATE,
T.VESSEL_ID,
o.ticket_type ticket_type
TRAVEL t, o one_ticket_type
where t.dea_permit_id =: G_DEA_PERMIT_ID and t.trip_id = o.trip_id
I created a new template called a ticket-enhancement.
line 1 = tempate < td #ALIGNMENT headers # = "" #COLUMN_HEADER # "class ="t14data"style =" background: red "> #COLUMN_VALUE # < table >"
model condition rank 1 = use based on the expression of pl/sql
template expression rank 1 = #TICKET_TYPE # = "SHRIMP" (* I also tried without the quote)
any thoughts? Thank you!!
Edited by: KEH813 may 25, 2010 11:10I'm not sure of the JavaScript. Whenever you sort the report, coloring disappears and you can send the page again.
PS Don't forget to mark the answers as Correct or useful.
Best regards
Mathieu GosselinThe line formatting based on the value of a column
Hi friends
I'm trying to format the entire row based on the value of the first column in my answers.
Example, if the first value of column 'F' now, I want the row to be colorful
I can do a conditional formatting on a column, but I want to do down the line
F 8.1% 12.0%
------------------------------------------
E 5.2% 3.5%
------------------------------------------
M 2.3% 3.3%
------------------------------------------
If one has done this or suggestions please answer
Thank you
Sang AWell, the conditional formatting can be done in PivotTables until the next version, 11g. In the meantime, you two options:
(1) http://gerardnico.com/weblog/2009/04/06/obiee-cross-conditional-formatting-on-a-pivot/
(2) http://oraclebizint.wordpress.com/2008/04/29/oracle-bi-ee-101332-conditional-formatting-based-on-multiple-character-columns-in-a-pivot-table/
(3) you can use your custom column filter functionality to get your ' sales in year 20xx "and a presentation to make this dynamic variable. So you can declare an array and use the method I described above.
Good luck.
Selective display of a report based on the value of a Variable of presentation
Hello
Is it possible to selectively display a report on a dashboard page based on the value of a variable presentation.
I have 5 reports that are part of the same page that has a page with 5 options-level prompt.
According to the option selected in the command prompt that the value is stored in a variable of the presentation, I need only 4 reports to view at any time (ie 1 report should NOT be directed).
Example: -.
When Option 1 is selected 1,2,3,4 reports must be posted
When Option 2 is selected 2,3,4,5 reports must be posted
Thanks in advanceHello
Search this Guided Navigation forum. In this way, you can hide a section on your dashboard based on the results of a report that is "hidden".
Good luck
Daan Bakboord
Display a series of images on the stage based on the value of a variable
Hi all
Here's another interesting problem! Well, I have an interactive retention test which is charge of an xml file based on the value of a variable scenario (for example, if script = Architecture, then load Q_set 1, if scenario = history then load something else). Now, I would like to extent this and display a series of images on my stage which will be valid only in the current scenario. Here is my code so far. I thought load a list of images on the beginning of the film (for example, Architecture_list, History_list) and then call them according to the value of the variable of scenario, but I would like to hear what you have to say. Any ideas?The answer is a series of managers: one called at the beginning of the movie to fill the lists of the appropriate folders (based on the value of the variable gimage) and the other called next and previous. Here they are in case yu need:
---------
Global gFileList, gImagePath, gimageson buildList
gFileList =]
-defining the path to images:
gImagePath = "@images /" & gimages & ' / ' "»
Repeat with i = 1 to the maxinteger
thisFile = getNthFileNameInFolder (gImagePath, i)
If thisFile = EMPTY then exit
If thisFile = the movie then the next repetition
types of files = [".pct", ".jpg", ".bmp", ".gif"]
howManyTypes = count (fileTypes)
Repeat with thisType = 1 to howManyTypes
extension = getAt (file types, if thisType)
If thisFile contains extension then
gFileList.append (thisFile)
end if
end repeat
end repeatMember ("Display"). FileName = gImagePath & gFileList [1] - put the first image in the folder at the appropriate place
Member ("Display"). Picture = .photo member ("display")
buildList end
--------------------
Global gFileList, gFileIndex, gImagePathon nextFile
gFileIndex = gFileIndex + 1
If gFileIndex > count (gFileList) then
whichFile = gFileList [1] - set the image = in the last loaded picture holder
gFileIndex = 1 - the value of the index to the last trick questionMember ("Display"). FileName = gImagePath & whichFile
Member ("Display"). Picture = .photo member ("display")
updateStage-go to the audio issues
_movie. GB (31)
on the other
whichFile = gFileList.getAt (gFileIndex)
Member ("Display"). FileName = gImagePath & whichFile
Member ("Display"). Picture = .photo member ("display")
updateStage
end ifend
Global gFileList, gFileIndex, gImagePath
-----------------------------------------------------------
the backfilegFileIndex = gFileIndex - 1
If gFileIndex = 1 then
whichFile = gFileList [1]
Member ("Display"). FileName = gImagePath & whichFile
Member ("Display"). Picture = .photo member ("display")
updateStage
Sprite (17) TRUE = FALSE - disable the "back" button-gFileIndex = count (gFileList)
end ifIf gFileIndex > 1 then
whichFile = gFileList.getAt (gFileIndex)
Member ("Display"). FileName = gImagePath & whichFile
Member ("Display"). Picture = .photo member ("display")
updateStage
end if
endHow to highlight the line of the ADF table based on the value of the column?
Hi all
I use jdev 10.1.3.4. I want to highlight a table row or a cell based on the value of the column.
Lets say, I have a table emp with column empid, empname and sal. I want to emphasize the lines that have sal = 10000.
How can I achieve this? Please help me with this.
Thank you
AbhijitHello
You want to highlight the lines? or set a different color for the lines? If it's the second, you can set the inline style based on the salary. (+ Edit: well, never mind, both are same :)) +)
Something like
If you want the entire line to be a different color, you have 2 options.
1. define the same style inline for all columns in the table (good if you want to do only for a single table).
2. create a style class and apply the styleclass based on the value of sal (preferably if you want the same behavior in all of your application).Arun-
Published by: joel Ramamoorthy, October 23, 2009 16:56
Need to display negative amounts, amounts positive based on the value of the parameter.
Hi all
I have a requirement in rdf as follows:
I have two or three lines of the SELECT statement. An amount column having both negative and and postivie values.
Based on the value of the parameter I need to take these records.
Say, if the value of the parameter = "Credit amount", then I have to choose the records, the amount column value is negative.
If the value of the parameter = "Debit amounts" then I have to choose the records, which the column value is positive.
If the parameter Value = "All", then I must take all records, including both positive and negative.
Please suggest how to achieve this scenario.
Thank you
AbdulIn your where clause to add the following
and ((& paramètre = "Débit" et montant > 0) or)
(& parameter = 'Crédit' and the amount<0)>0)>
(& parameter = 'All'))Hope that answers your question
Sandeep Gandhi
Independent consultant
513-325-9026.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
Shijeshdynamically display title based on the value selected in the column picker
Hi all
Would it be possible to display the title of the dynamic report based on the value selected in the column picker. Suppose I have two State of the column and region. When I choose the status in the column picker the title of the report will show 'Summary of the situation' when I'll choose the region then the title will change to "summary of the region. Please help me...Hello
Check your mail before I send the entire process with screenshots.
Concerning
NGO
Maybe you are looking for
-
8530w Win7 Home Premium fresh install - Wifi and bluetooth radio off just not online
Hi all I encountered a strange problem. I did a fresh install of Windows 7 Home Premium 32 bit edition. I installed all the essential drivers; setting network, wifi, quick launch button drivers HP and others. Wired network works fine. However, the wi
-
I do not use Outlook Express at all. I'm still getting compression pop up and its very annoying. How can I get rid of the compression jump upward?
-
Magic of the network stops nikon software to run!
seems I find more problems with this software of each and everyday... it's slow (a lot) of vista ultimate 64 bit stop but is not only also in conflict with Nikon browser that many of us, the photographers use... http://support.nikontech.com/app/answe
-
My system is said to have no a/c power
Original title: power supply my system is says I have no a/c still the battery power supply load... so I cannot make any system changes
-
Persistent ghosts - leakage of storage files.
Hi people, I worked through a somewhat worrisome question lately: If you QFile.remove () a file that MediaPlayer plays or MediaPlayer.pause () or more recently MediaPlayer.stop () would be the file is deleted, but the disk taken up by the file storag