Opening RDLC Layout in Visual Studio shows <<expr>> instead of value - visual-web-developer-2010

When I open a report from Dynamics NAV 2013 in Visual Web Developer 2010, every text box shows a field that looks like
<<Expr>>
Where << and >> are the french Guillemet characters. I find this rather difficult because I have to analyze the properties of each text box, if I am looking for a particular field.
For example in this picture, how do I know which field is the Customer Name, Phone Number or VAT Registration No?
Is there any way to configure Visual Web Developer to expand the Expression like it was in Visual Studio 2008 with NAV 6.0?
Preferably I would like to either see a label instead of the generic Expr or just the old Fields!Some_random_field.Value like it was in Visual Studio 2008.

Ah, another feature of NAV & RDLC :)
You'll find that the Expr text appears when an expression reaches a certain "complexity" -- e.g. from just a field;
=Fields!TotalText.Value
to
=(Fields!TotalText.Value)
The fields in the header are usually always Expr as the values are passed using GetData and SetData (and remain that way from NAV 2009 reports). While this limitation was somewhat removed in NAV 2013, you can only put static values in the header -- they won't change across pages which is useless for multiple SO's or Customers for example.
There isn't a way to show it in the properties box, however the quickest way seems to be to select the field, Right Click, "Expression".
I'd suggest giving the textbox a name other than TextBox to make it easier to identify fields (e.g. "SalesHeaderNo");

So after a bit of research I have found another solution. There is a View Element called the Document Outline [Ctrl+Alt+T] which shows a tree like structure of the whole report. When ever you click on an item in your report, the corresponding item in the Document Outline is selected and vice versa. This is quite useful to keep a better overview over your report and to quickly navigate between the different items.
The only annoying thing is that it also shows empty text boxes, so in a sparsely populated table, you will have a lot of textbox123 items in the outline. It doesn't seem there is a way to filter these out.

Related

SQL Report Builder 3.0 - Failed to preview report

I have looked but have not been able to find another posted question that matches my scenario.
I am replicating a report from an old DB and rebuilding it using a new DB, so I'm simply copying the old report elements and pasting them into a new report template and modifying as needed. I've gotten to one part where the error I'm getting is as follows:
The Color expression for the text box ‘Textbox94’ refers to the field
‘Gallon_Qty’. Report item expressions can only refer to fields within
the current dataset scope or, if inside an aggregate, the specified
dataset scope. Letters in the names of fields must use the correct
case.
I have looked everywhere I could possibly think to look to see where this issue is hiding, but cannot find where this textbox is 'referring' to anything. Since it appears to be specific to this textbox, I presume it is specific to the text box properties of that text box, but it seems I'm mistaken. For added clarity, what I have checked includes every menu option within the text box properties (General, Number, Alignment, Font, Border, etc.) and every fx (function) button to ensure nothing was hiding (that's gotten me before). I have compared with another report element that works similarly and cannot find where the problem is. Any tips on where else I might check to uncover the root of this issue? Happy to provide screenshots if it will help, just let me know.
Side note: I can't thank you guys enough for all the help I've gotten on here!
I discovered where the issue was.
Text Box Properties>Font>Color>fx box
This is where the value was hiding. Hope this helps someone else.

adding checkbox to ssrs tablix that will be manually clicked

I have created a stock taking report in SSRS 2008. I have also added an extra column in the tablix.
The extra column I added is a column I want to have the option to manually click on the checkbox if item is in stock.
I have tried using the wingdings option using the below expression:
=iif(Fields!Expr1.Value,chr(252),chr(251))
However the result I get is not the desired result, because I get about 6 winging characters back instead of the check and uncheck boxes I required
How could I go about fixing this ?
One option is to use an Indicator, but I've preferred to use images for similar situations. Embed the two needed images in the report and switch between those dynamically. (You can make standard images of your characters in MS Paint or Paint.NET.)
Images have the disadvantage that they don't print with high resolution, but they do render on most devices (not .csv) and you don't need to worry about installed fonts on the server.
As far as fixing your immediate problem, try changing the "Markup Type" for your placeholder (Placeholder Properties -> General -> Markup type.) It sounds like something is trying to generate HTML when it shouldn't be.

SSRS BIDS Expression to pick visibility based on AD GROUPS

I have a box with the text 'Dill Down Facility Available' (see screenshot)
When the report is run I only want certain people to see this box.
The people I want to see this box are contained in 19 different ADGROUPS
There will be others who run this, but I need them to see everything bar the yellow box.
If I right click the box and go to:
TextBoxProperties > Visibility > Show or hide based on an expression,
I am able to enter an expression.
The one ive written in the screenshot allows me to pick 1 individuals AD name in the following format:
DOMAINNAME\ADNAME
However, if I put an ADGROUP name instead of the ADNAME, it does not work, and instead everyone can see the yellow box.
As the expression contains
User!UserID
I believe this may be stopping my ADGROUP name working as its looking for a USER, although this would not explain why it then allows anyone to see this box.
Can anyone provide the expression to allow either:
a) 1 group name
b) multiple group names
Thanks.
SSRS does not have this functionality built in, you'll need to use a Custom Assembly and reference it in your project.
See: http://support.microsoft.com/kb/920769

Conditionally setting visibility-toggling in SSRS

I have a report in SSRS 2008 R2 that lists medications and prescriptions. The prescriptions are hidden unless you click on the medication + box to show them.
Now, in some cases, we don't have any prescriptions listed for a given medication -- they're managed by an external provider, but we want to track their existence anyway. This leaves me with the case where we still have the + box, but clicking on it shows an empty line. Is there any way to conditionalize the ability to toggle the line's visibility? Thanks.
ETA: Ok, I just figured out a partial answer to this. I had a spare textbox available, so I added the text "Show scrips" to it and made that the controlling box for the toggle, and then swapped its own visibility depending on whether there were actually scrips to show. However, this makes the borders go away, as well as the contents. Short of removing all the borders (which might be the proper solution, actually), any suggestions?
Here's a thread that discusses this issue: you basically put the +/- into another column and show/hide that based on whether there's data.

Problems with page layout in Oracle Apex

I'm trying to solve a formatting issue I'm having with Oracle Apex. Overall, this is a fantastic tool for whipping up proof-of-concept type applications, but whenever it comes to "prettying up" a page, it seems to be very difficult to work around.
I have a simple form-based page based on a table. However, I'd like to do a few simple things like group certain fields together on the form (phone info), perhaps throw an image in etc. I can't see any way to do either of these things inside a form. For example, here is an example page
and here are the small changes I want to make (photoshopped):
What the heck am I missing here? I can't seem to add anything except database fields inside the form to visually change things.
Any help appreciated.
It can be done - see this demo (I took the liberty of copying your icon, hope you don't mind). It looks like this:
How it was done
1) I uploaded the image into Apex. (Alternatively it can be hosted elsewhere).
2) I created a page item of type "Display Image" with attributes as follows:
Note the use of rowspan=3 in two places (circled in yellow), to make the picture and its (blank) label occupy 3 rows of the HTML table Apex uses for layout.
3) I created a page item of type "Stop and start table" and put it after the Mailing Address item. This prevents the phone icon taking up the same horizontal space as the name and mailing address, resulting in phone items being pushed too far to the right.
4) I set the "Begin on new line" property of the first phone item to "No" so that it appears to the right of the icon. The remaining phone items have "Yes" so that they appear below the first.

Resources