Commas in a number field
I have developed a web site for a real estate agency for which I have built a custom web app. The web app has a number fields that display information about individual properties in both list and detail formats. Some of the fields I created in the web app are "number" fields. I used number fields for price and square feet because I also have a search form linked to the web app. I needed to have a min and max search capability for these two fields, which the "number" field provides automatically. However, being a "number" field, it does not allow for the use of commas in the field, which is a client requirement. If a comma is used in the web app field, the display is null. For example, the client needs the price to be displayed like this (1,300,000) vs (1300000). Here is a link to the test site: Anne Rogers Realty Group, Inc - Featured Listings. Note the price and square feet fields on both the list an detail views for the properties. Is there any way around this problem? Thanks in advance
Well you can do anything from developer's perspective but asking client to put same value twice can make you look unprofessional.
Here's what I did for many house listing websites.
1. Client puts price in pure number format ( e.g. 500000 )
2. wrap the price value with a tag in List/Detail template e.g. <span class="house-price">{tag_price}</span>
3. then at the end of the page put a jQuery snippet which would globally format the prices ( e.g. $('.house-price').formatCurrency(); )
Here's one I use
https://code.google.com/p/jquery-formatcurrency/
even if you're not familiar with jQuery it's pretty easy to follow
No more complain from client
Similar Messages
-
How do I get the iPad to stop inserting commas in a number entered in a field on safari?
I am filling out a form on Safari. It asks for my bank routing number, which I filled in. Moving on to the next field, I look up to find the iPad has entered commas in this number. It will not allow me to remove them. I turned off Autofill, etc. nothing seems to work.
I think that this thread addresses your question: https://discussions.apple.com/thread/3408352?start=0&tstart=0
Unfortunately, it doesn't look like there's a fix for the problem yet, though.. -
Strip comma from a numeric field
Hi all,
Will you please help me providing sql statement to strip commas from a number/numeric field in the BI repository logical column? I do not want to use cast function to convert to character because we need to keep that field as numeric.
I could only find string expressions to remove commas. I appreciate your help.
Thanks,user10974817 wrote:
Hi all,
Will you please help me providing sql statement to strip commas from a number/numeric field in the BI repository logical column? I do not want to use cast function to convert to character because we need to keep that field as numeric.
I could only find string expressions to remove commas. I appreciate your help.
Thanks,Commas in a Numeric field, I could not understand it. It must be a VARCHAR column with only Numeric data, is it?
you can use something like
with data(col) as
select '10,000,000' from dual
select replace(col, ',') rep, translate(col, '1234567890,', '1234567890') tr
from data;Maybe, if you can post some example table and sample data, we might be able to help better. -
Hello,
I would like to have a number field to be auto increment. Ho can I do that in Oracle must I use some code for it or can I make the field auto increment by itself.
Thanksuser3311314 wrote:
Hello,
I would like to have a number field to be auto increment. Ho can I do that in Oracle must I use some code for it or can I make the field auto increment by itself.
ThanksIt's a long standing gripe of mine. You must use code, and the appropriate solution is a sequence and a trigger, eg
SASH_CLIENT @ DB10G >create table t(
2 id number not null primary key
3 , c1 char(100));
Table created.
SASH_CLIENT @ DB10G >
SASH_CLIENT @ DB10G >create sequence seq_t;
Sequence created
SASH_CLIENT @ DB10G >
SASH_CLIENT @ DB10G >create or replace trigger bir_t
2 before insert on t
3 for each row
4 begin
5 select seq_t.nextval into :new.id from dual;
6 end;
7 /
Trigger created.
SASH_CLIENT @ DB10G >insert into t(c1) values ('row 1');
1 row created.
SASH_CLIENT @ DB10G >commit;
Commit complete.
SASH_CLIENT @ DB10G >select * from t;
ID C1
1 row 1I'd much prefer
create table t (
id number primary key default seq_t.nextval
, c1 char(100)); -
Reg: a tilde in NUMBER field-
Hi Experts,
I've a doubt regarding NUMBER field, where a tilde ~ was stored. Just want to understand how that got inserted in that column?
When I gave a DUMP of that column it shows like this [value | DUMP(value)]:
-- In SQL Developer:
Infinity | Typ=2 Len=2: ff,65
Infinity | Typ=2 Len=2: ff,65
-- In another IDE (called SQL Tools and SQL*Plus):
~ | Typ=2 Len=2: ff,65
~ | Typ=2 Len=2: ff,65
Also, I read from Oracle docs that NUMBER field can also accept values like POSTIVE INFINITY (takes 2 bytes) and NEGATIVE INFINITY (1 byte).
Any pointers regarding this?
-- RanitRanit,
Is that really a number column..??? I tried with binary_float this way:
select * from v$version;
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
PL/SQL Release 11.2.0.2.0 - Production
CORE 11.2.0.2.0 Production
TNS for Linux: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - Production
drop table demo;
CREATE TABLE demo (num binary_float);
insert into demo values ('infinity');
1 row created.
commit;
Commit complete.
select dump(num) from demo;
DUMP(NUM)
Typ=100 Len=4: 255,128,0,0
Cheers,
Manik. -
CharacterSeparatedValuesFormatOptions and Problems with a Number field
I want to export a report in a comma separated type format using CharacterSeparatedValuesFormatOptions. I set the Delimiter option to "" because I don't want the quotes around the fields. The problem is if the report contains a number field that contains a comma. For example if my data is:
abc 7,459.84 xyz
The data exported looks like:
abc,7,459.84,xyz
Is there a way to eliminate the comma from the number data during the export, otherwise it looks like I have an extra field?Before you try getting this working in your application, you need to try it in the Crystal Reports Designer. If you export from the designer setting the Separated Values Export Options dialog, are you able to get the export you are looking for?
If not, then it will not be possible to achieve the export at runtime either.
Regards,
Jonathan -
Exporting to CSV, a number field is changing format
Post Author: MELANIE ELIASON
CA Forum: Exporting
Exporting to CSV, a number field is changing formats. I have it excluding the decimals places and commas.
Can anyone help? I am using version 10.
MelPost Author: V361
CA Forum: Exporting
If you are exporting to Excel, it may be Excel that is changing the number format.
you could totext , but then Excel will treat it as text and not as a number.
May not be what you want. -
Address Book/iSync - email addresses moving to phone number fields
I'm not sure what is causing this, but I'm noticing that email addresses in my cards are moving to phone number fields. I originally thought this had something to do with cards that had no phone number in them, only an email address, but now I"m realizing that's not the case.
I fixes all cards last night and just a minute ago, when I was in Address Book I noticed some or all of the email addresses had moved again. I reverted to my backup from last night and it fixed things, but I'm wondering what's going to cause those addresses to move again.
I do use iSync to sync my AB contacts to my Motorola phone (I think I have it set up where it's one way, computer to phone) and I have Entourage that's using my AB contacts to populate its address book.
Any thoughts about what in my environment is causing this?
-JohnThank you for the suggestion. I did this, but noticed that some cards were still messed up. So I reverted back to a clean copy of my address book from last night. Then I went to iSync and synchronized with my Motorola phone. That's when iSync says that it's going to modify over 5% of my contacts in AB (122) at which point I said okay. Problem appears to be that the cards it modifies is random.
Now to make matters worse, it appears that if I repeat this process over and over (revert, iSync, look through cards), there is no pattern to which cards are changing. I don't even know how to troubleshoot this. I'd love make iSync go one way - computer to phone - so that the phone can never write information to the computer. Is that possible?
I'm sure this needs to go to a different section...
-John -
MIGO tr Serial number field and table?
Hi guys,
can anybody tell me how to find the field name and table for Serial number in MIGO tr Code?
in MIGO the Serial number field and Structure are GOSERIAL-SERIALNO.but i was not able to find the Actucal Field name and table where i can get the values based on PO and Asset Number's?
Thanks,
Gopi.Hello,
I'm looking at the same problem here. I found the table SER03 in which you can enter the the material document. This returns 1 line in this table and from this one you need the OBKNR element
You can copy this data and paste it into table OBJK element OBKNR and this returns all serialnumbers for the relevant material document.
My problem is that i can't get these items on the sapscript. (WESCHEINVERS 1,2 or 3)
Greetings
Edited by: Lode Vandecruys on Apr 9, 2008 11:04 AM
Edited by: Lode Vandecruys on Apr 9, 2008 11:09 AM -
Hi,
I want Serial number field and table,
Scenario like this,for returnable packging material we have assigned serial numbers,mtrl type is LEIH,so for tracking of RTP material now we are going to Develop one Report for this i need ur Help.
Logic is:1)Matrl doc at the time of Delievery.
Qty,Posting Date,Customer,Mvt type,Serial numbers for all.
Beacause at the time of Del we are mentioned all serial numbrs.
2)Material Document at the time of GI.
Same field as mentioned as above.
After that,3)System is to Calculate How many Matrl are deliever to Custmer upto current Period.Say 10.
4)Calculte How many Matrl are Recieved from the Custmer upto current period.say 5
5)Del - Issue=Total Number of Material is in Customer side.Say 5
6)According to the Serial Number wise system has to calculate in which month delieverred matrl is in still customer side.
(Ex PGI date 20.02.2007 3 qty
Serial Number 1,2,3
Issue date 20.03.2007 2 qty
Serial Number 2,3
Serial number 1 still is in Customer side.
Age is 2 month)
I am giving simple ex.
so pls any body is having this idea pls Shared with me.
Thanks
RaghuHi Raghu,
Check table SER01(Document Header for Serial Numbers for Delivery).
OBJK is the object table and you will have SERNR as serial number in this table.
check table EQUI
EQUI -SERGE
EQUI-GERNR.
EQUI-SERGE is Manufacturer serial number.chk if this is the one u r looking for.
MARC-SERNP.
key in plant and material in this table to fetch the Serial number profile of the material.
Check in IKPF AND ISEG Tables... ( inventory )
MSEG~EQUNR
Hope it will hep u
Regards
Hareesha -
Delivery Schedule Number or Delivery Plan Number field
Hi,
In MM which field refers to Delivery Schedule number (or Delivery Plan number)
Advance Thanks
AadarshHi Sanjeev,
Sorry. That is not the one. ETENR is of NUMC 4. But the field I am seeing is atleat 8 characters (maybe 10).
I dont have any further information than the name given :
Delivery Schedule Number or Delivery Plan Number field.
I can further say to you that this is being used in Vendor Decleration
Regards
Aadarsh -
How to prevent a number field from getting summed?
I want to display the # of clients per a certain ID number. (In order to show the duplicate records by setting a filter in the # of clients field). However, this works if the ID number is a text field... but it doesn't work if the ID number is a metric of client... or number. It gets summed up, I get the total, and the % of clients turns to be 1.
Any ideas?
ThanksExample:
I have 3 clients:
Column A
55
55
44
21
I want the following output:
55 | 2
I get the desired result by adding a second column (# of clients) and creating a filter to get results only if the value is > 2.
The problem is when "Column A" is a number field. If it is a number field, I get total sum of the records (55+55+44+21) and a value of "1" if I add the # of clients column.
Is it clearer now? ideas? -
Assigning a value to a number field through a button
11gxe , apex 4.x ,
hi all ,
i am trying to assign value to a number field through a button ,
i created a button , then a dynamic action for this button , when it is clicked ,
the dynamic action is based on Pl\Sql code , and the code is
begin
:p2_assign := 455 ; -- where the page is "p2" and the number field is "assign"
end ;
but it does not work , why ?I can see the toolbar now from the last link you provided me with ,
but you showed me the way to use the static assigning , and assigning with sql , and i want to do it with "Pl\Sql"
in order to know why my way of writing the code does not work , although it is written properly , and should work .
every input item is a variable , and i am doing so
begin
:p2_assign := 455 ; -- where the page is "p2" and the number field is "assign"
end ;
to assign a value to a variable ,
and
doing this
begin
select 455 into :p2_no from dual ;
end ;
to select a value into a variable , then
why does not it work ??
and how to do it with pl\sql ?
thanks -
Right alignment of Number Field in OAF Page
Hi,
I need to right align the column of the table which is of number type in OAF page. I have extended the VO of that page to add new columns. After VO extension i added the column to the page via personalization and gave the reference of view attribute name as per Extened VO. I have set the following properties for that column
Item Sytle- Message Style Text
Data Type- Number
Nowrap=false
Vertical Alignment=Middle
View Attribute = Prior (same as Extended VO's column)
View Instance = XXPayEmpAccrualActionInfoVO
I need to set the value of this newly added column right align which is currently set as left align by default.
I have tried the following links from OTN
Re: Q: How to format number using personalization?
Right align number field
but while controller extension i m getting the following error-
Message not found. Application: FND, Message Name: FND_VIEWOBJECT_NOT_FOUND. Tokens: VONAME = XXPayEmpAccrualActionInfoVO; APPLICATION_MODULE = oracle.apps.pay.selfservice.payslip.US.server.PayPayslipAM;
The extended controller code is -
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
super.processRequest(pageContext, webBean);
OATableBean tableBean = (OATableBean)webBean.findIndexedChildRecursive("PayPayslip4Ss");
tableBean.queryData(pageContext, true);
tableBean.prepareForRendering(pageContext);
DataObjectList aColFormat01 = tableBean.getColumnFormats() ;
oracle.cabo.ui.data.DictionaryData ColFormat01 =(oracle.cabo.ui.data.DictionaryData)aColFormat01.getItem(pageContext.findChildIndex(tableBean, "Prior"));
ColFormat01.put(COLUMN_DATA_FORMAT_KEY,NUMBER_FORMAT);
Please can anyone provide me some pointer here..this is really urgent.
Thanks in advance
Renu
Edited by: Renu Gupta on Jun 14, 2010 5:15 AMHi Renu,
Use the following code:
OAMessageStyledTextBean origContSumBean = (OAMessageStyledTextBean)webBean.findIndexedChildRecursive("<FieldName>");
if(origContSumBean!=null) {
origContSumBean.setAttributeValue(CURRENCY_CODE,new OADataBoundValueViewObject(origContSumBean,"CurrencyCode"));
Here CurrencyCode should be a view attribute in the VO associated to the items in the region.
Regards
Sumit -
Default Value in Number field in Travel Expense Report
Dear All
I have a requirement from my client's side. In the Expense Report, when I coose an expense receipt, say for TAXI, I get a value in the field "Number". I know that the value can be configured or defualted based upon the "From" and "To" date.
My client needs the number field to get defaulted, based on the "Expense Receipt" chosen. For example if somone chooses "Parking Fees" the number field should get defaulted automatically by the value 3 and if somone chooses "Telephone Expenses" the number field should get defaulted automatically by the value 2.
Is there in any user exit or anything that takes care of this?You may take your ABAPer's help to enhence the report.it would be small change.Might be you need access key for this change from your Basis team.
Maybe you are looking for
-
i am facing this issue for the first time.....cannot sync my iphone 4s ...iphone cannot sync.you do not have enough permission for this operation... i am adding videos to my iphone.... using windows 7 ios latest update
-
Recording error File not found message?
I am trying to record onto an audio track in logic. When I push the record button a error message comes up: File not found result code-43?? What does THAT mean? As long as I have a audio track selected, nothing works. I push play,..same error message
-
HP 7410 All in One - Won't boot up
My 7410 Printer displays the HP Invent screen when powering on, but never goes past that. I have tried the #6 option instructions with no success. Any other ideas before I take it in for service? Thanks, Michele
-
View to see all network_links
Have some view to see all network_links of the database? Tks, Elber.
-
I just got LR4.1 installed, and I imported some RAW images from my Canon 5D2. I make some color adjustments in LR, then want to close something out. I select to export to photoshop CS5. When I am done making my clone, I save the file. When I return t