String Field rendering as Number Field in CR Basic for VS2008

I recently migrated from CR for VS2005 to CR Basic for VS2008 and am creating my first report using CR 2008. The SQL result set returns rows containing strings (nvarchar), integers and decimal (7,2) fields.
The report is getting all rows in the result set, but the string fields as defined in the SQL are 1) rendering in the report as numbers, and 2) showing as empty. The non-string fields render fine. I tried reformatting the report field to string, but only the Number tab appears in the formatting dialog. I also tried converting the SQL field result into an unbound string field, as well as tried the ToText function, but the results were the same. I suspect the field appears empty because of the formatting issue.
How can I get CR Basic for VS2008 to render a string (nvarchar) field as a string?

Try placing the field inside a formula field or inside a text field.  That should cause the field to be shown no matter what type of data it is.  If the data is still not showing, then perhaps it is not being returned properly. 
Things to check:
-Are you connecting directly to the tables - or are you connecting to a stored procedure?  If you are connecting to a stored procedure and you are using Temp Tables, then make sure you add the line "SETNOCOUNT ON" to your stored proc.
-Run SQL profiler - see what query is being made, then try running that exact same query through the SQL admin console (Or some other utility that lets you run SQL queries)
Thanks
Shawn

Similar Messages

  • Auto Date field and Auto Number field

    I am fairly new to this,
    I have crated a form using the form wizard in Acrobat Pro 9.0 and I would like to make a field an Auto date field and another an Auto Numbering field. I have read a lot of the posts and there are a lot of recommendation to point the auto number to a database. This is fine but I do not know how to reference that field to an external database. PLEASE HELP!!!! Somebody GEEK me!!

    I am fairly new to this,
    I have crated a form using the form wizard in Acrobat Pro 9.0 and I would like to make a field an Auto date field and another an Auto Numbering field. I have read a lot of the posts and there are a lot of recommendation to point the auto number to a database. This is fine but I do not know how to reference that field to an external database. PLEASE HELP!!!! Somebody GEEK me!!

  • Vendor Master Sensitive Field Confirmation (Account Number field) - Manual Payments

    Hi All,
    After reviewing a number of threads on this forum around what happens to payments when a vendor has a 'sensitive field' awaiting confirmation I had a a specific question around having the 'account number' as a sensitive field.
    I have an instance when the 'Account Number' has been defined a sensitive field. In an example scenario a user has changed the Vendor Bank Account number and it is awaiting confirmation (through using FK08). Whilst it is awaiting confirmation a manual payment is posted against that Vendor, which Vendor Account number is used, the old one or the new one awaiting confirmation?
    It also brings about the wider question of, if a sensitive field is awaiting confirmation and a payment is made against that Vendor what value is used, the old one or the new one that hasn't yet been confirmed?
    Any insight would be great, thanks.

    Hi Johnny
    We had a lenghty debate with SAP very recently and the thing is Automatic Payment (F110) wont happen if a Vendor is awaiting confirmation... But manual payments can be done
    So, the system does not stop you for manual payments F-53 or 58... It should pick up the latest Account number
    br, Ajay M

  • Can I set a number field in Acrobat that will allow me to start with Zero?

    For example 012594 when I type this in as a number the zero disappears, is there anyway I can script it to allow the use of a Zero? I know I can do this by making it a text field but to limit people making mistakes of accidentally typing a letter in I was trying to make it number only for example a Mobile number or Account number where there are to be no letters.

    The following will allow you to only input numbers and spaces. Set up a Custom Keystroke script which calls this function. And make your field a text field, not a number field.
    function validateNumericEntry() {
    var re = /[\d\s]/;
    if (event.change.length >0) {
    if (event.willCommit == false) {
    if (re.test(event.change)) {
    } else {
    event.rc = false
    If you want a warning if the field is incomplete, you will need to specify a pattern with regular expressions in a custom validation script.

  • Batch Number field in FB03

    Hi Friends,
    My client would like to have one additional field "Material Batch Number" field (i.e MSEG-CHARG) column in FB03 - Document Display layout.
    Need your help in achieving it.
    Thanks in advance.
    Regards,
    Sangharsh Navada

    Solved - LOIPRO01 IDoc does not pick up the Batch Number from AFPO table, instead from table RESB.    We need batch from AFPO and just created a lookup using the Process Order Number as import param

  • 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

  • Number field type mapped as String

    Oracle Number field is mapped as CSTRING when using CRECORDSET class in VC++.
    Any ideas why? or what I should do?

    How big is the number column defined? ANything larger than a NUMBER(14) will map to a character string since there isn't a datatype large enough to hold say a NUMBER(30).
    Here is the mapping as I rememeber it (it is old information and may not be quite up to date with the latest drivers):
    if Scale = 0 then if Precision <= 4 then
    Number Size: Integer
    if Precision <= 9 then Number Size: Long
    Integer
    if Precision <= 15 then Number Size: Double
    if Scale > 0 then if Precision <= 15 then
    Number Size: Double
    Any other field types mapped to Text (Field
    Size = 255).

  • How to execute a string formula and assign the result to a number field

    How to execute a string formula and assign the result to a number field
    Hi,
    we have a function that returns a string like this:
    '(45+22)*78/23'
    After we should calculate this string and assign the value to a numeric block field
    Example:
    k number(16,3);
    k:=fun1('(45+22)*78/23'); where fun1 execute and translate to number the string.
    Does exist a function like fun1 ??
    How can we do ?
    Regards

    Hello,
    this is the code that does the job:
    SQL> set serveroutput on
    SQL> DECLARE
    2 ch VARCHAR2(20) :='22+10' ;
    3 i NUMBER ;
    4 BEGIN
    5 EXECUTE IMMEDIATE 'select ' || ch || ' from dual' INTO i;
    6 dbms_output.put_line ('i = ' || TO_CHAR(i));
    7 END ;
    8 /
    i = 32
    Procédure PL/SQL terminée avec succès.
    SQL>
    just you have to do is to create a small stored function that take the string to calculate and return the number result
    Francois

  • Validating a Number field in BC4J

    I want to make sure users get a custom error message such as "Not a number" when they try to enter a value other than a number into a Number field/attribute.
    By default, "JBO-25009:Can't create an object of type:oracle.jbo.domain.Number with value:xxx" exception is thrown.
    Trying to trap this exception in the setAttribute(Number x) method in EO doesn't work because the exception thrown before that method is called.
    I tried creating a custom validator, but it is not a solution for the same reason above.
    I finally created a 'NumberDomain' in which I check if the entry is a number and throw a JboException if it is not. The Domain's AttributeValue type is set to String although the EO attribute is set to a Number. I guess conversion is done internally. This seems to work.
    Is this an efficient solution? Is there a better built-in solution that I can implement right away without creating Domains?
    Has anyone tried creating a Domain by extending oracle.jbo.domain.Number to accomplish this?
    Thanks a lot,
    Matt

    Hi Arik,
    Thanks for your suggestions.
    you did mean the script running in the client, Yes.
    Use JavaScript validation to make sure the data really is a number.I was looking for a way to make EditCurrentRecord DataWebBean to include Javascript methods such as onChange(), onClick() inside the INPUT tags it automatically creates for the attributes. It seems that the solution is to create a custom Field Renderer by extending HTMLFieldRendererImpl and overwriting its populateForm method with a call to aForm.addInputField(..).

  • 0 in Phone Number Field

    Hey all,
    I was just wondering is there a way to display a phone number with the 0 at the beginning of the number. This isn't a requirement, but I would like to. Would help the user.
    I have already made the tables and inserted the data. I have searched about the net with not many results.
    The number field is 11 digits and as a result of this problem I have had a few numbers with 11 numbers that aren't 0. I figured this would also assist error check and avoid any anomalies in the data.
    Could I run a script to correct this problem? or would it be in APEX attribute settings?
    Any help would be appreciated :)
    Thank's in advance.
    Edited by: 948251 on 02-Aug-2012 10:52

    948251 wrote:
    Hey all,
    I was just wondering is there a way to display a phone number with the 0 at the beginning of the number. This isn't a requirement, but I would like to. Would help the user.
    I have already made the tables and inserted the data. I have searched about the net with not many results.
    The number field is 11 digits and as a result of this problem I have had a few numbers with 11 numbers that aren't 0. I figured this would also assist error check and avoid any anomalies in the data.
    Could I run a script to correct this problem? or would it be in APEX attribute settings?
    Any help would be appreciated :)
    Thank's in advance.
    Edited by: 948251 on 02-Aug-2012 10:52Of course, the best way to fix it is to use the correct data type in the first place. Just because it is referred to as a "phone *number*" doesn't make it a NUMBER. Neither a telephone "number", nor a US Postal zip code, nor a US Social Security "number" have any properties of numbers. You would never do any mathematical operations on them. They are really just character strings which, by convention, are limited to the same characters that are used to represent numbers.
    And now you are dealing with one of the problems of using the wrong data type. Fortunately, this is not as severe as using the wrong data type for a DATE.

  • Number fields filter in ADF

    Hi,
    I am using JDeveloper 11.1.1.4 and ADF-BC in my project.
    I have an query on how adf filter works for wild card characters '*' and '_' number fields and string fields.[Typically 'Number' and 'Varchar2' fields in DB].
    For Number fields, for example if my table has data 9.99 say for column price, when I give filter criteria as 9 , the query gets executed as select * from table where pricing = v_bind_1 [ v_bind_1 = 9]
    and does not fetch any data as per query.When I give filter criteria as 9*,then the query gets executed as select * from table where pricing LIKE v_bind_1 [v_bind_1 = 9%].
    But for string fields when I give filter criteria as N say for example EmpName column, then the query gets executed as select * from emp where EmpName LIKE v_bind_1 [v_bind_1 = N%].
    It behaves differently for string and number fields.
    Is this the standard behavior in ADF ??
    Also please point me to some docs which gives an insight on how filter is performed for different field types.
    Regards,
    Praveen

    Just a thought, for numbers filtering with operators like =,>,< makes more sense rather than using wildcards * or %. This might be the reason why the filtering differs for strings and numbers.

  • Check number field coming in blank

    I am new to this forum, and I am searching but canu2019t find a solution.
    I have a database, which contains a field called u201CCheck Nou201D, which contains the check numbers as well as type of payment received from a contributor.
    So, if the contributor paid which a check, then the check number is there, but if they paid by money order, pay pal or cash, then those terms are there.
    The problems is when I bring the data into CR, it is only bringing over the check numbers, as number.
    Now, I wrote a formula to convert the numbers to text, but it still is not reading the literal data, u201Cmoney order, pay pal or cashu201D.
    The formula that I wrote is:
    If {2009.CHECK_NO} = 0.00 Then
    "*CASH*"
    Else
    ToText ({2009.CHECK_NO},0,"")
    and believe, it or it works, u2018cause the check numbers come in great.
    I called tech support up and they told me something about marking the field as u201Calphanumericu201D, and to look to the forum for a solution, or else pay $195 per incident for tech support.
    I figure this must be a common occurrence, u2018cause all organizations maintain some type of check register, and there are times, now a days when pays with something other than a check, e.g. wire transfer, debit card, etc.., and if that literal text is in the check number field, Iu2019d like to bring it over as such.
    Thx in advance for answering my question.

    Here is the formula I have in my CR report:
    ToText ({Sheet1_.F3},0,"")
    and here is the result I get:
    Check No     
    4204     
    6008     
    448     
    2079     
    13495     
    1216     
    369     
    320     
    2227     
    231     
    139     
    351     
    524     
    1562     
    402     
    5098     
    1109     
    2240     
    922     
    Where the blank lines are records containing text entries in that field, such as "cash, credit card, paypal".
    My problem is that no matter what I'm trying, the numbers come across fine, but now the literal text isn't.
    I've tried some variation of the formula as follows:
    If IsNull({Sheet1_.F3}) then "" ELSE
    if not(Isnumeric({Sheet1_.F3}))  then ({Sheet1_.F3}) else 1
    As a suggestion from the board, but when I check for errors, I get various errors such as  "string needed" or something else.
    I'm getting lost on this.
    And, I'm sure it is something simple, but I just can't grasp it from the manual or help screen.
    Please help!!

  • Web Forms Number Field - Not processing decimals!

    We have created a monster web form on a clients site. As it is, we have had to setup an API to deal with the data after its been generated by BC and modify it before sending it on to the client. The client saw no reason for fields that did not have anything entered against them to be sent through in the workflow notification - and I agreed. 
    Now after all these other problems have been resolved, I discover that all my  "number" fields cannot process a decimal place, and they round up or down. BC have suggested I need to recreate the form and just make them all 'text strings'.
    Not good enough. Its an EPIC form with over 100 fields in it. We, in good faith, read the instructions that can be found here: http://kb.worldsecuresystems.com/478/bc_478.html?bc-partner
    that state "Number - a text box that must have a number entered into it". No note about NOT using decimals!
    The confusing thing is, it lets you enter the decimal from the front end, even displays the web form confirmation page correctly with decimals. But when it creates a case in BC, it rounds the numbers. So its only at this late testing stage that we have discovered the issue
    Does anyone have any ideas about faster ways of re-creating this entire form ?
    I did submit a support ticket, and was told to switch to the old UI and then just change the type of the fields. But when we try to change a form field from 'number' to 'string' it brings up the message "WARNING: Field updated successfully but type not changed as field has associated values.". Then they said to:
    Copy that specific webform change the type fields of the form and then remove the old webform and re-name this one copy with the first webform name. The copy option is available under the link I have provided to you.
    However this still means we need to change *all* the fields and then get every field' s ID and insert it into the javascript. Very very time consuming
    So A) everyone else be warned and B) Does anyone have a shortcut?
    Thanks!!

    Thanks for confirming my fears
    Its a shame that since its such a long standing thing, it hasnt actually been added to the knowledgebase... which when we started this project (long before this schmozzle of a new system was introduced) was the most relevant place to look.  When I start something, I tend to look in the KB.... not think "oh perhaps I should check the FAQ's in case there is a long standing issue that isnt contained in the KB".

  • Entering a letter in a number field

    Hi there,
    I am using structure binding for many of the contexts in my application to get all the data types automatically. It works ok, but when the data type is decimal, like a currency field, and if the user types in any letter in that field, it is looking at parsing the Decimal and raises a nullpointer exception. You cannot catch the exception on an action because it does not reach to the action code, and the application is terminated before that. I thought that just like in R/3, where the system automatically gives an error if a letter is input in a number field, the error handling should be automatic here as well.
    Does this mean that I cannot have decimal types in webdynpro, referencing corresponding decimal types in R/3 just because it gives up an exception if the user enters wrong data?
    Is the only solution to change all my data types to Strings without referencing any data element?
    Any help would be appreciated,
    Thanks,
    LM

    Hi,
    Please refer to the messages in the thread. Opened OSS message. SAP got back saying that it is resolved in SP17 and have to upgrade. Thats not very handy for me at this stage because there is no plan of upgrade.
    Meanwhile, I noticed that another field, which is currency as well, does not throw up the exception, and SAP also validates the field and asks u to enter the data in the desired format. Which is good. But what I cannot figure out is why this field is working and why a similar field is not working.
    Even stranger, I assigned this field to all the currency fields in my application,which worked fine one day, but this morning I find that it has stopped working!!
    Any idea why
    1) One particular currency field is working, whereas others dont? (The only difference I can see in this currency field is that it is a Z field and not refer to sap std domain).
    2) Why it worked one day and then stopped working when I changed the data type to this field.
    I know these questions are vague, and you maynot have a readymade answer, but just checking..you could have faced a similar issue..
    Many Thanks,
    LM

  • Number field on crystal report displays Exponential form.

    Number Type field on crystal report printed in Exponential form when digits in this field are more than 17.

    Hi Jay,
    The same issue is addressed in the K-Base article c2005336. This is the limitation in Crystal, If you have more than 15 digits of numberic field it will convert into Exponential
    Use database-level syntax to convert the numeric database field to a string so that Crystal Reports will interpret it as a string type, and display all of the characters.
    For example, in Oracle, cast the number using to_char() and in Microsoft SQL Server use CAST() or STR() prior to adding the field to the report.
    As a workaround to display all the number, I would suggest you to convert it to text using a SQL Expression Field. A SQL Expression field will be evaluated on the database server.
    I would suggest you to follow the below mentioned steps to create SQL Expression field and convert a database field to a string:
    1. Open the report.
    2. Right click the SQL Expression field which is present in the Field Explorer.
    3. Select New and copy and past the below-mentioned text.
    CAST ("Database Field" as varchar)
    Note u201CDatabase Fieldu201D Here you have to mention your database field.
    After you create the SQL Expression Field, insert it on the report and it will display the full number.
    Please note that no calculation can be made on that field since it is now a string.
    I hope this helps you.
    Regards,
    Prashant

Maybe you are looking for

  • Rendered text problems in 5.1.2

    I am working on a film project that has a lot of subtitles. (The dalies are digitized at HD DVC-Pro 720p) I was editing on a station running Final Cut Pro 5.1.1 (g5) with no real problems. I recently took the project with me on a trip to work on usin

  • I am not able to send email using JAVA API to outer email

    If I am trying to send email from my company account to yahoo I am getting following errors: javax.mail.SendFailedException: Invalid Addresses; nested exception is: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay for [email pr

  • Yosemite everything slow, freezing up, Help before I toss this machine in the trash!

    Ever since I upgraded to Yosemite my machine has gotten slower and slower.  At this point functioning on this machine is a train wreck.  Open an application - go get coffee, fold laundry, check...still application bouncing. When it finally opens ever

  • Flash/Flex search engine workings

    I'm looking into using Flex/ruby on rails to develop my next application. However, I have a couple of questions I'd like to get answered before I go too far down the path. I'm a coldfusion programmer that is used to creating sites that are easily lea

  • BAPI Update

    Hello Friends, I am using the BAPI "BAPI_BUPA_CENTRAL_CHANGE", in order to update the SAP Business Partner data. But dont know what is wronge, its not working, here is my sample code. ftemplate = repository.getFunctionTemplate("BAPI_BUPA_CENTRAL_CHAN