Change table cell color according to the input data
Hi, I have a table in a form and I want the cells to have a dark in each cell if it has not entered data, but the cell background color to change white if no text is entered in the cell. Is it possible to do? Thank you.
You can use the fillColor for this property. It depends on your table structure how you do this. If you have relatively small table say 3 columns. 3 rows and then in each cell of sortient / calculate event you can put the following script.
If (Cell1.rawValue == null & Cell2.rawValue == null & Cell3.rawValue == null)
{
Row1.fillColor = "255,0,0";
}
else {}
Row1.fillColor = "255,255,255";
}
If you have a larger table, then you must create a function for it.
Thank you
Sidonie.
Tags: Adobe LiveCycle
Similar Questions
-
Change column bg-color according to the values in this column.
Version of the apex is 4.2.4
To keep it short, I want the background of one of my field to be red when it is NULL, when there are data in it, I want it to be green.
The first is what it looks currently, second photo, that's how I want it to look!
Option
Use the column layout features.
It is a bit of a hack, but it works well.
1. Add a column to your query that contains the logic for your choice of color.
decode (department_id, 30, 'BLUE', 'RED') AS DEPT_COLOR
2 - cut the column in the report properties - so it does not appear.
3 - update the column in question-> column-> Expression HTML formatting
Add the desired HTML logic.
Ex:
#DEPARTMENT_ID #.Now it works OK for some styles and formatting - but the DIV in a table cell is kind of a weird look.
Option
Create a report model that put this condition of the column in place. To create a column a different color, you will need to use a level line model.
Option
Put in a bit of jQuery with option 1.
-Create a class that you can button
#DEPARTMENT_ID #.
-Create a region on the bottom of the page
$(".find_me_RED").parent().css("background-color","RED");
$(".find_me_BLUE").parent().css("background-color","BLUE");
Note: This will not work if you are using one of the reports that have the '' mouse highlighting. ''
-
ADF Table cell color based on the value of this field
Dear all,
I want to create a table for our new application that contains a table that is used to represent the data in a table or matrix format.
and each cell of the table should be filled with a color of three colors, based on the value belongs to who will for example: (1-8-> green, 9-20 - yellow etc.).
I don't know how to implement this. Help, please...
RognardPlease post in the subforum that is appropriate for your question.
http://forums.Oracle.com/forums/Ann.jspa?annID=599
This blocking thread
-
brand value in the time table with colors according to the selected employee
Hello
My question is
I created the time table for a class for a bit longer want to filter to the time table used.
for example. If I select the emp_id he's from, select the list then this period of teaching should be highlighted time table.
Please can u help me.
the table name is:-Time_Table
the columns are:-
EMP_ID
CLASS_ID
SECTION
SUBJECT_ID
PERIOD_NO
DAY
DATE
Thank you
Nisha
Published by: Nisha Rani on September 3, 2009 02:57
Published by: Nisha Rani on September 3, 2009 23:08Hi Nisha,
Try this:
SELECT DY, MIN(CASE WHEN LEC_NO = '1' THEN CASE WHEN EMP_ID = :P1_EMP_ID THEN '
' || SUBJECT_ID || '-' ||emp_id || '' ELSE '' || SUBJECT_ID || '-' ||emp_id || '' END ELSE NULL END) PERIOD1, MIN(CASE WHEN LEC_NO = '2' THEN CASE WHEN EMP_ID = :P1_EMP_ID THEN '' || SUBJECT_ID || '-' ||emp_id || '' ELSE '' || SUBJECT_ID || '-' ||emp_id || '' END ELSE NULL END) PERIOD2, MIN(CASE WHEN LEC_NO = '3' THEN CASE WHEN EMP_ID = :P1_EMP_ID THEN '' || SUBJECT_ID || '-' ||emp_id || '' ELSE '' || SUBJECT_ID || '-' ||emp_id || '' END ELSE NULL END) PERIOD3, MIN(CASE WHEN LEC_NO = '4' THEN CASE WHEN EMP_ID = :P1_EMP_ID THEN '' || SUBJECT_ID || '-' ||emp_id || '' ELSE '' || SUBJECT_ID || '-' ||emp_id || '' END ELSE NULL END) PERIOD4, MIN(CASE WHEN LEC_NO = '5' THEN CASE WHEN EMP_ID = :P1_EMP_ID THEN '' || SUBJECT_ID || '-' ||emp_id || '' ELSE '' || SUBJECT_ID || '-' ||emp_id || '' END ELSE NULL END) PERIOD5, MIN(CASE WHEN LEC_NO = '6' THEN CASE WHEN EMP_ID = :P1_EMP_ID THEN '' || SUBJECT_ID || '-' ||emp_id || '' ELSE '' || SUBJECT_ID || '-' ||emp_id || '' END ELSE NULL END) PERIOD6, MIN(CASE WHEN LEC_NO = '7' THEN CASE WHEN EMP_ID = :P1_EMP_ID THEN '' || SUBJECT_ID || '-' ||emp_id || '' ELSE '' || SUBJECT_ID || '-' ||emp_id || '' END ELSE NULL END) PERIOD7 FROM TM_TEACHER_LEC_DETAIL WHERE CLASS_ID = :P1_CLASS_ID and SECTION = :P1_SECTION GROUP BY DY order by dyAs I do not have the structure of your table or any data, I can't test this. Let me know if it works for you
Andy
-
How to restrict the scope of the EU change when the input data are not available?
Hi Experts,
I have a user enter-able (EU) field in the Section. When the tag input XML contains data for this field, then the value must print in this area and it is not editable.
If the input data are not available only that one time that the field of the EU must be editable.
Any thoughts?
I tried like below,
Domain name creation: UE_CompName
Length: 15
Type: alphanumeric
Rule: XDD
Source name:! Transaction/Compname
under PreEdit,.
module: DALW32
Procedure: procedure of desired
Information: CALL ("UE_CHECK")
like that, I've updated in the field properties.
Content of UE_CHECK DAL below,
CurrFieldName = Fieldname()
CurrFieldData = @("CurrFieldName")
IF CurrFieldData! = « »
SetProtect ("CurrFieldName")
END
But it does not work... Pls help me to do this...I assume that the 'mapping' occurs during a batch operation (Gendata) through any rule the XDD defined for this field. In the batch, pre and Post Edit calculations do not. This feature is related to the WIP/entry. What you can do is to add a level section - PostImageDAL rule to call your script and protect your land once it was located batch of your operation.
In FAP that contains that field, add the PostImageDAL rule in the property of the rules in the Section box. In the data box, do call your script.
Your script is a bit wrong, it seems you were trying to get the 'current' domain name and then check the value of fields. Drop the part and simply name your field in the string in quotation marks in the @ () function and the SetProtect. -
Dynamically change color according to the value of the field field
I hope someone can help with my problem, I have not dealt with Java Script before please bare with me as I try to explain. I tried searching everywhere for the answer but am getting lost a bit in some answers just so I was wondering if anyone on the forum can help.
I am trying to create a reliable PDF form for a risk assessment. The user in the columns of the severity and probability input values and the value is generated automatically in the column risk classification. So I managed to get the number of risk rating to calculate automatically using the option calculate and select the value is the product of "Severity1", Likelihood1 It's great, so now I want to the field of evaluation may change the background color based on the value as follows:
1-5 = Green
6-10 = orange
11-25 = Red
I don't have any idea if this can be done via the Java Script or if it is not possible, I'm sure it will, but I need someone much smarter than me to guide me on how to do it. I guess it's the same concept as the conditional formatting in Excel.
This is something like what I'm trying to achieve.
Any help would be greatly appreciated
Thank you
Matt
Gravity Likelihood Level of risk 1 2 2 2 3 6 3 4 12 You will need to use a custom calculation script, something like:
Custom calculation script
(function () {}
Get the field values as numbers
var v1 = + getField("Severity1").value;
var v2 = + getField("Likelihood1").value;
Calculate the product
var prod = v1 * v2;
Set the value of this field;
Event.Value = prod;
Default background color
var bg = color.white;
Set the color orange
Color.Orange = ['RGB', 1,.33, 0];
Determine the background color on the product
If (prod > = 1 & prod)<=5)>=5)>
BG = color.green;
} ElseIf (prod 5 > & prod)<= 10)="">=>
BG = color.orange;
} ElseIf (prod > 10) {}
BG = color.red;
}
Set the background color of the field
event.target.fillColor = bg;
})();
-
table cell color dynamically and programmatically based on a condition of entry
Hello
We use Jdev 11.1.1.6.0 for my ADF development.
In our page Jspx, we have three components:
1. a reading table used with an additional column "Error box" in the form of input text
2. a text entry accepts employeeID running,
3. a command button on the occasion of the red cell in the column of the error box against the received EmployeeID
Required functionality:
1. the user will be entered EmployeeID (which has the error of data) in the input text and press the command button
2.internally, by programming, there is a bean method call from IE button which will accept the entry and check the rowKey in the table corresponding to the EmployeeID using the Iterrator function and retrieve the exact id of this cell in the column ErrorBox.
3. after obtaining the id, highlight the cell in the column of the error in red box.
I used the following excerpt from the bean to have the feature but does not work and also there is no error indicating that:
* if (row.getAttribute ("EmployeeId")! = null) {*}
* if (row.getAttribute("EmployeeId").toString () .equalsIgnoreCase ((String) component.getValue ())) {*}
RowSetIterator empRSIter = iter.getRowSetIterator ();
Line currentRow = empRSIter.getRowAtRangeIndex (i);
String tableId = table.getClientId (facesContext);
RKS RowKeySet = table.getSelectedRowKeys ();
inputId tableId = + ': ' + i + ': ' + 'ot10;
org.apache.myfaces.trinidad.render.ExtendedRenderKitService service;
Service = org.apache.myfaces.trinidad.util.Service.getRenderKitService (facesContext, ExtendedRenderKitService.class);
service.addScript (facesContext, "field var = AdfPage.PAGE.findComponentByAbsoluteId (" "+ inputId +"'");") field.style.backgroundColor = "red"; ») ;
We strive to highlight the error in the table in the column of the error against the EmployeeId box has received. But we cannot get the functionality. Please suggest.
Thank you
CharrierHello
1. you must maintain the value of the string in a bit more broad (try pageFlowScope, for example) IE - value = "#{pageFlowScope.myBean.empId} '"
2. Add a partialTriggers for the score table the ID of the text input.
3.#{row.EmployeeId == backingBeanScope.myBean.empId ?'backgroundcolor:red;':'backgroundcolor:black;'}"> {code} should be {code} #{row.EmployeeId == pageFlowScope.myBean.empId ?'background-color:Red;':''}">
Arun-
-
Change of automatic color fields for the range of different values?
Hi, I am a new user of Acrobat Pro and I am trying to understand if it is possible to have the color of the field changed when the calculated value is within a specific range. I have a box of calculated field, and I want it turns to yellow when it reaches a specific numeric range and red when it gets to the other. A change in font color would work too...
The correct code might be:
(function() {}
var v = + event.value;
If (v< 16)="">
event.target.fillColor = color.green;
return;
}
If (v< 27)="">
event.target.fillColor = color.yellow;
return;
}
Value is greater than 27
event.target.fillColor = color.red;
})();
In particular this line of code is invalid:
If (27 16
) {} Something like this would be:
If (v > = 16 & v)< 27)="">
that translated to English is: If the value of the variable v is greater than or equal to 16 and less than 27...
So another functionally equivalent script could be:
var v = + event.value;
If (v< 16)="">
event.target.fillColor = color.green;
} else if (v > = 16 & v)< 27)="">
event.target.fillColor = color.yellow;
} else {/ / value is greater than or equal to 27}
event.target.fillColor = color.red;
}
I don't know if it's exactly what you want, but you should be able to revise it accordingly.
-
AF:table cell color is not displayed in Mozilla
Hi all
I have a table where I show a few colors based on the data in this particular cell, that coming from the database.
I've implemented this using Internet Explorer 7. So far, everything is ok.
Now I'm testing it in mozilla and IE 8, the color does not appear in these browsers.
I'll put hexcolor inside each cell.
Pls tell me how can I bring color in Mozilla and Exlorer 8 also. ?
Studio Edition Version 11.1.1.2.0background-color:#{row.GroupColor}
Firefox 8.0
Explorer 8
Kind regards
Rognardcolumn inlineStyle works for me... THAT IS TO SAY 8
background - color:RGB (148,222,255); -
Desgning a VI that time / interrupts a film according to the input signal
Basically, what I'm trying to do is to design a VI who plays or pauses a movie according to the signal it receives. This VI will be used with an EEG device, and what I want to do is play the movie if the signal exceeds a certain threshold, and it stops if this isn't, in other words a VI that responds to neurofeedback.
As I don't have access to the equipment of the GET yet, I use a sine wave at the moment than the EEG signal in VI of the attachment in this post (which of course will be later replaced by waves of EEG recording), and what I want to do is to read the film if the signal is greater than 0 and put the film on hold if the signal is less than 0. Any help would be appreciated
Kind regards
varkong
I have included the code for the LV8.6 version.
Concerning
Prashant
-
Movieclip scaling according to the input of the sensor
Hello
I am new to the adobe flash community and New on using the flash language, so forgive me about this.
I currently trying to send data to the pressure through the Arduino sensor and display it on flash.
Don't worry about the sensor and Arduino side of it since I did the coding part communication thereof to blink, now I'm trying to do is when press the sensor user have the ball of the circle [movieclip] scale and increase the size according to the quantity of the probe inlet pressure.
Here is the code that I've done so far for scale and if all goes well is on the right track, I use the width and height to adjust the size, but I got an error that says "call to possibly undefined method CircleGreen.
Any ideas on how to make is very happy , I'll play and let you know if I solve my problem.
Thank you
var circleGreen = new CircleGreen();
a.addEventListener (ArduinoEvent.ANALOG_DATA, onTickk);
function onTickk(e:ArduinoEvent):void {}
var feetValue:int;
feetValue = a.getAnalogData (0); to get the data from the sensor
circleGreen.x = - circleGreen.width / 2 + 312.
circleGreen.y = - circleGreen.height / 2 + 188;
circleGreen.width = feetValue / 40;
circleGreen.height = feetValue / 40;
addChild (circleGreen);
}
Maybe something like that?
Assuming that you do not have a movieclip on the stage with the name circleGreen, I just drew it with AS3
var circleGreen:Sprite; function init():void{ circleGreen = new Sprite(); circleGreen.graphics.beginFill(0x00FF00, 1); circleGreen.graphics.drawCircle(stage.stageWidth / 2, stage.stageHeight / 2,100); circleGreen.graphics.endFill(); addChild(circleGreen); a.addEventListener(ArduinoEvent.ANALOG_DATA, onTickk); } init(); function onTickk(e:ArduinoEvent):void{ var feetValue:int; feetValue = a.getAnalogData(0); //to get the data from the sensor //since i don't know what range of values the arduino sensor ouputs, the normalized output should always be between 0 and 1 so you can safely multiply the normalized value with something that fits better. circleGreen.scaleX = circleGreen.scaleY = normalize(feetValue) * 4; } function normalize(value:Number) { var normalized:Number = (value - 0)/(1 - 0) return normalized; }
-
I did separate VI for reading signals from several channels on a map of NI USB-6251. I would like to combine these in a VI VI alone so that they can run that at the same time, however, there is an error if there is more that a single DAQ Assistant in the same--> error-50103 VI was held at DAQmx controls Task.vi:32 (the specified resource is reserved. The operation could not be performed as indicated.)
All the inputs of channel must then be read in with a single DAQ Assistant, but all of the data on different channels are not separated. Can save this data in a matrix or otherwise manageable which allow to facilitate the analysis of the data from the separate channel entries?
I tried to view the data in a file of measures, but then when I tried InPort data, I could all the data I wanted.
Hi AggieGirl,
Good afternoon and I hope that your well today.
First of all, you will not be able to have more than one DAQ Assistant by input analog or analog output task because the device has only one of each. So, you must have a DAQ task to HAVE and AO. (This is not the case for DIO static).
There is far from split signals using the express VI - signal splitter.
When you say you saved this file and it does not work, how it did not work? The Express VI - save a file of measures needed to manage multiple waveforms. Can send you your code & explain more about what was not OK on the file?
Thank you
-
issue by creating roles according to the jazn-data
jdev 11.1.1.7
In my application, I create roles in the jazn data files. When I run the application, the roles defined in the jazn file are not automatically created in the integrated weblogic.
Considering that I have different applications in the same workspace, when I run it, the roles defined in their jazn is created in the weblogic. I can see a "deployment" tab, which is created in the jdev console and can see the continuation of console.
[09: 42:07] download jazn-data users.
[09: 42:07] update user 'john '.
[09: 42:07] update user 'susan '.
[09: 42:07] update user "steve".
[09: 42:07] roles jazn-data download.
[09: 42:07] remove the group existing 'Wendy '.
[09: 42:07] group was created for the role of "Wendy".
[09: 42:07] adding 'susan' to the group 'Wendy '.
So what's the problem with my app that I am not able to see the roles are created in weblogic?
Hi Fabrice,.
Go to Applications - > Secure-> configure secure deployment
Make sure that the following is checked.
Redeploy your application using JDeveloper.
-
According to the value data display
Hi everyone, I need help to write a query. I have the following data:
The query that I write will be inside a PROCEDURE. a parameter will pass with the value of the ACTC.WITH data1 AS ( SELECT 1 num, 'PAL1' acct ,'PRIN' descr FROM dual UNION all SELECT 1 num, 'COL' acct ,'SEC' descr FROM dual UNION ALL SELECT 1 num, 'COL' acct ,'AL' descr FROM dual UNION all SELECT 2 num, 'PAL2' acct ,'PRIN' descr FROM dual UNION all SELECT 2 num, 'COL' acct ,'SEC' descr FROM dual UNION ALL SELECT 2 num, 'COL' acct ,'AL' descr FROM dual UNION all SELECT 3 num, 'PAL1' acct ,'PRIN' descr FROM dual UNION all SELECT 3 num, 'COL' acct ,'SEC' descr FROM dual UNION ALL SELECT 3 num, 'COL' acct ,'AL' descr FROM dual UNION all SELECT 4 num, 'COL' acct ,'SEC' descr FROM dual UNION all SELECT 4 num, 'COL' acct ,'SEC' descr FROM dual UNION ALL SELECT 4 num, 'MT' acct ,'MA' descr FROM dual )
the possible values of the parameter are: ALL, COL PAL1, PAL2, MT
If one value other than EVERYTHING happened inside I want to get all the lines for a specific number which contain at least one MAIN line.
for example
PAL1 pass, THEN the output should be
as you can see, the acct PAL1 contain at least one row with MAIN descr num = 1 and num = 3. in this case, all the lines for these num (ex num = 1 and 3)num acct descr ==== ===== ====== 1 PAL1 PRIN 1 COL SEC 1 COL AL 3 PAL1 PRIN 3 COLL SEC 3 COLL AL
have been exposed in the output.
Another example is that pal2 is pass, then output should be
num = 2 in this case is the only one who has PAL2 and at least a main line.num acct descr ==== ===== ====== 2 PAL2 PRIN 2 COL SEC 2 COL AL
now, let's say MT's past as a parameter, in this case num = 4 is the only one with a row of MT, but there is no MAIN line for this name.
so no output.
If the 'ALL' value is pass as a parameter, and then get all lines without worrying if a MAIN line closes. in this case the output should be
and for the last example, if the PASS is a pass and then output should benum acct descr ==== ===== ====== 1 PAL1 PRIN 1 COL SEC 1 COL AL 2 PAL2 PRIN 2 COL SEC 2 COL AL 3 PAL1 PRIN 3 COLL SEC 3 COLL AL 4 COLL SEC 4 COLL SEC 4 MT MA
as a MAIN line to num = 1, 2, 3 for VAC = PASS then all belonging to num lines specific should be displaynum acct descr ==== ===== ====== 1 PAL1 PRIN 1 COL SEC 1 COL AL 2 PAL2 PRIN 2 COL SEC 2 COL AL 3 PAL1 PRIN 3 COLL SEC 3 COLL AL
can someone help me WRITE a query FOR this scenario?
Thank you. your help is appreciatedThis will do
WITH data1 AS ( SELECT 1 num, 'PAL1' acct ,'PRIN' descr FROM dual UNION all SELECT 1 num, 'COL' acct ,'SEC' descr FROM dual UNION ALL SELECT 1 num, 'COL' acct ,'AL' descr FROM dual UNION all SELECT 2 num, 'PAL2' acct ,'PRIN' descr FROM dual UNION all SELECT 2 num, 'COL' acct ,'SEC' descr FROM dual UNION ALL SELECT 2 num, 'COL' acct ,'AL' descr FROM dual UNION all SELECT 3 num, 'PAL1' acct ,'PRIN' descr FROM dual UNION all SELECT 3 num, 'COL' acct ,'SEC' descr FROM dual UNION ALL SELECT 3 num, 'COL' acct ,'AL' descr FROM dual UNION all SELECT 4 num, 'COL' acct ,'SEC' descr FROM dual UNION all SELECT 4 num, 'COL' acct ,'SEC' descr FROM dual UNION ALL SELECT 4 num, 'MT' acct ,'MA' descr FROM dual ) select * from data1 where :param='ALL' or ( num in (select num from data1 where acct=:param and exists(select 1 from data1 where acct=:param and descr='PRIN')) )
Edit: replace: with
param .parameter_name if necessary. Published by: david.sweet on February 19, 2011 07:57
Published by: david.sweet on February 19, 2011 07:57
-
How to change a region title based on the input parameter?
Hi all
I need to change the title of the dynamic region based on the value of a selection list in another region.
Can someone help me in this?
Kind regards
Santini.Hello
You can use & P1_ITEM_NAME. (including the & and the.) the title of region - this string will be replaced by the value of the item page called P1_ITEM_NAME, then change the name according to your order of the day of the page
Andy
Maybe you are looking for
-
How to export photos from "iPhoto" of my Mac on my iPod Classic
How to export photos from my Mac's iPhoto on my iPod Classic library.
-
4524 want printer: want 4524 cannot print since wifi joining different address
I have a printer of ENVY, only a few months old it prints when I implemented the first time, we then moved to an address different wifi and that's it, no more printing. I've followed all the usual steps and got congratulations succeeded together up t
-
"Forefront TMG client is not installed properly.
Hello After you install the Forefront TMG Client, there is an exclamation point on the client and the error "Forefront TMG is not installed correctly" customer. I tried to install the patch 936773, described on the page "http://support.microsoft.com/
-
How can disable the scrolling animation when setFocus
I'm working now on a screen of IM conversation. When the user send a message, the list of instant messaging on the screen will be updated the I setFocus on the message input field: this occors a problem after OS 6.0 because the list will always be sc
-
I use Paperport 10. Yesterday, it started to 'freeze' when I tried to scan a document. The message said that he was in the process of analysis and that I should wait. There was no other current scan. When I tried trouble shooting the problem, I g