Currency Format in Spry Sort Table
Any ideas on how to format all numbers in a spry sort table
into US currency? Currently on my site, Spry is not displaying the
".00" that is included in my XML file.
My
Spry Sort Table Example
Hi,
yes, I`ve had the same behavior. As a workaround, you have to change the format of the cells.
Go into the properties of the cells:
-> Right mouse click
-> format cells
-> category
-> number
-> change something, e.g. the number of decimal places to show
Then you will have to map the component again to the same cells under "Display Data".
And now, the currency information will be shown correctly.
Regards
Victor
Similar Messages
-
Date Format for Spry data set sort
Hi
Just feeling my way through the use of Spry Datasets for the
first time and have a couple of issues hopefully someone with more
knowledge of it than me know the answer to.
I had an issue with my Spry Dataset initially that it would
not work in ie7 but was OK in FF3.
After some mucking round I realised the error I was getting -
albeit obscure in IE was telling me it was a date format issue in
my data set.
The db data I am playing with here is fairly simple: I have a
couple of text fields, an integer field that contains the
unixtimestamp of the entry (its a simple diary application) and a
formal date field that holds the same date in mysql's date format.
When I display the date in the dataset I do so in the format
"23rd May 2009" (as an example)- I code this using phps date
function in my xml query.
I had set this field to date format in the Spry dataset
conditions but IE seems to barf on this- I can change it to
textstring but then my sort is done on Alpha/Numeric sort of the
first character in the date field which is rubbish.
I only display the date in this format and one of the other
text fields in my dataset- the unixdate is for programmatic
purposes not general display so I cannot sort on this field if its
invisible. How can I acheive a date based sort with this set up- or
what date formats does Spry code prefer for date sorts? (My client
wants the date to show as I have explained). Many thanks. I have a
second query which I will post separately!
Kenny"Tanushiheadbash" <[email protected]> wrote
in message
news:gqa70o$iat$[email protected]..
> I think I follow what you are saying and in fact I think
its what I
> already
> have. I have set the sort order to use the unixtime when
the page
> initially
> loads and thats OK.
I am sorry, but you aren't following my explanation. English
isn't my mother
tongue, and I am not able to explain it any better.
> However what I need to be able to do is to have the
AJAX/Javascript sort
> (done in this case with Spry- ) to sort on the date when
the column header
> is
> clicked. The problem I have is the date format in this
visible column is
> in
> DDth Month YYYY format and Spry does not recocnise this
as a date format-
> it
> wants it as a string ( or ie gives an error). Maybe its
not possible what
> I am
> trying to do- just thought there might be a clever way
to implement this.
You can take a look at this page:
http://visual.unipv.it/tmt_calendar/admin/reports/events.cfm
Even if all the dates here are incidentally using the
yyyy-mm-dd format, the
dataset display the date from the "start_date_formatted"
field:
<td><a href="javascript:"
onclick="showUpdate('{event_id}')">{start_date_formatted}</a></td>
But uses another field to sort the table:
<th scope="col" spry:sort="start_date">Start
date</th>
You can have the same date, using two different formats,
inside two,
separated dataset fields. One is used for display, the other
one is used for
sort.
You may try to read again my previous explanations, look at
the code in the
page above and see if you get the idea.
Massimo Foti, web-programmer for hire
Tools for ColdFusion, JavaScript and Dreamweaver:
http://www.massimocorner.com -
Currency format in Spreadsheet tables uses period's instead of comma's
Xcelsius 2008 SP3. I have inserted a spreadsheet table into my model, the columns are formatted in a currency format with $ and the thousand's separator that is displaying in the table is a period instead of a comma. Has anybody else seen this problem?
Hi,
yes, I`ve had the same behavior. As a workaround, you have to change the format of the cells.
Go into the properties of the cells:
-> Right mouse click
-> format cells
-> category
-> number
-> change something, e.g. the number of decimal places to show
Then you will have to map the component again to the same cells under "Display Data".
And now, the currency information will be shown correctly.
Regards
Victor -
WD Table - Currency Format Pattern
Hi,
is it possible to set the format pattern of a field with the wd built in type decimal to something like 'xxxxx.xx' (fragtion 2 in all cases)?
The type itself is defined in the abap dictionary as currency, but in a wd table the field is diplayed wrong.
Samples:
Value 10.15 -> WD 10.15
Value 10.10 -> WD 10.1
Value 10.00 -> WD 10
I want:
Value 10.15 -> WD 10.15
Value 10.10 -> WD 10.10
Value 10.00 -> WD 10.00
Regard
SebastianSebastian-
First change the data type of your attribute from number to string. Then create this method in the others section of your controller or in a utility class:
private String formatCurrency(double amount)
NumberFormat numberFormatter = NumberFormat.getCurrencyInstance();
DecimalFormat decimalFormatter = (DecimalFormat)numberFormatter;
decimalFormatter.setMinimumFractionDigits(2);
decimalFormatter.setMaximumFractionDigits(2);
decimalFormatter.setDecimalSeparatorAlwaysShown(true);
String pattern = "$###,###.00";
decimalFormatter.applyPattern(pattern);
return decimalFormatter.format(amount);
Use this to format any number to a currency. In this example I have converted to USD format - you could change this to suit your requirement.
For example:
100 ---> $100.00
1000.5 ---> $1,000.50
1234567890 --->$1,234,567,890.00
Cheers-
Atul -
Sort Indicators on Spry Data Table
Hello,
I was wondering if there is any way to add "indicators" to a
Spry data table to show the sort direction? If not, maybe a request
to add them or is there a .js way to add them easily.
Thanks in advance,
MattOK, here is my solution to my table sort indicators question
after being pointed in the right direction by Donald. I hope this
will help someone out and save time.
Thanks, Matt
First:
/* This function takes onclick sorted column and adds sort
indicator based on Asc/Desc. Need to do alittle debugging so I left
some alerts in to make sure Asc/Desc was working */
function sortInd(idvar) {
/*Used these hidden divs because passed values seemed to be
opposite and not updating */
var sortOrd =
document.getElementById("curSortOrd").innerHTML;
var sortCol =
document.getElementById("curSortCol").innerHTML;
/* alert(sortOrd + " " + sortCol); */
charToRemove = '"';
regExp = new RegExp("["+charToRemove+"]","g");
var newSortOrd = sortOrd.replace(regExp,"");
/* alert(newSortOrd); */
var imageasc = new Image();
imageasc.src = "../../html/mattm55/images/asc.gif"
imgasc = "<img src=" + imageasc.src + ">";
var imagedes = new Image();
imagedes.src = "../../html/mattm55/images/des.gif"
imgdes = "<img src=" + imagedes.src + ">";
if ( newSortOrd == "ascending" ) {
document.getElementById(idvar).innerHTML = idvar + " " +
imgasc;
if ( newSortOrd == "descending" ) {
document.getElementById(idvar).innerHTML = idvar + " " +
imgdes;
Second part:
<th onclick="dsUsers.sort('name','toggle');
sortInd('Name');"><div
id="Name">Name</div></th>
<th
onclick="dsUsers.sort('email','toggle');sortInd('Email');"><div
id="Email">Email</div></th>
..... and so on for table.....
Last part: Seemed to need this as when passing "asc/des" to
js it seemed to not update or be reveresed so I got around that by
some hidden divs.
<th><div id="curSortCol" style="display:
none;">"{dspsmUsers::ds_SortColumn}"</div>
<div id="curSortOrd" style="display:
none;">"{dspsmUsers::ds_SortOrder}"</div></th> -
Spry for sorting tables tutorial
I have a static table with 5 columns 10 rows and would like the user to be able to click anyone of the columns to get accending order or deccending order, to see how they rank as per column headings. I have looked at many javascript scripts, but did not work well or not what I wanted, so I thought why not spry. I looked at the spry samples on adobe site but there was no tutorials to go along with the sort table sample. If any one has a link or scripts for doing this I would be much appricated, Thx
Hi,
You are only seeing 15 rows as your table is not correct after entry 15. From row 16 onwards you need <td></td> for each column even if you have no entries to ensure the Spry HTML dataset picks up all the rows.
Try the following on your site in same directory as your PHP page to see how it works on a simple page. Change references to folders for SpryData and SpryHTMLDataSet as appropriate
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:spry="http://ns.adobe.com/spry">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Sortable Table</title>
<script src="SpryAssets/SpryData.js" type="text/javascript"></script>
<script src="SpryAssets/SpryHTMLDataSet.js" type="text/javascript"></script>
<script type="text/javascript">
<!--
var ds1 = new Spry.Data.HTMLDataSet("teamstats.php", "myTable");
//-->
</script>
</head>
<body>
<div spry:region="ds1">
<table>
<tr>
<th spry:sort="Team_Name">Team_Name</th>
<th spry:sort="Points">Points</th>
<th spry:sort="Wins">Wins</th>
<th spry:sort="Poles">Poles</th>
<th spry:sort="Top_5's">Top_5's</th>
<th spry:sort="Top_10's">Top_10's</th>
</tr>
<tr spry:repeat="ds1">
<td>{Team_Name}</td>
<td>{Points}</td>
<td>{Wins}</td>
<td>{Poles}</td>
<td>{ds1::Top_5's}</td>
<td>{ds1::Top_10's}</td>
</tr>
</table>
</div>
</body>
</html>
Phil -
Help with a Spry Data Set currency format
Hi there,
Wondering if anyone out there can lend me a hand please. Our
programmer is away on holidays and i have been dumped a website to
construct and i am lost as to how to format a spry xml data feed.
I have successfully imported the XML
http://www.fortitudedesign.com/xml_test/Helpgetthistowork.html
from a simple XML -
<?xml version="1.0" encoding="iso-8859-1"?>
<ig:getStockResponse xmlns:ig="
http://xml.iguana2.com/2001/08/dtd">
<stock>
<liveness>DELAYED</liveness>
<code>TLS</code>
<exchange>ASX</exchange>
<stockDesc>
<name>Telstra Corporation Limited FPO</name>
<desc>TELSTRA FPO</desc>
<descAbbrev>ORDINARY</descAbbrev>
<descShort>FPO</descShort>
<isin>AU000000TLS</isin>
<issuerCode>TLS</issuerCode>
<sectorCode></sectorCode>
<totalIssue>12,443,074,357</totalIssue>
<firstActive>30-Oct-1997</firstActive>
<lastActive></lastActive>
<firstQuoted>27-Oct-1998</firstQuoted>
<suspensionStart></suspensionStart>
<quoteBases>
<quoteBasis>SH</quoteBasis>
<quoteBasis>XD</quoteBasis>
</quoteBases>
</stockDesc>
<stockQuote>
<buy>415</buy>
<sell>416</sell>
<first>423</first>
<high>423</high>
<low>414</low>
<last>415</last>
<oap>417</oap>
<oapExDiv>417</oapExDiv>
<prevClose>417</prevClose>
<mktPrice>415</mktPrice>
<change>-2</change>
<pctChange>-0.5%</pctChange>
<volume>24,641,689</volume>
<turnover>$103,378,674.95</turnover>
<totalTrades>2667</totalTrades>
<lastQuoted>17-Sep-2008 14:37:42</lastQuoted>
<lastTraded>17-Sep-2008 14:37:33</lastTraded>
<lastChanged>17-Sep-2008 14:37:42</lastChanged>
</stockQuote>
</stock>
</ig:getStockResponse>
Now what i need help in is formatting the prices so that they
appear as dollar format please. ( the XML reads
<buy>415</buy> so i would need this to appear as 4.15 )
Can anyone out there help point me in the right direction for
this pretty please.
muchly appreciated
virode,Declare the cursor using
cursor jerome_cur is select to_date(period_name, 'month yyyy') period_name from idcc_periods where period_name = 'february 2005';
Fetch into a date datatype and use date functions
DECLARE
cursor jerome_cur is select to_date(period_name, 'month yyyy') period_name from idcc_periods where period_name = 'february 2005'
v_period DATE;
v_d1 DATE;
BEGIN
open jerome_cur ;
fetch jerome_cur INTO v_period;
close jerome_cur ;
v_d1 := add_months(v_period,1);
END;
null -
Spry Detail Repeat Region on my page and I have an XML
database. In the database are webinars, complete with a "Date" tag.
While the data does sort, it doesn't seem to recognize them
as dates. For instance, the date 01/01/2007 would come before
01/02/2008, while it should be sorting it with the most recent
first.
As a workaround, I've input the dates in the XML table as
they should be ordered, but it's not optimal.
The dates are entered in as:
MM/DD/YYYY
I've copied the relevant parts of the code below and would
appreciate some help!
Thank you,
Dan
<script src="../../../SpryAssets/xpath.js"
type="text/javascript"></script>
<script src="../../../SpryAssets/SpryData.js"
type="text/javascript"></script>
<script src="../../../SpryAssets/SpryURLUtils.js"
type="text/javascript"></script>
<script src="../../../SpryAssets/SpryPagedView.js"
type="text/javascript"></script>
<script type="text/javascript">
//Define the Data Set
var ds1 = new Spry.Data.XMLDataSet("webinars.xml",
"news/article/Date",{sortOnLoad:"Date",sortOrderOnLoad:"ascending",distinctOnLoad:true});
ds1.setColumnType("Date", "date");
var pageOffset = 0;
var pageSize = 29;
var pageStop = pageOffset + pageSize;
</script>
<script type="text/javascript">
//Get the URL parameter for the row number
var ds1 = new Spry.Data.XMLDataSet("webinars.xml",
"news/article", { filterFunc: MyPagingFunc });
// webinarimage is not a valid date so you should not be
// setting the column type for it.
// ds1.setColumnType("webinarimage", "date");
var params = Spry.Utils.getLocationParamsAsObject();
if (params.row)
ds1.addObserver({ onPostLoad: function(ds, type) {
ds1.setCurrentRow(params.row); }
function MyPagingFunc(ds, row, rowNumber)
if (rowNumber < pageOffset || rowNumber >= pageStop)
return null;
return row;
function UpdatePage(offset)
var numRows = ds1.getUnfilteredData().length;
if (offset > (numRows - pageSize))
offset = numRows - pageSize;
if (offset < 0)
offset = 0;
pageOffset = offset;
pageStop = offset + pageSize;
// Re-apply our non-destructive filter on dsStates1:
ds1.filter(MyPagingFunc);
// Tell our 2nd region to update because we've adjusted
// some of the variables it uses in its spry:if expressions.
Spry.Data.updateRegion("list2");
// Change the XPath for the 3rd data set so that the 3rd
// region updates. Remember, position() starts at one and
not
// zero, so we have to add one to our pageOffset and
pageStop.
dsStates3.setXPath("/states/state[position() >=" +
(pageOffset+1) + " and position() < " + (pageStop+1) + "]");
</script>
<div id="Specials_Detail_DIV" spry:detailregion="ds1"
class="SpryHiddenRegion">
<table id="Specials_Detail_Table">
<tr>
<td width="200" valign="top"><a
href="Webinars_detail.asp?row={ds_RowID}">{webinarimage}</a></td>
<td width="238" valign="top" class="standardtext">
<p><span
class="subheading">{Title}</span><br>
<br>
{Speaker}<br></p>
<a
href="Webinars_detail.asp?row={ds_RowID}">{access}</a>
<br>
</td>
</tr>
</table>
</div>
<div id="Specials_DIV" width="500" spry:region="ds1"
class="SpryHiddenRegion" style="overflow:auto; height:300px;
width:500px" >
<table id="Specials_Table">
<tr>
<th width="92" height="19" class="standardtext"
scope="col" spry:sort="Title" ><a href="javascript:
void(0)">Title</a></th>
<th scope="col" spry:sort="topic" width="112"
class="standardtext" ><a href="javascript:
void(0)">Topic</a></th>
<th scope="col" spry:sort="Date" width="92"
class="standardtext" ><a href="javascript: void(0)">Air
Date</a></th>
</tr>
<!--User clicks to reset the current row in the data
set-->
<tr spry:repeat="ds1" spry:setrow="ds1" spry:odd="eg-bar"
spry:even="eg-bar2">
<td valign="top" class="standardtext" ><a
href="javascript: void(0)">{Title}</a></td>
<td valign="top" class="standardtext"
>{topic}</td>
<td valign="top" class="standardtext"
>{Date}</td>
</tr>
</table>
</div>
[code]
<article id="23ASD38675">
<Title><![CDATA[Title]]></Title>
<Speaker><![CDATA[Speakers: ]]></Speaker>
<Genesys><![CDATA[<a href="../link"><img
src="../../../images/icn_webinar_39.gif" width="39" height="40"
border="0"><br>View Replay</a>]]></Genesys>
<Date>02/27/2008</Date>
<MDate>February 27, 2008</MDate>
<Series>Family Continuity and Governance
Series</Series>
<webinarimage><![CDATA[<img
src="../../../private/members/resource_center/images/022708-preview-imageB.gif"
width="200" height="150" border="0">]]></webinarimage>
</article>
[/code]Date sorting with the format you use works just fine. I just
tested it out. So I took a closer look at your code, and I see
this:
var ds1 = new Spry.Data.XMLDataSet("webinars.xml",
"news/article/Date",{sortOnLoad:"Date",sortOrderOnLoad:"ascending",distinctOnLoad:true});
ds1.setColumnType("Date", "date");
var ds1 = new Spry.Data.XMLDataSet("webinars.xml",
"news/article", { filterFunc: MyPagingFunc });
You are basically creating a ds1, setting the column type,
and then blowing away the original ds1 with a new one you create.
Which means your column type for Date is reset back to "string".
Delete ds1 creation code you don't want, and then place the
setColumnType() call after it.
It will then work as it should.
--== Kin ==-- -
I have created a SPRY sortable table in Dreamweaver CS4. Two columns are formatted as UK dates dd/mm/yyyy. They are identified as dates in the SPRY table.
When sorting these date columns SPRY is reading them as US date format which means the sorting is, while not quite random, pretty meaningless. I have checked this by reformatting and displaying the date as US date format mm/dd/yyyy and then SPRY sorts them as expected.
Would appreciate some help with how I retain the UK date appearance and achieve a sort on that basis. Is there a localisation file somewhere in the SPRY framework that allows date formats to be identified?
If not, can anyone advise how to resolve this?
Thanks in advance for any help.The root of the issue is that using JavaScript to a string into a date easily lead to inconsistent, unexpected results.
The way I solved this in the past is to have two columns inside my Spry datasets. One stores the date in yyyy-mm-dd format (ISO 8901, the format typically used by databases), another one stores a nicely formatted date (whatever format the language dictated).
Then I always display the nicely formatted column, but I sort it only the yyyy-mm-dd one.
As a bonus, yyyy-mm-dd sorts okay just as a string, so I have no need to assign a different datatype to it. -
Sort Table command no longer works in Numbers 3.2.2
I am running OS X 10.9.4 and recently updated Numbers to 3.2.2 on my Macbook Pro. Since then I have been unable to sort a table which uses cells referenced from other tables. I have re-created a very simple set of tables to illustrate the problem. Table 1 and 1-1 below are the basic tables created to hold the data. The DATE column is formatted as Date with no Time format.
The Summary Table selects the relevent data from each DATE field in the above 2 tables. I reference these fields by typing in "=" and then clicking on the appropriate field. Shown in Fig. 2.
FIGURE 2.
Everything looks fine in the table until I want to SORT the Summary Table by DATE field which I do by clicking on the down arrow at the top of the DATE column and selecting SORT ASCENDING - see Fig. 3 below.
FIGURE 3.
When I do this, the result is as shown in Fig. 4.
FIGURE 4.
When I click on the exclamation mark the text is as shown in Fig. 5.
Figure 5.
I used to be able to do this Sort really easily before updating to the latest version of Numbers. I have tried creating another worksheet and setting up completely fresh tables, I have created the same tables on my iMac running Numbers 3.2 and I keep getting the same result. Each time I run the Sort command I get varying results of more or less exclamation marks interspersed with blank cells. I may be being completely thick here but I would really appreciate someone helping me out as this is driving me NUTS!! I have searched on as many Forums as I could find and have been unable to find anyone with a similar problem. Any help here would be much appreciated.Thanks everyone for your replies. I have copied in the screenshots of the tables again by dragging & dropping this time so hopefully you can see them now.
This shows the tables I have created.
This shows the formula in the cell.
The sort command on the column I want to sort on.
The result after the sort command...
And the error message.
Anyway, if you can see all that now, could someone explain what is actually happening in the sort process as I don't really understand why the results appear as they do. I have now taken out all blank rows and columns of data in Table 1 and Table 1-1 and now when I run the sort I get the following result:-
What I want to happen is that the Summary Table is arranged in Date order. - surely that should be easy enough?? This used to be such a simple process before the update!!
Could someone explain to me what is actually happening here and whether the safe sort suggestion made will work in this instance? I am off to experiment now and have another look at the links given as I still don't really understand what is happening. Thanks again for the suggestions and help - much appreciated! -
How to use currency format set
Hi All,
I have to use currency format set to mask the amount values to their respective currencies ,
i reviewed the Oracle XML Publisher Administration and Developer's Guide and followed all the steps mentioned there ,i m also quoting the same over here
To define a Currency Format Set:
1. Navigate to the Currencies page under the Administration tab. Select Create
Currency Format Set.
2. Enter a Name and a Code for the set. The Code is a unique identifier and cannot be
changed later. Select Apply.
3. The Currency Formats page will display for your newly created set.
To add currency formats to the Currency Format Set:
1. Select Add Currency Format to add a format to your set.
2. Select a Currency Name from the list.
Note: This list is generated from the FND currency table and
should include all ISO currencies. Additional currencies can be
added from the System Administrator responsibility.
3. Enter the Format Mask you wish to use for this currency and select Apply.
The Format Mask must be in the Oracle number format. The Oracle number format
uses the components "9", "0", "D", and "G" to compose the format, for example:
9G999D00 where
9 represents a displayed number only if present in data
G represents the group separator
D represents the decimal separator
0 represents an explicitly displayed number regardless of incoming data
See Using the Oracle Format Mask, Oracle XML Publisher Report Designer's Guide for
more information about these format mask components.
After a currency format has been created, you can update or delete it from the Currency
Formats page.
i followed all the above step ,i need to use germany currency ,i have also used the format-currency command in my RTF template,but still its not working ,i used 9G999D00 for masking .
Any hint would be very helpful ,thanks in advance .Please let me know if my question is not clear
Thanks
Prataphi all
Thanks ,this is resolved ,i just missed clearing cache ,after clearing the cache its working .
thanks
Pratap -
BInput Data mismatch with currency format
i am working with fs10 transaction
I want to sum up the balance amount with respect to all
companycode and post SUM to the bseg table using Batch input.
i defined sum variable as below and coded.
data : sum like glt0-hsl01. (currency format)
After all SUM operation.
I have done like this to diplay SUM in report first(to check SUM output)
SUM = SUM * 100.
write : sum decimals 0.
>>>>Now in report output i get value '17,222-'
if u see in fs10 screen we are getting same value.
but when i try to post in Batch input.
i have done like this below.(before posting i have checked
for negative value )
if sum < 0.
sum = sum *100.
compute sum = abs( sum )
now...
perform open_group................
perform bdc_field using 'bseg-wrbtr' (currency format)
sum.
when i execute this BI i get error in Amount(Sum)value
display screen. (saying something differs in length )
how to match the field.
ambichan.Hello,
Go to the Domain of the Field BSEG-WRBTR, which is WERT7. There you see the Output length as 16. So you decalre a local variable in BDC which is of CHAR16 in length to hold the value of WRBTR.
Hope this helps you.
Regds, Murugesh AS -
Print PO Price in Currency Format.
Hi Everybody,
I want Print PO Price in currency format in alv report how do i get all countries currency values.
anybody tell me.
thanks,
s.muthuHi Muthu
We can do it using the fields in populating the field catalog. Explore the existing fields of the same.
Another way to handle is declare the amt field as char and write the amt to this field using option CURRENCY. The the problem with this method arrives when you want to do totals and stuff.
Below code can help you understand in writing a field to another with currency option.
data: l_curr(20) type c,
l_amd type kbetr value '3333.23'.
write l_amd to l_curr currency 'USD'.
write:/ l_curr.
write l_amd to l_curr currency 'JPY'.
write:/ l_curr.
To know the currency of a country you can use table T005.
Kind Regards
Eswar -
Problem Adding Calculations to Currency Formated Cells
I have a cell that is formated in currency (USD in this case, i.e. $1,000) and I want to add a calculation to that cell. I double click on the cell with the $1,000, put the cursor at the begining of the cell (before the $) and push "=". A forumula rounded box with a X and √ appears. I type in "+500". Now what shows is "=$1,000+500". I push return and get a syntax error! I now have to go back and delete the comma and the $. Yuck.
It's even worse, if you have a cell with $10 in it. Then the above process thinks it referencing row 10!
Excel handles this issue seamlessly.
Any ideas? Is this a bug?Numbers is not MS Excel, and MS Excel is not Numbers. Each application has features that are not supported by the other.
Not a bug, although it does appear to be a not-well-thought-out feature.
The issue is that once the $ is in the entry box, the whole "$1,000" is perceived (within that cell) as a text string. Any formula using one of the arithmetic operators will choke on text.
The second use of the $ sign is as the absolute reference operator. If it preceded a number equal to or smaller than the largest row number on the table, the combination will be interpreted in a formula as an absolute reference to that row, or to the cell in that row in the same column as the formula; whichever better fits the reference in that formula.
Either way, you're not going to get the result you want, and you are likely to get a syntax error message.
OTOH, in a cell where the fixed number has been entered as the result of an equation (eg. =1000), formatting the cell as currency will change the displayed value, but not the value as it appears in the entry box. Neither the $ sign nor the thousands separator (,) will appear, you will be able to append "+500" (without the quotes) to the end of the formula, and you will get the expected result ( $1,500) displayed in the cell. And, as the formula itself contains NO $, the issue of 10 being recognized as a row reference will not arise.
For my own use, I'd simply avoid the currency format except for summary cells. A column containing a list of numerical values (with two places after the decimal) is easily recognized as a list of currency amounts, even without to $ sign. The same list with the sign applied to every value is cluttered, and more difficult to read.
Regards,
Barry
PS: If you want this feature changed in a future edition of Numbers, your best route is to Provide Numbers Feedback, using the menu item of that name in the Application menu (in Numbers, the "Numbers" menu). The link will also take you to the feedback page. -
Spry Data Table - XML file refresh
I just started using dynamic spry data tables in Dreamweaver
CS3 on an .htm page. The table data is calling an xml file that
resides in the same folder as the .htm file on the web server. I
cannot get the data in the table to automatically update/refresh
when the xml file has been updated on the server. I added the
following code:
useCache:false,loadInterval:5000
Here is the code I have on the .htm page:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml"
xmlns:spry="
http://ns.adobe.com/spry">
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
<script src="../SpryAssets/xpath.js"
type="text/javascript"></script>
<script
src="../SpryAssets/SpryData.js"
type="text/javascript"></script>
<script
type="text/javascript">
<!--
var dstest = new
Spry.Data.XMLDataSet("hydroplants.xml",
"dataroot/HYDROPLANTS/HYDROPLANT",{sortOnLoad:"HYDROPLANTID",sortOrde rOnLoad:"ascending",useCache:false,loadInterval:5000});
//-->
</script>
</head>
<body>
<div spry:region="dstest">
<table>
<tr>
<th
spry:sort="HYDROPLANTID">HYDROPLANTID</th>
<th>Headwater</th>
<th>RESOURCE2</th>
<th>RESOURCE3</th>
<th>RESOURCE4</th>
</tr>
<tr spry:repeat="dstest"
spry:setrow="dstest">
<td>{HYDROPLANTID}</td>
<td>{Headwater}</td>
<td>{RESOURCE2}</td>
<td>{RESOURCE3}</td>
<td>{RESOURCE4}</td>
</tr>
</table>
</div>
</body>
</html>
Any help would be appreciated.
Thanks,
ChrisYou've closed the context, before evening calling getXML
13 DBMS_XMLGEN.closeContext(Ctx);
14 xml := DBMS_XMLGEN.getXML(Ctx);
Maybe you are looking for
-
Hi there, I have recently lost my iPod in downtown Clearwater Florida. I used Find my iPhone and it kicked in temporarily as the person walked by a Starbucks that was at a mall I've never been to. I locked the device and sent it a message but didn'
-
Unable to load into XMLTYPE column: enumeration value considered as boolean
HI Gentlemen, I have a problem with my XMLTYPE load procedure. The schemas have been registered: SQL> select any_path from resource_view where any_path like '%GKSADMIN/ICD%'; ANY_PATH
-
Control frequency and number of cycles
I am trying to use a stepper motor and a motion controller to control a push rod. The push rod will fatigue sutures that are attached to a valve. My question is if there are any sample codes in labview that will help me control the frequency and the
-
BOOT STRAP ERROR!!!
I have been circling all day about this problem, please help !!! Thanks heaps, hamster ======================================================= DefaultRealmExtender:getUser(system): user=null java.lang.Exception: Problem with X509 certificate: fingerp
-
Connecting non-Oracle databases
Hi... I have several databases (Sql Server, DB2 and AS400), and I need to connect them simultaneously. I see in documentation that I can connect Sql Server and DB2 via ODBC, but how can I connect my Discoverer with AS400? I need access simultaneous t