Dynamic programming: Add transparent container to root container
Hi all,
I'm trying to add a transparent container to the root container,
but I´m getting this error: 'ASSERT condition was violated'
METHOD WDDOMODIFYVIEW .
DATA: LR_ROOT TYPE REF TO CL_WD_UIELEMENT_CONTAINER,
LR_TCONTAINER TYPE REF TO CL_WD_TRANSPARENT_CONTAINER.
LR_ROOT ?= VIEW->GET_ROOT_ELEMENT( ).
LR_TCONTAINER = CL_WD_TRANSPARENT_CONTAINER=>NEW_TRANSPARENT_CONTAINER( ).
CL_WD_FLOW_DATA=>NEW_FLOW_DATA( LR_TCONTAINER ).
LR_ROOT->ADD_CHILD( LR_TCONTAINER ).
ENDMETHOD.
Is something wrong with this code?
Thank you.
Regards,
Thomas
>
Giscard Rous wrote:
> I have the same problem.
> I am getting the error "The ASSERT condition was violated".
>
> I have reduced my code to just simply add a transparent container to the rootuielement and I am getting the error.
>
> I could not figure out why. Does anyone have info on this? Thanks.
>
> Giscard
My problem was the layout, after I added it, the problem was solved.
METHOD WDDOMODIFYVIEW .
DATA: LR_ROOT TYPE REF TO CL_WD_UIELEMENT_CONTAINER,
LR_TCONTAINER TYPE REF TO CL_WD_TRANSPARENT_CONTAINER.
LR_ROOT ?= VIEW->GET_ROOT_ELEMENT( ).
LR_TCONTAINER = CL_WD_TRANSPARENT_CONTAINER=>NEW_TRANSPARENT_CONTAINER( ).
CL_WD_FLOW_DATA=>NEW_FLOW_DATA( LR_TCONTAINER ).
CL_WD_FLOW_LAYOUT=>NEW_FLOW_LAYOUT( LR_TCONTAINER ).
LR_ROOT->ADD_CHILD( LR_TCONTAINER ).
ENDMETHOD.
Hope it helps you.
Regards,
Thomas
Similar Messages
-
Dynamic Programming: Adding Transparent Container to Root Element
Hi,
I simply am adding a Transparent Container to the Root Element dynamically and I am getting the error "The ASSERT condition was violated".
Does anyone have an idea what the problem is.
Below is my VERY MUCH simplified code:
method WDDOMODIFYVIEW .
DATA:
LR_ROOT TYPE REF TO CL_WD_UIELEMENT_CONTAINER,
LR_TCONTAINER TYPE REF TO CL_WD_TRANSPARENT_CONTAINER,
LR_FLOW_DATA TYPE REF TO CL_WD_FLOW_DATA.
LR_ROOT ?= VIEW->GET_ROOT_ELEMENT( ).
LR_TCONTAINER = CL_WD_TRANSPARENT_CONTAINER=>NEW_TRANSPARENT_CONTAINER(
id = 'TCONTAINER_01' ).
LR_FLOW_DATA = CL_WD_FLOW_DATA=>NEW_FLOW_DATA( LR_TCONTAINER ).
LR_TCONTAINER->SET_LAYOUT_DATA( LR_FLOW_DATA ).
LR_ROOT->ADD_CHILD( LR_TCONTAINER ).
endmethod.Found the answer on this link:
Creating dynamic tranparent container -
ABAP: Dynamic creation of transparent container
Hello,
I have this code and it fails (null pointer exception):
transparent_container = cl_wd_transparent_container=>new_transparent_container( ).
cl_wd_grid_data=>new_grid_data( element = transparent_container ).
ui_container->add_child( transparent_container ).
What is the problem? Do I need to create transparent container and pass some parameters?
Thank you.Hello Armin,
yes it is.
I have some code like this:
"create a transparent container
transparent_container = cl_wd_transparent_container=>new_transparent_container( ).
cl_wd_grid_data=>new_grid_data( element = transparent_container ).
ui_container->add_child( transparent_container ).
"create a dropDown with figures
drop_down_figure = cl_wd_dropdown_by_key=>new_dropdown_by_key( bind_selected_key = 'REPOSITORY.FIGURES' on_select = 'GET_OPERATOR' ).
cl_wd_grid_data=>new_grid_data( element = drop_down_figure ).
ui_container->add_child( drop_down_figure ).
If I comment out code where I create transparent container it works fine and creates dropDown.
However, as soon as I add transparent container I get NullPointer exception.
Thank you. -
How can i add one field in the container for the standard task-90310004?
Hi,
Please let me know thw steps to add one field in the container for the standard task-90310004.
Usefull suggestions will be rewarded.
Regards,
Neslin.<b>Hi,
Containers are used for holding Application data for Workflow purposes.
Event container
Task container
Workflow container
Role container
Binding is the linking of data from one container to the other for making data available all across the workflow.
But you can get values from one container to another container like this
Container(Con)
1. WF Con to Role, Wf con to task con, Wf con to event
and
2. Event con to wf con, task con to wof con
and
3. Method con to task con
and
4. Task con to method con
So, we don't have direct possible binding from task con to task con.
Thanks and Regards,
Prabhakar Dharmala</b>
Message was edited by:
Prabhakar Dharmala
But you can do pass values from first task con to wf con and again from wf con to another task con -
Possible to add multiple 'Collections' to a container
Hello,
In DB XML, is a 'Container' equivalent to an xquery 'Collection' ? All of the examples that I see, refer to the container when specifying the collection.
Basically, I would like to create one Container - call in container1.dbxml Within container1, I would like to have multiple collections, collection1, collection2.
I would then like to be able to run xqueries such as:
count(/*) - and get a count of all the docs in both collection1 and collection2 or
collection("collection1")/* - and get all the nodes in collection1 only
So, bottom line question - can I add multiple collections to a container, or is a container and collection equivalent in DB XML?
Thanks for your responses.IBB
What you want to do is create a class that extends the Java XmlResolver class, and register that class with the XmlManager. In your extended class you would want to implement the following function:
public boolean resolveCollection(XmlTransaction txn, XmlManager mgr, String uri, XmlResults result)
So that the result argument contains all the documents in the collection specified by the uri. You will likely want to do this by querying the container for the documents for the given collection and copying the results returned by the query to the argument.
Below is an example of an implementation of the function that resolves the collection to a single document.
public boolean resolveCollection(XmlTransaction txn, XmlManager mgr, String uri, XmlResults result) throws XmlException {
XmlDocument doc = mgr.createDocument();
doc.setName(name);
doc.setContent(content);
XmlValue val = new XmlValue(doc);
result.add(val);
return true;
Lauren Foutz -
Difference between CDB and CDB$ROOT container in 12cR1
Connecting to the instance CDB2 with the database CDB2 mounted connects me to CDB$ROOT ID 1. According to the below, it seems the instance or database and root container are separate containers, each having their own container ID. However, even if the database is not mounted, it connects to CDB$ROOT ID 1.
Why does the instance or database have a different container ID than CDB$ROOT?
$ sqlplus sys@cdb2 as sysdba
SQL*Plus: Release 12.1.0.1.0 Production on Wed Oct 23 18:51:40 2013
Copyright (c) 1982, 2013, Oracle. All rights reserved.
SQL> select name, cdb, con_id from v$database;
NAME CDB CON_ID
CDB2 YES 0
SQL> select instance_name, con_id from v$instance;
INSTANCE_NAME CON_ID
cdb2 0
SQL> select name, con_id from v$containers;
NAME CON_ID
CDB$ROOT 1
PDB$SEED 2
SQL> sho con_id
CON_ID
1
SQL> startup nomount;
ORACLE instance started.
CON_ID
1Yes, I think I understand, but why bother to consider the database instance a container and assign an ID.
No - I don't think you do. As I explained in my first reply an instance IS NOT a container and IS NOT assigned a container ID.
Obviously an instance is required for the database, and a database is required to store the root and pluggable containers. I just don't understand the logic why CDB$ROOT was not assigned 0.
Because '0' is NOT available anymore. It (meaning zero) has already been assigned as the container id of the whole CDB or non-CDB. Container '0' is the parent container of ALL of the other containers which are the 'child' containers. They form a hierarchy.
I suggest you read ALL of chapter 17 (Introduction to the Multitenant Architecture) and chapter 18 (Overview of the Multitenant Architecture). Then after you have read those chapters repost in the forums if you have particular questions or don't understand something in those chapters.
http://docs.oracle.com/cd/E16655_01/server.121/e17633/cdbovrvw.htm
http://docs.oracle.com/cd/E16655_01/server.121/e17633/cdblogic.htm
Your question is answered in Chapter 18 in the section 'Container Data Objects in a CDB.
Container Data Objects in a CDB
A container data object is a table or view containing data pertaining to multiple containers and possibly the CDB as a whole, along with mechanisms to restrict data visible to specific common users through such objects to one or more containers. Examples of container data objects are Oracle-supplied views whose names begin with V$ and CDB_.
All container data objects have a CON_ID column. Table 18-1 shows the meaning of the values for this column.
Table 18-1 Container ID Values
Container ID
Rows pertain to
0
Whole CDB, or non-CDB
1
CDB$ROOT
2
PDB$SEED
All Other IDs
User-Created PDBs
As you can see by Table 18-1 CDB$ROOT can NOT be assigned container ID zero since that value is ALREADY assigned. -
Download a special kind of internal table (dynamic programming)
Hi guys,
with dynamic programming, i've created a complex internal table of this type :
KNA1 |
KNB1 |
GS_CUSTOMERADDRESS |
GS_CUSTOMERGENERALDETAIL |
The declaration of the internal table is :
TYPES: BEGIN OF gty_record,
table TYPE tabname,
dataref TYPE REF TO data,
END OF gty_record.
This means that each line, has a different line-type. In the first field of the table, i have the name of the structure. In the second, the data-part (in debug double click on leads to structure contents - field by field).
The structure KNA1 contains C and packed (P) fields also so when i pass the internal table to FM GUI_DOWNLOAD, i have this short-dump : UC_OBJECTS_NOT_CONVERTIBLE.
Is there a way to solve this problem quickly?
The goals is download all data of a customer into a local file. Data is distribuited on different structures, readed by standard bapi 'BAPI_CUSTOMER_GETDETAIL2'. This file will be read in another program, of another system.
Any hints/suggestion will be appreciated.
Thanks a lot.
AndreaHi Sandra,
thx for you suggestions.
About your answer :
" Or use a DO. ASSIGN COMPONENT sy-index OF STRUCTURE ... to loop at each field, and do whatever you want with them (using WRITE ... TO ... for example, to convert numbers into text)."
I cannot use this approach to the problem, because i should keep in mind the dimension of single fields and the blanks should be concatenated also, but RESPECTING BLANK switch of concatenate instruction doesen't exists in 4.7 abap.
Sure, i can use a workaround, but i'll have a lot of programming.
"you could use XML for instance. It's rather standard! By using CALL TRANSFORMATION ID SOURCE dataObject RESULT XML string."
This could be the solution. I've already read some posts about it before write mine. I should test it: i don't know if in 4.7 release works. So i could transform the internal table to xml and save to text file.
But then, how i can read xml string and mapping again in this special kind of table ?
Is CALL TRANSFORMATION ID SOURCE XML String RESULT Dataobject instruction sufficient to perform this task?
Thanks a lot
Andrea
BR
Sandra -
Hi how to add new folders under root for jsp in tomcat4.1.18
hi,
previsously i used tomcat3.3 and tomcat4.1.12 run sucessfully.
now i downloed jakartha_tomcat4.1.18,
i am running sample succesfuly direcly under root.
now i want my some jsp appilcationes to run under xyz,pqr folders
here my jsp files are abc.jsp,fgh.jsp while running file url like this
http://localhost:8080/xyz/abc.jsp
http://localhost:8080/pqr/fgh.jsp
while running url server not locate the files.
where i add these xyz and pqr folders in server.xml.
here my server.xml like this any one can modify this
<!-- Example Server Configuration File -->
<!-- Note that component elements are nested corresponding to their
parent-child relationships with each other -->
<!-- A "Server" is a singleton element that represents the entire JVM,
which may contain one or more "Service" instances. The Server
listens for a shutdown command on the indicated port.
Note: A "Server" is not itself a "Container", so you may not
define subcomponents such as "Valves" or "Loggers" at this level.
-->
<Server port="8005" shutdown="SHUTDOWN" debug="0">
<!-- Comment these entries out to disable JMX MBeans support -->
<!-- You may also configure custom components (e.g. Valves/Realms) by
including your own mbean-descriptor file(s), and setting the
"descriptors" attribute to point to a ';' seperated list of paths
(in the ClassLoader sense) of files to add to the default list.
e.g. descriptors="/com/myfirm/mypackage/mbean-descriptor.xml"
-->
<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"
debug="0"/>
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
debug="0"/>
<!-- Global JNDI resources -->
<GlobalNamingResources>
<!-- Test entry for demonstration purposes -->
<Environment name="simpleValue" type="java.lang.Integer" value="30"/>
<!-- Editable user database that can also be used by
UserDatabaseRealm to authenticate users -->
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved">
</Resource>
<ResourceParams name="UserDatabase">
<parameter>
<name>factory</name>
<value>org.apache.catalina.users.MemoryUserDatabaseFactory</value>
</parameter>
<parameter>
<name>pathname</name>
<value>conf/tomcat-users.xml</value>
</parameter>
</ResourceParams>
</GlobalNamingResources>
<!-- A "Service" is a collection of one or more "Connectors" that share
a single "Container" (and therefore the web applications visible
within that Container). Normally, that Container is an "Engine",
but this is not required.
Note: A "Service" is not itself a "Container", so you may not
define subcomponents such as "Valves" or "Loggers" at this level.
-->
<!-- Define the Tomcat Stand-Alone Service -->
<Service name="Tomcat-Standalone">
<!-- A "Connector" represents an endpoint by which requests are received
and responses are returned. Each Connector passes requests on to the
associated "Container" (normally an Engine) for processing.
By default, a non-SSL HTTP/1.1 Connector is established on port 8080.
You can also enable an SSL HTTP/1.1 Connector on port 8443 by
following the instructions below and uncommenting the second Connector
entry. SSL support requires the following steps (see the SSL Config
HOWTO in the Tomcat 4.0 documentation bundle for more detailed
instructions):
* Download and install JSSE 1.0.2 or later, and put the JAR files
into "$JAVA_HOME/jre/lib/ext".
* Execute:
%JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows)
$JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA (Unix)
with a password value of "changeit" for both the certificate and
the keystore itself.
By default, DNS lookups are enabled when a web application calls
request.getRemoteHost(). This can have an adverse impact on
performance, so you can disable it by setting the
"enableLookups" attribute to "false". When DNS lookups are disabled,
request.getRemoteHost() will return the String version of the
IP address of the remote client.
-->
<!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -->
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
port="8080" minProcessors="5" maxProcessors="75"
enableLookups="true" redirectPort="8443"
acceptCount="100" debug="0" connectionTimeout="20000"
useURIValidationHack="false" disableUploadTimeout="true" />
<!-- Note : To disable connection timeouts, set connectionTimeout value
to -1 -->
<!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -->
<!--
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
port="8443" minProcessors="5" maxProcessors="75"
enableLookups="true"
acceptCount="100" debug="0" scheme="https" secure="true"
useURIValidationHack="false" disableUploadTimeout="true">
<Factory className="org.apache.coyote.tomcat4.CoyoteServerSocketFactory"
clientAuth="false" protocol="TLS" />
</Connector>
-->
<!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -->
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
port="8009" minProcessors="5" maxProcessors="75"
enableLookups="true" redirectPort="8443"
acceptCount="10" debug="0" connectionTimeout="0"
useURIValidationHack="false"
protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
<!-- Define an AJP 1.3 Connector on port 8009 -->
<!--
<Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
port="8009" minProcessors="5" maxProcessors="75"
acceptCount="10" debug="0"/>
-->
<!-- Define a Proxied HTTP/1.1 Connector on port 8082 -->
<!-- See proxy documentation for more information about using this. -->
<!--
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
port="8082" minProcessors="5" maxProcessors="75"
enableLookups="true"
acceptCount="100" debug="0" connectionTimeout="20000"
proxyPort="80" useURIValidationHack="false"
disableUploadTimeout="true" />
-->
<!-- Define a non-SSL legacy HTTP/1.1 Test Connector on port 8083 -->
<!--
<Connector className="org.apache.catalina.connector.http.HttpConnector"
port="8083" minProcessors="5" maxProcessors="75"
enableLookups="true" redirectPort="8443"
acceptCount="10" debug="0" />
-->
<!-- Define a non-SSL HTTP/1.0 Test Connector on port 8084 -->
<!--
<Connector className="org.apache.catalina.connector.http10.HttpConnector"
port="8084" minProcessors="5" maxProcessors="75"
enableLookups="true" redirectPort="8443"
acceptCount="10" debug="0" />
-->
<!-- An Engine represents the entry point (within Catalina) that processes
every request. The Engine implementation for Tomcat stand alone
analyzes the HTTP headers included with the request, and passes them
on to the appropriate Host (virtual host). -->
<!-- You should set jvmRoute to support load-balancing via JK/JK2 ie :
<Engine name="Standalone" defaultHost="localhost" debug="0" jmvRoute="jvm1">
-->
<!-- Define the top level container in our container hierarchy -->
<Engine name="Standalone" defaultHost="localhost" debug="0">
<!-- The request dumper valve dumps useful debugging information about
the request headers and cookies that were received, and the response
headers and cookies that were sent, for all requests received by
this instance of Tomcat. If you care only about requests to a
particular virtual host, or a particular application, nest this
element inside the corresponding <Host> or <Context> entry instead.
For a similar mechanism that is portable to all Servlet 2.3
containers, check out the "RequestDumperFilter" Filter in the
example application (the source for this filter may be found in
"$CATALINA_HOME/webapps/examples/WEB-INF/classes/filters").
Request dumping is disabled by default. Uncomment the following
element to enable it. -->
<!--
<Valve className="org.apache.catalina.valves.RequestDumperValve"/>
-->
<!-- Global logger unless overridden at lower levels -->
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="catalina_log." suffix=".txt"
timestamp="true"/>
<!-- Because this Realm is here, an instance will be shared globally -->
<!-- This Realm uses the UserDatabase configured in the global JNDI
resources under the key "UserDatabase". Any edits
that are performed against this UserDatabase are immediately
available for use by the Realm. -->
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
debug="0" resourceName="UserDatabase"/>
<!-- Comment out the old realm but leave here for now in case we
need to go back quickly -->
<!--
<Realm className="org.apache.catalina.realm.MemoryRealm" />
-->
<!-- Replace the above Realm with one of the following to get a Realm
stored in a database and accessed via JDBC -->
<!--
<Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
driverName="org.gjt.mm.mysql.Driver"
connectionURL="jdbc:mysql://localhost/authority"
connectionName="test" connectionPassword="test"
userTable="users" userNameCol="user_name" userCredCol="user_pass"
userRoleTable="user_roles" roleNameCol="role_name" />
-->
<!--
<Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
driverName="oracle.jdbc.driver.OracleDriver"
connectionURL="jdbc:oracle:thin:@ntserver:1521:ORCL"
connectionName="scott" connectionPassword="tiger"
userTable="users" userNameCol="user_name" userCredCol="user_pass"
userRoleTable="user_roles" roleNameCol="role_name" />
-->
<!--
<Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
driverName="sun.jdbc.odbc.JdbcOdbcDriver"
connectionURL="jdbc:odbc:CATALINA"
userTable="users" userNameCol="user_name" userCredCol="user_pass"
userRoleTable="user_roles" roleNameCol="role_name" />
-->
<!-- Define the default virtual host -->
<Host name="localhost" debug="0" appBase="webapps"
unpackWARs="true" autoDeploy="true">
<!-- Normally, users must authenticate themselves to each web app
individually. Uncomment the following entry if you would like
a user to be authenticated the first time they encounter a
resource protected by a security constraint, and then have that
user identity maintained across all web applications contained
in this virtual host. -->
<!--
<Valve className="org.apache.catalina.authenticator.SingleSignOn"
debug="0"/>
-->
<!-- Access log processes all requests for this virtual host. By
default, log files are created in the "logs" directory relative to
$CATALINA_HOME. If you wish, you can specify a different
directory with the "directory" attribute. Specify either a relative
(to $CATALINA_HOME) or absolute path to the desired directory.
-->
<!--
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs" prefix="localhost_access_log." suffix=".txt"
pattern="common" resolveHosts="false"/>
-->
<!-- Logger shared by all Contexts related to this virtual host. By
default (when using FileLogger), log files are created in the "logs"
directory relative to $CATALINA_HOME. If you wish, you can specify
a different directory with the "directory" attribute. Specify either a
relative (to $CATALINA_HOME) or absolute path to the desired
directory.-->
<Logger className="org.apache.catalina.logger.FileLogger"
directory="logs" prefix="localhost_log." suffix=".txt"
timestamp="true"/>
<!-- Define properties for each web application. This is only needed
if you want to set non-default properties, or have web application
document roots in places other than the virtual host's appBase
directory. -->
<!-- Tomcat Root Context -->
<Context path="" docBase="ROOT" debug="0"/>
<!-- Tomcat Examples Context -->
<Context path="/examples" docBase="examples" debug="0"
reloadable="true" crossContext="true">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="localhost_examples_log." suffix=".txt"
timestamp="true"/>
<Ejb name="ejb/EmplRecord" type="Entity"
home="com.wombat.empl.EmployeeRecordHome"
remote="com.wombat.empl.EmployeeRecord"/>
<!-- If you wanted the examples app to be able to edit the
user database, you would uncomment the following entry.
Of course, you would want to enable security on the
application as well, so this is not done by default!
The database object could be accessed like this:
Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup("java:comp/env");
UserDatabase database =
(UserDatabase) envCtx.lookup("userDatabase");
-->
<!--
<ResourceLink name="userDatabase" global="UserDatabase"
type="org.apache.catalina.UserDatabase"/>
-->
<!-- PersistentManager: Uncomment the section below to test Persistent
Sessions.
saveOnRestart: If true, all active sessions will be saved
to the Store when Catalina is shutdown, regardless of
other settings. All Sessions found in the Store will be
loaded on startup. Sessions past their expiration are
ignored in both cases.
maxActiveSessions: If 0 or greater, having too many active
sessions will result in some being swapped out. minIdleSwap
limits this. -1 or 0 means unlimited sessions are allowed.
If it is not possible to swap sessions new sessions will
be rejected.
This avoids thrashing when the site is highly active.
minIdleSwap: Sessions must be idle for at least this long
(in seconds) before they will be swapped out due to
activity.
0 means sessions will almost always be swapped out after
use - this will be noticeably slow for your users.
maxIdleSwap: Sessions will be swapped out if idle for this
long (in seconds). If minIdleSwap is higher, then it will
override this. This isn't exact: it is checked periodically.
-1 means sessions won't be swapped out for this reason,
although they may be swapped out for maxActiveSessions.
If set to >= 0, guarantees that all sessions found in the
Store will be loaded on startup.
maxIdleBackup: Sessions will be backed up (saved to the Store,
but left in active memory) if idle for this long (in seconds),
and all sessions found in the Store will be loaded on startup.
If set to -1 sessions will not be backed up, 0 means they
should be backed up shortly after being used.
To clear sessions from the Store, set maxActiveSessions, maxIdleSwap,
and minIdleBackup all to -1, saveOnRestart to false, then restart
Catalina.
-->
<!--
<Manager className="org.apache.catalina.session.PersistentManager"
debug="0"
saveOnRestart="true"
maxActiveSessions="-1"
minIdleSwap="-1"
maxIdleSwap="-1"
maxIdleBackup="-1">
<Store className="org.apache.catalina.session.FileStore"/>
</Manager>
-->
<Environment name="maxExemptions" type="java.lang.Integer"
value="15"/>
<Parameter name="context.param.name" value="context.param.value"
override="false"/>
<Resource name="jdbc/EmployeeAppDb" auth="SERVLET"
type="javax.sql.DataSource"/>
<ResourceParams name="jdbc/EmployeeAppDb">
<parameter><name>username</name><value>sa</value></parameter>
<parameter><name>password</name><value></value></parameter>
<parameter><name>driverClassName</name>
<value>org.hsql.jdbcDriver</value></parameter>
<parameter><name>url</name>
<value>jdbc:HypersonicSQL:database</value></parameter>
</ResourceParams>
<Resource name="mail/Session" auth="Container"
type="javax.mail.Session"/>
<ResourceParams name="mail/Session">
<parameter>
<name>mail.smtp.host</name>
<value>localhost</value>
</parameter>
</ResourceParams>
<ResourceLink name="linkToGlobalResource"
global="simpleValue"
type="java.lang.Integer"/>
</Context>
</Host>
</Engine>
</Service>
<!-- The MOD_WEBAPP connector is used to connect Apache 1.3 with Tomcat 4.0
as its servlet container. Please read the README.txt file coming with
the WebApp Module distribution on how to build it.
(Or check out the "jakarta-tomcat-connectors/webapp" CVS repository)
To configure the Apache side, you must ensure that you have the
"ServerName" and "Port" directives defined in "httpd.conf". Then,
lines like these to the bottom of your "httpd.conf" file:
LoadModule webapp_module libexec/mod_webapp.so
WebAppConnection warpConnection warp localhost:8008
WebAppDeploy examples warpConnection /examples/
The next time you restart Apache (after restarting Tomcat, if needed)
the connection will be established, and all applications you make
visible via "WebAppDeploy" directives can be accessed through Apache.
-->
<!-- Define an Apache-Connector Service -->
<!--
<Service name="Tomcat-Apache">
<Connector className="org.apache.catalina.connector.warp.WarpConnector"
port="8008" minProcessors="5" maxProcessors="75"
enableLookups="true" appBase="webapps"
acceptCount="10" debug="0"/>
<Engine className="org.apache.catalina.connector.warp.WarpEngine"
name="Apache" debug="0">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="apache_log." suffix=".txt"
timestamp="true"/>
<Realm className="org.apache.catalina.realm.MemoryRealm" />
</Engine>
</Service>
-->
</Server>
==========
any one may modify above one
thanks
pullareddyjAs the server.xml is big enough, I took the minimum portion of it. Hope u can proceed with it.
<!-- Tomcat Root Context -->
<Context path="" docBase="ROOT" debug="0"/>
<!-- New contexts -->
<Context path="/xyz" docBase="pathTo_xyz" debug="0" crossContext="true"/>
<Context path="/pqr" docBase="pathTo_pqr" debug="0" crossContext="true"/>
<!-- Tomcat Examples Context -->
<Context path="/examples" docBase="examples" debug="0"
reloadable="true" crossContext="true">
You should also provide a WEB-INF folder under pqr or xyz folder.
You should also provide a web.xml file under each WEB-INF folder.
The minimal web.xml is
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/j2ee/dtd/web-app_2_3.dtd">
<web-app>
</web-app>
That's it. Try it out. Hope it is OK.
Hafizur Rahman
SCJP -
Hi All
Can anyone send me some good documents in the below topics, it is urgent
1) Dynamic Programming
2) ABAP Objects
A Good documents will get rewarded.
Thanks PrasadParameter mapping
normal ABAP is process oriented, where is OOP-ABAP is a new methodology in ABAP which uses object oriented programming.
we have C++, java, C#, etc as OOP languages.
ABAP has also implemented the OOP technology.
it uses classes, methods and interfaces instead of functiongroups and function modules.
As part of SAPs long-standing commitment to object technology, Release 4.0
of R/3 will contain object-oriented enhancements to the ABAP programming
language. SAPs object strategy is based on SAP Business Objects and now
covers modeling, programming, interfacing, and workflow. By using principles
like encapsulation, inheritance, and polymorphism, the object-oriented
extensions of ABAP will support real object-oriented development. This will
result in improvements in the areas of reusability, maintenance, and quality of
code. SAP offers an evolutionary approach toward objects which leverages
SAPs own and its customers investments in existing business processes,
functionality and data.
follow this link ABAP OBJECTS with good examples.......
http://help.sap.com/saphelp_nw2004s/helpdata/en/ce/b518b6513611d194a50000e8353423/content.htm
check the below links lot of info and examples r there
http://www.sapgenie.com/abap/OO/index.htm
http://www.geocities.com/victorav15/sapr3/abap_ood.html
http://www.brabandt.de/html/abap_oo.html
Check this cool weblog:
/people/thomas.jung3/blog/2004/12/08/abap-persistent-classes-coding-without-sql
/people/thomas.jung3/blog/2004/12/08/abap-persistent-classes-coding-without-sql
http://help.sap.com/saphelp_nw04/helpdata/en/c3/225b6254f411d194a60000e8353423/frameset.htm
http://www.sapgenie.com/abap/OO/
http://www.sapgenie.com/abap/OO/index.htm
http://help.sap.com/saphelp_nw04/helpdata/en/c3/225b5654f411d194a60000e8353423/content.htm
http://www.esnips.com/doc/375fff1b-5a62-444d-8ec1-55508c308b17/prefinalppt.ppt
http://www.esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf
http://www.esnips.com/doc/5c65b0dd-eddf-4512-8e32-ecd26735f0f2/prefinalppt.ppt
http://www.allsaplinks.com/
http://www.sap-img.com/
http://www.sapgenie.com/
http://help.sap.com
http://www.sapgenie.com/abap/OO/
http://www.sapgenie.com/abap/OO/index.htm
http://www.sapgenie.com/abap/controls/index.htm
http://www.esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf
http://www.esnips.com/doc/0ef39d4b-586a-4637-abbb-e4f69d2d9307/SAP-CONTROLS-WORKSHOP.pdf
http://www.sapgenie.com/abap/OO/index.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/ce/b518b6513611d194a50000e8353423/frameset.htm
http://www.sapgenie.com/abap/OO/
these links
http://help.sap.com/saphelp_47x200/helpdata/en/ce/b518b6513611d194a50000e8353423/content.htm
For funtion module to class
http://help.sap.com/saphelp_47x200/helpdata/en/c3/225b5954f411d194a60000e8353423/content.htm
for classes
http://help.sap.com/saphelp_47x200/helpdata/en/c3/225b5c54f411d194a60000e8353423/content.htm
for methods
http://help.sap.com/saphelp_47x200/helpdata/en/08/d27c03b81011d194f60000e8353423/content.htm
for inheritance
http://help.sap.com/saphelp_47x200/helpdata/en/dd/4049c40f4611d3b9380000e8353423/content.htm
for interfaces
http://help.sap.com/saphelp_47x200/helpdata/en/c3/225b6254f411d194a60000e8353423/content.htm
For Materials:
1) http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCABA/BCABA.pdf -- Page no: 1291
2) http://esnips.com/doc/5c65b0dd-eddf-4512-8e32-ecd26735f0f2/prefinalppt.ppt
3) http://esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf
4) http://esnips.com/doc/0ef39d4b-586a-4637-abbb-e4f69d2d9307/SAP-CONTROLS-WORKSHOP.pdf
5) http://esnips.com/doc/92be4457-1b6e-4061-92e5-8e4b3a6e3239/Object-Oriented-ABAP.ppt
6) http://esnips.com/doc/448e8302-68b1-4046-9fef-8fa8808caee0/abap-objects-by-helen.pdf
7) http://esnips.com/doc/39fdc647-1aed-4b40-a476-4d3042b6ec28/class_builder.ppt
8) http://www.amazon.com/gp/explorer/0201750805/2/ref=pd_lpo_ase/102-9378020-8749710?ie=UTF8
1) http://www.erpgenie.com/sap/abap/OO/index.htm
2) http://help.sap.com/saphelp_nw04/helpdata/en/ce/b518b6513611d194a50000e8353423/frameset.htm
these are the links
Check this for basic concepts of OOPS
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/abap%20objects/abap%20code%20sample%20to%20learn%20basic%20concept%20of%20object-oriented%20programming.doc
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/alv%20grid/abap%20code%20sample%20to%20display%20data%20in%20alv%20grid%20using%20object%20oriented%20programming.doc
Tabstrip
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/alv%20grid/abap%20code%20sample%20for%20tab%20strip%20in%20alv.pdf
Editable ALV
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/alv%20grid/abap%20code%20sample%20to%20edit%20alv%20grid.doc
Tree
http://www.sapdevelopment.co.uk/reporting/alv/alvtree/alvtree_usrint.htm
General Tutorial for OOPS
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/an%20easy%20reference%20for%20alv%20grid%20control.pdf
http://www.sapdevelopment.co.uk/reporting/alvhome.htm
http://www.sap-img.com/abap/what-is-alv-programming.htm
http://www.sap-img.com/abap-function.htm
http://www.geocities.com/mpioud/Abap_programs.html
http://www.sapdevelopment.co.uk/reporting/alv/alvtree%5Calvtree_basic.htm
http://esnips.com/doc/ad20dca9-6182-4903-8d8f-96a66dc8590c/ALV.pdf
http://www.sap-img.com/abap-function.htm
Classical ALV:
http://www.geocities.com/mpioud/Abap_programs.html
OOPS ALV:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907
Also Chk this standard Programs.
ABAP_OBJECTS_ENJOY_0 Template for Solutions of ABAP Object Enjoy Course
ABAP_OBJECTS_ENJOY_1 Model Solution 1: ABAP Objects Enjoy Course
ABAP_OBJECTS_ENJOY_2 Model Solution 2: ABAP Objects Enjoy Course
ABAP_OBJECTS_ENJOY_3 Model Solution 3: ABAP Objects Enjoy Course
ABAP_OBJECTS_ENJOY_4 Model Solution 4: ABAP Objects Enjoy Course
ABAP_OBJECTS_ENJOY_5 Model Solution 5: ABAP Objects Enjoy Course
DEMO_ABAP_OBJECTS Complete Demonstration for ABAP Objects
DEMO_ABAP_OBJECTS_CONTROLS GUI Controls on Screen
DEMO_ABAP_OBJECTS_EVENTS Demonstration of Events in ABAP Objects
DEMO_ABAP_OBJECTS_GENERAL ABAP Objects Demonstration
DEMO_ABAP_OBJECTS_INTERFACES Demonstration of Interfaces in ABAP Objects
DEMO_ABAP_OBJECTS_METHODS Demonstration of Methods in ABAP Objects
DEMO_ABAP_OBJECTS_SPLIT_SCREEN Splitter Control on Screen
Reward points if found helpful -
Dynamic programming How to assign a static UI element to a static tray
Hi There,
We are enhancing a standard WDA application and we have a few static UI element created on the view. And now we want to rearrange these element to look like this.
Current:
Root
-> Transparent container1
-> ZTray
-> Transparent container2
target
Root
-> ZTray
-> Transparent container1
-> Transparent container2
Can you help me to find out me how can i perform this 'move" assignment using dynamic programming.
Thanks for your inputs.
RgdsHi Sudhir,
You can start trying something like this in WDDOMODIFYVIEW.
DATA:
lo_element type ref to cl_wd_uielement,
LO_CONTAINER TYPE REF TO CL_WD_UIELEMENT_CONTAINER.
IF first_time = abap_true.
LO_CONTAINER ?= view->get_element( 'ROOTUIELEMENTCONTAINER' ).
lo_element = LO_CONTAINER->REMOVE_CHILD( ID = 'ZTRAY' ).
LO_CONTAINER->ADD_CHILD( INDEX = 1
THE_CHILD = LO_ELEMENT ).
ENDIF.
I never did something like that. I guess that depending on the layout type of the view this code will need some changes (e.g matrix layout). I tried a simple test with flow layout and worked fine here. -
Dynamic Programming Using Java
hiiii...anyone knows how to use a dynamic programming to compare a mouse movement using java??? i hope some one can help me......
This was just an idea. I do not know of any program
implementing this. I will not help you store coordinates
into a database, but I can explain my suggestion in
more detail.
Since the characters might be more dependent on the page
then the user, you must make a sub character for each page.
Your table row must then contain following fields:
user, time, page, x-cord, and y-cord.
Now assume following
- we will use the characters 'average speed' and
'centre of gravity of movement'.
- we have two sessions of data, that is two sets of table
rows as described above. Every set belongs to different
users.
- the sessions are spread on a set of pages.
Now we will compute the distance between these users. There
are a lot of distance metrics but let us choose the most
common one. Let P be a set of points in R^n and p.n
be the n coordinate of the point p in P. Then for any p1
and p2 in P, define the distance metric to be
D(p1,p2) = summa_{over n} (p1.n-p2.n)^2
Define the average speed for a certain user and page to be
Speed(user, page) (in) R. Further more let
Gravity(user, page) (in) R^2 be the centre of gravity of
movement for a user and page.
Then the total distance is
D(user_1, user_2) = summa_{over all pages} k1*D(Gravity(user_1, page), Gravity(user_2, page)) + k2*D(Speed(user_1, page), Speed(user_2, page))
where k1 and k2 are constants determines the importance
you want to assign the two characters. -
Regarding Dynamic Programming in HR-ABAP
Hi,
I have problem on the dynamic programming. The Reqirement is like, Infotype
0008 if shows one Initial screen , into that infotype we have to add five fields this is
an Enhancement and after we adding that fields into that infotype we should do some logics based on the wagetype , and once we enter an input to that IT 0008
we get that five field values l. How can i solve this problem please help me.
Regards,
SadanandamPlease this is and Urgent Requirement
-
Dynamic Programming - Attribute Mapping
Hi
Im working on Web Dynpro for ABAP Application where Im using dynamic programming.
I've created node and attributes dynamically (using ADD_NEW_CHILD_NODE & ADD_ATTRIBUTE methods resp.) & bound the dynamically created Textedit UI elements to those attributes. The application is running fine upto this.
Now I want to get the text entered in textedit field from the context. For this I'm using GET_ATTRIBUTE method. Here Im getting dump with error message 'Could not find attribute V_TEST.1.CN_INPUT.1.ATTR11 '. When I debug the GET_ATTRIBUTE method, I found out that the internal table DYNAMIC_ATTRIBUTES is initial. The internal table ATTRIBUTES->* is getting populated in the metod ADD_ATTRIBUTE.
Pls suggest the solution or any alternative method for this.Hi ,
this is happening because the attributes are added dynamically . to get the attribute value at runtime u have to follow the below procedure .
DATA : LR_ROOT_INFO TYPE REF TO IF_WD_CONTEXT_NODE_INFO ,
LR_NODE_INFO TYPE REF TO IF_WD_CONTEXT_NODE_INFO,
LR_STRUCTDESCR TYPE REF TO CL_ABAP_STRUCTDESCR ,
LS_COMPONENT TYPE CL_ABAP_STRUCTDESCR=>COMPONENT,
LT_COMPONENTS TYPE CL_ABAP_STRUCTDESCR=>COMPONENT_TABLE,
LR_TYPE TYPE REF TO CL_ABAP_DATADESCR .
LR_TYPE ?= cl_abap_TYPEdescr=>describe_by_name( p_name = 'MATNR' ).
LS_COMPONENT-NAME = 'MATNR'.
LS_COMPONENT-TYPE = LR_TYPE .
APPEND LS_COMPONENT TO LT_COMPONENTS.
LR_TYPE ?= cl_abap_TYPEdescr=>describe_by_name( p_name = 'MAKTX' ).
LS_COMPONENT-NAME = 'MAKTX'.
LS_COMPONENT-TYPE = LR_TYPE .
APPEND LS_COMPONENT TO LT_COMPONENTS.
CALL METHOD cl_abap_structdescr=>create
EXPORTING
p_components = LT_COMPONENTS
receiving
p_result = LR_STRUCTDESCR
CATCH cx_sy_struct_creation .
*ENDTRY.
LR_ROOT_INFO = WD_CONTEXT->GET_NODE_INFO( ).
CALL METHOD lr_root_info->add_new_child_node
498 EXPORTING
499 * supply_method =
500 * supply_object =
501 * dispose_method =
502 * dispose_object =
503 * static_element_type =
504 name = 'DATA' " NODE NAME
505 * is_mandatory = ABAP_FALSE
506 * is_mandatory_selection = ABAP_FALSE
507 * is_multiple = ABAP_TRUE
508 * is_multiple_selection = ABAP_TRUE
509 * is_singleton = ABAP_FALSE
510 is_initialize_lead_selection = ABAP_false
511 static_element_rtti = LR_STRUCTDESCR
512 * is_static = ABAP_TRUE " ADD ATTRIBUTE AS STATIC
513 * attributes =
514 receiving
515 child_node_info = LR_NODE_INFO .
Regards
Yash -
Dynamic Programming Change Making Problem - Need Someone to Review
I've created a dynamic program in which you can input any amount with any given coin denominations and it should output the least amount of coins needed to solve, HOWEVER, there are some glitches I was hoping some of you could point out and correct. Here's the code for my main method and the code for my instance methods.
public class Changemaker
public static void main (String args[])
int amt = Integer.parseInt(args[0]); // Initialize the method in which the program will be invoked
Tuple[][] t = new Tuple[args.length - 1][amt + 1]; // Create the matrix
int [] coins = new int [args.length - 1]; // Create empty array that stores the amount of coin denominations
for (int i = 0; i < coins.length; i++) // Store input values into array called coins
coins[i] = Integer.parseInt ( args[i+1] );
for (int i = 0; i < coins.length; i++) // Establish a 0 value in the first column of every row
t[0] = new Tuple (coins.length);
for (int i = 0; i < coins.length; i++) // Create a tuple that checks if the given coin denomination can create the amount
for (int j = 0; j < amt + 1; j++)
if (j - coins[i] < 0) // Create a null tuple if the amount is less than the arguments
t[i][j] = new Tuple (coins.length);
else // Mantra
int remainder = j - coins[i]; // Take the coin out of the amount
t[i][j] = new Tuple (coins.length); // Create a new blank tuple of coin length
t[i][j].setElement(i, 1);// Change the tuple location from 0 to 1 to keep track of it
t[i][j].add(t[i][remainder]); // Add the tuple in the remainder cell to the existing tuple
try
if (t[i][j].total() > t[i - 1][j].total()) // Return total elements in tuple directly above
if (t[i - 1][j] != null)
t[i][j] = t[i - 1][j];
catch (ArrayIndexOutOfBoundsException e)
System.out.println(t[i][j].toString());
}Class for Instance Methodspublic class Tuple
private int [] change;
public Tuple (int n) // Constructor class, elements initialized at zero
this.change = new int [n];
for ( int i = 0; i < this.change.length; i++)
this.change[i] = 0;
public Tuple (int [] data) // Constructor class that creates a n-tuple from given data
this.change = new int[data.length]; //Initialize the array change to incorporate data into each element
for (int i = 0; i < this.change.length; i++)
this.change[i] = data[i];
public void setElement (int i, int j) // Set element i to value j
this.change[i] = j;
public int getElement (int i)
return this.change[i];
public int length()
return this.change.length;
public int total() // Return total of elements in tuple
int sum = 0;
for (int i = 0; i < this.change.length; i++)
sum += this.change[i];
return sum;
public void add (Tuple t) // adds a tuple t to tuple
* Make a new "change" array that equals the current one
* Create another array called tuple t
* Add the new "change" array with the tuple t
for (int i = 0; i < this.change.length; i++)
this.change[i] = this.change[i] + t.getElement(i);
public boolean equals(Object t) // Return true if tuple identical to t
* Determine if object is a tuple t
* Check to see if tuple t is the same size of change
* If true, loop both and compare
for (int i = 0; i < this.change.length; i++)
if (this.change[i] != getElement(i))
return false;
return true;
public Tuple copy() //Return an exact copy of tuple
Tuple copy = new Tuple(this.change);
return copy;
public String toString() // Returns a string of the tuple
String s = "";
for (int i = 0; i < this.change.length; i++)
s += this.change[i];
return "<," + s + ",>";
/* Add for loop
* Add value at each index of array into string
*Output:*
*java ChangemakerTest 5 1 2 3*
<000>
<100>
<200>
<300>
<400>
<500>
<000>
<000>
<010>
<010>
<020>
<020>
<000>
<000>
<000>
<001>
<001>
<001>
*The correct output using the above execution line should be:*
<000>
<100>
<200>
<300>
<400>
<500>
<000>
<100>
<010>
<110>
<020>
<120>
<000>
<100>
<010>
<001>
<101>
<011>A bit of advice on getting advice.
1) Ask a specific question, nobody is going to debug your program for you
2) Avoid the word "Dynamic", especially if you don't know what it means. -
So with the new version of firefox I lost the feature where, whenever I opened a new tab, instead of a blank tab page, a page would appear that contained mini-windows containing pics of all my most often used websites. I could then simply click on one of maybe six windows to go directly to my most used sites. What happened to this? I really, really, really miss this feature. How can I get it back?
The Google Toolbar and other extensions for Firefox include a list of compatible Firefox versions. Currently, the Google Toolbar only goes up to Firefox 4. However, people have tested and it actually works on Firefox 5, so there are two workarounds:
(1) Edit a file to revise the range of compatible versions
(2) Install an add-on that lets you ignore the range of compatible versions
This thread has info on both approaches: [https://support.mozilla.com/en-US/questions/837142 google toolbar does not work with firefox 5.0. why not! | Firefox Support Forum | Firefox Help].
Maybe you are looking for
-
Any Way to Save a pdf User Manual?
I seem to recall that in previous versions of FCS apps, including Motion, you had the Help option to open (usually in Preview) a pdf User Manual. From there, via the Print dialog, you could do a "Save as PDF", into the folder of your choice. I often
-
Chart Code/Display Problem!?!?
Hey Pros out there, I have some FINISHED_DATEs, like 04.02.09 11.02.09 14.02.09 15.03.09 28.06.09 and an item to switch the year :P2000_CR_YEAR. Now I like to create a 3D coulumn chart and have some porblems with the code. The result should look like
-
My iMac keyboard not responding in Bootcamp Windows 8 with drivers installed
Hi, I'm using late-2012 27.1 inches iMac and using Apple Wireless Keyboard, I've installed Windows 8 on bootcamp for a long time now, all drivers are working fine, keyboard is also working perfectly. Then one day, I decided to install a new controlle
-
Crawling Web Repository - Error
Hi Experts , EP Version - EP 2004s I have configured a web repository as per the guide "How to configure a web repositiry and crawl it for searching ..". I have configured this for portal index page. I can see the folder created under 'root' and one
-
Installing database 10g with developer 10g
i have oracle database 10g installed on a server...i want to install developer(forms,reports etc) on a different computer...and i want to be able to access the database...do i need to do something special in the install????