Tables and views not visable in diagram organiser
HI
Opened my SSAS project and the tables are not visable in the Diagram Organiser.
When I right click on the pane and show all tables get :
Error HRESULT E_FAIL has been returned from a call to COM component
Then the tables appear without there relationships.
Cube still processes etc.
Any help please ?
BTW Just installed this on a new PC build.
Version:
11.0.3436.0
File Name:
SSDTBI_VS2012_x86_ENU.exe
Date Published:
26/06/2014
File Size:
784.0 MB
Hi Bifool,
According to your description, the issue was solved when open this project in Visual Studio 2013, right?
SQL Server Data Tools – Business Intelligence for Visual Studio 2013 (SSDT BI) for SQL Server 2014. So when you open this project in VS 2013, the project was upgraded to SQL Server
2014 version automatically which might solve this issue.
Besides, for the error
Error HRESULT E_FAIL has been returned from a call to COM component
It seems that it's a known issue, please refer to the links below.
https://connect.microsoft.com/SQLServer/feedback/details/484146/getting-an-error-when-trying-to-browse-a-cube
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/58a07890-52f6-4adc-8cdd-bbfcb30e87c6/browsing-a-cube-error-hresult-efail-has-been-returned-from-a-call-to-a-com-component-microsoft?forum=sqlanalysisservices
Hope this helps.
Regards,
Charlie Liao
If you have any feedback on our support, please click
here.
Charlie Liao
TechNet Community Support
Similar Messages
-
Ora-01219 database not open; only queries on fixed tables and views.
Hi everyone
There is another post stating this error, but since the source is different, I think is okay to make a different post as well.
Our database was working fine until the other day, when suddenly power went off, UPS was damaged and didn't hold, and when we restarted the database this is what happens:
Using Enterprise Manager Console, we can make a succesful connection in the same machine, but if we choose Schema, the following error appears:
ora-01219 database not open; only queries on fixed tables and views.
When accesing from a different machine:
ORA-01033: ORACLE initialization or shutdown in progress
Thanks in advanceHere is the last entries of alert log
Fatal NI connect error 12638, connecting to:
(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
VERSION INFORMATION:
TNS for 32-bit Windows: Version 11.1.0.7.0 - Production
Oracle Bequeath NT Protocol Adapter for 32-bit Windows: Version 11.1.0.7.0 - Production
Time: 20-JUL-2010 15:48:31
Tracing not turned on.
Tns error struct:
ns main err code: 12638
TNS-12638: Fallo de recuperación de credenciales
ns secondary err code: 0
nt main err code: 0
nt secondary err code: 0
nt OS err code: 0
Tue Jul 20 15:50:50 2010
Starting ORACLE instance (normal)
LICENSE_MAX_SESSION = 0
LICENSE_SESSIONS_WARNING = 0
Picked latch-free SCN scheme 2
Using LOG_ARCHIVE_DEST_10 parameter default value as USE_DB_RECOVERY_FILE_DEST
Autotune of undo retention is turned on.
IMODE=BR
ILAT =18
LICENSE_MAX_USERS = 0
SYS auditing is disabled
Starting up ORACLE RDBMS Version: 11.1.0.7.0.
Using parameter settings in server-side spfile E:\ORACLE\CRIMINALISTICA\PRODUCT\11.1.0\DB_1\DATABASE\SPFILECRIM.ORA
System parameters with non-default values:
processes = 150
memory_target = 816M
control_files = "E:\ORACLE\ORADATA\CRIM\CONTROL01.CTL"
control_files = "E:\ORACLE\ORADATA\CRIM\CONTROL02.CTL"
control_files = "E:\ORACLE\ORADATA\CRIM\CONTROL03.CTL"
db_block_size = 8192
compatible = "11.1.0.0.0"
db_recovery_file_dest = "E:\Oracle\flash_recovery_area"
db_recovery_file_dest_size= 2G
undo_tablespace = "UNDOTBS1"
remote_login_passwordfile= "EXCLUSIVE"
db_domain = ""
dispatchers = "(PROTOCOL=TCP) (SERVICE=CRIMXDB)"
audit_file_dest = "E:\ORACLE\ADMIN\CRIM\ADUMP"
audit_trail = "DB"
db_name = "CRIM"
open_cursors = 300
diagnostic_dest = "E:\ORACLE"
Tue Jul 20 15:50:55 2010
PMON started with pid=2, OS id=1688
Tue Jul 20 15:50:55 2010
VKTM started with pid=3, OS id=2236 at elevated priority
Tue Jul 20 15:50:55 2010
DIAG started with pid=4, OS id=2332
Tue Jul 20 15:50:55 2010
DBRM started with pid=5, OS id=2328
Tue Jul 20 15:50:55 2010
PSP0 started with pid=6, OS id=2432
VKTM running at (20)ms precision
Tue Jul 20 15:50:55 2010
DIA0 started with pid=7, OS id=2160
Tue Jul 20 15:50:55 2010
MMAN started with pid=8, OS id=2156
Tue Jul 20 15:50:55 2010
DBW0 started with pid=9, OS id=2064
Tue Jul 20 15:50:55 2010
LGWR started with pid=10, OS id=3176
Tue Jul 20 15:50:55 2010
CKPT started with pid=11, OS id=3180
Tue Jul 20 15:50:55 2010
SMON started with pid=12, OS id=3184
Tue Jul 20 15:50:55 2010
RECO started with pid=13, OS id=3188
Tue Jul 20 15:50:55 2010
MMON started with pid=14, OS id=3192
starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
starting up 1 shared server(s) ...
ORACLE_BASE from environment = E:\Oracle
Tue Jul 20 15:50:55 2010
MMNL started with pid=15, OS id=3196
Tue Jul 20 15:50:56 2010
alter database mount exclusive
Setting recovery target incarnation to 2
Successful mount of redo thread 1, with mount id 1304879008
Database mounted in Exclusive Mode
Lost write protection disabled
Completed: alter database mount exclusive
alter database open
Errors in file e:\oracle\diag\rdbms\crim\crim\trace\crim_dbw0_2064.trc:
ORA-01157: cannot identify/lock data file 9 - see DBWR trace file
ORA-01110: data file 9: 'E:\ORACLE\ORADATA\STOPCRIM5\STOPCRIM5TABLESPACE.ORA'
ORA-27047: unable to read the header block of file
OSD-04006: fallo de ReadFile(); no se ha podido leer del archivo
O/S-Error: (OS 38) Se ha alcanzado el final del archivo.
Errors in file e:\oracle\diag\rdbms\crim\crim\trace\crim_dbw0_2064.trc:
ORA-01157: cannot identify/lock data file 16 - see DBWR trace file
ORA-01110: data file 16: 'E:\ORACLE\ORADATA\PRUEBACARLOS\PRUEBACARLOSTABLESPACE.ORA'
ORA-27047: unable to read the header block of file
OSD-04006: fallo de ReadFile(); no se ha podido leer del archivo
O/S-Error: (OS 38) Se ha alcanzado el final del archivo.
Errors in file e:\oracle\diag\rdbms\crim\crim\trace\crim_dbw0_2064.trc:
ORA-01157: cannot identify/lock data file 17 - see DBWR trace file
ORA-01110: data file 17: 'E:\ORACLE\ORADATA\PRUEBACARLOS\PRUEBACARLOSINDEX.ORA'
ORA-27047: unable to read the header block of file
OSD-04006: fallo de ReadFile(); no se ha podido leer del archivo
O/S-Error: (OS 38) Se ha alcanzado el final del archivo.
ORA-1157 signalled during: alter database open...
Tue Jul 20 16:04:39 2010
db_recovery_file_dest_size of 2048 MB is 0.00% used. This is a
user-specified limit on the amount of space that will be used by this
database for recovery-related files, and does not reflect the amount of
space available in the underlying filesystem or ASM diskgroup. -
Tables and Views are not displaying any objects.
I have tried both Filtered and non-filtered for tables and view but it won't list any tables or view.
I can run a query and it shows all the tables/views in the query window.
SELECT table_name FROM dba_tables
select view_name from all_viewsWho owns the objects?
The browser only shows objects owned by the current logged in user in the main section. You need to go into the Other Users node to find objects owner by other users. -
Hello,
Please help me, I´m doing a query over a database table and it gave me the next exception:
java.sql.SQLException: [POL-5130] table or view not found Excepción Interna: java.sql.SQLException: [POL-5130] table or view not found Código de Error: -5130<
I already tried the solucion suggested in the dev guide.Hi Raj,
could you post the fulll Oracle error Message?
Also, read up on how to grant explicit priviliges to schemas on procedures/views and tables. This may be necessary in order for a dbms_job to function as expected.
http://download.oracle.com/docs/cd/E11882_01/server.112/e10897/users_secure.htm#CHDBDBGI
http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/statements_9013.htm#SQLRF01603 -
Table or view not exists error from procedure - occurs randomly
I have a procedure used in a website, it works fine until recently we occationaly getting an error said Table or View not exists, the error will go away if refresh the page which will re-execute the procedure.
This procedure uses an table object as temp table and just a select statement form several tables. The table object is used in other procedures as well. I can't find out what cause this error because it's not always repeatable and the error message didn't give out the exact table that cause the error.
Any idea what might cause this or how to trace the reason that cause the error?
We don't have a good DBA here so really need some help, any advice are welcome.
CheersI don't think it's possible that any previlege changes are made or the tables in used in the procedure are droped because after we run our db scripts to build the db, then we testing the website which can only execute procedures, and no procedures execute DDL script to make such changes.
It's worth to mention that we have a Table Type called EntityIDTable() which is used in many of our other procedures, but I think table type is initialise as local variable in each procedure so shouldn't conflict to each other, am I right? Also, the same script are running several times a day to generate same db but with different schema names so we can test on different site templates. One change script did drop one of the table and recreate it, but it use the &DB_Schema_Name.Tablename to drop a table so shouldn't affect the table in other schema I think. (I enclosed the procedure below)
Also, any event log in Oracle I can enabled and trace the problem to find out what table is not exists at that point that this problem occurs?
Cheers
Below is the sample code of the procedure:
aEntityIDSet varchar2,
aCount out int
as
L_KeyID Category.CategoryID%type:=null;
l_strEntityIDSet varchar2(255);
l_strPipeSepValsInput varchar2(255);
l_UserEntityID varchar2(255);
l_EndPointInput int;
l_Strlength integer;
l_UserKey NUMBER;
l_UserOriginalKey NUMBER;
l_RREntityData ENTITYIDTABLE:= ENTITYIDTABLE(); /*creating on object from a table type to store entity values in*/
-- end of Local variables used for Category Security
begin
-- Category Security
-- Split up the EntityIDSet
l_strEntityIDSet:= aEntityIDSet;
l_strPipeSepValsInput:= l_strEntityIDSet || '|';
l_EndPointInput:= instr(l_strPipeSepValsInput,'|',1,1);
l_UserEntityID:= SUBSTR(l_strPipeSepValsInput, 1, l_EndPointInput - 1);
l_UserKey:= To_Number(l_UserEntityID);
l_UserOriginalKey:=l_UserKey;
l_strPipeSepValsInput:= SUBSTR(l_strPipeSepValsInput,l_EndPointInput+1);
l_Strlength:=LENGTH(l_strPipeSepValsInput);
While ( l_Strlength > 0) loop
<<get_entityId>>
l_EndPointInput:= instr(l_strPipeSepValsInput,'|',1,1);
l_UserEntityID:= SUBSTR(l_strPipeSepValsInput, 1, l_EndPointInput - 1);
l_UserKey:= To_Number(l_UserEntityID);
l_RREntityData.extend;
l_RREntityData(l_RREntityData.COUNT):= Entityidtype(l_UserKey);
l_strPipeSepValsInput:= SUBSTR(l_strPipeSepValsInput,l_EndPointInput+1);
l_Strlength:=LENGTH(l_strPipeSepValsInput);
end loop get_entityId;
-- the block above used in many other procedures to get the entityID
select Count(Distinct ri.ID) into aCount From
-- here joint to other 6 tables
-- the inner join below use the ENTITYIDTABLE
inner join
(SELECT distinct KC.KnowledgeGeneID FROM Category Cat
inner join KnowledgeGeneCategory KC on KC.CategoryID=Cat.CategoryID
where EXISTS (SELECT EntityID FROM TABLE(cast (l_RREntityData as ENTITYIDTABLE)) ET
INNER JOIN (SELECT EntityID, EntityTypeID, CategoryID FROM CategoryRowLevelSecurity CRLS
WHERE CRLS.EntityTypeID=1) S ON ET.USERENTITYKEY=S.EntityID
where S.CategoryID=Cat.CategoryID
UNION
SELECT EntityID FROM CategoryRowLevelSecurity CRLS
WHERE EntityID=l_UserOriginalKey
AND EntityTypeID=0
AND CRLS.CategoryID=Cat.CategoryID)
OR NOT EXISTS (SELECT CategoryID FROM CategoryRowLevelSecurity CRLS
WHERE CRLS.CategoryID=Cat.CategoryID)
) CS ON CS.KnowledgeGeneID = k.KGID
where ri.ProcessID = riPro.ProcessID)
end QueryNotifications; -
Table or View Not Found Problem
Hi all,
I am facing a strange problem where-in I am calling a query from a normal SQl window which works but the same in Procedure gives me an error.
User A...This runs this statement
Select * from B.emp which gives results. The same statement when I compile in a procedure it gives an error saying Table or View not Found.
User A has a select on B.Emp where B is the owner of table Emp.
I am not able to get to the solution of the same. Is it apossibility of a synonym conflict? Can someone help in what ways this error can come?
Thanks and Regards,
Kapil UppalHi,
>>Well the error is Table Or View Does not exist
Interesting, what version of Oracle are you using ? As you can see below, the stored procedure does not recognized the privilege that have been granted through a role.
LEGATTI@ORACLE10> create user user1 identified by user1;
User created.
LEGATTI@ORACLE10> create user user2 identified by user2;
User created.
LEGATTI@ORACLE10> grant connect,resource to user1,user2;
Grant succeeded.
LEGATTI@ORACLE10> create table user1.emp (id number);
Table created.
LEGATTI@ORACLE10> create role user1_role_tables;
Role created.
LEGATTI@ORACLE10> grant user1_role_tables to user2;
Grant succeeded.
LEGATTI@ORACLE10> grant select on user1.emp to user1_role_tables;
Grant succeeded.
LEGATTI@ORACLE10> connect user2/user2
Connected.
USER2@ORACLE10> select count(*) from user1.emp;
COUNT(*)
0
USER2@ORACLE10> create or replace procedure my_test_procedure as
2 n_id number;
3 begin
4 select count(*) into n_id from user1.emp;
5 end;
6 /
Warning: Procedure created with compilation errors.
USER2@ORACLE10> show errors
Errors for PROCEDURE MY_TEST_PROCEDURE:
LINE/COL ERROR
4/1 PL/SQL: SQL Statement ignored
4/38 PL/SQL: ORA-01031: insufficient privilegesCheers -
Tables and views relevant to concurrent program parameters
I'd like to know all the tables and views relevant to concurrent program parameters.
As far as I know, fnd_descr_flex_col_usage_vl, fnd_flex_value_sets, and fnd_parameters are such kind of tables or views. They can not provide enough information I want. As I guess that for some parameters, their values are queried from tables. Where can I find the information about how such parameters are queried?
Thanks in advance!Hi,
I'd like to know all the tables and views relevant to concurrent program parameters. See these tables:
FND_CONCURRENT_QUEUE_PARAMS
FND_RUN_REQUESTS
FND_CONC_REQUEST_ARGUMENTS
FND_CONCURRENT_REQUESTS
FND_CONCURRENT_PROGRAMS
More details about these tables can be found in eTRM website.
eTRM
https://etrm.oracle.com
> They can not provide enough information I want. As I guess that for some parameters, their values are queried from tables. Where can I find the information about how such parameters are queried?
What information you are looking for?
You could get the query executed from the application by following the steps in (Note: 259722.1 - HOWTO Determine Table and Column Name from a field in a form in 11i) -- Query the concurrent program, then check the value of "SYSTEM.LAST_QUERY".
Regards,
Hussein -
How to find all table and views in the database
Hi,
I want to find all table and view name form the database can u tell me syntax.
i.e. I am able to find out table name and view name in sql server ...like
FOR VIEW :
select table_name from information_schema.views where table_name not like 'sys%'
FOR TABLE :
select table_name from information_schema.tables where table_name not like 'sys%' and table_type='Base table'
Thanks & Regards,
ShirishHello,
Take a look at "dba_tables" and "dba_views" both of which are documented here:
http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14237/toc.htm
- Mark -
hi ,
I want to privelege only Grant SELECT ALL tables,views....
I have written A procedure.....given below....
CREATE OR REPLACE PROCEDURE GRANT_SELECT_ALL_PROC
IS
l_obj VARCHAR2(60);
l_obj_type VARCHAR2(60);
CURSOR Cur_Obj IS
SELECT OBJECT_NAME,OBJECT_TYPE
FROM USER_OBJECTS
WHERE USER ='OWNER';
BEGIN
For i in Cur_Obj Loop
l_obj := i.OBJECT_NAME;
l_obj_type := i.OBJECT_TYPE;
IF l_obj_type IN ('TABLE','VIEW')
THEN
EXECUTE IMMEDIATE 'GRANT SELECT ON' || l_obj ||'TO TEMP’;
ELSIF l_obj_type IN('FUNCTION','PROCEDURE','PACKAGE') THEN
EXECUTE IMMEDIATE 'GRANT EXECUTE ON'|| l_obj ||'TO TEMP’;
END IF;
END LOOP;
END GRANT_SELECT_ALL_PROC;
procedure is working fine.....
OWNER there are some table and views......
But After creation of User name TEMp....
When I m giving GRANT SELECT to TEMP(by procedure)..... ALL tables and views of OWNER....
when I coonecte to TEMP...
Not getting table,view List...
not even data of table or Views.....
can anybdy help me.......advance thanx ...
sanjayhi ,
I want to privelege only Grant SELECT ALL
tables,views....
have written A procedure.....given below....
CREATE OR REPLACE PROCEDURE GRANT_SELECT_ALL_PROC
IS
l_obj VARCHAR2(60);
l_obj_type VARCHAR2(60);
CURSOR Cur_Obj IS
SELECT OBJECT_NAME,OBJECT_TYPE
FROM USER_OBJECTS
WHERE USER ='OWNER';
BEGIN
For i in Cur_Obj Loop
l_obj := i.OBJECT_NAME;
l_obj_type := i.OBJECT_TYPE;
IF l_obj_type IN ('TABLE','VIEW')
THEN
EXECUTE IMMEDIATE 'GRANT SELECT ON' || l_obj ||'TO
TEMP’;
ELSIF l_obj_type IN('FUNCTION','PROCEDURE','PACKAGE')
THEN
EXECUTE IMMEDIATE 'GRANT EXECUTE ON'|| l_obj ||'TO
TEMP’;
END IF;
END LOOP;
END GRANT_SELECT_ALL_PROC;
procedure is working fine.....
OWNER there are some table and views......
But After creation of User name TEMp....
When I m giving GRANT SELECT to TEMP(by
procedure)..... ALL tables and views of OWNER....
when I coonecte to TEMP...
Not getting table,view List...
not even data of table or Views.....
can anybdy help me.......advance thanx ...
sanjayQuery SELECT * FROM USER_TAB_PRIVS_MADE from the user from which you are executing the procedure
and Query SELECT * FROM USER_TAB_PRIVS_RECD from the TEMP user. -
Tables and views greyout in selection of data source
Hi
I have setup Data Gateway and data sources to a on-prem SQK server in Power BI for Office 365. I have connected to the onsite database but some of the tables and views are greyed-out. The warning relates to the tables not supporting oData but I am not
sure what I need to do from here. Most of the tables are OK and I cant see what would be causing some of them to not be supported.
Please advise
JasonGenerally speaking, there are two possible common reasons.
all columns in table is nullable.
Or you have an unsupported column data type in table. Please check here.
http://office.microsoft.com/en-us/office365-sharepoint-online-enterprise-help/supported-data-sources-and-data-types-HA104149785.aspx?CTT=5&origin=HA104079172 -
Table and views which are afftected during the SAP license post processing
Hi,
can anyone tell me those table and views which are afftected during the SAP license post processing process in SAP 4.7 installation on oracle.
Regards,
Abhishekhi
there is no table active with the name MLICHECK
the table is not active in the dictionary
what to do now?
i want to see the license data of the sap system now in the table view.............. -
UKMCRED_SGM0C: Only tables and views are permitted for extraction???
All,
My BI transport got failed (from Dev to QA) with the reason
" UKMCRED_SGM0C: Only tables and views are permitted for extraction" . Can you please help me in this.
Thanks,
Andyhi Roger,
Could you please provide more details of the transport ... like what was being transported ... from what I see I feel you attempted to transport a generic datasource.. not sure.
Best regards,
Kazmi -
ORA_ASPNET Tables and Views
Hello together,
I found this ORA_ASPNET_.... tables and views in our oracle-db and don't know, for what they are for. Can someone tell me this?
Thank you very much
denizHello, when you install .net providers for oracle some tables are created in the schema. If you are not sure who installed the providers then go to the application path and search for "....\product\11.1.0\db_1\ASP.NET". In this path are the providers. Now you can install or uninstall whatever.
Edited by: user10639364 on 11-feb-2011 11:11 -
Delta Enble to Tables and Views
HI, Folks
I have a Financial and Inventory data in Oracle Data base 10G. I have TABLES and VIEW. I am importing the same SAP –BI 7.0. Now I am interested to know how to ENABLE DELTA to a Table/View. i.e. I would like to select data on constraints like TIME and LAST TIME run. So only new records will enter Business Warehouse.
In the other words I would like to take the only NEW DATA to Business Ware house. BI tools.
Your suggestions are highly appreciated. I am looking forward for your information.
Thanking you
Bab
Los angles CASeems like you are looking for help to implement change data capture in your custom environment (DW).
This is perhaps not the right forum for the same. -
Attach User define tables and view table need add to database into my add-o
Hi there,
I want to deploy an addon, there are User define tables and view table need add to database.
I need some advice on some issues..
1. Can I attach User define tables and view table need add to database into my addon.
2. I wonder which chance is properly to add them, if add these user define objects in time of install and I can't get the enough information that connect to SQL server
Thanks for any help.Hi Weerachai,
Here's an example of how to create a user-defined table in code. My suggestion would be to check if it exists when your add-on starts up and then if not, create the tables, fields and objects.
'User Table
Private Sub CreateTable(ByVal sTable As String, ByVal sDescription As String, ByVal oObjectType As SAPbobsCOM.BoUTBTableType)
Dim oUserTablesMD As SAPbobsCOM.UserTablesMD
Dim iResult As Long
Dim sMsg As String
oUserTablesMD = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserTables)
If Not oUserTablesMD.GetByKey(sTable) Then
oUserTablesMD.TableName = sTable
oUserTablesMD.TableDescription = sDescription
oUserTablesMD.TableType = oObjectType
iResult = oUserTablesMD.Add()
If iResult <> 0 Then
oCompany.GetLastError(iResult, sMsg)
MessageBox.Show("Error Creating Table: " & sTable & " Error: " & sMsg)
End If
End If
System.Runtime.InteropServices.Marshal.ReleaseComObject(oUserTablesMD)
End Sub
'User Field
Private Sub CreateField(ByVal sTable As String, ByVal sName As String, ByVal sDescription As String, _
ByVal iSize As Integer, ByVal aFieldType As SAPbobsCOM.BoFieldTypes, _
ByVal aSubType As SAPbobsCOM.BoFldSubTypes, ByVal sLink As String, _
ByVal bMandatory As SAPbobsCOM.BoYesNoEnum)
Dim oUserFieldsMD As SAPbobsCOM.UserFieldsMD
Dim oTable As SAPbobsCOM.UserTable
Dim iResult As Long
Dim sMsg As String
Dim i As Integer
Dim x As Integer
Dim bFound As Boolean = False
Dim oField As SAPbobsCOM.Field
oTable = oCompany.UserTables.Item(sTable)
For i = 0 To oTable.UserFields.Fields.Count - 1
oField = oTable.UserFields.Fields.Item(i)
'MessageBox.Show(oField.Name)
If oField.Name = "U_" & sName Then
bFound = True
End If
Next
System.Runtime.InteropServices.Marshal.ReleaseComObject(oTable)
If Not bFound Then
oUserFieldsMD = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserFields)
oUserFieldsMD.TableName = "@" & sTable
oUserFieldsMD.Name = sName
oUserFieldsMD.Description = sDescription
oUserFieldsMD.Type = aFieldType
If aFieldType = SAPbobsCOM.BoFieldTypes.db_Alpha Or aFieldType = SAPbobsCOM.BoFieldTypes.db_Numeric Then
oUserFieldsMD.EditSize = iSize
Else
oUserFieldsMD.SubType = aSubType
oUserFieldsMD.Mandatory = bMandatory
End If
oUserFieldsMD.LinkedTable = sLink
iResult = oUserFieldsMD.Add()
If iResult <> 0 Then
oCompany.GetLastError(iResult, sMsg)
MessageBox.Show("Error Creating Field: " & sTable & "." & sName & " Error: " & sMsg)
End If
System.Runtime.InteropServices.Marshal.ReleaseComObject(oUserFieldsMD)
End If
End Sub
If you want to create a View I think you would have to use the RecordSet object. This will ensure that you don't have to log in to the database again
Hope it helps,
Adele
Maybe you are looking for
-
Thunderbird on Win 8.1 with Windows Defender is not downloading attachments from my roadrunner email account. It does so when running under Ubuntu 12.04 though. On Windows no attachments are shown. Also on Windows there is content that is not shown,
-
Java Control Panel quit unexpectedly while using the libjvm.dylib plug-in.
OS X Server1 0.8.4, Mac Mini (5,1), Java 7u25 (jre-7u25-macosx-x64.dmg). Tried removing and re-installing Java 7u25 directly from Oracle's site. Also did a fix disk permissions, rebuilt caches, deleted java caches, etc... I can't simply get the Ja
-
How to connect to SQL*Plus and issue a query all in one command?
Hi everyone, Does anyone know of a way to connect to a db with SQL*Plus, and issue a simple query, all with one command? I know that I can save a .sql script with a query, then do this: sqlplus user/pwd@db @myscript.sql But I'm wondering if there's a
-
Is possible to change the order of name and last n...
After to have installed: "Nokia PC Suite 6.84.10.3 ita", I have noticed that the names in the Contacts folder, come lists to you with the following order: "name for first and last name for second". I have tried to change this order, opening Nokia Con
-
MacBook Air 11" for photographer?
Hey everyone, my name is Brandon Isaiah Garcia & I'm an 18 year old photographer & college student. I am going to purchase a MacBook Air, but I need your help to decide which size I should get! This MacBook Air will be my primary device, because I pl