Currency column in cfgrid
Hi,
I create a grid using cfgrid.
i have to show currency symbol in price column
"£" sign.
For this i define this :
<cfgridcolumn name="price" header="price" type="currency"
mask="£" />
but it does not show the pound sign.
Any help appreciated.
Thanks. in advance.
Prashant
Just beneath your inicial cfgrid open tag put this:
<cfprocessingdirective pageencoding="ISO8859-1"> I already
tried it! Hope it works!
Similar Messages
-
Error inserting a row into a table with identity column using cfgrid on change
I got an error on trying to insert a row into a table with identity column using cfgrid on change see below
also i would like to use cfstoreproc instead of cfquery but which argument i need to pass and how to use it usually i use stored procedure
update table (xxx,xxx,xxx)
values (uu,uuu,uu)
My component
<!--- Edit a Media Type --->
<cffunction name="cfn_MediaType_Update" access="remote">
<cfargument name="gridaction" type="string" required="yes">
<cfargument name="gridrow" type="struct" required="yes">
<cfargument name="gridchanged" type="struct" required="yes">
<!--- Local variables --->
<cfset var colname="">
<cfset var value="">
<!--- Process gridaction --->
<cfswitch expression="#ARGUMENTS.gridaction#">
<!--- Process updates --->
<cfcase value="U">
<!--- Get column name and value --->
<cfset colname=StructKeyList(ARGUMENTS.gridchanged)>
<cfset value=ARGUMENTS.gridchanged[colname]>
<!--- Perform actual update --->
<cfquery datasource="#application.dsn#">
UPDATE SP.MediaType
SET #colname# = '#value#'
WHERE MediaTypeID = #ARGUMENTS.gridrow.MediaTypeID#
</cfquery>
</cfcase>
<!--- Process deletes --->
<cfcase value="D">
<!--- Perform actual delete --->
<cfquery datasource="#application.dsn#">
update SP.MediaType
set Deleted=1
WHERE MediaTypeID = #ARGUMENTS.gridrow.MediaTypeID#
</cfquery>
</cfcase>
<cfcase value="I">
<!--- Get column name and value --->
<cfset colname=StructKeyList(ARGUMENTS.gridchanged)>
<cfset value=ARGUMENTS.gridchanged[colname]>
<!--- Perform actual update --->
<cfquery datasource="#application.dsn#">
insert into SP.MediaType (#colname#)
Values ('#value#')
</cfquery>
</cfcase>
</cfswitch>
</cffunction>
my table
mediatype:
mediatypeid primary key,identity
mediatypename
my code is
<cfform method="post" name="GridExampleForm">
<cfgrid format="html" name="grid_Tables2" pagesize="3" selectmode="edit" width="800px"
delete="yes"
insert="yes"
bind="cfc:sp3.testing.MediaType.cfn_MediaType_All
({cfgridpage},{cfgridpagesize},{cfgridsortcolumn},{cfgridsortdirection})"
onchange="cfc:sp3.testing.MediaType.cfn_MediaType_Update({cfgridaction},
{cfgridrow},
{cfgridchanged})">
<cfgridcolumn name="MediaTypeID" header="ID" display="no"/>
<cfgridcolumn name="MediaTypeName" header="Media Type" />
</cfgrid>
</cfform>
on insert I get the following error message ajax logging error message
http: Error invoking xxxxxxx/MediaType.cfc : Element '' is undefined in a CFML structure referenced as part of an expression.
{"gridaction":"I","gridrow":{"MEDIATYPEID":"","MEDIATYPENAME":"uuuuuu","CFGRIDROWINDEX":4} ,"gridchanged":{}}
ThanksIs this with the Travel database or another database?
If it's another database then make sure your columns
allow nulls. To check this in the Server Navigator, expand
your DataSource down to the column.
Select the column and view the Is Nullable property
in the Property Sheet
If still no luck, check out a tutorial, like Performing Inserts, ...
http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/index.jsp
John -
DataFormWebPart Sum of Currency Columns
I have a data form web part with the "sharepoint list with currency columns" data source. I have added a footer to sum the rows. It seems like because of the number columns as currency format are formatted as "$2,000,000.00", the total shows up on the
footer is "NaN".
Looking at the XSLT, I don't see any issues with the XSLT code - <xsl:value-of select="sum($nodeset/@Year_x0020_1_x0020_P_x0026_L_x002)" />
Is there any reason why currency columns are not summable in the XSLT? Has anyone came across this kind of issue?I have fixed this issue. I have changed current columns to number columns. The reason for this is number column saves the data as comma and DVWP can't convert comma separated number string to number.
Here is the brilliant article to discuss this issue..
http://www.endusersharepoint.com/2009/08/06/calculated-column-formula-tips-aggregating-calculations-over-1000/
Use this to fix the problem..
Create the Calculated Columns Based on Number columns in SharePoint List
Make sure you use FIXED function to remove all the commas. Otherwise SharePoint saves number as comma and DVWP can’t convert them into number.
Now, in DVWP, use the XSLT format-number function to format the number back to comma/currency formatted number. E.g.
- Item - Number format - format-number(@Year_x0020_1_x0020_Revenue_x0020, '#,##0.00;-#,##0.00')
- Item – Currency format - format-number(@Year_x0020_1_x0020_Revenue_x0020, '$#,##0.00;-$#,##0.00')
- Sum – Currency format - format-number(sum($Rows/@Year_x0020_1_x0020_Revenue_x0020), '$#,##0.00;-$#,##0.00')
That should fix the issue... -
SAP Query: Hide or remove currency Column
Dear Experts,
I m Displaying Reports using RBKP and Rseg Tables.
All data are coming Correct manner.
But the problem is that where ever i select the amount for display currency column automatic added in side of amount,
But i dont have requirement of currency column.
Plz. tell me how can i avoid these column
Plz.If you are displaying the report using ALV, you can create the fieldcatalog manually, so that only the required fields are displayed.
You can find more information about preparing fieldcatalog on the following link
https://wiki.sdn.sap.com/wiki/display/ABAP/ALVTUTOTIALFORBEGINERSWITH+EXAMPLES -
Expert's,
Here is an issue where the currency column is blank.But our onsite folks donot need the blank the blank has to be replaced by 0 and prefixed with '$' symbol.
Is there any way to resolve this.
Thanks in advacne.
VasuHi,
Thats what you wanted.isn't it? thats how you get KF value in BW reports.
Youe KF may be amount Keyfigure (DATA type CURR) and it must be having Having Fixed currency $ or Unit/currency entry is 0curreny...or customized currency unit...Its not an error.You will alwys get value followed by Unit like 10$,10,10 INR...etc
You can use NODIM(KF) if you dont want to disply units.
or u can set 'disply sacling factors' enabled in Query properties.Then all KF units will be displayed in one row.and you will just values in column. -
Reg: ALV report download to excel currency columns
Hi All,
While downloading the alv report to excel, currency fields with negative sign(less than 0) is downloading without negative sign.
And field catalog wad declared as 'CURR' field for that particular column, if I declared as 'CHAR', i am getting shortdump.
Can any one tell me how to get the negative sign.
Thanks in advance.Hi,
Do you use ALV to excel standard functionality or your own code to excel?
Please provide more information.
Thanks, -
Comparing columns within cfgrid
I have 2 queries that populate a third query using cfloop and
querynew. The third query, "table1", works just fine. But I am
using a java format cfgrid to output "table1". I want to highlight,
change color, or something, when the value in one column's row does
not match another column's row. Is that possible? How?Here's my code:
<cfquery name="qrytl2000" datasource="libl">
SELECT #choose2# FROM tldb70.drmst WHERE dracpy = 05 AND
drasts IN (#preservesinglequotes(status2)#) AND (DRASID = '100' OR
DRASID = '300')
AND dradsp IN (99981,99982,99991,99992,99993,99994)
</cfquery>
<cfset table1 =
querynew("tl2000drivercode,tl2000drivername,tl2000fleet,tl2000status,sqldrivercode,sqldri vername,sqlfleet,sqlstatus","varchar,varchar,integer,varchar,varchar,varchar,integer,varch ar")>
<cfloop query="qrytl2000">
<cfset addrow = queryaddrow(table1,1)>
<cfset driverset =
querysetcell(table1,"tl2000drivercode",qrytl2000.dradrv)>
<cfset nameset =
querysetcell(table1,"tl2000drivername",qrytl2000.dranam)>
<cfquery name="qrysql" datasource="timeoff">
SELECT #choose# FROM dbo.log_status WHERE drivercode =
'#trim(qrytl2000.dradrv)#'
</cfquery>
<cfset driverset2 =
querysetcell(table1,"sqldrivercode",qrysql.drivercode)>
<cfset nameset2 =
querysetcell(table1,"sqldrivername",qrysql.drivername)>
<!---This section is for the Fleet number from TL2000.
JP--->
<cfif isDefined("qrytl2000.dradsp") AND
#qrytl2000.dradsp# NEQ "">
<cfset fleetset =
querysetcell(table1,"tl2000fleet",qrytl2000.dradsp)>
<cfset fleetset2 =
querysetcell(table1,"sqlfleet",qrysql.fleet)>
<cfelse>
<cfset fleetset =
querysetcell(table1,"tl2000fleet","")>
<cfset fleetset2 = querysetcell(table1,"sqlfleet","")>
</cfif>
<!---This section is for the Driving Status from TL2000.
JP--->
<cfif isDefined("qrytl2000.drasts") AND
#qrytl2000.drasts# NEQ "">
<cfset statusset =
querysetcell(table1,"tl2000status",qrytl2000.drasts)>
<cfset statusset2 =
querysetcell(table1,"sqlstatus",qrysql.drivingstatus)>
<cfelse>
<cfset statusset =
querysetcell(table1,"tl2000status","")>
<cfset statusset2 =
querysetcell(table1,"sqlstatus","")>
</cfif>
</cfloop>
<cfformgroup type="horizontal">
<cfgrid name="details" query="table1" format="applet"
colheaderbold="yes" colheaderalign="center" rowheaders="no"
griddataalign="center" height="650" width="1200">
<cfif #table1.sqlstatus# NEQ #table1.tl2000status#>
<cfgridcolumn header="TL2000 PTO Code"
name="tl2000drivercode" bgcolor="##FF3333" dataalign="left"
width="120">
<cfgridcolumn header="Database PTO Code"
name="sqldrivercode" bgcolor="##FF3333" dataalign="left"
width="140">
<cfif isDefined("URL.drivername") AND #URL.drivername# EQ
"drivername">
<cfgridcolumn header="TL2000 PTO Name"
name="tl2000drivername" bgcolor="##FF3333" dataalign="left"
width="200">
<cfgridcolumn header="Database PTO Name"
name="sqldrivername" bgcolor="##FF3333" dataalign="left"
width="200">
</cfif>
<cfif isDefined("URL.fleet") AND #URL.fleet# EQ
"fleet">
<cfgridcolumn header="TL2000 Fleet" name="tl2000fleet"
bgcolor="##FF3333" width="100">
<cfgridcolumn header="Database Fleet" name="sqlfleet"
bgcolor="##FF3333" width="100">
</cfif>
<cfif isDefined("URL.status") AND #URL.status# EQ
"status">
<cfgridcolumn header="TL2000 PTO Status"
name="tl2000status" bgcolor="##FF3333" width="140">
<cfgridcolumn header="Database PTO Status"
name="sqlstatus" bgcolor="##FF3333" width="140">
</cfif>
<cfelse>
<cfgridcolumn header="TL2000 PTO Code"
name="tl2000drivercode" dataalign="left" width="120">
<cfgridcolumn header="Database PTO Code"
name="sqldrivercode" dataalign="left" width="140">
<cfif isDefined("URL.drivername") AND #URL.drivername# EQ
"drivername">
<cfgridcolumn header="TL2000 PTO Name"
name="tl2000drivername" dataalign="left" width="200">
<cfgridcolumn header="Database PTO Name"
name="sqldrivername" dataalign="left" width="200">
</cfif>
<cfif isDefined("URL.fleet") AND #URL.fleet# EQ
"fleet">
<cfgridcolumn header="TL2000 Fleet" name="tl2000fleet"
width="100">
<cfgridcolumn header="Database Fleet" name="sqlfleet"
width="100">
</cfif>
<cfif isDefined("URL.status") AND #URL.status# EQ
"status">
<cfgridcolumn header="TL2000 PTO Status"
name="tl2000status" width="140">
<cfgridcolumn header="Database PTO Status"
name="sqlstatus" width="140">
</cfif>
</cfif>
</cfgrid>
</cfformgroup>
How can I compare the individual rows of data between the
columns; ie, tl2000drivercode compared with sqldrivercode to see if
they match or not? -
Editting the first column in cfgrid
The first column in a datagrid is the row number. How can you
either remove
it or change it to something else?
Wally Kolcz
Developer / Supportrowheaders="no"
"Wally Kolcz" <[email protected]> wrote in
message
news:efpbbh$qdm$[email protected]..
> The first column in a datagrid is the row number. How
can you either
> remove it or change it to something else?
>
> --
> Wally Kolcz
> Developer / Support
> -
Using Coldfusion MX7. Does anyone know if you can lock/freeze
columns in CFGRID so that you can scroll horizontally while keeping
a set a columns in place for user readability? I've seen a way to
do this using CSS, but prefer the functionality and speed of
CFGRID.Hello
It's not a foreign version !
If my guess is right it's mine too and French is not a foreign language, isn't it ?
In the main language the item is named: "Afficher la vue avant impression"
In one foreign language it is named "Print View"
Yvan KOENIG (from FRANCE mardi 30 octobre 2007 20:52:02) -
Currency unit in Report painter
Hi,
I met a problem when i maintain a report using report panter. Table FAGLFLEXT is used for the library, and I want to using currency translation function. I use Basic key figure "HSL local currency" and CC_HSL translation local currency for the report. But when i run the report, there is a problem, system tell me that can not find the unit of source currency, so can not translated to target currency. The data of local currency can be displayed.
i set the format of the local currency column, find that even i click "print the unit", there is no currency unit of the data, so I think there is some problem.
What is the problem? thank you!Hi Amir,
Thank you for your answer.
I changed the key figue to "Crcy Transltn TransCrcy (Act.)" as told, and run the report again, but still have problem.
No valid exchange rate for currency translation from to USD
Message no. GR640
Diagnosis
The system could not find a valid exchange rate for the currency translation.
System Response
The system could not translate into the target currency.
Procedure
Check the target currency, the exchange rate date and the exchange rate type.
I am sure i have maintain the exchange rate type and related rate.
The setting of "Define Currencies of leading Ledger" is "1 Translation taking transaction currency as a basis".
I think the problem is that the system cannot find the unit of the currency, so the error massage display as "No valid exchange rate for currency translation from to USD". If can find the unit of currency, i thought the message should be like "No valid exchange rate for currency translation from EUR to USD".
If the unit can be found, I think after set the format of the column "print the unit", in the report the unit can be displayed. But in my system, can not display the unit.
What do you think about this? thanks in advance. -
Amount in local currency showing different value
Hi,
I have one issue where document currency and local currency are same(USD).
After posting the customer document in USD say 1000.00, when i goto FBL5N to check the open items the report is showing the difference of 0.44 (1000.44) in Amount in Local Currency column.
I received payment of 1000.00 usd from the customer.
At the time of clearing the system showing 0.44 difference.
Please guide me how to resolve this issue.
Regards,
Krishna KishoreHi,
Not yet. Temporarily i am charging off this difference to expense account.
Regards,
Krishna Kishore -
TableView - Filter more than one value in same column
Hi folks,
I faced a problem on <b>filtering a field more than one value</b>.
Does it possible solution for us to bring out filtering function while user try to enter few values in the SAME filter field?
Thank you.
First, i need to clarify my exact problem.
--> I have created one tableView with filter = "server". Then i want to allow my user to enter few filter values in same field column.
Example 1:
Before
COL1 COL2 COL3 COL4
l--II--
l-filter1I--I--
*filter1 = AAA, BBB
AAA AAA AAA AAA
BBB BBB BBB BBB
CCC CCC CCC CCC
DDD DDD DDD DDD
EEE EEE EEE EEE
After
COL1 COL2 COL3 COL4
l--II--
l-filter1I--I--
*filter1 = AAA, BBB
AAA AAA AAA AAA
BBB BBB BBB BBB
Is that any good suggestions to solve my doubt?
Message was edited by:
GP Pohcheck out this work around. in this sample currency column supports multiple values and multiple values in the filter column should be enter with comma as separater.
<u><b>page attribute:</b></u>
filtertab TYPE RSELOPTION
filter_wa TYPE RSDSSELOPT
itab TYPE FLIGHTTAB
<u><b>layout</b></u>
<%@page language="abap" %>
<%@extension name="htmlb" prefix="htmlb" %>
<htmlb:content design="design2003" >
<htmlb:page title=" " >
<htmlb:form>
<htmlb:textView id ="tex"
text = "Filter on Currency Column support multiple values, they can be entered with comma as separater like 'usd,DEM'"/>
<htmlb:tableView id = "tv1"
design = "ALTERNATING"
table = "<%= itab %>"
filter = "APPLICATION"
columnHeaderVisible = "true"
sort = "SERVER" />
</htmlb:form>
</htmlb:page>
</htmlb:content>
<u><b>oninitialization</b></u>
select * from sflight into table itab where currency in filtertab .
<u><b>oninputprocessing</b></u>
* event handler for checking and processing user input and
* for defining navigation
DATA: table TYPE REF TO cl_htmlb_tableview .
DATA: tv_data TYPE REF TO cl_htmlb_event_tableview.
DATA: filter_value TYPE string .
DATA: fil_val TYPE STANDARD TABLE OF string ,
fil_val_wa TYPE string .
REFRESH filtertab .
table ?= cl_htmlb_manager=>get_data( request = request
name = 'tableView'
id = 'tv1' ).
IF table IS NOT INITIAL .
tv_data = table->data .
IF NOT tv_data IS INITIAL .
CALL METHOD tv_data->get_row_filter_value
EXPORTING
column_index = 6
RECEIVING
value = filter_value.
IF NOT filter_value IS INITIAL .
TRANSLATE filter_value TO UPPER CASE .
REFRESH fil_val .
SPLIT filter_value AT ',' INTO TABLE fil_val .
CLEAR fil_val_wa .
LOOP AT fil_val INTO fil_val_wa .
filter_wa-sign = 'I' .
filter_wa-option = 'EQ' .
filter_wa-low = fil_val_wa .
APPEND filter_wa TO filtertab .
ENDLOOP .
ELSE .
REFRESH filtertab .
ENDIF .
ENDIF .
ENDIF .
Regards
Raja -
Currency Translation not producing any results
Hello Everyone,
I have ran into a very strange problem with the out of the box currency conversion. I have a finance app and am using the Fxtrans script logic to execute my currency translation. The problem I am having is when I run the FX Restatement package I not getting any results. LC has the correct amount that was input but my other reporting currencies show zero. My Entity dimension (which is named Company) has the correct currencies in the currency column for each company, and the InputCurrency dimension has all of my currencies listed. Everything else is the same as the AppShell app set. One last note is I do have some additional dimensions in the finance application but I don't think that would cause any issue.
My Rate cube is built the exactly the same as the rate cube in appshell app set. The only difference is my category dimension is named scenario.
I have updated all the system constants files and the script logic to reflect the dimension name changes. Everything works as expected in the Appshell application, but I just can't seem to figure out why it won't work in my appset.
I am sure I have left out some details that are needed so please just ask and I will provide whatever I can. I really appreciate any help anyone can provide.
Thanks in advance!
NickSo I figured out the issue. For some reason the data that was in the WriteBack table for any currency other than LC was not showing up in the report. Once I optimized the application the currency conversion showed up as expected.
Has anyone had this problem before. Any known solution?
Thanks,
Nick -
Document Currency - What controls it??? MB51 shows Canadian dollars not US
There are two plants in my company that use a material from Canada, and we are are both in continental US. Both plants have purchase orders set up with Canadian dollars to the same vendor. The material is supplier-owned.
For my plant:
If I run MB51 for that material, the amount shown in the local currency column is not the same as my current released standard cost extended by the document quantity. If I drill into the document, then click the "FI Documents", then double click on "Accounting Documents" the document overview shows Canadian dollars.
For my sister plant:
If I run MB51 for that material, the amount shown in the local currency column is equal to their current released standard cost extended by the document quantity. If I drill into the document, then click the "FI Documents", then double click on "Accounting Documents" the document overview shows US dollars.
My plant uses direct goods issue, and my sister plant uses backflush method. Is that the difference?
Any help appreciated.Thanks for the reply....
Yes, we use the same company code. All our stock value is USD.
The PO's for both my plant and my sister plant are in CAD.
The material is on consignment from vendor (same vendor) at both plants.
What doesn't make sense to me is that my document currency is CAD, but their document curency is USD. The movement types for both plants are 261. The only difference is they backflush and we use direct goods issue.
If document currency is controlled by PO, why is their document currency in USD? -
Dear Developer,
One of my customer ask me a second time for reports. He wants to see the values in the document currency. It is in the next releases possible, that the user can choose between Local currency, system currency, business partner currency and document currency???
Kind regards
Stefan Ressel
ats AGStefan Ressel ,
If you execute VA05 then you can see the Document Currency column.
Execute SAP1 and check for further reports.
Regards
Sathya
Maybe you are looking for
-
Error while mass conversion of Planned order to production order
Hi All, Thanks in Advance for help. We are facing one issue since Oct-2011. We have set up batch jobs for early morning to convert planned orders in to production orders. This is set up for transaction COHV. We have both MTO and MTS scenario. But pro
-
Trying to use a Nano with 10.2.8
Alrigth, I just bought an iPod Nano. On the car ride home, I see that you need 10.3.4 to use it. I can't get that unless I buy a new computer... which isn't gonna happen. I have an iMac G3, 10.2.8,iTunes 6.0.1, and a highspeed 2.0 USB. Can I use the
-
Email Not generated from VF06 - more than one invoice created same BP
Customer is creating invoice in VF01, they need a email output (medium 5) along with SAP Script attached . I coded the logic in subroutine Entry of the print program. Email is getting generated successfully . But it production the customer is creatin
-
SOAP request failed with return message 2147483653
Hello everybody! I've got a constant error while trying to execute following MDX-statement via BI Java SDK: SELECT {[0BCS_REPMOD].[N],[0BCS_REPMOD].[P],[0BCS_REPMOD].[R],[0BCS_REPMOD].[S]} DIMENSION PROPERTIES MEMBER_UNIQUE_NAME, MEMBER_CAPTION, PAR
-
How to set up PDF IFilter for SharePoint 2013?
I want to set up PDF IFilter for SharePoint 2013. I know that this is possible for SharePoint 2010. http://www.adobe.com/support/downloads/thankyou.jsp?ftpID=5542&fileID=5550 http://www.adobe.com/devnet-docs/acrobatetk/tools/AdminGuide/Acrobat_Reader