Error binding table components with database tables
Hi, when i try to bind table components with database tables y receive this error
java.lang.NullPointerException
at com.sun.sql.rowset.CachedRowSetXImpl.initMetaData(CachedRowSetXImpl.java:861)
at com.sun.sql.rowset.CachedRowSetXImpl.getMetaData(CachedRowSetXImpl.java:2336)
at com.sun.data.provider.impl.CachedRowSetDataProvider.getMetaData(CachedRowSetDataProvider.java:1317)
at com.sun.data.provider.impl.CachedRowSetDataProvider.getFieldKeys(CachedRowSetDataProvider.java:489)
at com.sun.rave.web.ui.component.table.TableRowGroupDesignState.resetTableColumns(TableRowGroupDesignState.java:261)
at com.sun.rave.web.ui.component.table.TableRowGroupDesignState.setDataProviderBean(TableRowGroupDesignState.java:163)
at com.sun.rave.web.ui.component.table.TableDesignState.setDataProviderBean(TableDesignState.java:250)
at com.sun.rave.web.ui.component.TableDesignInfo.linkBeans(TableDesignInfo.java:162)
at com.sun.rave.insync.models.FacesModel.linkBeans(FacesModel.java:1042)
at com.sun.rave.designer.DndHandler.processLinks(DndHandler.java:2126)
at com.sun.rave.designer.DndHandler.importBean(DndHandler.java:880)
at com.sun.rave.designer.DndHandler.importItem(DndHandler.java:702)
at com.sun.rave.designer.DndHandler.importDataDelayed(DndHandler.java:376)
at com.sun.rave.designer.DndHandler.access$000(DndHandler.java:114)
[catch] at com.sun.rave.designer.DndHandler$1.run(DndHandler.java:298)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
There are a thing that I don't undertand. When I try to bind samples database table (Travel, for example) to table components, there are no errors. But when I try to bind table component with my remote postgresql database table, yes...the table component disappear and only a "Table" string is displayed....this error is because I use remote database?? Or because it's PostgreSQL??
Thanks.
Similar Messages
-
How can I bind a operation with a table
Hi !
I'm trying to bind a operation with a table, so what type of operation return ? ViewObject or a Vector? And how can i set params to these operation if my operation has some param ( getSubscriber(int iSubId, int iSubType) )
Thank a lot for your helpHi,
it depends on the release you are asking this question for. In JDeveloper 10.1.3 you can expose a method (e.g. on a session facade) that returns a Collection. The input parameters can be dragged and dropped as input fields to the page.
The same can be done in JDeveloper 10.1.2, but here you have to prgrammatically apply the input arguments.
Frank -
Insert data into fact table from source database tables
here i try to insert data into fact table from source database tables here is the query
ALTER procedure [dbo].[facttable]
as
insert into [pp dw].dbo.Dimfact(Prod_ID,Production_ID,Material_ID,Equip_ID,WC_ID,Recipe_ID,Quantity,costprice)
select Products.[Product ID],[Production ID],Materials.[Material ID],[Equipment ID],[Work Centre ID],[Recipy ID],Quantity,[cost price]
from
[PRODUCTION PLANNING 2].dbo.[Products],
[PRODUCTION PLANNING 2].dbo.[Production Detail],
[PRODUCTION PLANNING 2].dbo.[Material category],
[PRODUCTION PLANNING 2].dbo.[Materials],
[PRODUCTION PLANNING 2].dbo.[Equipment],
[PRODUCTION PLANNING 2].dbo.[Working Centre] ,
[PRODUCTION PLANNING 2].dbo.[Recipies]
where
Products.[Product ID] in (13, 14, 15, 16, 17) and
[Production Detail].[Production ID] in (1, 2, 3) and
[Materials].[Material ID] in (1, 2, 3, 4, 5) and
[Equipment].[Equipment ID] in (1, 2, 3, 4) and
[Working Centre].[Work Centre ID] in (1, 2, 3) and
[Recipies].[Recipy ID] in (1, 2, 3) and
[Material category].[Category ID] in (8, 9, 10, 11, 12, 13)
and when i execute query it shows me error
The INSERT statement conflicted with the FOREIGN KEY constraint "FK_Dimfact_Dimproduct". The conflict occurred in database "pp dw", table "dbo.Dimproduct", column 'Prod_ID'.
ERD IS
HOW TO SOLVE THIS PROBLEM?I cant see any join conditions in your query posted. Whats the purpose of the query above. It will just bring you a cartesian product (cross join) of tables involved subjected to filters. Are you sure this is the correct query?
The error you're getting may be because you've not yet populated DimProduct or may be because of logic you used in popultaing DimProduct causing it to miss some records which is what query is referring to in above case.
Please Mark This As Answer if it solved your issue
Please Mark This As Helpful if it helps to solve your issue
Visakh
My MSDN Page
My Personal Blog
My Facebook Page -
How to create table view with reference table
Hi experts,
How to create table view with reference table in SE11, plz gve me stp by stp procedure.
pints grnded for hlp.Hi
Go to Tcode se11 choose view and enter the name and create a popup opens up choose database view option
enter the description
On the left hand side choose the table name.
Click on view fields tab and choose your table fields.Here you can choose which fields you want in your view.
Save and then activate.
Hope this helps.
Regards,
Harish -
How can I set the data binding between Web Dynpro & Database table
Dear friend,
I am a beginner of Web Dynpro. I want to develop my simple project like these:
1. Create my own database table via Dictionary Project such as TAB_USER and have 3 fields: USER_ID, USER_NAME, USER_POSITION and I have already deployed & archived it.
2. Create my own Web Dynpro Project, and create the input fields as User ID, User name, User position and icon 'Save' on the selection screen and I have deployed it already.
For the process, I want to input data at the screen and save the data in the table, please give me the guide line like these:
1. How can I set the data binding between Web Dynpro and Database table ?
2. Are there any nescessary steps that I will concern for this case?
Sorry if my question is simple, I had try to find solution myself, but it not found
Thanks in advances,
SeMsHi,
You can write your own connection class for establishing the connection with DB.
Ex:
public class ConnectionClass {
static Connection con = null;
public static Connection getConnection() {
try{
Context ctx = new InitialContext();
DataSource ds = (DataSource) ctx.lookup("jdbc/TSPAGE");
con = ds.getConnection();
return con;
}catch(Exception e){
return null;
You can place the above class file in src folder and you can use this class in webdynpro.
You can have another UserInfo class for reading and writing the data into the DB .
Regards, Anilkumar
PS : Refer
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/java/simple java bean generator for database.pdf
Message was edited by: Anilkumar Vippagunta -
GTC Error While Provisioning to Oracle Database Tables
I'm trying to setup GTC connector to provisioning/reconcile users into database tables, but during the provisionig gtc fails. check the lines above to see the error
ERROR,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBProvisioningTransportProvider/sendData encounter some problems: Attribute: matricula does not exist in the specified parent table/view: xladm.usuarios_view
com.thortech.xl.gc.exception.DBException: Attribute: matricula does not exist in the specified parent table/view: xladm.usuarios_view
matricula is the primary key
I'm using OIM 9102 with bundle patch 12 appled. connector version is 9105. Oracle database version is 11.1.0.7. My platform is Windows 2003.
database table's ddl
create table usuarios (
matricula varchar2(10) primary key,
nome varchar2(80),
status varchar2(20),
ultima_atualizacao date,
senha varchar2(20));
create view usuarios_view as select * from usuarios;
GTC Connector Setup
Provide Basic Information View
Name INFO
Reconciliation
Transport Provider Database Application Tables Reconciliation
Format Provider Database Application Tables Reconciliation
Trusted Source Reconciliation No
Provisioning
Transport Provider Database Application Tables Provisioning
Format Provider Database Application Tables Provisioning
Specify Parameter Values Change
Database Driver oracle.jdbc.driver.OracleDriver
Database URL jdbc:oracle:thin:@localhost:1521:orcl
Database User ID xladm
Database Password ********
Customized Query
Use Native Query No
Connection Properties
Parent Table/View Name usuarios_view
Child Table/View Names
Unique Attribute matricula
Timestamp Attribute ultima_atualizacao
Database Date format
Status Attribute status
Status Lookup Code Lookup.InfoGolden.Status
Is Primary Key Auto Incremented No
Target Date Format yyyy-MM-dd hh:mm:ss.fffffffff
Batch Size All
Stop Reconciliation Threshold None
Stop Threshold Minimum Records None
Source Date Format yyyy/MM/dd hh:mm:ss z
Reconcile Deletion of Multivalued Attribute Data Yes
Reconciliation Type Full
error log
Running GENERICADAPTER
Target Class = com.thortech.xl.gc.runtime.GCAdapterLibrary
DEBUG,07 Nov 2010 20:18:37,086,[OIMCP.DATC],Class/Method: DBReconFormatProvider/formatData entered.
DEBUG,07 Nov 2010 20:18:37,086,[OIMCP.DATC],Class/Method: DBProvisioningTransportProvider/initialize entered.
DEBUG,07 Nov 2010 20:18:37,086,[OIMCP.DATC],Class/Method: DBProvisioningTransportProvider/initialize - Data: driver - Value: oracle.jdbc.driver.OracleDriver
DEBUG,07 Nov 2010 20:18:37,086,[OIMCP.DATC],Class/Method: DBProvisioningTransportProvider/initialize - Data: url - Value: jdbc:oracle:thin:@localhost:1521:orcl
DEBUG,07 Nov 2010 20:18:37,086,[OIMCP.DATC],Class/Method: DBProvisioningTransportProvider/initialize - Data: username - Value: xladm
DEBUG,07 Nov 2010 20:18:37,086,[OIMCP.DATC],Class/Method: DBProvisioningTransportProvider/initialize - Data: password - Value: *******
DEBUG,07 Nov 2010 20:18:37,086,[OIMCP.DATC],Class/Method: DBProvisioningTransportProvider/initialize - Data: parentContainerName - Value: usuarios_view
DEBUG,07 Nov 2010 20:18:37,086,[OIMCP.DATC],Class/Method: DBReconTransportProvider/convertCSVToArraylist entered.
DEBUG,07 Nov 2010 20:18:37,086,[OIMCP.DATC],Class/Method: DBReconTransportProvider/convertCSVToArraylist - Data: Run Time Parameters - Value: []
DEBUG,07 Nov 2010 20:18:37,086,[OIMCP.DATC],Class/Method: DBProvisioningTransportProvider/initialize - Data: childContainerTableNames - Value: []
DEBUG,07 Nov 2010 20:18:37,086,[OIMCP.DATC],Class/Method: DBProvisioningTransportProvider/initialize - Data: parentContainerUniqueKey - Value: matricula
DEBUG,07 Nov 2010 20:18:37,086,[OIMCP.DATC],Class/Method: DBProvisioningTransportProvider/initialize - Data: statusField - Value: status
DEBUG,07 Nov 2010 20:18:37,086,[OIMCP.DATC],Class/Method: DBProvisioningTransportProvider/initialize - Data: statusFieldLookup - Value: Lookup.InfoGolden.Status
DEBUG,07 Nov 2010 20:18:37,086,[OIMCP.DATC],Class/Method: DBProvisioningTransportProvider/initialize left.
DEBUG,07 Nov 2010 20:18:37,086,[OIMCP.DATC],Class/Method: DBProvisioningTransportProvider/initialize - Data: dbDateFormat - Value:
DEBUG,07 Nov 2010 20:18:37,086,[OIMCP.DATC],Class/Method: DBProvisioningTransportProvider/sendData entered.
INFO,07 Nov 2010 20:18:37,086,[OIMCP.DATC],Within PROV_OPERATION_ADDUSER::statusField=status
DEBUG,07 Nov 2010 20:18:37,117,[OIMCP.DATC],Class/Method: DBFacade/getConnectionProp entered.
DEBUG,07 Nov 2010 20:18:37,117,[OIMCP.DATC],Class/Method: DBFacade/setUpSSLPropertiesForDB2 entered.
DEBUG,07 Nov 2010 20:18:37,117,[OIMCP.DATC],ExitingMethodDebug
INFO,07 Nov 2010 20:18:37,148,[OIMCP.DATC],dbType:::: = Oracle
DEBUG,07 Nov 2010 20:18:37,148,[OIMCP.DATC],Class/Method: DBFacade/getMatchingSchemaName - Data: found matching schema - Value: XLADM
DEBUG,07 Nov 2010 20:18:37,148,[OIMCP.DATC],Class/Method: DBFacade/getMatchingTableName - Data: found exact matching schema:- - Value: XLADM
DEBUG,07 Nov 2010 20:18:37,227,[OIMCP.DATC],Class/Method: DBFacade/getMatchingTableName - Data: found matching tables - Value: USUARIOS_VIEW
DEBUG,07 Nov 2010 20:18:37,227,[OIMCP.DATC],Class/Method: DBFacade/getMatchingTableName - Data: found exact matching table:- - Value: USUARIOS_VIEW
INFO,07 Nov 2010 20:18:37,258,[OIMCP.DATC],dbType:::: = Oracle
DEBUG,07 Nov 2010 20:18:37,273,[OIMCP.DATC],Class/Method: DBFacade/getMatchingSchemaName - Data: found matching schema - Value: XLADM
DEBUG,07 Nov 2010 20:18:37,273,[OIMCP.DATC],Class/Method: DBFacade/getMatchingTableName - Data: found exact matching schema:- - Value: XLADM
DEBUG,07 Nov 2010 20:18:37,336,[OIMCP.DATC],Class/Method: DBFacade/getMatchingTableName - Data: found matching tables - Value: USUARIOS_VIEW
DEBUG,07 Nov 2010 20:18:37,336,[OIMCP.DATC],Class/Method: DBFacade/getMatchingTableName - Data: found exact matching table:- - Value: USUARIOS_VIEW
INFO,07 Nov 2010 20:18:37,445,[OIMCP.DATC],dbType:::: = Oracle
INFO,07 Nov 2010 20:18:37,445,[OIMCP.DATC],dbType:::: = Oracle
DEBUG,07 Nov 2010 20:18:37,445,[OIMCP.DATC],Class/Method: DBFacade/getMatchingSchemaName - Data: found matching schema - Value: XLADM
DEBUG,07 Nov 2010 20:18:37,445,[OIMCP.DATC],Class/Method: DBFacade/getMatchingTableName - Data: found exact matching schema:- - Value: XLADM
DEBUG,07 Nov 2010 20:18:37,523,[OIMCP.DATC],Class/Method: DBFacade/getMatchingTableName - Data: found matching tables - Value: USUARIOS_VIEW
DEBUG,07 Nov 2010 20:18:37,523,[OIMCP.DATC],Class/Method: DBFacade/getMatchingTableName - Data: found exact matching table:- - Value: USUARIOS_VIEW
DEBUG,07 Nov 2010 20:18:38,367,[OIMCP.DATC],Class/Method: DBFacade/getPrimaryKeys - Data: Primary Keys - Value: []
DEBUG,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBFacade/getColumns - Data: Column Name: - Value: MATRICULA
DEBUG,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBFacade/getColumns - Data: Column Dataype integer value: - Value: 12
DEBUG,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBFacade/getColumns - Data: Column Size: - Value: 10
DEBUG,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBFacade/getColumns - Data: Table Name: - Value: USUARIOS_VIEW
DEBUG,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBFacade/getClumns - Data: Column Datatype Name: - Value: VARCHAR2
DEBUG,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBFacade/getColumns - Data: Database Type Name: - Value: Oracle
DEBUG,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBFacade/getColumns - Data: Column Name: - Value: NOME
DEBUG,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBFacade/getColumns - Data: Column Dataype integer value: - Value: 12
DEBUG,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBFacade/getColumns - Data: Column Size: - Value: 80
DEBUG,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBFacade/getColumns - Data: Table Name: - Value: USUARIOS_VIEW
DEBUG,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBFacade/getClumns - Data: Column Datatype Name: - Value: VARCHAR2
DEBUG,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBFacade/getColumns - Data: Database Type Name: - Value: Oracle
DEBUG,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBFacade/getColumns - Data: Column Name: - Value: STATUS
DEBUG,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBFacade/getColumns - Data: Column Dataype integer value: - Value: 12
DEBUG,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBFacade/getColumns - Data: Column Size: - Value: 20
DEBUG,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBFacade/getColumns - Data: Table Name: - Value: USUARIOS_VIEW
DEBUG,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBFacade/getClumns - Data: Column Datatype Name: - Value: VARCHAR2
DEBUG,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBFacade/getColumns - Data: Database Type Name: - Value: Oracle
DEBUG,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBFacade/getColumns - Data: Column Name: - Value: ULTIMA_ATUALIZACAO
DEBUG,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBFacade/getColumns - Data: Column Dataype integer value: - Value: 93
DEBUG,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBFacade/getColumns - Data: Column Size: - Value: 7
DEBUG,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBFacade/getColumns - Data: Table Name: - Value: USUARIOS_VIEW
DEBUG,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBFacade/getClumns - Data: Column Datatype Name: - Value: DATE
DEBUG,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBFacade/getColumns - Data: Database Type Name: - Value: Oracle
DEBUG,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBFacade/getColumns - Data: Column Name: - Value: SENHA
DEBUG,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBFacade/getColumns - Data: Column Dataype integer value: - Value: 12
DEBUG,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBFacade/getColumns - Data: Column Size: - Value: 20
DEBUG,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBFacade/getColumns - Data: Table Name: - Value: USUARIOS_VIEW
DEBUG,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBFacade/getClumns - Data: Column Datatype Name: - Value: VARCHAR2
DEBUG,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBFacade/getColumns - Data: Database Type Name: - Value: Oracle
DEBUG,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBFacade/getClumns - Data: Columns: - Value: [com.thortech.xl.gc.impl.common.Column@187f99a, com.thortech.xl.gc.impl.common.Column@1428b7, com.thortech.xl.gc.impl.common.Column@17d39b5, com.thortech.xl.gc.impl.common.Column@57cf27, com.thortech.xl.gc.impl.common.Column@e1319f]
ERROR,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBProvisioningTransportProvider/sendData encounter some problems: Attribute: matricula does not exist in the specified parent table/view: xladm.usuarios_view
com.thortech.xl.gc.exception.DBException: Attribute: matricula does not exist in the specified parent table/view: xladm.usuarios_view
at com.thortech.xl.gc.impl.common.DBFacade.validateAttrExistence(Unknown Source)
at com.thortech.xl.gc.impl.common.DBFacade.getSchema(Unknown Source)
at com.thortech.xl.gc.impl.prov.DBProvisioningTransportProvider.getSchema(Unknown Source)
at com.thortech.xl.gc.impl.prov.DBProvisioningTransportProvider.sendData(Unknown Source)
at com.thortech.xl.gc.runtime.GCAdapterLibrary.executeFunctionality(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpINFO_GTC.GENERICADAPTER(adpINFO_GTC.java:125)
at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpINFO_GTC.implementation(adpINFO_GTC.java:70)
at com.thortech.xl.client.events.tcBaseEvent.run(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.runEvent(Unknown Source)
at com.thortech.xl.dataobj.tcScheduleItem.runMilestoneEvent(Unknown Source)
at com.thortech.xl.dataobj.tcScheduleItem.eventPostInsert(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.insert(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
at com.thortech.xl.ejb.beansimpl.tcProvisioningOperationsBean.retryTasks(Unknown Source)
at com.thortech.xl.ejb.beans.tcProvisioningOperationsSession.retryTasks(Unknown Source)
at com.thortech.xl.ejb.beans.tcProvisioningOperations_b03yxm_EOImpl.retryTasks(tcProvisioningOperations_b03yxm_EOImpl.java:2719)
at Thor.API.Operations.tcProvisioningOperationsClient.retryTasks(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at Thor.API.Base.SecurityInvocationHandler$1.run(Unknown Source)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.security.Security.runAs(Security.java:41)
at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs(Unknown Source)
at Thor.API.Base.SecurityInvocationHandler.invoke(Unknown Source)
at $Proxy93.retryTasks(Unknown Source)
at com.thortech.xl.webclient.actions.ResourceProfileProvisioningTasksAction.retryTasks(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:280)
at com.thortech.xl.webclient.actions.tcLookupDispatchAction.execute(Unknown Source)
at com.thortech.xl.webclient.actions.tcActionBase.execute(Unknown Source)
at com.thortech.xl.webclient.actions.tcAction.execute(Unknown Source)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at com.thortech.xl.webclient.security.CSRFFilter.doFilter(Unknown Source)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at com.thortech.xl.webclient.security.SecurityFilter.doFilter(Unknown Source)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)What I usually do in situations like this is that I connect to the database using a sql client and the same connection information as I specified to OIM and see if the attribute is present.
Perhaps you got the wrong db name? Or schema name?
Everything looks good so most probably there simply is some little typo somewhere.
Hope this helps
/Martin -
Difficulty with database table activesync
I am using a oracle table as trusted source, also need to create LDAP account automatically through IDM. Now I can't even get IDM user created. It shows missing status in the account index. Doesn't the default active sync wizard can't deal with basic user creation in IDM?
I have read a few post here, then I tried 2 things.
First, customized a form for active sync by add something for accountId, password, roles...:
<Field name='waveset.accountId'>
<Expansion>
<ref>activeSync.accountId</ref>
</Expansion>
<Disable>
<neq>
<ref>feedOp</ref>
<s>create</s>
</neq>
</Disable>
</Field>
Still can't see the IDM user created. (proxy admin: configurator or self defined admin with no form), of couse far away for the creation of LDAP account.
Second, I used reconciliation rule to confirm user if the situation was "missing", this time the IDM user get created. (But I don't want run both activesync and reconciliation).
Then I add role in a form to set first name, last name, apssword, email and creat LDAP account: (reconciliation proxy admin set to self defined admin user)
<Field name='waveset.roles'>
<Display class='MultiSelect' action='true'>
<Property name='title' value='_FM_ROLES'/>
<Property name='availableTitle' value='_FM_AVAILABLE_ROLES'/>
<Property name='selectedTitle' value='_FM_SELECTED_ROLES'/>
<Property name='allowedValues'>
<invoke name='getObjectNames' class='com.wavetset.ui.FormUtil'>
<ref>:display.session</ref>
<s>Role</s>
<ref>waveset.original.roles</ref>
</invoke>
</Property>
</Display>
<Expansion>
<list>
<s>Employee</s>
</list>
</Expansion>
</Field>
I received error says: "user account xxxx in LDAP is not exits", checked the account index, again, account states in LDAP shows "missing"
Can any one explain these weird IDM thing? Sun IDM is so difficult to start. I prefer a solution for active sync to resolve all these. I have see many people post similar qestions. Can any one kindly provide a full form solution. I am using IDM version 6.
Thanks
post2liI see about 2,5% CPU on Java and 1,5% on Oracle when reconciling 1500 users from a database table (IDM 5.0 SP6 on a Sun Fire 490). Maybe you can try a run without any customizations...
-
How to bind internal table values with RootUIElement(Table) from select Que
Hello Friends,
In my view Layout,there r two Input fields ,Submit button and Table... My concept is when user posting values in two input fields and clicking submit button means the result(more than one values) should be displayed in Table...
I written coding also but i dont know to bind internal table values with Table... My code as follows,
method onactionsearch .
data:
Node_Node_Flight type ref to If_Wd_Context_Node,
Elem_Node_Flight type ref to If_Wd_Context_Element,
Stru_Node_Flight type If_View1=>Element_Node_Flight ,
itab TYPE STANDARD TABLE OF sflight.
navigate from <CONTEXT> to <NODE_FLIGHT> via lead selection
Node_Node_Flight = wd_Context->get_Child_Node( Name = IF_VIEW1=>wdctx_Node_Flight ).
@TODO handle not set lead selection
if ( Node_Node_Flight is initial ).
endif.
get element via lead selection
Elem_Node_Flight = Node_Node_Flight->get_Element( ).
@TODO handle not set lead selection
if ( Elem_Node_Flight is initial ).
endif.
alternative access via index
Elem_Node_Flight = Node_Node_Flight->get_Element( Index = 1 ).
@TODO handle non existant child
if ( Elem_Node_Flight is initial ).
endif.
get all declared attributes
Elem_Node_Flight->get_Static_Attributes(
importing
Static_Attributes = Stru_Node_Flight ).
select * from sflight into CORRESPONDING FIELDS OF TABLE itab
WHERE carrid = Stru_Node_Flight-carrid and connid = Stru_Node_Flight-connid.
Node_Node_Flight->bind_table( new_items = itab ).
endmethod.
Plz reply me asap...!Hi,
What I understood from your coding is...
* navigate from <CONTEXT> to <NODE_FLIGHT> via lead selection
Node_Node_Flight = wd_Context->get_Child_Node( Name = IF_VIEW1=>wdctx_Node_Flight ).
You are reading values from the above node and binding the values to the same node.Am i right?
Did you take seperate context node for your input fields or binded the above context to the fields.If not then read the context attribute values which are binded to the carrid and connid then pass these values to select query.
One more thing is select cardinality 1..n for node NODE_FLIGHT since you are displaying more than one record.
Go through the some basic tutorials.Search in sdn you will it get.Already there is a tutorial in sdn which explains exactly what do you require.
Go throgh this link
Web Dynpro for ABAP: Tutorials for Beginners
Web Dynpro for ABAP: Tutorials for Beginners [original link is broken]
Edited by: suman kumar chinnam on Mar 26, 2009 10:50 AM -
Looking for components with certain table features
Hi
I'm pretty new to JSF. Most of the table components I've found provide sortable headers, but I'm looking for something that lets the user filter what the table shows say by clicking a header and selecting the "only show rows where this value is > 10" option. Is there anything like this out there?
Also it would be nice to see a list of what tag libraries are out there so I can see what they have to offer. I'm only aware of a few libraries, Trinidad, Tomahawk, and ICE.That looks great, probably just what I need! It looks like its incompatible with my setup though. Any others?
-
Rebate related issue with database table VKDFS & VBAK
Hi everybody,
I am facing the problem with the tables VKDFS and VBAK.
In my program the report has to display the details of the agrement numbers concerning to the sale or billing doucmnets later on it has to create a credit memo for that particular customer.
In the coding the program in very beging step, it is fetching all sales documents from VKDFS as per selections like following.
select * from vkdfs into table ivkdfs
where fktyp in r_fktyp
and vkorg in s_vkorg
and fkdat in s_fkdat
and kunnr in s_kunnr
and fkart in s_fkart
and vbeln in s_vbeln
and faksk in s_faksk
and vtweg in s_vtweg
and spart in s_spart
and netwr in s_netwr
and waerk in s_waerk.
After this whatever the sales orders fetched here, for those all again its fetching from VBAK table as following.
SVBAK[] = IVKDFS[]
select * from vbak into table ivbak
for all entries in svbak
where vbeln = svbak-vbeln
and knuma in s_knuma
and auart in s_auart
and submi in s_submi
and (vbak_wtab).
So, its filtering from VBAK.
But the exact issue is that, there is one sales order which is available in VBAK but does not available in VKDFS table.
So, my program fails to display the report regarding to that agreement number.
As per my analysis I came to know that there are no entries in VKDFS table against to the sales orders in VBAK concerning agreement numbers.
VKDFS-SD index: billing initiator table.
I want to know how come this VKDFS table is updating against to VBAK table. If possible how to make this entry in that table against to the values in VBAK. But it should not effect other tables.
Please let me know the solution if you people have any .
Its an urgent and sev 1 tickets
eagerly waiting for solution or some information.
Thanks&Regards.
J.Hi everybody,
I am facing the problem with the tables VKDFS and VBAK.
In my program the report has to display the details of the agrement numbers concerning to the sale or billing doucmnets later on it has to create a credit memo for that particular customer.
In the coding the program in very beging step, it is fetching all sales documents from VKDFS as per selections like following.
select * from vkdfs into table ivkdfs
where fktyp in r_fktyp
and vkorg in s_vkorg
and fkdat in s_fkdat
and kunnr in s_kunnr
and fkart in s_fkart
and vbeln in s_vbeln
and faksk in s_faksk
and vtweg in s_vtweg
and spart in s_spart
and netwr in s_netwr
and waerk in s_waerk.
After this whatever the sales orders fetched here, for those all again its fetching from VBAK table as following.
SVBAK[] = IVKDFS[]
select * from vbak into table ivbak
for all entries in svbak
where vbeln = svbak-vbeln
and knuma in s_knuma
and auart in s_auart
and submi in s_submi
and (vbak_wtab).
So, its filtering from VBAK.
But the exact issue is that, there is one sales order which is available in VBAK but does not available in VKDFS table.
So, my program fails to display the report regarding to that agreement number.
As per my analysis I came to know that there are no entries in VKDFS table against to the sales orders in VBAK concerning agreement numbers.
VKDFS-SD index: billing initiator table.
I want to know how come this VKDFS table is updating against to VBAK table. If possible how to make this entry in that table against to the values in VBAK. But it should not effect other tables.
Please let me know the solution if you people have any .
Its an urgent and sev 1 tickets
eagerly waiting for solution or some information.
Thanks&Regards.
J. -
Reconciliation with Database Table
Hi all,
Has anyone here tried creating Database Table resources and reconciling accounts off the data from the database? The reconciliation seems to be maxing out CPU on our Dev environment and we're not sure where the issue may lie. Our hardware is quite beefy too.
-TonyI see about 2,5% CPU on Java and 1,5% on Oracle when reconciling 1500 users from a database table (IDM 5.0 SP6 on a Sun Fire 490). Maybe you can try a run without any customizations...
-
Adding custom column to a Data Table (bound to database table)
Hello,
I've added an additional "Output Text" column to an existing "Data Table" component, which is pulling a database table and rendering it. It's actually called "OutputText5". What I want to do, is set the value of the "OutputText5" dynamically, depending on a Date comparison between the system date, and one of the currentRow field values, which is actually an Oracle Date data type. basically I'm trying to use the Date.after() comparison and put different content in there depending on true or false evaluation.
Seems simple enough .. but.. I'm trying to do this without using vim and JSP Beans (how I'd usually do this). I'm not experienced with JSF components and how this would be done using JSC - can I iterate over currentRow or something inside the "Page1.java" source? Is there an easy way to create dynamic value bindings like this in Data Table components in general? Maybe using expressions in "OutputText5" properties or something? I figure I should ask about doing this the easy way, before I spend lots of time and start teaching myself bad habbits.
I apologise in advance if this is a repeat post. I spent some time searching ,but came up empty handed.
Thanks in advance.
David BashamHi David,
Here's some ideas to try on:
http://swforum.sun.com/jive/thread.jspa?forumID=123&threadID=49459
hth,
v -
How could i updated a table created with 5 tables.
Hi everyone,
This is my problem. I have five "tables" and each one contains one row and 7 columns. In the other hand, I have one table(Ireland1) that it retrieves the values of these 5 "tables" through of " insert into" statement.
How would be I able to update of "Ireland1" data, when one of this "tables" (Remenber, I have 5 tables) has changed?
I have been searching information about this but all my search has been fruitless.
Thanks in advance,
From IrelandHi Eric,
Thank you for your quick reply and solution. I have run your statement and appear this error:
Msg 156, Level 15, State 1, Procedure Non_current_assets_Historic_View, Line 426
Incorrect syntax near the keyword 'SELECT'.
I dont know why this error appear
I leave my Sript practically full
USE Aerospace
GO
--TABLE NON-CURRENT ASSETS
IF OBJECT_ID('Non_current_assets_Historic') IS NOT NULL
DROP TABLE Non_current_assets_Historic
GO
CREATE TABLE Non_current_assets_Historic
[IdCuenta] [float] NOT NULL,
[NameCuenta] [nvarchar](255) NULL,
Year_2006 decimal (14,2) NULL,
Year_2007 decimal (14,2) NULL,
Year_2008 decimal (14,2) NULL,
Year_2009 decimal (14,2) NULL,
Year_2010 decimal (14,2) NULL,
Year_2011 decimal (14,2) NULL,
Year_2012 decimal (14,2) NULL,
Year_2013 decimal (14,2) NULL,
Year_2014 decimal (14,2) NULL,
Dif_2007_2006 decimal (14,2) NULL,
Dif_2008_2007 decimal (14,2) NULL,
Dif_2009_2008 decimal (14,2) NULL,
Dif_2010_2009 decimal (14,2) NULL,
Dif_2011_2010 decimal (14,2) NULL,
Dif_2012_2011 decimal (14,2) NULL,
Dif_2013_2012 decimal (14,2) NULL,
Dif_2014_2013 decimal (14,2) NULL,
AHP_2007_2006 decimal (14,2) NULL,
AHP_2008_2007 decimal (14,2) NULL,
AHP_2009_2008 decimal (14,2) NULL,
AHP_2010_2009 decimal (14,2) NULL,
AHP_2011_2010 decimal (14,2) NULL,
AHP_2012_2011 decimal (14,2) NULL,
AHP_2013_2012 decimal (14,2) NULL,
AHP_2014_2013 decimal (14,2) NULL,
GO
ALTER TABLE Non_current_assets_Historic
ADD CONSTRAINT PK_Non_current_assets_Historic PRIMARY KEY (IdCuenta)
GO
UPDATE Non_current_assets_Historic SET Year_2006=0 WHERE Year_2006 IS NULL
UPDATE Non_current_assets_Historic SET Year_2007=0 WHERE Year_2007 IS NULL
UPDATE Non_current_assets_Historic SET Year_2008=0 WHERE Year_2008 IS NULL
UPDATE Non_current_assets_Historic SET Year_2009=0 WHERE Year_2009 IS NULL
UPDATE Non_current_assets_Historic SET Year_2010=0 WHERE Year_2010 IS NULL
UPDATE Non_current_assets_Historic SET Year_2011=0 WHERE Year_2011 IS NULL
UPDATE Non_current_assets_Historic SET Year_2012=0 WHERE Year_2012 IS NULL
UPDATE Non_current_assets_Historic SET Year_2013=0 WHERE Year_2013 IS NULL
UPDATE Non_current_assets_Historic SET Year_2014=0 WHERE Year_2014 IS NULL
GO
INSERT INTO Non_current_assets_Historic
SELECT *
FROM Property_plant_equipment_Historic
INSERT INTO Non_current_assets_Historic
SELECT *
FROM Intangible_assets_Historic
INSERT INTO Non_current_assets_Historic
SELECT *
FROM Available_financial_assets_Historic
INSERT INTO Non_current_assets_Historic
SELECT *
FROM Deferred_tax_assets_Historic
INSERT INTO Non_current_assets_Historic
SELECT *
FROM Deposits_restricted_12M_Historic
GO
--SUMATORIO YEAR 2006
Declare @Cantidad20061 decimal (14,2)
Declare @Cantidad20062 decimal (14,2)
Declare @Cantidad20063 decimal (14,2)
Declare @Cantidad20064 decimal (14,2)
Declare @Cantidad20065 decimal (14,2)
Select @Cantidad20061 = Year_2006 from Non_current_assets_Historic where IdCuenta ='7'
Select @Cantidad20062 = Year_2006 from Non_current_assets_Historic where IdCuenta ='8'
Select @Cantidad20063 = Year_2006 from Non_current_assets_Historic where IdCuenta ='9'
Select @Cantidad20064 = Year_2006 from Non_current_assets_Historic where IdCuenta ='10'
Select @Cantidad20065 = Year_2006 from Non_current_assets_Historic where IdCuenta ='11'
--SUMATORIO YEAR 2007
Declare @Cantidad20071 decimal (14,2)
Declare @Cantidad20072 decimal (14,2)
Declare @Cantidad20073 decimal (14,2)
Declare @Cantidad20074 decimal (14,2)
Declare @Cantidad20075 decimal (14,2)
Select @Cantidad20071 = Year_2007 from Non_current_assets_Historic where IdCuenta ='7'
Select @Cantidad20072 = Year_2007 from Non_current_assets_Historic where IdCuenta ='8'
Select @Cantidad20073 = Year_2007 from Non_current_assets_Historic where IdCuenta ='9'
Select @Cantidad20074 = Year_2007 from Non_current_assets_Historic where IdCuenta ='10'
Select @Cantidad20075 = Year_2007 from Non_current_assets_Historic where IdCuenta ='11'
--SUMATORIO YEAR 2008
Declare @Cantidad20081 decimal (14,2)
Declare @Cantidad20082 decimal (14,2)
Declare @Cantidad20083 decimal (14,2)
Declare @Cantidad20084 decimal (14,2)
Declare @Cantidad20085 decimal (14,2)
Select @Cantidad20081 = Year_2008 from Non_current_assets_Historic where IdCuenta ='7'
Select @Cantidad20082 = Year_2008 from Non_current_assets_Historic where IdCuenta ='8'
Select @Cantidad20083 = Year_2008 from Non_current_assets_Historic where IdCuenta ='9'
Select @Cantidad20084 = Year_2008 from Non_current_assets_Historic where IdCuenta ='10'
Select @Cantidad20085 = Year_2008 from Non_current_assets_Historic where IdCuenta ='11'
--SUMATORIO YEAR 2009
Declare @Cantidad20091 decimal (14,2)
Declare @Cantidad20092 decimal (14,2)
Declare @Cantidad20093 decimal (14,2)
Declare @Cantidad20094 decimal (14,2)
Declare @Cantidad20095 decimal (14,2)
Select @Cantidad20091 = Year_2009 from Non_current_assets_Historic where IdCuenta ='7'
Select @Cantidad20092 = Year_2009 from Non_current_assets_Historic where IdCuenta ='8'
Select @Cantidad20093 = Year_2009 from Non_current_assets_Historic where IdCuenta ='9'
Select @Cantidad20094 = Year_2009 from Non_current_assets_Historic where IdCuenta ='10'
Select @Cantidad20095 = Year_2009 from Non_current_assets_Historic where IdCuenta ='11'
--SUMATORIO YEAR 2010
Declare @Cantidad200101 decimal (14,2)
Declare @Cantidad200102 decimal (14,2)
Declare @Cantidad200103 decimal (14,2)
Declare @Cantidad200104 decimal (14,2)
Declare @Cantidad200105 decimal (14,2)
Select @Cantidad200101 = Year_2010 from Non_current_assets_Historic where IdCuenta ='7'
Select @Cantidad200102 = Year_2010 from Non_current_assets_Historic where IdCuenta ='8'
Select @Cantidad200103 = Year_2010 from Non_current_assets_Historic where IdCuenta ='9'
Select @Cantidad200104 = Year_2010 from Non_current_assets_Historic where IdCuenta ='10'
Select @Cantidad200105 = Year_2010 from Non_current_assets_Historic where IdCuenta ='11'
--SUMATORIO YEAR 2011
Declare @Cantidad200111 decimal (14,2)
Declare @Cantidad200112 decimal (14,2)
Declare @Cantidad200113 decimal (14,2)
Declare @Cantidad200114 decimal (14,2)
Declare @Cantidad200115 decimal (14,2)
Select @Cantidad200111 = Year_2011 from Non_current_assets_Historic where IdCuenta ='7'
Select @Cantidad200112 = Year_2011 from Non_current_assets_Historic where IdCuenta ='8'
Select @Cantidad200113 = Year_2011 from Non_current_assets_Historic where IdCuenta ='9'
Select @Cantidad200114 = Year_2011 from Non_current_assets_Historic where IdCuenta ='10'
Select @Cantidad200115 = Year_2011 from Non_current_assets_Historic where IdCuenta ='11'
--SUMATORIO YEAR 2012
Declare @Cantidad200121 decimal (14,2)
Declare @Cantidad200122 decimal (14,2)
Declare @Cantidad200123 decimal (14,2)
Declare @Cantidad200124 decimal (14,2)
Declare @Cantidad200125 decimal (14,2)
Select @Cantidad200121 = Year_2012 from Non_current_assets_Historic where IdCuenta ='7'
Select @Cantidad200122 = Year_2012 from Non_current_assets_Historic where IdCuenta ='8'
Select @Cantidad200123 = Year_2012 from Non_current_assets_Historic where IdCuenta ='9'
Select @Cantidad200124 = Year_2012 from Non_current_assets_Historic where IdCuenta ='10'
Select @Cantidad200125 = Year_2012 from Non_current_assets_Historic where IdCuenta ='11'
--SUMATORIO YEAR 2013
Declare @Cantidad200131 decimal (14,2)
Declare @Cantidad200132 decimal (14,2)
Declare @Cantidad200133 decimal (14,2)
Declare @Cantidad200134 decimal (14,2)
Declare @Cantidad200135 decimal (14,2)
Select @Cantidad200131 = Year_2013 from Non_current_assets_Historic where IdCuenta ='7'
Select @Cantidad200132 = Year_2013 from Non_current_assets_Historic where IdCuenta ='8'
Select @Cantidad200133 = Year_2013 from Non_current_assets_Historic where IdCuenta ='9'
Select @Cantidad200134 = Year_2013 from Non_current_assets_Historic where IdCuenta ='10'
Select @Cantidad200135 = Year_2013 from Non_current_assets_Historic where IdCuenta ='11'
--SUMATORIO YEAR 2014
Declare @Cantidad200141 decimal (14,2)
Declare @Cantidad200142 decimal (14,2)
Declare @Cantidad200143 decimal (14,2)
Declare @Cantidad200144 decimal (14,2)
Declare @Cantidad200145 decimal (14,2)
Select @Cantidad200141 = Year_2014 from Non_current_assets_Historic where IdCuenta ='7'
Select @Cantidad200142 = Year_2014 from Non_current_assets_Historic where IdCuenta ='8'
Select @Cantidad200143 = Year_2014 from Non_current_assets_Historic where IdCuenta ='9'
Select @Cantidad200144 = Year_2014 from Non_current_assets_Historic where IdCuenta ='10'
Select @Cantidad200145 = Year_2014 from Non_current_assets_Historic where IdCuenta ='11'
--SUMATORIO DIF_2007_2006
Declare @DIF_2007_20061 decimal (14,2)
Declare @DIF_2007_20062 decimal (14,2)
Declare @DIF_2007_20063 decimal (14,2)
Declare @DIF_2007_20064 decimal (14,2)
Declare @DIF_2007_20065 decimal (14,2)
Select @DIF_2007_20061 = Dif_2007_2006 from Non_current_assets_Historic where IdCuenta ='7'
Select @DIF_2007_20062 = Dif_2007_2006 from Non_current_assets_Historic where IdCuenta ='8'
Select @DIF_2007_20063 = Dif_2007_2006 from Non_current_assets_Historic where IdCuenta ='9'
Select @DIF_2007_20064 = Dif_2007_2006 from Non_current_assets_Historic where IdCuenta ='10'
Select @DIF_2007_20065 = Dif_2007_2006 from Non_current_assets_Historic where IdCuenta ='11'
--SUMATORIO DIF_2008_2007
Declare @DIF_2008_20071 decimal (14,2)
Declare @DIF_2008_20072 decimal (14,2)
Declare @DIF_2008_20073 decimal (14,2)
Declare @DIF_2008_20074 decimal (14,2)
Declare @DIF_2008_20075 decimal (14,2)
Select @DIF_2008_20071 = Dif_2008_2007 from Non_current_assets_Historic where IdCuenta ='7'
Select @DIF_2008_20072 = Dif_2008_2007 from Non_current_assets_Historic where IdCuenta ='8'
Select @DIF_2008_20073 = Dif_2008_2007 from Non_current_assets_Historic where IdCuenta ='9'
Select @DIF_2008_20074 = Dif_2008_2007 from Non_current_assets_Historic where IdCuenta ='10'
Select @DIF_2008_20075 = Dif_2008_2007 from Non_current_assets_Historic where IdCuenta ='11'
--SUMATORIO DIF_2009_2008
Declare @DIF_2009_20081 decimal (14,2)
Declare @DIF_2009_20082 decimal (14,2)
Declare @DIF_2009_20083 decimal (14,2)
Declare @DIF_2009_20084 decimal (14,2)
Declare @DIF_2009_20085 decimal (14,2)
Select @DIF_2009_20081 = Dif_2009_2008 from Non_current_assets_Historic where IdCuenta ='7'
Select @DIF_2009_20082 = Dif_2009_2008 from Non_current_assets_Historic where IdCuenta ='8'
Select @DIF_2009_20083 = Dif_2009_2008 from Non_current_assets_Historic where IdCuenta ='9'
Select @DIF_2009_20084 = Dif_2009_2008 from Non_current_assets_Historic where IdCuenta ='10'
Select @DIF_2009_20085 = Dif_2009_2008 from Non_current_assets_Historic where IdCuenta ='11'
--SUMATORIO DIF_2010_2009
Declare @DIF_2010_20091 decimal (14,2)
Declare @DIF_2010_20092 decimal (14,2)
Declare @DIF_2010_20093 decimal (14,2)
Declare @DIF_2010_20094 decimal (14,2)
Declare @DIF_2010_20095 decimal (14,2)
Select @DIF_2010_20091 = Dif_2010_2009 from Non_current_assets_Historic where IdCuenta ='7'
Select @DIF_2010_20092 = Dif_2010_2009 from Non_current_assets_Historic where IdCuenta ='8'
Select @DIF_2010_20093 = Dif_2010_2009 from Non_current_assets_Historic where IdCuenta ='9'
Select @DIF_2010_20094 = Dif_2010_2009 from Non_current_assets_Historic where IdCuenta ='10'
Select @DIF_2010_20095 = Dif_2010_2009 from Non_current_assets_Historic where IdCuenta ='11'
--SUMATORIO DIF_2011_2010
Declare @DIF_2011_20101 decimal (14,2)
Declare @DIF_2011_20102 decimal (14,2)
Declare @DIF_2011_20103 decimal (14,2)
Declare @DIF_2011_20104 decimal (14,2)
Declare @DIF_2011_20105 decimal (14,2)
Select @DIF_2011_20101 = Dif_2011_2010 from Non_current_assets_Historic where IdCuenta ='7'
Select @DIF_2011_20102 = Dif_2011_2010 from Non_current_assets_Historic where IdCuenta ='8'
Select @DIF_2011_20103 = Dif_2011_2010 from Non_current_assets_Historic where IdCuenta ='9'
Select @DIF_2011_20104 = Dif_2011_2010 from Non_current_assets_Historic where IdCuenta ='10'
Select @DIF_2011_20105 = Dif_2011_2010 from Non_current_assets_Historic where IdCuenta ='11'
--SUMATORIO DIF_2012_2011
Declare @DIF_2012_20111 decimal (14,2)
Declare @DIF_2012_20112 decimal (14,2)
Declare @DIF_2012_20113 decimal (14,2)
Declare @DIF_2012_20114 decimal (14,2)
Declare @DIF_2012_20115 decimal (14,2)
Select @DIF_2012_20111 = Dif_2012_2011 from Non_current_assets_Historic where IdCuenta ='7'
Select @DIF_2012_20112 = Dif_2012_2011 from Non_current_assets_Historic where IdCuenta ='8'
Select @DIF_2012_20113 = Dif_2012_2011 from Non_current_assets_Historic where IdCuenta ='9'
Select @DIF_2012_20114 = Dif_2012_2011 from Non_current_assets_Historic where IdCuenta ='10'
Select @DIF_2012_20115 = Dif_2012_2011 from Non_current_assets_Historic where IdCuenta ='11'
--SUMATORIO DIF_2013_2012
Declare @DIF_2013_20121 decimal (14,2)
Declare @DIF_2013_20122 decimal (14,2)
Declare @DIF_2013_20123 decimal (14,2)
Declare @DIF_2013_20124 decimal (14,2)
Declare @DIF_2013_20125 decimal (14,2)
Select @DIF_2013_20121 = Dif_2013_2012 from Non_current_assets_Historic where IdCuenta ='7'
Select @DIF_2013_20122 = Dif_2013_2012 from Non_current_assets_Historic where IdCuenta ='8'
Select @DIF_2013_20123 = Dif_2013_2012 from Non_current_assets_Historic where IdCuenta ='9'
Select @DIF_2013_20124 = Dif_2013_2012 from Non_current_assets_Historic where IdCuenta ='10'
Select @DIF_2013_20125 = Dif_2013_2012 from Non_current_assets_Historic where IdCuenta ='11'
--SUMATORIO DIF_2014_2013
Declare @DIF_2014_20131 decimal (14,2)
Declare @DIF_2014_20132 decimal (14,2)
Declare @DIF_2014_20133 decimal (14,2)
Declare @DIF_2014_20134 decimal (14,2)
Declare @DIF_2014_20135 decimal (14,2)
Select @DIF_2014_20131 = Dif_2014_2013 from Non_current_assets_Historic where IdCuenta ='7'
Select @DIF_2014_20132 = Dif_2014_2013 from Non_current_assets_Historic where IdCuenta ='8'
Select @DIF_2014_20133 = Dif_2014_2013 from Non_current_assets_Historic where IdCuenta ='9'
Select @DIF_2014_20134 = Dif_2014_2013 from Non_current_assets_Historic where IdCuenta ='10'
Select @DIF_2014_20135 = Dif_2014_2013 from Non_current_assets_Historic where IdCuenta ='11'
insert into Non_current_assets_Historic (IdCuenta,NameCuenta,Year_2006 , Year_2007,Year_2008 ,Year_2009 ,Year_2010,Year_2011 ,Year_2012 ,Year_2013 ,
Year_2014,Dif_2007_2006,Dif_2008_2007, Dif_2009_2008, Dif_2010_2009,Dif_2011_2010,Dif_2012_2011,Dif_2013_2012,Dif_2014_2013,
AHP_2007_2006, AHP_2008_2007 , AHP_2009_2008, AHP_2010_2009, AHP_2011_2010, AHP_2012_2011 , AHP_2013_2012,AHP_2014_2013 )
Values (1, 'Non-current assets', NULL,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll),
(19, '', NULL,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll),
(20, 'Total Non-current assets',
--Year_2006
(@Cantidad20061 +@Cantidad20062 +@Cantidad20063 +@Cantidad20064 +@Cantidad20065),
--Year_2007
(@Cantidad20071+ @Cantidad20072 + @Cantidad20073+ @Cantidad20074+ @Cantidad20075),
--Year_2008
(@Cantidad20081 + @Cantidad20082 + @Cantidad20083 + @Cantidad20084 + @Cantidad20085),
--Year_2009
(@Cantidad20091 + @Cantidad20092 + @Cantidad20093+ @Cantidad20094 + @Cantidad20095),
--Year_2010
(@Cantidad200101 + @Cantidad200102 + @Cantidad200103 + @Cantidad200104 + @Cantidad200105),
--Year_2011
(@Cantidad200111 + @Cantidad200112 + @Cantidad200113 + @Cantidad200114 + @Cantidad200115),
--Year_2012
(@Cantidad200121 + @Cantidad200122 + @Cantidad200123 +@Cantidad200124 + @Cantidad200125),
--Year_2013
(@Cantidad200131 + @Cantidad200132 +@Cantidad200133 + @Cantidad200134 + @Cantidad200135),
--Year_2014
(@Cantidad200141 + @Cantidad200142 + @Cantidad200143 + @Cantidad200144 + @Cantidad200145),
--Diferencia Numeria 2007-2006
(@DIF_2007_20061 + @DIF_2007_20062 + @DIF_2007_20063 + @DIF_2007_20064 + @DIF_2007_20065),
--Diferencia Numeria 2008-2007
(@DIF_2008_20071 + @DIF_2008_20072 + @DIF_2008_20073 + @DIF_2008_20074 + @DIF_2008_20075),
--Diferencia Numeria 2009-2008
(@DIF_2009_20081 + @DIF_2009_20082 + @DIF_2009_20083 + @DIF_2009_20084 + @DIF_2009_20085 ),
--Diferencia Numeria 2010-2009
(@DIF_2010_20091 + @DIF_2010_20092 + @DIF_2010_20093 + @DIF_2010_20094 + @DIF_2010_20095),
--Diferencia Numeria 2011-2006
(@DIF_2011_20101 + @DIF_2011_20102 + @DIF_2011_20103 +@DIF_2011_20104 + @DIF_2011_20105 ),
--Diferencia Numeria 2012-2011
(@DIF_2012_20111+@DIF_2012_20112+@DIF_2012_20113+@DIF_2012_20114+@DIF_2012_20115),
--Diferencia Numeria 2013-2012
(@DIF_2013_20121 + @DIF_2013_20122 +@DIF_2013_20123 +@DIF_2013_20124 + @DIF_2013_20125),
--Diferencia Numeria 2014-2013
(@DIF_2014_20131+@DIF_2014_20132+@DIF_2014_20133+@DIF_2014_20134+@DIF_2014_20135),
--Diferencia Porcentual 2007-2006
(@DIF_2007_20061+@DIF_2007_20062+@DIF_2007_20063+@DIF_2007_20064+@DIF_2007_20065)/(@Cantidad20061 +@Cantidad20062 +@Cantidad20063 +@Cantidad20064 +@Cantidad20065),
--Diferencia Porcentual 2008-2007
(@DIF_2008_20071 + @DIF_2008_20072 + @DIF_2008_20073 + @DIF_2008_20074 + @DIF_2008_20075)/(@Cantidad20071+ @Cantidad20072 + @Cantidad20073+ @Cantidad20074+ @Cantidad20075),
--Diferencia Porcentual 2009-2008
(@DIF_2009_20081 + @DIF_2009_20082 + @DIF_2009_20083 + @DIF_2009_20084 + @DIF_2009_20085 )/(@Cantidad20081 + @Cantidad20082 + @Cantidad20083 + @Cantidad20084 + @Cantidad20085),
--Diferencia Porcentual 2010-2009
(@DIF_2010_20091 + @DIF_2010_20092 + @DIF_2010_20093 + @DIF_2010_20094 + @DIF_2010_20095)/(@Cantidad20091 + @Cantidad20092 + @Cantidad20093+ @Cantidad20094 + @Cantidad20095),
--Diferencia Porcentual 2011-2010
(@DIF_2011_20101 + @DIF_2011_20102 + @DIF_2011_20103 +@DIF_2011_20104 + @DIF_2011_20105)/(@Cantidad200101 + @Cantidad200102 + @Cantidad200103 + @Cantidad200104 + @Cantidad200105),
--Diferencia Porcentual 2012-2011
(@DIF_2012_20111+@DIF_2012_20112+@DIF_2012_20113+@DIF_2012_20114+@DIF_2012_20115)/(@Cantidad200111 + @Cantidad200112 + @Cantidad200113 + @Cantidad200114 + @Cantidad200115),
--Diferencia Porcentual 2013-2012
(@DIF_2013_20121 + @DIF_2013_20122 +@DIF_2013_20123 +@DIF_2013_20124 + @DIF_2013_20125)/(@Cantidad200121 + @Cantidad200122 + @Cantidad200123 +@Cantidad200124 + @Cantidad200125),
--Diferencia Porcentual 2014-2013
(@DIF_2014_20131+@DIF_2014_20132+@DIF_2014_20133+@DIF_2014_20134+@DIF_2014_20135)/(@Cantidad200131 + @Cantidad200132 +@Cantidad200133 + @Cantidad200134 + @Cantidad200135))
GO
SELECT IdCuenta ,NameCuenta ,Year_2006 ,Year_2007 ,Year_2008 ,Year_2009 ,Year_2010 ,Year_2011 ,Year_2012 , Year_2013 ,Year_2014
FROM Non_current_assets_Historic
Maybe the error is in the design
of this table
Regards
Francisco
I work with SQL 2014 Management Studio -
Inserting columns from internal table to a database table!
Hi people,
How do I go about to insert columns from an internal table -intab- into an data base table -dbtab-. These tables contain some similar columns, not all.
A code example would be much appriciated!
/Arminhi armin,
INSERT dbtab FROM TABLE itab. oder
INSERT (dbtabname) FROM TABLE itab.
Extras:
1. ... CLIENT SPECIFIED
2. ... ACCEPTING DUPLICATE KEYS
3. ... CONNECTION con
Effect
Mass insert: All lines of the internal table itab are inserted in one single operation. The lines of itab must fulfill the same conditions as the work area wa in variant 1.
When the command has been executed, the system field SY-DBCNT contains the number of inserted lines.
The Return Code is set as follows:
SY-SUBRC = 0:
All lines successfully inserted. Any other result causes a runtime error.
Note
If the internal table itab is empty, SY-SUBRC and SY-DBCNT are set to 0 after the call.
Addition 1
... CLIENT SPECIFIED
Effect
As with variant 1.
Addition 2
... ACCEPTING DUPLICATE KEYS
Effect
If a line cannot be inserted, the system does not
terminate with a runtime error but only sets the return value SY-SUBRC to 4. All other lines are inserted after the command is executed.
hope this helps,
do reward if it helps,
priya. -
Can ui:table deal with large table?
I have found h:dataTable can do pagination because it's data source is just a DataModel. But ui:table's datasouce is a data provider which looks some complex and confused.
I have a large table and I want to load the data on-demand . So I try to implement a provider. But soon I found that the ui:table may be load all data from provider always.
In TableRowGroup.java, there are many code such as:
provider.getRowKeys(rowCount, null);
null will let provider load all data.
So ui:table can NOT deal with large table!?
thx.
fanBut ui:table just uses TableDataProvider interface.TableData provider is a wrapper for the CachedRowSet
There are two layers between the UI:Table comonent and the database table: the RowSet layer and the Data Provider layer. The RowSet layer makes the connection to the database, executes the queries, and manages the result set. The Data Provider layer provides a common interface for accessing many types of data, from rowsets, to Array objects, to Enterprise JavaBeans objects.
Typically, the only time that you work with the RowSet object is when you need to set query parameters. In most other cases, you should use the Data Provider to access and manipulate the data.
What can a CachedRowSet (or CachedRowSetprovider?)
do?Check out the API that I pointed you to to see what you can do with a CachedRowSet
Does the Table cache the data itself?
Maybe this way is convenient for filter and order?
Thx.I do not know the answers to these questions.
Maybe you are looking for
-
New ssd install in MBP 5,3 (mid 2009 model)
Hello, New to ssd installing and terminology used in some of the discussion forums I have been reading! About to install my new ssd and have a few questions before starting. (ssd is a crucial M500 480gb) I'll try to be a blunt as I can because I ten
-
How to find the type of webserver being configured for use with ColdFusion
Hello, Where can I check to see the type of server that ColdFusion is configured to run currently? I have an existing installation of CF 9.0.1, which I will be removing and installing CF 9.0.2. During instalation of 9.0.2, I would need to specify the
-
JNDI to access Novell NDS LDAP
Hi, I'm using WLS 5.1 on Solaris. I would like to use an NDS LDAP server instead of the internal WLS JNDI directory. Has anyone done this? I think you simply specify the LDAP server when getting the initial context. Does anyone have any sample code I
-
Multiple Variable selection filtering for BEx queries
I created a web template which accesses three BEx queries. I have the same variable in all three queries so when I run the report, it pulls the data from all three queries correctly. BUT, when I change the filtering criteria within the report, only o
-
I have already downloaded 2.0 onto my iphone but my music wont download. When I connect my phone to itunes I am getting am error msg saying that "itunes cannot read the contents of thr iphone. Go to the summary tab in iphone preferencesand click rest