Finding source of data in SSAS tabular - visual-studio

I have the following table in SSAS tabular using visual studio.
I would like to find out what source table Customer name uses as it seems to be using a wrong table, but I can't figure out how to find out which table it uses from.
picture of property window

View the properties window. To display this, highlight the table in SSDT then go to View > Properties Window or press F4. After this, find the Source Data field and click the ellipsis next to it. This will open a window that will display either the source table/view, stored procedure EXEC statement, or SQL command that the table is derived from.

Related

Edit button gone in Interactive Report Oracle APEX

so im trying to create an interactive report using apex. Usually, it will automatically create CRUD operation in the report. But somehow, the edit button (pencil and paper icon) in my interactive report is gone and i don't know how to fix nor adding them manually. Before it was gone, I changed my IR to Classical report since after i upload the table, APEX doesn't show all the columns (only 8 out of 9 column showed). And after that, I return the table into IR since all the column showed, but this is where the problem started.
Any thoughts?
go to report's Attributes properties tab (on the right hand side of the Page Designer screen)
set the Link property to "Link to Custom target"
target will be "page in this application"
choose it from list of values (or type it manually, if you know its number)
as you'll want to pass item(s) value(s) from the report to form page, set items
That's all.

SSRS Binding Textbox to a field from the query

I have a question similar to this one:
How do you populate an SSRS TextBox with a DataSet value?
I'm on old release 2012 R1 and designing report in Visual Studio 2010 shell.
I want user to enter a specific order number, and thus the query will return just one row. I want to show the fields down the page (better for viewing/printing), instead of across the page like the normal table does (especially if I have so many fields that they don't fit on the width of one screen).
Example:
Don't I just bind the textbox to a database field on the properties using DataElementName. That's what I didn't understand about the post I referenced above.
I think I figured it out. I clicked Action then was able to select the database field from a list. After that, I also noticed I can right click, then click "Expressions", and the following screen appears:

Silverlight Dropdown-box alphabetically ordered

I've been busy with this for two days, and I can't get any further on it.
I have a Dropdown-box/Combobox (not sure what it's called) in Microsoft Silverlight, and my editor is Microsoft Visual Studio 2010. The Dropdown-box has to be alphabetically ordered, but I do not know where to find the source. This is what I do know:
If I select the Dropdown box in the Designer, I can see that the
Data Binding is called "par_Customer(item)".
On the left side of the Designer is a list of tables, including the
par_Customer table.
Almost all tables have the text "Edit Query" next to them, and by
clicking on that the program opens a query editor with the right
query in it.
The table I need, "par_Customer", does not have the text "Edit
Query" on it.
When I right-click on the table, I get the options to Delete or Edit
the table.
When I click Edit, I see a list of all the attributes (columns) of
that table and its relationships, yet no query or anything
The Dropdown box is not filled by code.
What I would like to know: where do I find the source of this dropdown box? Where is it "filled"?
I would really appreciate any help or input on this problem, since I have no idea where to look any information will be of value.

How to use custom code snippets in Toad for Oracle?

I'm using Toad for Oracle for accessing Oracle databases. Is there a possibility to invoke custom scripts from Toad so that you don't always have to type these from scratch? E.g. I would like to create custom script
select count(*) as cnt
from
and invoke this using custom text like
scf
This kind of functionality is found e.g in Redgate's SQL Prompt:
It doesn't tell you how you should write code, either. You can tell
SQL Prompt exactly how you like your SQL, and add your own code
snippets to the customizable library
It is called Code Snippets
Insert Code Snippets:
http://dev.toadformysql.com/webhelp/Content/Editor/Code_Snippets/Code_Snippets.htm
If you defined it correctly then:
"If you know the shortcut name for a snippet, enter the shortcut name
and press CTRL+SPACE."
You can also use auto-replace to solve your problem if it's a single line of text.
I use "sfr" for SELECT * FROM.
As soon as I type "sfr" and press space or tab, it replaces it with SELECT * FROM.
Go to View -> Toad Options -> Editor -> Auto Replace
Go to view, toad options, in the sub editor you should find behaviour, click add on top right pane, and insert your preferred shortcut

RDLC - Adding a Data Source in VS2010

Greetings.
I have an RDLC file and am wanting to add a data source to it, although without any luck so far. The data source is a custom class written by myself (just to add, we do this all the time). We recently converted over to the VS2010 RDLC format which caused some problems, but we've made some changes to our implementation that workaround the more major issues.
So, back to the issue at hand, when I attempt to add my data source to the DummyDataSource list in the RDLC view in VS2010 it just does nothing, however it does add the data source to the list of data sources, but you can't select it from the drop-down list in the RDLC view which means I can't add the data source at all.
Has anyone come across this problem? Is there anything I need to check? I've searched with fervour and had no luck.
There seems to be a bit of black magic going on here. Or at least I haven't figured out all of the incantation to make this happen reliably.
I think I was having a similar problem. Not sure if this will help you, but here's how I got around it.
In the VS2010 report designer, use view->Report Data to show the Report Data pane.
Click the New button and choose Dataset... to get the Dataset Properties dialog.
Name your Dataset, if you've done this before, you probably know that the dataset name here needs to match the name provided in code when you bind your ReportDataSource.
The new part that I just tried, is to click the New... button next to the Data source drop down list. The resulting wizard walks you through selecting your assembly and CLR class (use the checkbox to select your class).
When the wizard finished, my new dataset appeared.
One thing to note: The first time I tried to reproduce this, the wizard completed without adding my dataset. I went back to my class definition and decorated it with [DataContract] and [DataMember] attributes and then re-ran the wizard and it seemed to work great.
Perhaps someone with deeper knowledge can comment on why those attributes make this work, or why the wizard fails silently without them.
Your data source object must include a native data type as a property on the class, otherwise it doesn't let you add it. Funny, eh!
I could not add the datasource, after following the wizard (new button) the data source did not appear in the drop downlist.
What I did was add a property with a primitive type VS class and then proceeded to show the correct data source.
Strange to have to do this, but I found another way.
If you are using a stored procedure, replace everything inside the procedure with one row select using no source tables/functions. I couldn't get it working with a stored procedure that returned data from temp table or normal table either.
I have seen this happen when your final select in a Stored Procedure pulls from a temp/memory table. You have to fake the designer out by adding a dummy select 0 AS mycol1int, '' AS mycol2string, etc. Once you have created the Dataset, you can then remove that dummy select. Another marvelous, fabulous feature in VS! They own the DB, they own the IDE, but...
If added data source object is not shown on ReportData then:
1. Right click on rdlc and click open with
2. Select xml editor
3. add your needed dataset by hand.
After this refresh ReportData and you will see the datasource object on the list.

Resources