How to hilight a datagrid feature line date <; sysdate?
HelloI can hilight a datagrid record based on a date column is before a fixed date, but how I use SYSDATE?
Framework
I am creating a websheet that uses a DataGrid to display a list of tasks, and I want to hilight tasks that are overdue. I have been able to create this as a separate report, but I think that hilighting would be better. When you go to Actions-> Format-> Hilight, there is an "Expression" box, but there seems to be a date picker that accepts only the litterals.
I use Apex 4.1.1 running Oracle 11 g XE & EPG, on Windows XP.
Thank you
Tak
I can hilight a datagrid record based on a date column is before a fixed date, but how I use SYSDATE?
Framework
I am creating a websheet that uses a DataGrid to display a list of tasks, and I want to hilight tasks that are overdue. I have been able to create this as a separate report, but I think that hilighting would be better. When you go to Actions-> Format-> Hilight, there is an "Expression" box, but there seems to be a date picker that accepts only the litterals.
Hello
Let's say that your "due date" column is the column 'B' in the report/grid.
Add a calculated the State column. Call it "Days late" and the value of the expression 'ROUND (B - SYSDATE).
Then add in light the report, for the lines where "days overdue > = 0.
-Morten
http://ORA-00001.blogspot.com
Tags: Database
Similar Questions
-
How to transpose a line date wise?
Dear Experts,
How to transpose a line date wise?
date value 11-jan-2016 101 11-jan-2016 102 11-jan-2016 103 12-jan-2016 104 12-jan-2016 105 12-jan-2016 106 13-jan-2016 107 13-jan-2016 108 13-jan-2016 109
--------------
Expected results
date value value_2 value_3 11-jan-2016 101 104 107 11-jan-2016 102 105 108 11-jan-2016 103 106 109
Thank you for your help in advance.
Kind regards
IVW
Hello
Whenever you have a problem, please post a small example data (CREATE TABLE and only relevant columns, INSERT statements) of all the tables involved, so that people who want to help you can recreate the problem and test their ideas.
Also post the exact results you want from this data, as well as an explanation of how you get these results from these data, with specific examples.
Always say what version of Oracle you are using (for example, 11.2.0.2.0).
See the FAQ forum: Re: 2. How can I ask a question on the forums?
and: Re: 4. How can I convert rows to columns?
Swivel (which is the generic name for what you want to do) assume that you can tell, by looking at each input line, you can specify what columns of output that the row will affect. In this case, it seems that you need to derive a column like this, perhaps using the ROW_NUMBER analytic function.
-
How can I make sure that no data "ghost" exists for a line on a data file?
Even after committing the deletion of a row in a table, the data of "ghost" remains on the data file.
'Ghost' data could potentially be accessed by a malicious user, circumvent the database access controls, using a hex editor on the data file.
Short penetrating a tablespace again from the table (and all other segments) and then shredding the old data file, how to properly remove a specific line?
Concerning
Chris
Transparent data encryption may be a solution for you, but which requires an additional license.
-
How to configure Outlook to display the date, they come in too?
Original title:
Dating of incoming emails
My incoming emails list the time they came. How to configure Outlook to display the date, they come in too?
Hello
Thanks for posting that ask about the Microsoft Community.
I understand that emails do not show the date on which they were received.
Are you referring to Outlook.com or Microsoft Office Outlook?
As Zigzag3143 mentioned previously, you should be able to see the dates of your emails received after 24 hours of arrival. If this function does not work for you, I suggest you check the following settings:
- View - this is located in the upper left corner of the Inbox pane, the parameters must be defined on all the.
- Reorganize by -this is found in the upper right of the Inbox pane, make sure that your emails are filed by Date.
This should fix your emails in the order of their arrival and should provide the date next to the subject line, if the enamel is older than 24 hours.
I hope this helps. Answer please if you need more help or have any other question about Windows and/or Outlook.com, we are here for you help.
-
Mr President
Jdev worm is 12.2.1
How to modify and update a line later was inserted and updated in the doDML() method?
I added two rows in my table a method of action-listener in bean managed and secondly with operation doDML() as below.
Method 1-first row in managed bean
public void addNewPurchaseVoucher(ActionEvent actionEvent) { // Add event code here... BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry(); DCIteratorBinding dciter = (DCIteratorBinding) bindings.get("VoucherView1Iterator"); RowSetIterator rsi = dciter.getRowSetIterator(); Row lastRow = rsi.last(); int lastRowIndex = rsi.getRangeIndexOf(lastRow); Row newRow = rsi.createRow(); newRow.setNewRowState(Row.STATUS_NEW); rsi.insertRowAtRangeIndex(lastRowIndex +1, newRow); rsi.setCurrentRow(newRow); BindingContainer bindings1 = BindingContext.getCurrent().getCurrentBindingsEntry(); DCIteratorBinding dciter1 = (DCIteratorBinding) bindings1.get("VdetView1Iterator"); RowSetIterator rsi1 = dciter1.getRowSetIterator(); Row lastRow1 = rsi1.last(); int lastRowIndex1 = rsi1.getRangeIndexOf(lastRow1); Row newRow1 = rsi1.createRow(); newRow1.setNewRowState(Row.STATUS_NEW); rsi1.insertRowAtRangeIndex(lastRowIndex1 +1, newRow1); rsi1.setCurrentRow(newRow1); }
Method of doDML() of line 2 seconds in the entityImpl class
protected void doDML(int operation, TransactionEvent e) { setAmount(getPurqty().multiply(getUnitpurprice())); if (operation == DML_INSERT) { insertSecondRowInDatabase(getVid(),getLineitem(),getDebitst(), (getPurqty().multiply(getUnitpurprice()).multiply(getStaxrate())).divide(100)); } if(operation == DML_UPDATE) { updateSecondRowInDatabase(getVid(),getLineitem(),getDebitst(), (getPurqty().multiply(getUnitpurprice()).multiply(getStaxrate())).divide(100)); } super.doDML(operation, e); } private void insertSecondRowInDatabase(Object value1, Object value2, Object value3, Object value4) { PreparedStatement stat = null; try { String sql = "Insert into vdet (VID,LINEITEM,DEBITST,AMOUNT) values ('" + value1 + "','" + value2 + "','" + value3 + "','" + value4 + "')"; System.out.println("sql= " + sql); stat = getDBTransaction().createPreparedStatement(sql, 1); stat.executeUpdate(); } catch (Exception e) { e.printStackTrace(); } finally { try { stat.close(); } catch (Exception e) { e.printStackTrace(); } } } private void updateSecondRowInDatabase(Object value1, Object value2, Object value3, Object value4) { PreparedStatement stat = null; try { String sql = "update vdet set vid='"+ value1+"',lineitem='"+ value2+"',DEBITST='" + value3 + "', AMOUNT='" + value4 + "' where VID='" + VID + "'"; System.out.println("sql= " + sql); stat = getDBTransaction().createPreparedStatement(sql, 1); stat.executeUpdate(); } catch (Exception e) { e.printStackTrace(); } finally { try { stat.close(); } catch (Exception e) { e.printStackTrace(); } } }
Now the problem is that when later I change the quantity and price of the first line isn't updated but second row, because I used the command
<af:button actionListener="#{bindings.Commit.execute}" text="Commit"
This button update the first line added by bean managed, but the second row remains unchanged.
Please help how to update the two lines with the same button or something else.
Concerning
DML_UPDATE will call only if there is some change data attributes.
I guess that the update statement is false because vid looks like a primary key for the table, then, how update you the primary key of the update statement and how the update condition statement where the vid = '0'
I assume the update statement should look like:
private void updateSecondRowInDatabase(Object value1, Object value2, Object value3, Object value4) { PreparedStatement stat = null; try { String sql = "update vdet set lineitem='" + value2 + "',DEBITST='" + value3 + "', AMOUNT='" + value4 + "' where VID='" + value1 + "'"; System.out.println("sql= " + sql); stat = getDBTransaction().createPreparedStatement(sql, 1); stat.executeUpdate(); } catch (Exception e) { e.printStackTrace(); } finally { try { stat.close(); } catch (Exception e) { e.printStackTrace(); } } }
-
How can I get the list of data stores in a cluster data store?
How can I get the list of data stores in a cluster data store? I mean the command line option.
Hello
by command line, you mean PowerCLI?
If so, you can display data with this warehouses:
Get-DatastoreCluster-name DSClustername | Get-Datastore
Tim
Edit: Moved the thread to the PowerCLI community
-
Hello all, my first post. Would like to know how can I do a feature request regarding the way in which the actions are recorded during playback of an action. Instead of each stage of the action being recorded in history, it would be great to have the ability to save only one step of the action, such as "[name of action] Action game". THX!
After a little research, I found that you can do what you want with the scripts. You can suspend the history using scripts. Here is an example of a script that I wrote which performs an action. It makes a loop though all the upper layers for a project of focus stacking and performs the action on each layer of dust from the sensor spot - a lot of steps in the history.
In line 9, the statement to suspend history is made. The first part of the argument: "spot", this is what appears in the State history. The second part of the argument is the function that you want to suspend the story. In this case, it is the spotD810() function. You can use this function with your actions by simply replacing the name of set of Actions and the name of the action, where he made comments in the script.
#target photoshop var doc = activeDocument; doc.activeLayer = doc.layers[0]; for(var i=0;i
-
How to populate a datagrid control?
[Flex framework 3.0]
How to fill a DataGrid using data to a sqlite database. In this case, what can be the dataProvider. I have to define bindable?
Location:
I have an AIR application that fills a SQLite database. The AIR App has a DataGrid. The content of the database must be in the datagrid control. There is a button that fills the database if you click. Accordingly the view IE the datagrid needs to update. Do I need to query the database using the SELECT command each time?
My main question is to make the datagrid show the content of the database.
Say the database has three columns.
Help, please.
Thank you.
Good luck
-
How to fill a datagrid with a web service result which is an array?
I know how to fill a DataGrid to a CF of the web service that returns a query result. But what happens if I want to my CF component to run a query, then massage the data and back-is not a query - but a picture from the web service.
Seems my two dimension table because ColdFusion has no column name, I need to create on the CF side name-value pairs or the side Flex. BTW, I prefer to use mx:webservice and not remoteObject.
Any ideas on the best way to fill a datagrid from an array?
Thank you.(Sorry for the previous double post).
A colleague found the answer for me. I hope this saves someone else from 5 days of anquish!
When a ColdFusion component returns an array of structures (not the result of a query), redesign the table as an arrayCollection collection throws an error.
IT DOES NOT WORK:
acSpeeds = new ArrayCollection (wsSpeeds.oneNode.lastResult);THIS WORKS!
acSpeeds = wsSpeeds.oneNode.lastResult;It seems that a table generated by ColdFusion structures is already a collection arrayCollection 'official '!
Hope this helps someone.
-
How to insert or update in the data type date
Hai All
I have two table T1 and T2 from T1 to T2 I have to move data
T1 structure code var, varchar of time that I said and T2 intimate outtime, intrinsically, all the introut are the date data type, so I need to pass the data to date the type varchar data
How to insert or update varchar to date
Concerning
Srikkanth.MHello
SQL> create table tabDate 2 (dt date); Table created. SQL> declare 2 v_date varchar2(10):='10-03-2010'; 3 v_time varchar2(10):='0815'; 4 Begin 5 insert into tabDate values(to_date(v_date||v_time,'dd-mon-yyyy hh24mi')); 6 end; 7 / declare * ERROR at line 1: ORA-01843: not a valid month ORA-06512: at line 5 SQL> declare 2 v_date varchar2(10):='10-03-2010'; 3 v_time varchar2(10):='0815'; 4 Begin 5 insert into tabDate values(to_date(v_date||v_time,'dd-mm-yyyy hh24mi')); 6 end; 7 / PL/SQL procedure successfully completed. SQL> select to_char(dt,'dd-mm-yyyy hh24mi') from tabDate; TO_CHAR(DT,'DD- --------------- 10-03-2010 0815
Twinkle
-
How to use the Group feature in insert or update
Hai All
How to use the Group feature in insert or update statement
I'm generating attendance so I have a different set of timing example
0800,1200,1230, 1700 and I need to insert data into the table that contains the intimate value min and max value for
outtime and othere to inertval time in or out
Pls tell me with some examples
For example
For INSERT
Insert into T2 (barcode, empcode, respondent, attend_date)
values (R2.cardn, R2.enpno, min(R2.) PtIMe), R2.pdate);
Update
Update dail_att set outtime = MAX (r2.ptime) where empcode = r2.enpno and barcode = r2.cardn and
attend_date = r2.pdate;
Here, in the place where I used to have so pls tell how to use
Thanks and greetings
Srikkanth.MHi Srikkanth.M
to insert:
insert into test (dummy) values ((select max (dummy) to double));
Update:
Update test dummy value = (select max (dummy) to double where to test them. XXXXField = double. XXXXField);
-
How can I do a new insert data in the other table extrancting?
Hello, I'm looking how to do an insertion of two tables save values and apply to other tables like this:
The insert I'm looking for is something like this:
Have two tables, the first table is emp1 and contains the column: data 1 and 2 with line of data1: 1234 and line data 2:5555, therefore,.
I want to create an insert on a new table called (emp2) that contain the data in the column: data 1, data 2 (from the first table demo1), data 3, data 4, etc.
How insert again I can put / call data from another table insert in this table (emp2).
I don't know if my example is correct (my English is very bad).
This is an example: (sorry for the points).
table EMP2:
1 data... 2 data... 3 data... data 4... data 5
(from emp1)... (from emp1)... 8534... 2347... 4544
Thanks for the help.
Published by: user10182692 on 24-May-2009 08:39
Published by: user10182692 on 24-May-2009 08:40
Published by: user10182692 on 24-May-2009 08:45Welcome! on the forum.
You can include the code and data in the {code} tags
If I'm good, and I know what is your condition
insert into emp2 ( data1, data2) select data1, data2 from emp1
SS
-
I downloaded Safari 10 and now every page that uses Java asks me to activate or not. How to avoid this new feature? I have problems to access my bank account.
I think they mean JavaScript.
In your Safari menu bar, click Safari > Preferences and then select the Security tab, and then select: Enable JavaScript
-
How can I open an attachment winmail.dat on my imac?
How can I open an attachment winmail.dat of my emails?
-
my module of Fox reminder disappeared after updating firefox. I can install this add-on again, but then I lose all the data that existed before the update. How can I reinstall without losing any data?
Back up your ReminderFox data before reinstalling. This is stored in a separate file in the folder of the parameters active Firefox (also known as your Firefox profile folder). You can find this file by using a button on the page of troubleshooting information. Either:
- Help > troubleshooting information
- type or paste everything: in the address bar and press Enter
In the first table, click on "view file". Look for a folder named reminderfox and copy it somewhere safe.
More information: http://www.reminderfox.org/documentation-faq-troubleshooting/#r5
Maybe you are looking for
-
I have an iPhone 5 s. I don't have a data plan but I text messaging plan. When I try to send a text message wihout wifi, he just keeps trying to send as iMessage. Must we automatically send as a text without having to turn first iMessage me? I can
-
Firefox 6.0.1 on MacPro OS x 10.6.8: View menu doesn't have an option "View Source" - there must be somewhere but I can not find it. Help. THX, mark This morning I received a pop-up to move immediately to 6.0.1 that I did, and since then I can't find
-
I can't receive files on Skype photo. I reinstalled and nothing happened. I have Windows 10.
-
Strip silence will not work with securities with multiple takes
Advanced tools is selected. Strip silence icon lights up when you click on a single track, BUT for my pieces of singing where there are several taken, it remains grey. I tried to join the tracks... there at - it something I need to do before I can st
-
HP Envy 4500: HP envy Wi - Fi printing and 4500 - half page only
I'm trying to print from my HP envy 4500 from my top of Dell Windows 7 Desktop Professional. I only get half of the page and the printer never ends the book, so I always have to pull him out. It's so weird, because all my HP printers before the pag