Convert numeric value field in Crystal Reports 2008 - crystal-reports-2008

I have an Accno field containing the following Numeric Value:
1,147,852,963,369,258.00
But I would like to convert it to:
114785296369258
How can I do that via Formula Fields in Crystal Reports 2008?

In the crystal report designer view:
Right mouse click on that field, and select "Format object". Select "Custom Style" in the Style list, and click "Customize". Untick "Thousands Separator", and any other unwanted formatting.
Failing that, you could try selecting the field and deleting the "," value from the property "ThousandSeperator" in your properties window.
Hope this helps!

Related

Dynamics CRM 2013: Workflow designer Boolean & Optionset Fields set values disappearing

Background: I'm a sys admin running on CRM 2013 SP1 RU 3
Whenever I set a Boolean or Optionset field (text fields seem to be fine) value via the workflow designer, the values I previously set disappear from the designer.
For example when I initially set the values I see this:
Then after I hit save & close and click on "set properties" again I see this:
However, when I export the solution and open the workflow xaml file I can clearly see:
<InArgument x:TypeArguments="s:Object[]" x:Key="Parameters">[New Object() { Microsoft.Xrm.Sdk.Workflow.WorkflowPropertyType.Boolean, "True" }]</InArgument>
Which suggests to me that the value is being set but it is just not showing up in the Workflow designer.
I found that if I move the field back ON the form (I.e. not have the field sitting in the "Additional Fields" section) then the value displays as per normal.
Can anyone explain to me what is happening and if it's something that can be resolved on my end?
You don't need to click the value inside the designer (left panel) but the default value inside the Form Assistant (right panel) and after click OK.
Your selection inside the left panel will become yellow, meaning is applied inside your workflow.

Hide ssrs textbox based on another textbox value

I am trying to hide a textbox based on another textbox value in a table. In my ssrs 2013 report, I have a column in a table called EmpExist that returns nothing or text like Emp does not exist. On top of the table I have a textbox called Go To when clicked it will take you to another report. I am trying to hide this textbox based on EmpExist column in the table.
I tried the following, setting the visibility of "Go To":
=IIF(ReportItems!EmpExist.Value = "" OR ReportItems!EmpExist.Value IS NOTHING, False, True)
or this:
=IIF(First(Fields!EmpExist.Value, "dataset1") IS NOTHING OR First(Fields!EmpExist.Value, "dataset1") = "", False, True)
The problem is that the Go To textbox will be either visible or hidden regardless of the EmpExist value. If the EmpExist has any value, "Go To" should be hidden, but it is visible. If it does not have any value or nothing, it should display it but it is visible as well.
Thanks.
I ended up using a parameter to check the value of EmpExist and used the expression above (using the parameter instead of the column name) and seems to be working fine. Not sure why I was not able to do it based on textbox value in SSRS 2013

RDLC Report export to Excel change column data type

While exporting to Excel i am not able to Convert column data type from General to Number or Currency. Its showing error on Excel cells "The Number in this cell is formatted as text or preceded by an apostrophe.". Can anyone provide me a link how to change column date type while exporting to excel.
Try to set the datatype as int32.
Select the textbox in Tablix
Go to textbox properties
Go to Numbers tab
select Category "Number" and click ok.

Can you get value from SubReport?

I have a SubReport with a textbox, I would like to read the value of this textbox and then put it in the main report for each data row.
My SubReport is in a data column.
If you are using Visual Studio, you should be able to drag and drop the sub report object into the text box and configure it from there. But make sure that if the sub report expects parameters, you send the required parameters.

Pass a parameter from Main Report to a Subreport

Apologies for these recent newbie questions, but I'm obviously not asking the search engines the correct questions.
I have a report I'm trying to reconstruct after upgrading from VS2008 to VS2010 introduced errors into an existing Crystal Report. So, I have a semi-working report I'm trying to duplicate.
I have a report containing some subreports. The Main Report has some parameters in queries within "Database Fields" and I need to pass those fields to a particular Subreport's "Parameter Fields" so that it can then reference those parameters in its own queries.
So, my question is: How do I create the association between the query result on the Main Report and the parameter on the Subreport?
For Crystal Reports for Visual Studio 2010 - That's the only one that works currently, isn't it?
When adding a sub-report [or changing the "Change Subreport Links" for an existing report] you can select the parameter on the subreport from the drop-down on the bottom left of the 'Links' tab (or Subreport Links dialog, if editing an existing subreport)
Once you've selected your field (or Parameter) on the left in the 'Available Fields:' list, click the > button to move it to the right and you'll see link options appear below. so this is the field from the main report you want to use as a parameter for you subreport
Underneath, on the right select the parameter (from you subreport) you wish to link it to. This is the parameter in your subreport that you want to use
does that make sense.
Maybe some images would help.
Depending on your version, the terminology might be slightly different, but you should be able to right-click on the subreport and select "Change Subreport Links".
From the Available Fields column, find your parameters and click the > button to move them over to the "Fields to Link" column. Click OK when you are done.
Now go to your subreport, and make sure that the parameters you linked are available as parameters; you should be able to use these parameters in your Record Selection for your subreport.

Resources