Cannot query MSSQL system tables over db link created using DG4MSQL
I am trying to create db link from Oracle 11g to SQL Server 2005 using DG4MSQL gateway. After creating db link I am not able to query MSSQL system views(sys.services or sys.objects) using JDBC driver. But I am able to query all user tables using JDBC driver. But if I use sqlplus, I am able to query all tables including system tables. Since my project is Java project, I am bound to use JDBC driver. One more observation I made is that, if I use DG4ODBC instead of DG4MSQL gateway, then I am able to query all MSSQL tables including system tables uding JDBC driver. Please let me know if there are any ways I can query MSSQL system tables using DG4MSQL and JDBC driver.
Edited by: user13398705 on Dec 20, 2011 2:08 AM
There's a bug in the JDBC driver and for 11.2.0.1 a fix is available on my Oracle Support -> look for fix 9496068 - it is a generic platform fix. According to the bug matrix this fix is also included in the 11.2.0.3 JDBC driver. Are you using this JDBC driver version?
Similar Messages
-
With InDesign CS6 I cannot re-work a table in a file created in InDesign CS5.5.
With InDesign CS6 I cannot re-work a table in a file created with InDesign CS5.5. The half of the table disappears when I try. Any idea why?
No idea why that would happen ...
Try this
Troubleshooting 101: Export to .idml or .inx to clear file corruption
And/or this
Troubleshooting 101: Replace, or "trash" your InDesign preferences -
Flashbackup query with system tables
Hello,
When I try to execute a flasback query on a system table as user$ I get the error ORA-1466.
Does it exist any way to get the rows of this table but in a certaing point of time?
Regards,
Juanhttp://download.oracle.com/docs/cd/B19306_01/appdev.102/b14251/adfns_flashback.htm#sthref1460
-
Is there a system table that stores the "create table" scripts
Does a Oracle system table exist that contains the "create table" scripts for tables defined under a schema?
I know I can build this with SQL by querying the user_tab_columns, but I was wondering whether the entire DML
statement is already stored in some other system table. In the Quest Toad software you can simply go to the "Schema Brower", "Tables",
then select the "Script" tab and it shows you the "create table" statement for the particular table that you are
looking at. I'm wondering whether Toad behind the scenes is building this "create table" script via the user_tab_columns
table or using another system table.
Thank you in advance,
Wesyou can use the DBMS_METADATA.GET_DDL procedure to obtain the details regarding the ddl statement used to create the table.
-
Cannot open files in Captivate 5 that were create using Captivate 5.5
I created a few videos using Adobe Captivate version 5.5 using the trial version.
After a few days i got the license for Adobe Captivate 5 and im trying to open the files that i created using Adobe captivate 5.5.
When i try to open the files Captivate shows up an error message telling 'The file might already be open or it does not exist'.
I understand they are two different versions. Has someone faced anything like this before ? Please let me know if you have solutions to open the files i have created.
Thanks
ChetanYou can only open Cp 5.5 files with Cp 5.5.
There is no solution for opening these files in Cp 5 version.
May I ask, why did you not get a license of Cp 5.5? It's been around for over 6 months now. -
Primary N7k cannot query MAC address table
I try:
show mac address-table
show mac address-table <anything else>
The command just hangs on:
#sh mac address-table
Legend:
* - primary entry, G - Gateway MAC, (R) - Routed MAC
age - seconds since last seen,+ - primary entry using vPC Peer-Link
VLAN MAC Address Type age Secure NTFY Ports
------------+-----------------------+-------------+---------+-----------+--------+------------------
The secondary N7k does not have this issue.
RickDo you have a redundant/backup supervisor engine in the N7K?
If so, try to failover to it - I have had instances where the MAC address for a specific host has become "stuck" in one supervisor engine, and the only solution was to failover to the second engine and restart the first.
If you don't have a redundant engine, you may have to restart your supervisor engine with the "reload module x" command, or by simply restarting the switch. Note that if you've only got one supervisor module and you reload it, you will lose traffic while it reboots.
Cheers -
Query a remote table with Database Links
How do database links work with ODP.NET? The following code produces an "ORA-02041: client database did not begin a transaction" error on the Fill method.
SQL (in acme instance):
CREATE DATABASE LINK sales.hq.acme.com
CONNECT TO scott IDENTIFIED BY tiger
USING 'sales'
VB .NET:
Dim cn As New OracleConnection("Data Source=acme;User ID=scott;Password=tiger;")
Dim da As New OracleDataAdapter("SELECT * FROM [email protected]", cn)
Dim ds As New DataSet
da.Fill(ds, "RemoteEmp")Just read running procedure on remote db???
Changed first line to
Dim cn As New OracleConnection("Data Source=acme;User ID=scott;Password=tiger;Enlist=false")
and it works now.
That's what I get for searching the forum instead of browsing. -
Query to Find Table and Column Name by using a value
Dear Legends,
I hope and surfed in our forums and google to find the Table Name and Column Name by having a value(Number/String). And my where clauses are
where owner NOT IN ('SYS','SYSTEM') and
data_type IN ('CHAR','VARCHAR2','NUMBER')
May I have your help for building the query. and my query as follows
select a.owner, c.column_name, c.data_type, c.owner, c.table_name
from dba_objects a, all_tab_cols c
where a.owner NOT IN ('SYS','SYSTEM') and
where c.owner NOT IN ('SYS','SYSTEM') and
where c.data_type IN ('CHAR','VARCHAR2')
order by a.owner
Thanks,
KarthikYou can use
select * from user_tab_columns a, user_tables b
where a.table_name = b.table_name
and a.data_type in ('NUMBER', 'VARCHAR2', 'NCHAR', 'CHAR');
Or if you want to user DBA_* tables, you can use.
select * from dba_tab_columns a, dba_tables b
where a.table_name = b.table_name
and a.owner = b.owner
and a.data_type in ('NUMBER', 'VARCHAR2', 'NCHAR', 'CHAR')
and b.owner not in ('SYS', 'SYSTEM');
And now when I look a bit more closely, you don't need DBA_TABLES there. dba_tab_columns alone is sufficient. And requirement is still not clear yet. Why you need a group by there? If I get it right, you can use this.
select * from dba_tab_columns a
where a.data_type in ('NUMBER', 'VARCHAR2', 'NCHAR', 'CHAR')
and a.owner not in ('SYS', 'SYSTEM');
Whether you use group by or not, the query will give you the same output.
Ishan -
Apex link (Created using href) is not working
Hello All,
1. I have created a click able on the APEX page for the attached link (stored in the oracle db table)
Using below query
SELECT '<a href="' ||'file:///'||Package.function(p_parameter)||'" target="_blank">'|| package.function (p_parameter_id )||'</a>'
AS href
FROM prag.t1, t2
WHERE condition.t1 = condition.t2
AND ID =p_id
2. The attached link from the path are opening in a new window perfectly for me.
\\sih82566\k1_ora$\K1IS\TEST1I\WORKDIR\Gaurav\146539_Scripts.SQL
3. The attached link from the path such as
C:\Documentss%20and%20Settings\gaurav\Desktop\f120.sql
are not accessible to me. There is not any error message also on click on this link.
Note:I am using using APEX in my citrix machine
Thank you.
Regards,
Gaurav Nagpal.Hello Hari ,
I was expecting suggestion from you and finally you replied thanks a ton.
For your first question :->
I think the problem is with "citrix". Can you just run the application from your machine and see if you can access the file?
Yes, I copied the link " C:\Documentss%20and%20Settings\gaurav\Desktop\f120.sql " and paste on IE its working perfectly.
When you run browser from citrix, then C:\.. will refer to local drive of Citrix machine, not your local machine!
Attached link from C:\. is not working (either I attach link from citrix machine or my local machine)
It would be really very helpful if you can suggest me more in solving this issue.
Thank you.
Regards,
Gaurav Nagpal. -
Can I Select from table skipping extents linked with lost datafiles?
Hi~,
I need your help to recover my database.
I'm using oracle 9.2.0.8 at Fedora 3 with no-archive mode.
and I don't have any backup.
Last night, I experenced hard disk failure.
I tried OS-level recovery, but I lost some datafiles of tablespace.
anyway, I wanted to recover my database without data of lost datafiles.
so, I issued "alter database datafile offline drop" and
start oracle instance.
But, datafiles were not removed from dba_data_files view and
extents linked with lost datafiles were not removed from dba_extents view!
Selecting query of some table containing extents linked with lost data files,
I got "ORA-00376: file xxx cannot be read at this time" message.
So, my question is that..
HOW CAN I SELECT FROM THAT TABLE WITHOUT SCANNING EXTENTS LINKED WITH LOST DATA FILES?
Thanks.Hi,
Without being in archivelog and without backup, one can't do any sort of recovery. That's why backups and archivelog are so so important.
The offline data file command never does actually drop the datafile. It merely indicates to the control file that now the said tablespace will also be dropped. This won't update any view that the files are not supposed to be used or shown to you anymore.
This is what documentation says about the recovery of the database in the NoARch mode,
http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/osrecov.htm#i1007937
You do need a backup in order to get those tables being read. Oracle doesn't have any feature which can offline/skip the missing extents for you and let you read the data without them.
HTH
Aman.... -
Get agent "run as" value from system tables
Hi,
When you create a job step (specifically an SSIS) you can set the "run as" value. Can anyone tell me where this value can be queried in system tables/views?
I'm looking in
SELECT * FROM msdb..sysjobsteps
SELECT * FROM msdb..sysjobs
but can't see the value I know the job step is set to.Try the below:
SELECT
B.[job_id] AS [JobID]
, B.[name] AS [JobName]
, A.[step_name] AS [StepName]
, C.[name] AS [RunAs]
FROM
[msdb].[dbo].[sysjobsteps] AS A
INNER JOIN [msdb].[dbo].[sysjobs] AS B ON A.[job_id] = B.[job_id]
LEFT JOIN [msdb].[dbo].[sysproxies] AS C ON A.[proxy_id] = C.[proxy_id]
ORDER BY [JobName] -
Update query for Advanced table.
Hi,
I am an newbie to OAF so need help for a simple task.
I have an advanced table that has been created using expert mode query of VO. (as it contains data from more than one table).
Now, i want to update the data for any row that is changed in the table,
i followed the advanced table example in the tutorial and reached till the update method of AM. Now I am not able to update the table. When I searched the forum it said that I need to have a simple EO on the table to update it, but I want to update more than one table ( foreign key relationship), so can I do it using the same VO ? I have both the VO (one based on custom select query of Expert mode and other normal VO based on EO).
Can someone please give me the query to update the table ?
Thanks,
VKThanks Reetesh for your reply.
As this is a simple task I wan't to do it via OAF query rather than writing PL/SQL procedure.
I have two tables , say error table and interface table, (there is a foreign key relation ship between these tables, ie. i have to show the interface name present in the interface table via the foreign key in the error table). I used the following query to get the data
SELECT xxgblErrorMasterEO1.ERROR_ID_NO,
xxgblErrorMasterEO1.ERROR_CODE,
xxgblErrorMasterEO1.ERROR_MESSAGE,
xxgblErrorMasterEO1.CREATED_BY,
xxgblErrorMasterEO1.CREATION_DATE,
xxgblErrorMasterEO1.LAST_UPDATED_BY,
xxgblErrorMasterEO1.LAST_UPDATE_DATE,
xxgblIntfProgramMaster.INTERFACE_NAME,
xxgblErrorMasterEO1.ERROR_TYPE
FROM XXEEG.XXGBL_ERROR_MASTER xxgblErrorMasterEO1,
XXEEG.XXGBL_INTF_PROGRAM_MASTER xxgblIntfProgramMaster
where xxgblErrorMasterEO1.INTERFACE_ID_NO =
xxgblIntfProgramMaster.INTERFACE_ID_NO
I like the idea of Advanced table while going through the tutorial (example 2) and would want to show certain fields by expanding on the + mark ( just like in the explorer)
now i want to update any of the fields that i show to the user (except the WHO fields). Say for example if the user updates the error_message and Interface_name, so how should i write the update method in the AM ?
Pardon me if this sounds simple :( -
Hi Every one,
An error has occurred during report processing. (rsProcessingAborted)
Get Online Help
Query execution failed for data set 'NonFinTran'. (rsErrorExecutingCommand)
Get Online Help
Cannot drop the table '#NonFinTran', because it does not exist in the system catalog. Cannot drop the table '#MultipleNonFinTran',
because it does not exist in the system catalog. Transaction context in use by another session.
NOTE: NonFinTran &
MultipleNonFinTran are
the Temp table in my storedPoc.
Please any help me to solve this issue.
Thanks & Regards,
Anil Kumar
Anil KumarHi Harsh,
Below is my Stored Proc
SELECT @ServerName=datasource from master.dbo.sysservers WHERE catalog='Voyager'
SELECT @ServerName3=datasource from master.dbo.sysservers WHERE catalog='AuditLog'
SELECT @ServerName2=datasource from master.dbo.sysservers WHERE catalog='Portal'
IF @ServerName IS NOT NULL SET @ServerName='[' + @ServerName + '].' ELSE SET @ServerName=''
IF @ServerName3 IS NOT NULL SET @ServerName3='[' + @ServerName3 + '].' ELSE SET @ServerName3=''
IF @ServerName2 IS NOT NULL SET @ServerName2='[' + @ServerName2 + '].' ELSE SET @ServerName2=''
IF Exists(Select * From tempdb.dbo.SysObjects Where Name Like '#NonFinTran%')
DROP TABLE #NonFinTran
IF Exists(Select * From tempdb.dbo.SysObjects Where Name Like '#MultipleNonFinTran%')
DROP TABLE #MultipleNonFinTran
CREATE TABLE #NonFinTran (FirstName VARCHAR(40), TaxId VARCHAR(40), TrxID VARCHAR(40), Status VARCHAR(255), Field1 VARCHAR(255), Field2 VARCHAR(255),
Field3 VARCHAR(255), Field4 VARCHAR(255), Field5 VARCHAR(255), Field6 VARCHAR(255), DateTime DATETIME,
BranchID CHAR(3), BankID CHAR(1), FromAccountID VARCHAR(255), FromAccountType VARCHAR(255))
CREATE TABLE #MultipleNonFinTran (FirstName VARCHAR(40), TaxId VARCHAR(40), TrxID VARCHAR(40), Status VARCHAR(255), Field1 VARCHAR(255), Field2 VARCHAR(255),
Field3 VARCHAR(255), Field4 VARCHAR(255), Field5 VARCHAR(255), Field6 VARCHAR(255), DateTime DATETIME,
BranchID CHAR(3), BankID CHAR(1), FromAccountID VARCHAR(255), FromAccountType VARCHAR(255))
INSERT #NonFinTran
EXEC('SELECT FirstName, TaxID,
TrxID, Status, TrxField1, TrxField2, TrxField3, TrxField4, TrxField5, TrxField6, DateTime, '''', '''', '''', ''''
FROM ' + @ServerName3 + 'AuditLog.dbo.CCAuditLogEntryView AS Audit, ' + @ServerName + 'Voyager.dbo.CCUser AS CCUser
WHERE CCUser.UserID = Audit.UserID
AND Audit.Succeeded = 1
AND Audit.TrxID IN (''ChangeBillPayDefaultAccountEdit'',''ChangeExpiryUserPassword'',''ChangePasswordEdit'',
''ChangeUserPassword'',''ManageAddressMaint'',''ManageContactMaint'',''ManageSecretQuestionAnswerEdit'',
''ManageTransLimitMaint'',''OtherBankAccountMaintAdd'',''OtherBankAccountMaintDelete'',''OtherBankAccountMaintEdit'',
''WithinAmBankAccountMaintAdd'',''WithinAmBankAccountMaintDelete'',''WithinAmBankAccountMaintEdit'',
''SetAccountMaskPreferenceAudit'',''ChangeLoginIdAudit'')
AND DATEDIFF(DAY, CONVERT(DATETIME, CONVERT(VARCHAR(10), ''' + @StartDate + '''), 103), Audit.DateTime) >= 0
AND DATEDIFF(DAY, CONVERT(DATETIME, CONVERT(VARCHAR(10), ''' + @EndDate + '''), 103), Audit.DateTime) <= 0 ')
INSERT #MultipleNonFinTran
EXEC('SELECT DISTINCT FirstName, TaxID,
TrxID, Status, TrxField1, TrxField2, TrxField3, TrxField4, TrxField5, TrxField6, Audit.DateTime as AuditDateTime,
(SELECT DISTINCT SUBSTRING(A.BranchCode,3,3) FROM ' + @ServerName + 'AuditLog.dbo.CCAuditLogEntryView X INNER JOIN ' + @ServerName + 'Voyager.dbo.CCuser U
ON X.UserId = U.UserId INNER JOIN ' + @ServerName + 'Voyager.dbo.AMHZ_CustomerProfile P ON P.EnrolId = U.TAXID
INNER JOIN ' + @ServerName + 'Voyager.dbo.AMHZ_AccountListing A ON A.CIFNO = P.CIFNO
WHERE X.UserId = Audit.UserId AND A.AccountNo = SUBSTRING(Audit.TrxField1,11,16) AND P.CIFNO = A.CIFNO
AND (SUBSTRING(A.BranchCode,3,3) <> NULL OR SUBSTRING(A.BranchCode,3,3) <> '''')
AND CHARINDEX(''AccountID='', Audit.TrxField1, 1) > 0),
SUBSTRING(TrxField1,14,1), CASE WHEN CHARINDEX(''AccountID='', TrxField1, 1) > 0 THEN
SUBSTRING(TrxField1,11,16) ELSE '''' END, CASE WHEN CHARINDEX(''AccountType='', TrxField2, 1) > 0 THEN SUBSTRING(TrxField2,13,3) ELSE '''' END
FROM ' + @ServerName3 + 'AuditLog.dbo.CCAuditLogEntryView AS Audit, ' + @ServerName + 'Voyager.dbo.CCUser AS CCUser
WHERE CCUser.UserID = Audit.UserID
AND Audit.Succeeded = 1
AND Audit.TrxID IN (''SetAccountAttributesAudit'',''SetAccountFriendlyNameAudit'',
''AccountProfileMaintULDelete'',''AccountProfileMaintLHAAdd'',''AccountProfileMaintLSCAdd'')
AND DATEDIFF(DAY, CONVERT(DATETIME, CONVERT(VARCHAR(10), ''' + @StartDate + '''), 103), Audit.DateTime) >= 0
AND DATEDIFF(DAY, CONVERT(DATETIME, CONVERT(VARCHAR(10), ''' + @EndDate + '''), 103), Audit.DateTime) <= 0 ')
SET @stmt = '
SELECT * FROM
SELECT BranchName,
CASE WHEN SUBSTRING(FromAccountID,1,6) IN (''519901'',''559409'') THEN ''DC''
ELSE
CASE FromAccountType WHEN ''01'' THEN ''SA '' WHEN ''02'' THEN ''CA '' WHEN ''03'' THEN ''FD ''
WHEN ''SA'' THEN ''SA '' WHEN ''CA'' THEN ''CA '' WHEN ''FD'' THEN ''FD '' ELSE FromAccountType + '' ''
END
END +
case when Len(FromAccountID) =16 Then
CASE FromAccountType WHEN ''VC'' THEN
SUBSTRING(FromAccountID,1,6)+''******''+SUBSTRING(FromAccountID,13,4)
WHEN ''MC'' THEN SUBSTRING(FromAccountID,1,6)+''******''+SUBSTRING(FromAccountID,13,4) END
when Len(FromAccountID) =15 Then
CASE FromAccountType WHEN ''VC'' THEN
SUBSTRING(FromAccountID,1,6)+''******''+SUBSTRING(FromAccountID,13,3)
WHEN ''MC'' THEN SUBSTRING(FromAccountID,1,6)+''******''+SUBSTRING(FromAccountID,13,3) END
ELSE FromAccountID
ENd
AS FromAcctNo,
CASE TrxId
WHEN ''AccountProfileMaintLHAAdd'' THEN ''Link Account/Card''
WHEN ''AccountProfileMaintLSCAdd'' THEN ''Link Account/Card''
WHEN ''APMFamilyFirstAdd'' THEN ''Link Family First Account''
WHEN ''AccountProfileMaintULDelete'' THEN ''Unlink Account/Card''
WHEN ''BalInqFD'' THEN CASE WHEN Field3 IN (''APMLink=SUCCESS'') THEN ''APMLink Success'' ELSE ''Fixed Deposit Balance Inquiry'' END
WHEN ''BalInqCASA'' THEN CASE WHEN Field3 IN (''APMLink=SUCCESS'') THEN ''APMLink Success'' ELSE
CASE WHEN FromAccountType IN (''SA'',''01'') THEN ''Savings Account Balance Inquiry''
ELSE ''Current Account Balance Inquiry''
END
END
WHEN ''StopCheck'' THEN ''Stop Cheque Request''
WHEN ''CheckReorder'' THEN ''Order Your Cheque''
WHEN ''CheckInquiry'' THEN ''Cheque Inquiry''
WHEN ''TransHistFD'' THEN ''Fixed Deposit Transaction History''
WHEN ''TransHistCASA'' THEN
CASE WHEN FromAccountType IN (''SA'',''01'') THEN ''Savings Account Transaction History'' ELSE ''Current Account Transaction History'' END
WHEN ''StmtInqCC'' THEN
CASE WHEN FromAccountType IN (''DR'',''03'') THEN ''Debit Card Statement Inquiry'' ELSE ''Credit Card Statement Inquiry'' END
WHEN ''StmtInqDA'' THEN
CASE WHEN FromAccountType IN (''SA'',''01'') THEN ''Savings Account Statement Inquiry'' ELSE ''Current Account Statement Inquiry'' END
WHEN ''StmtReq'' THEN ''Printed Statement Request''
WHEN ''StmtInqIAMSTAR'' THEN ''E-AMSTAR Statement Inquiry''
WHEN ''Repayment/Transfer Inquiry'' THEN ''Repayment/Transfer Inquiry''
WHEN ''Account Inquiry'' THEN ''Account Inquiry''
WHEN ''Payment Inquiry'' THEN ''Payment Inquiry''
END AS TransType,
FirstName AS CustomerName,
TaxId, CONVERT(VARCHAR, DateTime, 103) AS Date, CONVERT(VARCHAR, DateTime, 108) AS Time
FROM #NonFinTran, ' + @ServerName3 + 'Portal.dbo.TB_Branch AS TB_Branch
WHERE
BranchId = TB_Branch.BranchCode
AND (TB_Branch.InstCode IN (''00001'', ''00003'',''001'',''002''))
AND (FromAccountType IN (''SA'', ''CA'', ''FD'', ''01'', ''02'', ''03'')))'
EXEC (@stmt)
IF Exists(Select * From tempdb.dbo.SysObjects Where Name Like '#NonFinTran%')
DROP TABLE #NonFinTran
IF Exists(Select * From tempdb.dbo.SysObjects Where Name Like '#MultipleNonFinTran%')
DROP TABLE #MultipleNonFinTran
Anil Kumar -
Ora-600 using table function over db link
Hi,
I have a table function n my target schema (OWB 9.2.0.4 on Oracle 9.2.0.5) with the following signature:
function uii_get_exchange_data_tf(
p_input_values in sys_refcursor
) return uii_exchange_table_t pipelined
When I try to use this with a remote table over a db link, e.g.:
=============
select * from table(uii_get_exchange_data_tf(cursor (select sub_zone || '/' || exch_grp_cd exchange_id,
exch_name exchange_name FROM cds_exchange_test@uiid1@uiidraconn order by exchange_id)))
==============
I get this:
================
ORA-00600: internal error code, arguments: [kokbnp2], [942], [], [], [], [], [],
ORA-06512: at "UII_ODS_OWNER_DEV.UII_GET_EXCHANGE_DATA_TF", line 21
=================
However, if I create a local view with the same remote select like this:
===================
CREATE OR REPLACE FORCE VIEW UII_CDS_EXCHANGE_RV
AS SELECT sub_zone || '/' || exch_grp_cd exchange_id,
exch_name exchange_name
FROM cds_css_exch_detail@uiid1@uiidraconn;
====================
Then everything works fine.
Can someone help ? I'm sure I'm dooing something silly, since so many people seem to be using table functions from OWB just fine; but I can't figure out what :-(
Thanks in advance.
Regards,
Biswa.Hello,
Is this query works fine without creating mview
SELECT COL1,COL2, CASE when COL3 = Y then (select X from MASTER2@DBLINK) FROM MASTER1@DBLINK.
try something like this
SELECT col1, col2, CASE
WHEN col3 = y
THEN
(SELECT x
FROM master2@dblink)
END
my
FROM master1@dblinkregards -
On a UDF (on a system table) add a CFL (linked to a system table)
Hello,
I added a UDF to OITM, named say "XXX_RootOfPrj". It appears on the standard UDFs panel:
Users should type a project code (OPRJ.PrjCode) here.
For helping them I need to add a ChooseFromList on this UDF, linked to OPRJ.
So I added this line in the UDF definition:
oUserFieldsMD.LinkedTable = "OPRJ";
But when I Add() the UDF I get:
Errore -5002: Il campo 'Tabella collegata' dovrebbe essere formato da 8 car. alfanumerici senza val. standard validi
Which means more or less:
Error -5002: 'Linked table' field should be formed by 8 alphanumeric characters without standard valid values
Maybe is it impossible what I want to do? It's odd that I can link a UDT but not a system table...
Maybe should I use a workaround, like manually attaching a CFL on the form using UI API?Thanks Edy,
now I got it!
Create a query for the formatted search, like this:
select PrjCode, PrjName
from OPRJ
Add this user query to B1 as a saved query
Open Item Master Data, select your UDF, press Alt + Shift + F2
In the dialog select "Search in Existing User-Defined Values according to Saved Query", click on "Open Saved Query", select the saved query above and you are done.
Now the user can pick a valid project code from a CFL.
Kind regards
Maybe you are looking for
-
Earing a funny sound in my new iMac
I have a new version Intel Imac and so far I never heard any sound suddenly we heard quite a loud sound like a cooling fan and after a minute disappeared. Also we hear beeps once on a while, I don't know it is's the iMac or Skype which is always on.
-
NVision Report not generated with email option in the Run Report page
Hi , I want to send the nvision reports through email to the users, I tried it by setting the email option in the drop down of the "Type" after giving "Run Report" and then specifying the email ids. The issue is i am getting emails , but the report i
-
Would like help with treeset ,the codes that using for sorting, please ?
hi every body. i faced a problem while writing this program, everything worked properly except this one. The program is related to Jframe and it asks the user to add three labels , three text field , one text area and three Jbuttons which are add sor
-
NWDS version for EP7.0 EHP1 & CE7.1
Hi All, Which NWDS version I need to install to support both EP7.0 EHP1 and CE7.1 for development and deployment of Web Dynpro Java . I am new to CE7.1. I am aware of settings need to done in NWDS for the deployment of WDJ application. For CE7.1 serv
-
I have recently switched to a new iMac with a fresh install of 10.6.2. My Apple Mail app is not grabbing address book contacts automatically even though I have checked the box to auto-complete addresses. This always used to work on my old machine. An