Is it possible to get the table by knowing its name only (string)
public bool IsShowTable
get { return _IsShowTable; }
set { _IsShowTable = value;
if (_IsShowTable)
//Type type = Type.GetType(GraphSelected);
//Object o = (Activator.CreateInstance(type));
using (var ctx = new PD5500DBEntities())
DataGridSrc = new ObservableCollection<object>(ctx.G2_2_6_0dot01_0dot0); //Using here the TableName in String
NotifyPropertyChanged();
private ObservableCollection<Object> _DataGridSrc;
public ObservableCollection<Object> DataGridSrc
get { return _DataGridSrc; }
set { _DataGridSrc = value;
NotifyPropertyChanged();
In the code I used ctx.TableName, would it be possible to get a reference by knowing the string of the TableName only.
I mean
TableName = "MyTable";//Type type = Type.GetType("TableName");
//Object o = (Activator.CreateInstance(type));
Thanks Magnus.
But now I have difficulty setting it to datagrid source
//public ObservableCollection<Object> DataGridSrc
// get { return _DataGridSrc; }
// set
// _DataGridSrc = value;
// NotifyPropertyChanged();
or
private ICollectionView _DataGridSrc;
public ICollectionView DataGridSrc
get { return _DataGridSrc; }
set
_DataGridSrc = value;
NotifyPropertyChanged();
using (var ctx = new PD5500DBEntities())
Type type = Type.GetType("PressureVessels.Database.G2_2_6_0dot01_0dot0");
var entities = ctx.Set(type);
DataGridSrc = (ICollectionView)entities.Local;
//or
//DataGridSrc = new ObservableCollection<object>(entities.Local);
Before when I was using
DataGridSrc = new ObservableCollection<object>(ctx.G2_2_6_0dot01_0dot0);
it worked but now it doesn't. Though now by using the namespace.name I get the type but still cannot assign it to datagridSr which is ObservableCollection or ICollectionView.
Similar Messages
-
Is it possible to get the position of a charcter from a string ?
Hi !
Is it possible to get the position of a charcter from a string ?
Example:
@VAR contains the following text "ABCDEFGHIJKLM"
I'am seaching for FGH, it start on pos. 6 en ends on pos 8.
How can I get these numbers 6 and 8 ?
So, I can use them in the MID(text,start,len) function.
Thanks!Hi Sooraj,
I'll explain more in detail:
From a web-service I get a variable called @Spec.
This variable contains the following:
"MOTORTYPE[CR]D-QW1234[LF]PART[CR]1234-FRD-X[LF]"
or
"MOTORTYPE[CR]ABC[LF]PART[CR]E-435[LF]"
I need the values behind MOTORTYPE[CR] and behind PART[CR]
But youll see that the positions of these values are different each time.
If there is a way to get the (start) position of "MOTORTYPE[CR]" or "PART[CR]" and the (end) position of the first "[LF]" behind that,
then I could use the MID() function to get the correct values.
The values will be displayed in a table view (between other fields).
An ABAP-call/function wont work . . . how should I invoke this within a table column/field object ? (system action ?) -
How to get the table name in the trigger definition without hard coding.
CREATE TRIGGER db.mytablename
AFTER UPDATE,INSERT
AS
INSERT INTO table1(col1)
SELECT InsRec.col1
FROM
INSERTED Ins
--Below i am calling one sp for which i have to pass the table name
EXEC myspname 'tablename'
In the above trigger,presently i am hard coding the tablename
but is it possible to get the table name dynamically on which the trigger is defined in order to avoid hard coding the table nameI really liked your audit table concept. You inspired me to modify it so that, the entire recordset gets captured and added a couple of other fields. Wanted to share my end result.
USE [YourDB]
GO
/****** Object: Trigger [dbo].[iudt_AutoAuditChanges] Script Date: 10/18/2013 12:49:55 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER TRIGGER [dbo].[iudt_AutoAuditChanges]
ON [dbo].[YourTable]
AFTER INSERT,DELETE,UPDATE
AS
BEGIN
SET NOCOUNT ON;
Declare @v_AuditID bigint
IF OBJECT_ID('dbo.AutoAudit','U') IS NULL BEGIN
CREATE TABLE [dbo].[AutoAudit]
( [AuditID] bigint identity,
[AuditDate] DateTime,
[AuditUserName] varchar(128),
[TableName] varchar(128) NULL,
[OldContent] XML NULL,
[NewContent] XML NULL
ALTER TABLE dbo.AutoAudit ADD CONSTRAINT
PK_AutoAudit PRIMARY KEY CLUSTERED
[AuditID]
) WITH( STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
CREATE NONCLUSTERED INDEX [idx_AutoAudit_TableName_AuditDate] ON [dbo].[AutoAudit]
( [TableName] ASC,
[AuditDate] ASC
)WITH (STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
END
Select * Into #AuditDeleted from deleted
Select * Into #AuditInserted from inserted
While (Select COUNT(*) from #AuditDeleted) > 0 OR (Select COUNT(*) from #AuditInserted) > 0
Begin
INSERT INTO [dbo].[AutoAudit]
( [AuditDate], [AuditUserName], [TableName], [OldContent], [NewContent])
SELECT
GETDATE(),
SUSER_NAME(),
[TableName]=object_name([parent_obj]),
[OldContent]=CAST((SELECT TOP 1 * FROM #AuditDeleted D FOR XML RAW) AS XML),
[NewContent]=CAST((SELECT TOP 1 * FROM #AuditInserted I FOR XML RAW) AS XML)
FROM sysobjects
WHERE
[xtype] = 'tr'
and [name] = OBJECT_NAME(@@PROCID)
Set @v_AuditID = SCOPE_IDENTITY()
Delete from AutoAudit
Where AuditID = @v_AuditID
AND Convert(varchar(max),oldContent) = Convert(varchar(max),NewContent)
Delete top(1) from #AuditDeleted
Delete top(1) from #AuditInserted
End
END -
Is it possible to get the balance sheet report by using profit center
Dear Experts,
could you please help me out regarding the following issue.
business area wise we can get the balance sheet but i want to know is there any possibility to get the BS by using profit centers only for BS Items or can we assign biasness area as well as profit center in a single screen.I think you can use this report. S_ALR_87013336
Regards
Radha -
Is it possible to get the updated table records based on date & time.
Is it possible to get the updated table records based on date & time in oracle.
Thanks in advance.no, actually i am asking update records using 'UPDATE
or DELETE' statement, but not insert statement.
Is it possible?
I think we can do using trigger on table, but problem
is if i am having 20 tables means i have to write 20
trigger. i don't want like this.Of course it's still possible, typically you'll find applications with a column LAST_UPDATE, probably a LAST_UPDATED_BY and so on column. You don't say what your business need is, if you just want a one of query of updates to particular records and have a recent version of Oracle, then flashback query may well help, if you want to record update timestamps you either have to modify the table, or write some code to store your updates in an audit table somewhere.
Niall Litchfield
http://www.orawin.info/ -
Is it possible to view/get the table data from a dump file
I have dmp files generated using expdp on oracle 11g..
expdp_schemas_18MAY2013_1.dmp
expdp_schemas_18MAY2013_2.dmp
expdp_schemas_18MAY2013_3.dmp
Can I use a parameter file given below to get the table data in to the sql file or impdp the only option to load the table data in to database.
vi test1.par
USERID="/ as sysdba"
DIRECTORY=DATA
dumpfile=expdp_schemas_18MAY2013%S.dmp
SCHEMAS=USER1,USER2
LOGFILE=user_dump_data.log
SQLFILE=user_dump_data.sql
and impdp parfile=test1.par.Hi,
To explain more about my situation.
Target database has the dump files, where as the source database (cloud) doesn't have access to the target database.
However, I can request the target DB DBA team to run the par files and provide me the output like a SQL file which I can take and run it in my source database.
I got the metadata the same way, but is there any way I could get the data from the dump files on the target DB without actually accessing it? My question might sound weird, but please let me know.
<
1. export from the source into a dumpfile. You can do this on the source database and then copy the file over to your local database or you can do this from a local database if you have a database link defined on the local database that points to the source database. In the second case, your dumpfile will be created on your local database.
>
How can i access the dump using the database link? -
How to get the table of value field? and can we expand the technical limits
Dear
I have created value field in COPA with KEA6. And now, I need the table which the value fields are saved. Yet, I have tried a lot to find it and get failure? Can any guy help me? Please tell me how to get the table of a value field.
And another question is that, can we extend the technical limits for the number of value field for ECC6.0?
We have a note for R.4.x Please see below:
OSS note 160892
You can display the length of a data record using Transaction KEA0 ('Maintain Operating Concern'). After you have navigated to the 'Characteristics Screen' or to the 'Value field Screen' choose menu path 'Extras -> Technical Limits'.
The maximum displayed here under 'Length in bytes on the DB' is the maximum length permitted by the Dictionary. The reserve required for the release upgrade must be subtracted from this value.
To increase the allowed number of the value fields, increase the value that is assigned to field ikcge-bas_max_cnt (FORM init_ikcge_ke USING fm_subrc, approx. line 165) in Include FKCGNF20. It specifies the number of the possible value fields. The corresponding part of the source code is attached to the note as a correction.
David Sun
Regards!how to extend the limit of value numbers? please see the original question.
-
Is possible to get the page name from the _pageid
Is possible to get the page name from the _pageid displayed in the url?
It must be stored in a portal oracle table does anyone know which ones or whether there is a api to translate the pageid.
Thanks in advance.You have you execute this query, using both the numbers included in the parameter pageid:
select display_name from portal.wwsbr_all_folders
where caid = :first_number
and id = :second_number -
Not able to get the tables in crystal report 2008
Hi,
I am using crystal report 2008 and trying to connect MS SQL using OLE DB (ADO) connection. After giving all DB credentials data base tables are not appearing in the connection. how to get the tables for selection in crystal report 2008.
Regards,
SreeIn the CR Designer, select the connection and press the right mouse button. Select Options in the context menu and check if there is an entry in the Table name fiel. Maybe you have a placeholder there that does not match the names of the tables in the database. Just remove it, close the window by pressing OK and refresh the connection browser (press F5). Unfold the connection again and check if you can see the tables now.
Regards,
Stratos -
I've recently been given a macbook pro from uni, with lots of adobe software on. I want to pair it with my iMac which has music etc and is it possible to get the software to the imac and the files to the macbook?Giving me the best of both :-)
You would need the original installation disks or files for the Adobe software to get it onto your iMac, and having it on two computers may not be allowed by your university's licensing. Talk to whoever issued the MacBook.
As to the music, just copy it over to the MacBook, either via Home Sharing, file sharing, or an external storage medium (hard drive, USB flash drive, etc.).
Regards. -
How do I get the table of contents to toggle? It has remained open since I opened it while reading two books ago. Thanks for the help.
Thank you for your advice. I followed your directions, but came up with the same results. However, I did discover that whenever I open up the iPhoto Library that is already existing on my MacBook a certain set of pictures shows up. But then when I open up the iPhoto Library from the Hard drive another set of pictures shows up. BUT not ALL of my pictures are showing up on the iPhoto Library from the hard drive. At least the last two years of pictures are not showing up?! Actually, it appears that all the pictures are there from when I started using iPhoto about 5 years ago up until around the time that I got my iMac desktop computer and started using that (2 years ago). I have noticed that more recent videos I have made are showing up in a folder on the hard drive, but will not appear when I open up iMovie?! Any ideas on how to access my pictures from the last 2 years off of the hard drive???
-
Is it possible to get the style, font and related info of a paragraph text of a in design file and write all the stuff on the same in design file on the left side with small fonts
as
Lets this is a text in in design file :
style : abc we are going to check the condition Agence Wallonne pour la Promotion d'une Agricultur we are going to check the condition Agence Wallonne pour la font 12 d'une Agricultu we are going to check the condition Agence Wallonne pour la Promotion d'une Agricultu
style : xyz we are going to check the condition Agence Wallonne pour la Promotion d'une Agricultur we are going to check the condition Agence Wallonne pour la font 10 d'une Agricultu we are going to check the condition Agence Wallonne pour la Promotion d'une AgricultuHi Poojith
Not sure if this would solve your requirment but just in case might be helpful:
1. We can mix up the HTML and HTMLB components in the JSP Page. However, can access only the HTMLB components in the controller. The following link refers to what customizations are offered by the HTMLB framework:
[http://www.sapdesignguild.org/resources/htmlb_guidance/]
2. Another option would be to use AbstractPortalComponents or a simple web app if that's feasible. (where custom UI themes, css and layout are more in control of the developers.)
Thanks
Deepak -
How to get the table name and bind columns names in an INSERT statement ?
I have an INSERT statement with input parameters (for example
INSERT INTO my_table VALUES (:a, :a, :a)) and I want to know
without parsing the statement which is the name of table to
insert to and the corresponding columns.
This is needed to generate the SELECT FOR UPDATE statement to
refetch a BLOB before actually writing to it. The code does not
know in advance the schema (generic code).
Thanks in advance,
Joseph CanedoOnce you have prepared your statement, you can execute the
statement with the OCI_DESCRIBE_ONLY mode before binding any
columns. Then you can use OCIParamGet to find out about each
column (column index is 1-based). You should get OCI_NO_DATA or
ORA-24334 if there are no more columns in the statement. Note
that the parameter descriptor from OCIParamGet is
allocated/freed internally by OCI; you do not need to manage it
explicitly. The parameter descriptor is passed to OCIAttrGet in
order to obtain for instance the maximum size of data in the
column OCI_ATTR_DATA_SIZE. You can also get the column name in
this way, although I do not remember the #define off the top of
my head. Getting the table name appears to be much more
difficult; I have never had to do that yet. Good luck. -Ralph -
I have a few ipads, iphones and ipod touches of various models, and all run iOS6 of various types (whatever they were running when I last updated them before iOS 7 came along and stopped me being able to get newer versions of 6).
I tried iOS7 for a while but hated both the appearance and some of the things that changed.
My ipods have updated to a new version of iOS6 with the SSL fix.
I can't seem to get this option for the ipads or iphones.
Is it possible to get the important SSL update for iOS 6 for iPhone5, iPad3, ipad4 and ipad mini (not retina) without having to go to iOS7?
(It seems that I can get a fix by jailbreaking but I really don't want to do that if there's another option since I have no need for it otherwise.)
Thanks a lot.Thanks, that's helpful. I expected that answer, since I read a load of stuff about Apple pushing people to get iOS 7 despite it having people who disliked it, but was hopeful it was not the case
Some of the changes, like to calendar were just frustrating.
Not a big problem though - just means that the next phone and tablet hardware update I get won't be apple.
Thanks a lot for the swift and helpful replies. -
Is it possible to get the information from the complete forms send to different email account
When i have a paid account is it than possible to get the information from the different forms send to seperate emailaddresses.
Who dont have a account from formscentral but just need the information directly in there own inboxes?
Because we're looking for a good and simple way to make qoustion & complain forms. But these need to go to different people in the company.You can have notifications sent to multiple email addresses, but each will need to have a FormsCentral account. They can be free accounts. What you do is create your form and set up the email addresses that you want the information to go to to be Co-authors or Contributors. The co-author/contributor accounts will then need to log into FormsCentral, go to the Options tab and check the email notifications checkbox.
I hope this helps.
-Jeff
Maybe you are looking for
-
Last Page Header and Footer in XML Report
Hi I have one requirement , where except last page for an invoice, all other pages should have one header. Last page should have nothing header and in Body some information(Total details) should be displayed and in footer terms and conditions should
-
s
-
J2SE50 - error 1311 on installation
Hi, Upon installation of the J2SE Runtime Environment 5.0, I receive error message 1311 - source file not found (C:\WINDOWS\Installer\MSI69.tmp). I�ve been looking for info on this 1311 error message, and it�s widely commented. The main cause would b
-
i have this piece of code, and its apparently in a static poition but a non static variable, i dont want it to have a return value, so i marked it as void, but when i do, the compiler tells me that printStudent is no static but being referenced from
-
Photosmart C5180- paper won't feed correctly
Hi, We had a paper jam and after I cleared it, the paper won't feed correctly. If I feed one piece at a time, it will do it. Otherwise, it pulls the top paper from only the right side (as you are looking in) and causes another jam. If anyone has an