Date stamp the column
Hi
I have a requirement, in a column i need to show the balnces for date 2012/12/31. The column name is Amount Balance, and I need to show that date at the top of the column .Please help me how to achieve this.
Thanks
SR
I don't believe it - I could have sworn I'd tried that!
Cheers pal.
That's fixed it for me.
Similar Messages
-
Using Action Wizard is possible to add the step to date stamp the pdf
Using Action Wizard is it possible to create the steps:
Add text to date stamp
Javascript
Encrypt
SaveHi,
We cannot display the year information on Windows 8.1 Lock Screen.
The behavior is by design.
Thanks for your understanding.
Regards,
Kelvin Xu
TechNet Community Support -
Insert data into the column which is having null values.
Hi,
I have a column called "Classification_CD" .This column is having NULL values.I want to insert the data into this column.
I tried to write the query as follows. But it is showing the mesg error "SQL Error: ORA-01400 cannot insert NULL into ("ABC"."A_CMP_W"."A_CMP_SEQ_NUM")"
Can any one please help me out to write query to insert the dat afor this.
Thanks.I think you are taking about updating the null value.So you can do this..
SQL> select * from table_a;
ID SCHEDULED MARK PRID
5 07-NOV-10 T05 7
6 18-SEP-10 T06 8
4 31-JAN-11 T02 2
1 18-JAN-11 T01 2
2 18-JAN-11 T02
3 18-JAN-11 T03 1
6 rows selected.See that prid is Null for id 2
SQL> update table_a
2 set prid =10
3 where id =2;
1 row updated.
SQL> commit;
Commit complete.
SQL> select * from table_a;
ID SCHEDULED MARK PRID
5 07-NOV-10 T05 7
6 18-SEP-10 T06 8
4 31-JAN-11 T02 2
1 18-JAN-11 T01 2
2 18-JAN-11 T02 10
3 18-JAN-11 T03 1
6 rows selected.
SQL> But remember while updating u should choose a primary key column in
where condition so that only desired row or record is updated..
Regards
Umesh -
How to reduce the column definition w/o losing the data in the columns?
I need to reduce a particular column definition of a table from varchar2(10) to varchar2(4), but there is already existing data inside this column. The max length of data in this column is only 2 chars, which is less than the new column length.
What commands/steps should I take to reduce the column definition successfully without losing the data in this column?Unfortunately, there is no one step solution.
You can create a new table and insert into this table with the old table values
e.g.
Old_Table
fld1 varchar2(10)
New_Table
fld1 varchar2(4)
insert into new_Table (select * from Old_Table) ;
I need to reduce a particular column definition of a table from varchar2(10) to varchar2(4), but there is already existing data inside this column. The max length of data in this column is only 2 chars, which is less than the new column length.
What commands/steps should I take to reduce the column definition successfully without losing the data in this column? -
How to retreive data from the column of CLOb dataype in BPEL.
Hello Everyone,
I have a scenario in which i have two databses primary and secondary. In first bpel process i am checking if primary database is down then store the payload in temp staging table in secondary database. That payload is getting stored in a cloumn of CLOB datatype in a text format.
Now in second bpel process when primary is up i have to pull the data from the temp staging table...but here i want the data in the same format (like it came in the first process...the input payload format)....but as the CLOB will store the data as a text then how to reform that data in to ealier payload format.
Can any one pls suggest me the solution...
ThanksConfirm that you have the VISA Run Time Engine on the target machine. If you do not have it installed, you can install the VISA Run Time Engine from ni.com.
Error -1073807346 Using VISA When Running LabVIEW Executable On Target Computer
Message Edited by Mathan on 10-12-2009 07:11 AM -
Gentlemen,
I am working on an SAP BI implementation project.
We have FI-CO,PP,PM,QM,MM AND SD.
We are finished with everything.
But while checking reports in Production server,I have found few columns(infoobjects) with incorrect data.
Like fir Bill Quantity there must be some value like 110 kg or 200 kg but it is coming like 0.00 Kg for every record.
I have such problem in few more reports.
I know its the mapping issue .But its BI COntent implementation so we expect to be mapped automatically.
Since all the reports are working fine with correct Data so no issues except these few columns.On this I can't say that I had made any mistake in implementing.
Suggest me how to get correct data in to these columns.
Thanks
VijayHi,
Check you customization. i don't know your standard extraction you use but ie on purchasing it use process key to define if the ratio is Invoice or order or reception. So if you have a problem like yours. i think the best is to check for each indicators at 0 the process in transformation or update rules to identify which information is required to calculate correctly the value.
Regards
Cyril -
Returning a result from multiple columns based on the last date that the column has a value.
I have this table named (pmtable)
ctrlno jobid docdate work1 work2 work3
1 7 2/12/2014 20 hrs
10 hrs
2 7 2/22/2014 35 hrs
15 hrs
3 7 2/28/2014
12 hrs
4 8 1/17/2014 15 hrs
13hrs
I want the result to be like this
jobid work1 work2 work3
7 35hrs 10 hrs 12 hrs
Is this possible?Hi serenace,
To achieve your requirement, you can reference the below.
DECLARE @Tbl TABLE(ctrlno INT,jobid INT,docdate DATE,work1 INT,work2 INT,work3 INT);
INSERT INTO @Tbl VALUES(1,7,'2/12/2014',20,10,NULL);
INSERT INTO @Tbl VALUES(2,7,'2/22/2014',35,NULL,15);
INSERT INTO @Tbl VALUES(3,7,'2/28/2014',NULL,NULL,12);
INSERT INTO @Tbl VALUES(4,8,'1/17/2014',15,13,23);
INSERT INTO @Tbl VALUES(4,8,'2/17/2014',15,NULL,NULL);
INSERT INTO @Tbl VALUES(4,8,'3/17/2014',NULL,16,NULL);
;WITH cte AS(
SELECT jobid,docdate,attr,value FROM
@Tbl
UNPIVOT
(value FOR attr IN(work1,work2,work3)) AS UT
cte2 AS(
SELECT jobid,attr,value , ROW_NUMBER() OVER(PARTITION BY jobid,attr ORDER BY docdate DESC) AS rn
from cte
SELECT jobid,ISNULL([work1],0) [work1],ISNULL([work2],0) [work2],ISNULL([work3],0) [work3] FROM
cte2
PIVOT
(SUM(value) FOR attr IN([work1],[work2],[work3])) AS PT
WHERE rn=1
If you have any question, feel free to let me know.
Eric Zhang
TechNet Community Support -
Uploading spreadsheet data into the database
Hi
I want to upload the spreadsheet data into the database through front end...I dont have any idea how to do upload without using the 'utilities' option..Can anyone please help me to do this?
Thanks in advance
FazilaHi
I refered the example sent by vikas...but i could not understand..I dont need to specify table name in runtime...my requirement is that I will have the constant table(say MD look up table)...and I will have some data under the column heading( say repid,split name)...
Now I want to import my spreadsheet data which are under the heading repid and split name through my front end application and I have the option whether to 'overwrite' the records or 'append' the new records...after clicking the necessary option..I want to import my spread sheet data into the table defined already...and my another requirement is that I want to check the duplication of data between the spreadsheet and table...If I find the duplicates, I have to omit it and store the remaing details....
Please give me some guidelines to solve this problem....
Thanks in advance
Fazila -
Missing column in the column chart - is it the selector's fault?
Hi folks, thanks for bearing with me here:
I'm working on fixing some issues on a dashboard that someone else has set up (and there's no way for me to reach that person). One of those issues is that one of the columns in a column chart does not display on the dashboard when exported. The column chart is pulling the data from the correct cells, so the problem doesn't seem to stem from there.
I thought I got to the bottom of it when going over the scorecard. The range used for its source data cuts off before it reaches the data for the column in the chart that doesn't show up in the exported dashboard. However, when I adjust the range for the source data the resulting exported dashboard turns out an entirely blank column chart (even weirder, changing the source data back doesn't seem to fix this; I had to simply start back from my prior save state to reverse the blank chart).
So am I even on the right track here? And if not, any ideas on what's keeping that column from showing up?Thanks Ameet, I tried out the table as you said and the data for the column and the vertical progress bar were missing from there as well.
It turns out I was correct about the scorecard's source data being to blame, and that adjusting it to include the fields in the spreadsheet that correspond to the missing graphics was the right course of action, the problem was something with my computer; I sent the file to another computer and adjusted the source data there, and it worked fine.
It puzzles me why the edits wouldn't take on my computer (after being exported). The only thing is maybe I need a newer version of Flash, but I have 9.0 r45 which should be enough.
Edited by: xcelsiusnoob on Jun 23, 2011 2:16 AM -
How do I align data within a column?
In the newly updated Numbers (Mac), I cannot find how to align data within a column.
The justify data select the column by clicking the column header (the letter at the top of the column) then open the formatter (top right):
then select the "Text" formatter and select the type of aligment you want: -
To convert the values in the column from upper case to Camel Case.
Hi All,
I have requirement to convert the column values(Data in the Columns) from upper case to camel case in pivot table view.
For Eg:
I have
Table Name:Billing_Transaction
under Billing_Transaction table i Have column Comment_Text
Data in Comment_Text Column is
INSERT,
EXPORT,
AMEND
How i will change these values in to Insert,Export,Amend.(Camel Case condition)
I want only the first letter of a word to be in caps and others to be in smaller case.
Thanks,
Chitra Subramani.Hi Aravind,
Thanks for immediate response.your query is helpful.But i need to satisfy another condition in my requirement by using same formula.
"REPLACE(UPPER(SUBSTRING(BILLING_TRANSACTION.BILLING_TRANSACTION_DESC FROM 1 FOR 1)) || lower(substring(BILLING_TRANSACTION.BILLING_TRANSACTION_DESC FROM 2)), '_', ' ')"
above query satisfying Camil case and replacing '_' with ' '(space)......but inthis query i want add another condition to satisfy camil case for word which comes after '_'
for example:
DECLINE_IMPORT
above query satisfying 2 conditions to convert above data into
"Decline import"
But in my requirement for word 'import' also it should come in camil case condition like
"Decline Import"
Thanks & Regards,
Chitra
Edited by: user6371773 on Apr 25, 2011 6:29 AM -
Display of data on as columns in a table
Hi All,
I have an application where the data from R/3 server is displayed on the table.
The different columns are:
1. Date 2. Volume 3. Price
the Volume is corresponding to the date mentioned. which is in past/or future.
I have to read the difference between current date and the column date in days. and multiply that with a price factor( to be read from the server ) and add it up with price on current day( to be read from server) and display it under the column "price".
there can be many rows with many different dates and different corresponding price factors.
Can some one tell me how to go about this.
Thanks in advance
SrikantHi to All(& Nibu)
I have written functions:
1. Executing the The Bapi
2. finding the difference the between dates in days.
3. finding the price
The following are the codes for them:
public void executeZs_Wcontract_Quantity_Input( )
//@@begin executeZs_Wcontract_Quantity_Input()
try
wdContext.nodeZs_Wcontract_Quantity_Input().currentZs_Wcontract_Quantity_InputElement().modelObject().execute();
wdContext.nodeOutput_Contract_Qty().invalidate();
catch(WDRFCException ex)
ex.printStackTrace();
//@@end
public int daysDifference( java.lang.String startDate, java.lang.String finishDate )
//@@begin daysDifference()
try
SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy");
Date beginDate = dateFormat.parse(startDate);
Date endDate = dateFormat.parse(finishDate);
GregorianCalendar calStart = new GregorianCalendar();
calStart.setTime(beginDate);
GregorianCalendar calEnd = new GregorianCalendar();
calEnd.setTime(endDate);
//if the dates belong to same year
if (calStart.get(Calendar.YEAR) == calEnd.get(Calendar.YEAR))
return calEnd.get(Calendar.DAY_OF_YEAR) - calStart.get(Calendar.DAY_OF_YEAR);
else if ((calEnd.get(Calendar.YEAR) - calStart.get(Calendar.YEAR)) == 1)
int daysEndYear = calEnd.get(Calendar.DAY_OF_YEAR);
int daysStartYear = calStart.getActualMaximum(Calendar.DAY_OF_YEAR) - calStart.get(Calendar.DAY_OF_YEAR);
return daysEndYear + daysStartYear;
else
int startYear = calStart.get(Calendar.YEAR);
int endYear = calEnd.get(Calendar.YEAR);
GregorianCalendar cal = new GregorianCalendar();
int days = 0;
for (int i = startYear + 1; i < endYear; i++)
cal.set(Calendar.YEAR, i);
days += cal.getActualMaximum(Calendar.DAY_OF_YEAR);
days += calEnd.get(Calendar.DAY_OF_YEAR);
days += (calStart.getActualMaximum(Calendar.DAY_OF_YEAR) - calStart.get(Calendar.DAY_OF_YEAR));
return days;
catch (Exception e)
return -1;
//@@end
public void calFixedPrice( )
//@@begin calFixedPrice()
int max = wdContext.nodeZs_Wcontract_Quantity_Input().nodeOutput_Contract_Qty().size();
//wdContext.currentContextElement().setCFlag("Srikant");
for (int fixedCounter = 0; fixedCounter<max; fixedCounter++)
Date presentDate = Calendar.getInstance().getTime();
Date givenDate = wdContext.nodeZs_Wcontract_Quantity_Input().nodeOutput_Contract_Qty().nodeLi_Schedule_Lines().getLi_Schedule_LinesElementAt(fixedCounter).getSchddt();
//Conversion of the Dates in String
String PresentDate = presentDate.toString();
String GivenDate = givenDate.toString();
//Calculation of no. of days
int numDays = daysDifference(PresentDate,GivenDate);
double Days = numDays;
//Getting the Values of Current Price for the Day and Fixed Price Factor based on that
double quotedPrice = (wdContext.nodeZs_Wcontract_Quantity_Input().nodeOutput_Contract_Qty().nodeLi_Post_Id_Price().getLi_Post_Id_PriceElementAt(fixedCounter).getPrice().doubleValue());
double fixedPriceFactor = (wdContext.nodeZs_Wcontract_Quantity_Input().nodeOutput_Contract_Qty().nodeLi_Fixed_Factor().getLi_Fixed_FactorElementAt(fixedCounter).getFixfactor().doubleValue());
//wdContext.currentContextElement().setCTest(fixedPriceFactor);
//Calcualtion of Fixed Price
double FixedPrice = (quotedPrice + (fixedPriceFactor * Days));
//@@end
I'm not able find out where to use these methods and how to call them
Please help me on this, its urgent
Thanks in advance
Srikant -
Change the column names programatically
Hi All,
is it possible to change the column name in a table programatically?? my req is like this..I ve a table which contains 60 columns. out of these 60 columns 53 columns signifies the 53 weeks of the year. so i ve to display the date in the column headers. How can i achieve this?
Thanks in advance,
SreeColumn prompts can be modified through the OAF Personalization screens. This will ensure you are declaratively setting the values.
Regards,
Prabodh. -
Need query to compare the columns of 2 diff tables of 2 different schemas.
There are two different tables(sample1, sample2) in different schemas(s_schema1, s_schema2).
I want the query to compare the columns of two different tables of two different schemas and provide whether the data as well as the count of data in
the column are same .
if not provide the data which is not similar in the columns of two different table.
NOTE:
I need queries for both the cases.
(i) The datatypes in columns of two different tables are same.
(ii) The datatypes in columns of two different tables are diffrent.Welcome to the forum!
Whenever you post provide your 4 digit Oracle version.
>
I need queries for both the cases.
>
Great - write the queries!
The forum is not a coding service where you ask people to write code for you for free.
YOU need to write the code. Then if you have a problem with the code you have written post the code you have written (using \ tags) and explain the problem you are having.
Read the FAQ about how to ask a question on the forums. -
Right/Left align the column header.
Hi All,
Is there any option for align the column header irrespective to the column contents.
There is an option for align data inside the column.But I can't find any for the column headers.
Give me an idea.
Thanks
Swapnause the
align="Left" or "right"and use the "margin-left:10px" for the component.
for example
<af:column sortable="false" width="80"
headerText="#{viewcontrollerBundle.UNIT_PRICE}" id="c8" align="right"> // this will align the column header
<af:outputText value="#{node.lineItem.amount}" id="ot8" inlineStyle="margin-right:15px;"/> // this will align column data
</af:column>
Maybe you are looking for
-
HP C4180 all-in-one, Windows Vista 64-bit, purple in photo prints out looking like blue
Driving me crazy. School colors are purple and white. Anytime I print a photo of our football team, the purple turns out blue. HELP!!
-
ICloud Snow leopard Lion VM Fusion
I am learning the hard way and would appreciate the best way of using iCloud on my Imac. I am running Snow Leopard and Windows XP in a fusion virtual machine. I tried to instal Lion, for which I had a free code, in a virtual machine but found that w
-
Hi, i know this is not new but since i can't find any solution and apple support prefer staying behind the scene, i posted my problem. I have a DVD with all my works files which is burned at the office using PC. Once i was home, i tried to copy the f
-
Invalid node structure and Boot Camp 1.1.2
I downloaded Boot Camp 1.1.2 and during the installation of Mac Drivers I kept getting dialog boxes that the software i'm installing did not pass Windows Logo testing- I just ignored it. After that Windows XP didn't recognise my keyboard, airport, ..
-
Movie 11 can not copy everything and put it into a new project in imovie 9 it works fine
movie 11 can not copy everything and put it into a new project in imovie 9 it works fine and there i cant copy 5 different project into new project but in imovie 11 i only can copy project with option dubler project?