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:
Similar Messages
-
How can I Move data from one column to another in my access table?
I have two columns, one that stores current month’s data and one that stores last month’s data. Every month data from column 2 (this month’s data) needs to be moved to column 1 that holds last month’s data. I then null out column 2 so I can accumulates this month’s data.
I understand how to drop a column or add a column, how do I transfer data from one column to another.
Here is my trial code:
<cfquery name="qQueryChangeColumnName" datasource="#dsn#">
ALTER TABLE leaderboard
UPDATE leaderboard SET points2 = points3
</cfquery>
Unfortunately, I get the following error:
Error Executing Database Query.
[Macromedia][SequeLink JDBC Driver][ODBC Socket][Microsoft][ODBC Microsoft Access Driver] Syntax error in ALTER TABLE statement.
How can I transfer my data with the alter table method?I looked up the Access SQL reference (which is probably a
good place to start when having issues with Access SQL), and
it suggests you probably need a WHERE clause in there.
I agree the documentation is a good place to start. But you should not need a WHERE clause here.
Too few parameters. Expected 1.
If you run the SQL directly in Access, what are the results? At the very least, it should provide a more informative error message.. -
How can I POST data within the same page if I have a A HREF -tag as input?
How can I POST data within the same page if I have a <A HREF>-tag as input? I want the user to click on a line of text (from a database) and then some data should be posted.
you can use like this or call javascript fuction and submit the form
<form method=post action="/mypage">
cnmsdesign.doc
</form> -
APEX CSS - How do I get data in report columns to wrap?
I found information here http://www.orafaq.com/wiki/APEX_FAQ
About How do I get data in report columns to wrap?
This works and another way to do it is by adding the CSS directly into the
Home>Application Builder>Application 137>Page 1>Report Attributes>Column Attributes page
in the Column Formatting area. I added 'white-space:normal' and this works in FF but in
IE it has a different behavior.
In FireFox
testasdgadhad
gadfadgadgadg
adgafhsrgjsgnsfg
nsdfbadfafhafha
dfhadfh
In Internet Explorer
testasdgadhad gadfadgadgadg adgafhsrgjsgnsfg nsdfbadfafhafha dfhadfh
Is there a way to force it so it display in IE the same way that it displays in FF?
The correct display format is FF.
Thanks,
Nestor :)I have try this because I found it during a search and it makes no difference in IE.
This is what I am using now 'display: block; width: 100px;max-width:100px;white-space:normal'
I also tried 'display:block; width:500px'
If I use the values 'normal' or 'pre' for white-space' it works in FireFox but not in IE, The display block
does not seem to make a difference. It seems that all I need is 'white-space:normal' but again
it does not works on IE.
Thanks,
Nestor :-) -
How much space a Date , time , TimeStamp column occupy?
Hi
what is size of a Date , Time and TimeStamp type ?
i mean how much bytes they require ?
ThanksApologies if this posts more than once. I got server errors.
Laurent:
Sysdate and systimestamp are actually different types than a date or timestamp column.
SQL> CREATE TABLE dt (dt DATE, ts TIMESTAMP);
Table created.
SQL> INSERT INTO dt VALUES(sysdate, systimestamp);
1 row created.
SQL> COMMIT;
Commit complete.
DUMP(DT)
Typ=12 Len=7: 120,106,6,2,17,43,10
SQL> SELECT DUMP(ts) FROM dt;
DUMP(TS)
Typ=180 Len=11: 120,106,6,2,17,43,10,28,185,249,48
SQL> SELECT DUMP(sysdate) from dual;
DUMP(SYSDATE)
Typ=13 Len=8: 7,214,6,2,16,50,17,0
SQL> SELECT DUMP(systimestamp) from dual;
DUMP(SYSTIMESTAMP)
Typ=188 Len=20: 7,214,6,2,20,50,30,0,48,111,78,168,252,0,5,0,0,0,0,0I seem to recall reading somewhere that sysdate is actually a representation of the C struct_t time structure, while a date column is Oracle's internal format. It looks like something similar is going on with systimestamp, and with the date and timestamp casts you are doing.
The inserts into the table above were done minutes before the selects, but definitely within the same hour. The byte values have no correlation, between the date field and sysdate, nor between the timestamp field and systimestamp, while the the date and timestamp fields are identical to the second. Similarly, the sysdate and systimestamp dumps are identical to the second.
The vsize function reports the physical storage required for the expression passed. My guess would be that it is implicitly casting sysdate and systimestamp to the equivalent internal representation before calculating the size.
John -
How to center the data in a column?
Hi,
I want all the data in a column to be centered rather than left-justified.
How can we do this in SDK?
Please see the picture which explains it all.
Thanks
Leon LaiHi Maik,
Thanks a lot for your reply.
I was looking for kind of Excel Center Text.
Too bad it cannot be done in SDK
Thanks for your workaround.
Well, as for the picture idea. I have just made another post on this topic. Hope you will have a look.
Best Regards,
Leon -
How do I reorder data within a Contacts card?
I want to reorder the data within individual Contacts cards, e.g., repositioning address A above address B. It ought to be as simple as highlighting a given line and pressing the keyboard's Up or Down arrows, but that doesn't work, and I can't find anything in Apple's documentation or support pages offering an alternative that does work. Nothing on the Web either, except for a third-party app being touted by a company I don't know. I'm running the latest Mavericks on an iMac.
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: -
How to capture the data within the given range of maximum and minimum values ? from csv files
My requirement,
1. Here, the user will provide the range like maximum and minimum values, based on this range, the VI should capture the data within the given range. ( from CSV file as attached )
2. Then VI should calcluate the average value for captured data and export it to excel.
This is my requirement can anyone help me on this.
Many thanks in advance
rc_cks
Attachments:
sample_short.csv 2439 KBHi,
Thanks for remnding me. I forgt to attach the VI,
Here I am attaching the VI, what I tried.
From attached CSV file, I have to find an average value for columns B,C,D,E,F,G,H,I and AJ, AK. ( data range will be defined by user ), focused only on these columns
Here, the scope is to calculate an average value for given data range by user as MAX and MIN data.
FYI: I tried manually for two instance i.e column H & I. As per H column one steady state values from 7500 to 10500 and similarly in I column 7875 to 10050. So, I gave these as a limit to capture and calculate the average value. But unfortunaltely, requirement has been modified as per below requirements.
More Info on requirement:
--> The user will define the range of data by giving some MAXIMUM and MINIMUM values(for above mentioned columns induvidually), then VI should capture that data range and it has to caculate the average value for that range of data. This is the task I have to complete.
--> I am stuck in creating a logic for data capturing for given range of MAX and MIN value from user,
Can anyone help me on this.
If my explanation is not clear, Please let me know.
Many thanks, help mw
rc
Attachments:
VI_rc.vi 25 KB
sample.zip 4166 KB -
How to name the data for each column I am acquiring in lvm file
does anybody hint How to name the data for each cloumn I am acquiring in lvm file.
I want to tag or name ,eg temperature at top of a column which shows the temperature readings .I am writing into a labview measurement file.
ThanksUse Set Waveform Attribute on each channel of your data. Set an attribute with name "NI_ChannelName". The value is a string containing the name you wish to call the channel.
This account is no longer active. Contact ShadesOfGray for current posts and information. -
How to show current date in a column of dimension table in ssas
Hi,
I have 2 dimension tables (ALLWORK and YOURWORK) and 1 measure table (STATS). In ALLWORK dim table, I have 4 columns, one of them is END_DATE. Based on END_DATE and current date I want to create a named calculation field. To achieve this, I
want to show the current date in 5th column (of ALLWORK dim table) as calculated member (as named calculation wont show me correct date).
Problem is, I am not able to create the column in the dimension table. While creating the calculated member, I am not able to select the ALLWORK dimension table, it always selects MEASURE by default. Please help.
thanks
Tarique
thanks and regards Tarique AslamHi Tarique,
According to your description, you want to add a column to your dimension to show the current date, right?
In data source view, we can add named calculation to your table. A named calculation is a SQL expression represented as a calculated column. This expression appears and behaves as a column in the table. A named calculation lets you extend the relational
schema of existing tables or views in a data source view without modifying the tables or views in the underlying data source.
Reference
http://msdn.microsoft.com/en-in/library/ms174859.aspx
http://devmau5.wordpress.com/2010/03/25/the-getdate-of-mdx/
If I have anything misunderstand, please point it out.
Regards,
Charlie Liao
TechNet Community Support -
Help with lists and Numbers - how can I separate data from one column?
I have a series of data entries that have two or three pieces of information listed in one column (it was a list copied from the Internet). My data is in this form all in one column (ie Column A):
XXXX -- YYYY, ZZZZ
I want to be able to easily split that data into three columns (A, B, and C) without having to go through and manually separate all of the entries? I'd ideally like to have XXXX in one column, the '--' removed, YYYY in another column, and ZZZZ in a third column, like this:
Column A Column B Column C
====== ====== ======
XXXX YYYY ZZZZ
Is this possible? Any help is appreciated.BlooGoo
Open or paste your material in your favorite texteditor. TextEdit will suffice but there are better applications. Make sure your material is consistent, especially that there are no stray characters or extra spaces studded in the text. You can do this by using the clean up routine as described below.
1. Copy the set of characters you want to replace. In this case " -- " Note that there are spaces on each side of the dashes and you want to get rid of those.
2. Open the *Find and Replace* dialogue:
+Menu > Edit > Find > Find…+ (or command f)
Paste the " -- " into the Find: field, then type a comma in the Replace: field or
Copy and paste a tab from the document or
Click on the Advanced button and enter a tab using the Insert… button that appears.
3. Click *Replace All.*
Repeat as necessary. If it doesn't seem to work, copy and paste the bits that stick, usually there is something not visibly different but different as far as the computer iust concerned.
When you are finished save the results as a comma or tab delimited delimited .txt file and reopen it in Numbers.
Peter -
How to transfer data within blob column to server
Hi,
I have the following requirement where i have a table which has a blob column that holds the files that are attached to a page using front end. I need to fetch these files and import them to server. How do i go about in achieving this?
Any in\puts would be of great help.
Thanks In Advance.876841 wrote:
Hi,
I have the following requirement where i have a table which has a blob column that holds the files that are attached to a page using front end. I need to fetch these files and import them to server. How do i go about in achieving this?
Any in\puts would be of great help.Well, if the blob data is stored in columns on the database then it already resides on the server. If you need to save that data as files on the server then it's just a case of writing out the data to a file in the appropriate directory location.
Example code... (untested)...
As sys user:
CREATE OR REPLACE DIRECTORY MY_FILES AS 'c:\myfiles';
GRANT READ,WRITE ON DIRECTORY MY_FILES TO myuser;As myuser:
DECLARE
-- Data Variables
v_blob BLOB;
v_data_length NUMBER;
-- Loop Control Variables
v_offset NUMBER := 1;
v_chunk CONSTANT NUMBER := 32767; -- maximum chunk size
-- UTL_FILE variables
fh UTL_FILE.file_type;
BEGIN
v_blob := ... populate the blob variable here
v_data_length := DBMS_LOB.getlength (v_blob);
-- Open the file
fh := UTL_FILE.fopen ('MY_FILES', 'myfile.dat', 'wb', v_chunk);
LOOP
-- Exit when our file offset is bigger than our file
EXIT WHEN v_offset > v_data_length;
-- Write the output chunk by chunk
UTL_FILE.put_raw (fh, DBMS_LOB.SUBSTR (v_blob, v_chunk, v_offset), TRUE);
-- Increment the offset by the amount written
v_offset := v_offset + v_chunk;
END LOOP;
-- Close the file
UTL_FILE.fclose (fh);
END; -
How to extract required data from a column to a flat file
my ssis package is working OK. However, I want to refine one of the column extraction.
when data is extracted to the flat file, I just want to the initials, firstname, lastname e.g.
FZ = Ben Smith, Add1, add1, etc
the only bit that i want is Ben Smith
how can i state in the package to just give me the name and exclude the rest
sukaiAdd a derived column task to extract Name part alone and give expression as below
LEFT([ColumnName],FINDSTRING([ColumnName],",",1)-1)
If before SSIS 2012 use SUBSTRING
SUBSTRING([ColumnName],1,FINDSTRING([ColumnName],",",1)-1)
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
How to read the data from a column that is in clob data type (but XMLdata)
Hi ,
I have a table XYZ which has a column RESPONSE_XML in clob datatype format.we can convert it to XMLTYPE(RESPONSE_XML) to read the data in XML format.
Now this is the DynamicXML schema file. Here I want to see all the COMMONNAME, ResourceDescribedby_VALUE into column_A, ResourceDescribedby_ResourceSpecCharacteristic_Name tags into column_B
How can I do that .. any suggestions please ..
Here is a sample XML:
<?xml version="1.0" encoding="WINDOWS-1252" ?>
_- <soap:Body>
- <SearchResourceResponse xmlns="http://www.google.com/google.xsd">
- <MessageElements xmlns:tns="http://www.www.google.com/google.xsd" xmlns="">
<MessageStatus>SUCCESS</MessageStatus>
- <MessageAddressing>
<from>gmail</from>
<to>Gmail SOAPTester</to>
<messageId>1234</messageId>
<action>SearchResource</action>
<transactionId>OR</transactionId>
<ServiceName>SearchResource</ServiceName>
<ServiceVersion>1.1</ServiceVersion>
</MessageAddressing>
</MessageElements>
-<SearchResponseDetails xmlns:tns="http://www.www.google.com/google.xsd" xmlns="">
- <SubNetwork>
- <Pipe xsi:type="icl:Trail" xmlns:icl="http://www.www.google.com/google.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<CommonName>318-223-4675</CommonName>
<objectID>91535716980514105329</objectID>
<SourceSystem>MARS</SourceSystem>
- *<ResourceDescribedBy> <value>RDSSLA</value>* *<ResourceSpecCharacteristic> <name>*CentralOfficeCode</name> </ResourceSpecCharacteristic>
</ResourceDescribedBy>
- <ResourceRelationship>
- <Resource xsi:type="icl:Trail">
- <ResourceDescribedBy> <value>001</value> - <ResourceSpecCharacteristic> <name>AssignLocationExternalFormat</name> </ResourceSpecCharacteristic>
</ResourceDescribedBy>
- <ResourceDescribedBy> <value>001</value> - <ResourceSpecCharacteristic> <name>PairVerticalExternalFormat</name> </ResourceSpecCharacteristic>
</ResourceDescribedBy>
- <ResourceDescribedBy> <value>001</value> - <ResourceSpecCharacteristic> <name>PairVerticalInternalFormat</name> </ResourceSpecCharacteristic>
</ResourceDescribedBy>
- <ResourceDescribedBy> <value>+</value> - <ResourceSpecCharacteristic> <name>PairVerticalSign</name> </ResourceSpecCharacteristic>
</ResourceDescribedBy>
- <ResourceDescribedBy> <value>RDSSLA</value> - <ResourceSpecCharacteristic> <name>CentralOfficeCode</name> </ResourceSpecCharacteristic>
</ResourceDescribedBy>
- <ResourceDescribedBy> <value>B</value>- <ResourceSpecCharacteristic> <name>EntityType</name> </ResourceSpecCharacteristic>
</ResourceDescribedBy>
- <ResourceType>FeederCircuit</ResourceType>
- <LogicalPhysicalResource>
- <PhysicalResource xsi:type="icl:PhysicalConnector">
<usageState>S</usageState>
- <ResourceDescribedBy> <value>25.392</value> - <ResourceSpecCharacteristic> <name>CableLength</name> </ResourceSpecCharacteristic>
</ResourceDescribedBy>
</PhysicalResource>
</LogicalPhysicalResource>
- <TerminationPoint xsi:type="icl:TrailTerminationPoint">
<CommonName>1000/34A</CommonName>
- </Resource>
</ResourceRelationship>
<lrStatus>W</lrStatus>
</Pipe>
</SubNetwork>
</SearchResponseDetails>you don't appear to have posted valid XML, so I can't reproduce using your example, but you will need to look at something like this:
select xtab.common_name
from your_table yt
,xmltable('/SearchResourceResponse'
passing xmltype(yt.response_xml)
columns
common_name varchar2(20) path 'SearchResponseDetails/CommonName'
) xtab
; -
How can I take data from specific column in a table using VBA
Hi
I do not know how to take the values from the last column in a table, I know how to look over each row but I cannot take the last column values for each row I pass by.
This is the table for example:
| Date | Account1 | Account2 | Description | Amount |
|12/03/2008 | 123-32 | 325-78 | None | $50 |
|12/03/2008 | 123-32 | 325-78 | None | $20 |
|12/03/2008 | 123-32 | 325-78 | None | $10 |
|12/03/2008 | 123-32 | 325-78 | None | $40 |
I am using this code as a reference that User FiveNines gave me to loop through all the rows in the table, so What I need is to take the values of the column Amount for each row I go through.
Private Sub RSWVBAPage_afterPlay()
Dim tbl As HTMLTable
Dim tblRow As HTMLTableRow
Dim tblCell As HTMLTableCell
Dim strValue As String
Dim rButton As HTMLInputElement
' ******** This would be your global variable. I put this so that values are seperated by a semicolin you can use what ever format works for you.
strValue = "03/22/2008;03/22/2008;*************1977;*************1977;$25.25;Jan, Jun, Jul, Dec"
' Strip out the ; for inner text comparison
strValue = Replace(strValue, ";", "")
' This will get the table but can be modifoed to be more specific
Set tbl = RSWApp.om.FindElement(, "TABLE")
' This loops through all the rows in the table until a match to the strValue is found
For Each tblRow In tbl.rows
If tblRow.innerText = strValue Then
RSWApp.WriteToLog "Tables", "Passed", "Row is Present", True
End If
Next
End SubHi Lippix.
This is code that will loop the rows then loop the cells and check for "$" which will return dollar values. I also attached a script.
Private Sub RSWVBAPage_afterPlay()
Dim tbl As HTMLTable
Dim tblRow As HTMLTableRow
Dim tblCell As HTMLTableCell
Dim strValue As String
' This will get the table but can be modifoed to be more specific
Set tbl = RSWApp.om.FindElement(, "TABLE")
' This loops through all the rows in the table until a match to the strValue is found
For Each tblRow In tbl.rows
For Each tblCell In tblRow.cells
' cycle through the cells and only report those with a dollar value by searching for $
If InStr(1, tblCell.innerText, "$") <> 0 Then
RSWApp.WriteToLog tblCell.innerText
End If
Next
Next
End Sub
Maybe you are looking for
-
HI All , I have table with records in DB which i need to modify from internal table via job. if we start from scratch (fill the db table in the first time ) all the records should be valid (column valid mark as abap_true) in the next run if new data
-
I'm working in Indesign CS5 v7.0.3. I'm working in multi page document, placing .jpg files into page layouts. I'm coming across certain .jpg files that won't place into the file. They are jpg files. When I place them into the layout, everything seems
-
Hi, Installed 10g RAC SE on Enterprise Linux 64. We have two ASM instances with 2 disk groups DATA and FRA. Database Control reports for disk group DATA (that consists of 3 RAID 5 vol.) that Average Response Time is 54-58 ms. Read Response Time is ar
-
Hi All Gurus, Urgently need your advise on the above mentioned error. While performing LIV, an error message stating "FCODE FO0 not yet supported" occurred for one of the P/O lines. The rest of the P/O lines are ok and can proceed with LIV execept th
-
Help need with Update statement -Two date columns
I have two tables rate_change and load ,i want to update the next_rate_change_date and next_rate_change_date columns ,load table has rate_change_effe_term column has value (12) that represents months for each loan, i want to take that rate_change_eff