Construction and Function Class
Hi All,
I will be using concept of Construction class and Function class for my device category. Acc to the two classes i will be getting certain number of device categories How will I map my register groups for them?
Hi Madhu,
Construction Class, Function Class and register group are all part of device category master data. So, you can create device categories based on atleast three parameters. However, while you are creating devices you have an option to change register group. So, technically register group can be considered as template value which gets copied to device from device category.
If you want to know the table in which all three values are available, then they are available in table ETYP.
Let us know if you had any other question.
Regards,
Avinash
Similar Messages
-
Are enums and inner classes allowed in taglib function signatures??
Hi,
I have a taglib with the following function definition:
<function>
<description>Determine if viewing a patient attribute is allowed</description>
<name>isViewingPatientAttributeAllowed</name>
<function-class>com.example.admin.authorization.UserAuthorizer</function-class>
<function-signature>boolean isViewingPatientAttributeAllowed(com.example.bean.User, com.example.bean.Patient.PatientAttribute, com.example.bean.Patient)</function-signature>
<example>
${ncvi:isViewingPatientAttributeAllowed(user, patientAttribute, patient)}
</example>
</function>Where com.example.bean.Patient.PatientAttribute is an enum (note package names have been changed to protect the innocent;-). When I try to compile my web app I get the following error:
org.apache.jasper.JasperException: The class com.example.bean.Patient.PatientAttribute specified in the method signature in TLD for the function ncvi:isViewingPatientAttributeAllowed cannot be found. com.example.bean.Patient.PatientAttributeIf I change PatientAttribute to a static inner class of Patient, I still get the error. Are enums and inner classes allowed in function signatures?
Thx.I think that you'll find it easier to define a non-inner abstract class RefBase, that exposes a removeFromQueue() method, then extend that for your Ref class. That way, the queue just deals with RefBase instances (or ? extends RefBase).
I think that any other approach is going to get the compiler confused, because the compile-time Ref depends on the parameterization of its defining class. -
How to find master data info objects. Partner function and customer class.
hi,
Can you please tell me what are the available extractors for Partner Function (PARVW from VBPA)and Customer Class (KUKLA from KNA1).
I hope these fields are master data. I checked in 0customer. But I didn't find it. There is a info object (Business partner). Is it the same?
pls replyI will admit that I am not familiar with ECC and there may be different interpretations of what KUKLA means and different means of extracting Customer information to/from ECC.
However, for us, when extracting Customer Attributes using the 0CUSTOMER_ATTR datasource in R/3, we map KUKLA to 0CUST_CLASS. They are both set up as 2 CHAR. That is not to say that you should also. You can map it to a custom infoobject in BW as long as you set it up as an attribute of 0CUSTOMER. KUKLA is available in the standard datasource 0CUSTOMER_ATTR in R/3. When looking at what is available in the infosource for 0CUSTOMER in BW, 0CUST_CLASS is a logical choice to map.
As far as VBPA-PARVW, VBPA is not a source for master data for 0BPARTNER. VBPA contains the business partners associated with Sales documents. So if you are going to create a data provider (cube/ODS) in BW and VBPA-PARVW is part of the transactional datasource in R/3, the you can map it to 0BPARTNER in your cube/ODS.
Hope this helps. -
Help with Xcode what is the difference between a Function, class and object
Hi all,
I'm new here and in programming in Xcode. My question is can somebody tell me what the difference is between functions classes and object. I will appreciate it if you can involve some articels or something else.
Many thanks,
RL6001Do a Google search for object-oriented programming. When I did, I found the following tutorial, which explains what objects and classes are:
Object Oriented Programming Tutorial -
Spry hover and selected classes
Been working withCS3, and I like it, but a lot of stuff
doesn't seem to work properly. I'm trying to create something
similar to the Events example, where I have a list of data rows,
synced to a detail region. Clicking the detail row displays the
detailed content for the selected row. THAT part works fine, but
the HOVER and SELECTED classes seem to be ignored. What I'd like is
to change the foreground and background color for the row on
mouseover, and to keep a different background color when a row is
selected. It works in the example, but not in the code that the
Spry table wizards constructs. I notice in the example that they
use the Spry:repeatchildren construct, which is different than the
wizard generates, but I'm wondering if it's an older approach; I
can't even find a reference to repeatchildren in the online help.
Here's my code, if anyone can help with this;
<table cellpadding="10" bgcolor="#FFFFFF">
<tr>
<td valign="top"><div spry:region="dsTest">
<table cellpadding="3">
<tr>
<th spry:sort="NewsDate"><div
align="left">Date</div></th>
<th spry:sort="BriefTitle"><div
align="left">Summary</div></th>
</tr>
<tr spry:repeat="dsTest" spry:setrow="dsTest"
spry:hover="rowHover" spry:select="rowSelected">
<td><div
align="left">{NewsDate}</div></td>
<td><div
align="left">{BriefTitle}</div></td>
</tr>
</table>
</div></td>
<td valign="top"><div
spry:detailregion="dsTest">
<h2 align="left">{NewsTitle}</h2>
<p align="left" class="date">{NewsDate}</p>
<p align="left">{NewsContent}</p>
</div></td>
</tr>
</table>Been working withCS3, and I like it, but a lot of stuff
doesn't seem to work properly. I'm trying to create something
similar to the Events example, where I have a list of data rows,
synced to a detail region. Clicking the detail row displays the
detailed content for the selected row. THAT part works fine, but
the HOVER and SELECTED classes seem to be ignored. What I'd like is
to change the foreground and background color for the row on
mouseover, and to keep a different background color when a row is
selected. It works in the example, but not in the code that the
Spry table wizards constructs. I notice in the example that they
use the Spry:repeatchildren construct, which is different than the
wizard generates, but I'm wondering if it's an older approach; I
can't even find a reference to repeatchildren in the online help.
Here's my code, if anyone can help with this;
<table cellpadding="10" bgcolor="#FFFFFF">
<tr>
<td valign="top"><div spry:region="dsTest">
<table cellpadding="3">
<tr>
<th spry:sort="NewsDate"><div
align="left">Date</div></th>
<th spry:sort="BriefTitle"><div
align="left">Summary</div></th>
</tr>
<tr spry:repeat="dsTest" spry:setrow="dsTest"
spry:hover="rowHover" spry:select="rowSelected">
<td><div
align="left">{NewsDate}</div></td>
<td><div
align="left">{BriefTitle}</div></td>
</tr>
</table>
</div></td>
<td valign="top"><div
spry:detailregion="dsTest">
<h2 align="left">{NewsTitle}</h2>
<p align="left" class="date">{NewsDate}</p>
<p align="left">{NewsContent}</p>
</div></td>
</tr>
</table> -
Working with traits and policy classes
I have not been able to see if anyone has raised this before from my searches of the forums but this may just be bad searching !
I am trying to investigate how much of the traits / policies idioms of working in C++ generic programming are applicable to Java. The following trio of classes are a very striped down version of one problem I am having. It relates to the use of static methods, inheritance and generic classes.
First a couple of classes with static methods related by inheritance.
public class X {
public static int get() {
System.err.println("X.get.") ;
return 1 ;
public class Y extends X {
public static int get() {
System.err.println("Y.get.") ;
return X.get() + 1 ;
}Now a class that uses the types as type parameters and tries to call the static method:
public class TypeParameterLookupSolved<A extends X> {
private void doit() {
System.out.println(A.get()) ;
public static void main(final String[] args) {
TypeParameterLookupSolved<Y> tpli = new TypeParameterLookupSolved<Y> () ;
tpli.doit() ;
}The output from running this is:
X.get.
1
So the question is why does the call of A.get() always bind to X.get() when na�vely you would expect Y.get() to be called.
If Java will only ever call X.get() in this instance then the policy class idiom will not work properly . Of course it may be that there is another way of doing this that I have missed.
Thanks.Thanks for the correction.
I never can get the hang of up and down in type hierarchies -- functional programming people talk a lot about top and bottom in type hierarchies and I never remember which is which. One of these days I will find a mechanism for putting the knowledge into long-term memory :-)
Having had the epiphany of "least upper bounds", it is now trivially easy to do Java-style generic programming (which is good :-) even though it is totally different to everyone else (C++, Python, Groovy, Ruby, Nice, CL, OCAML, Haskell, . . .-- which is not so good). I am increasingly of the view that using the term Generics has been a labelling error and an unfortunate disservice to Java as it can set up a mind-set about parameterized types and "generic programming" that is fundamentally wrong. I can feel a series of short articles coming on as well as sorting out my ADS library! -
Procedure and Functions from ADF View Layer
Hi,
Before i ask my question ,I would like to mention that I have done lot of googling on this topic before asking this question.
http://adfhowto.blogspot.in/2010/11/call-db-procedure-or-function-from-adf.html
http://adf-tools.blogspot.ca/2010/03/adf-plsql-procedure-or-function-call.html
Lot of threads on otn forum too on this topic.
I m pretty new to ADf too.
Now most of our logic is in procedures and functions ,so on various events on form(view layer) I need to call procedure and function and then return values back to value layer too.
Now the approach mentioned in the link above is good whats best approach to return out parameters to view layer considering i will be using either the DbCall class for all calls to procedures and functions
I am thinking of this approach to Create a view with static fields,and in Model layer set values for these fields and access them in view layer or binding view controls to these fields.
From View layer i will call the methods in AppmodImpl which will be calling procedure( methods will be exposed as Client Interface)
Also in few articles i came across generic CallStoredProcedure and CallStoredFunctions.
But my main concern is how to share out parameters with view layer....can anyone give link of showing application of it on view layer.
Regards,From your subject. am stating that, dont do all those stuff in backing bean. backing bean is 1:1 mapping with your .jpsx or .jsff .
best approach would be call those things your Application Module(model layer) exposed it. access the method over your pagedef. well said by ram. -
How can I use the procedures and functions in my library
hello, all
I have a pl/sql library MYLIB.pld, MYLIB.pll and MYLIB.plx.
How can I invoke procedures and functions there in JDeveloper?
Thanks.
DamonI am indeed using ADF BC to re-develop the oracle application.
Here is my situation:
We have an oracle form application.
Our objective is to try to re-use the existing sources in the form application as much as possible:
1. tons of procedures and functions in a pl/sql library(a file with extension name portfolioLib.pll or portfolioLib.plx);
2. tons of form-level triggers, data-block triggers and item-triggers;
3. tons of database stored procedures and triggers;
After doing a research on JDeveloper, we decide to use ADF Swing+ADF BC to re-develop the application.
My opinion for the above three kinds of sources in our form application is:
for 1: we try to move most of procedures and functions into database(except Form build-in);
for 2: we try to wrap those triggers in a SQLJ class;
for 3: we try to call database procedures and functions with PreparedStatment or CallableStatement;
I just do a test on a post-query trigger on a data-block:
I created a sqlj file, named testSQLJ.sqlj in the test.view package;
I tried to call it in createInstanceFromResultSet of testDeptVOImpl.java which is test.model package,
I was told that testSQLJ cannot be found there. why?
How can I call some classes from test.view package in some classes of test.model?
I read some documents about how to deal with post-query trigger in JDeveloper: create a view with SQL statement, but it seems that it does not support pl/sql statement there.
Can you give me some opinion about the above stuff?
I really appreciate your help.
Damon -
Error - Unable to execute service and function
Hi all,
I created a sample component with service handlers but it is giving errors Unable to execute service GET_PURGE_LIST and function getPurgeList.
(System Error: The service method 'getPurgeList' is not defined.) Please let me know what changes to be made to fix this
Below are the files I used:
======================
ampfacpurgecontents_resource.htm
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>
ServiceHandlerSample htmlIncludeOrString
</title>
</head>
<body>
<@dynamichtml custom_finish_layout_init@>
<$include super.custom_finish_layout_init$>
if (navBuilder)
if (isLoggedIn)
navBuilder.addChildNodeTo('MY_CONTENT', 'item', 'id==GET_PURGE_LIST',
'label=='+'Show Purge List',
'url==<$HttpCgiPath$>?IdcService=GET_PURGE_LIST');
<@end@>
</body></html>
===============================================
Services
======
servicehandlersample_service.htm
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>
ServiceHandlerSample service
</title>
</head>
<body>
<@table ServiceHandlerSample_Services@>
<table border=1><caption><strong>Scripts For Custom Services</strong></caption>
<tr>
<td>Name</td><td>Attributes</td><td>Actions</td>
</tr>
<tr>
<td>GET_PURGE_LIST</td>
<td>DocService
0
PUTRGE_LIST_PAGE
null
null<br>
null</td>
<td>3:getPurgeList:GET_LIST:0:null</td>
</tr>
</table>
<@end@>
</body></html>
======================
service handler
============
servicehandlers_handlers.htm
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>
ServiceHandlerSample htmlIncludeOrString
</title>
</head>
<body>
<@table SampleServiceHandlers@>
<table border=1><caption><strong>ServiceHandlers</strong></caption>
<tr>
<td>serviceName</td><td>handler</td><td>searchOrder</td>
</tr>
<tr>
<td>DocService</td>
<td>com.ameriprise.ServiceHandlerSample.getPurgeList</td>
<td>100</td>
</tr>
</table>
<@end@>
</body></html>
======================================================
ServiceHandlerSample.hda
<?hda version="10.1.3.3.3 (080807)" jcharset=UTF8 encoding=utf-8?>
@Properties LocalData
version=2013_09_25(build 1)
blFieldTypes=
ComponentName=ServiceHandlerSample
hasPreferenceData=false
blDateFormat=M/d/yy {h:mm[:ss] {aa}[zzz]}!mAM,PM!tAsia/Calcutta
@end
@ResultSet ResourceDefinition
4
type
filename
tables
loadOrder
resource
resources/servicehandlersample_resource.htm
null
1
resource
resources/servicehandlers_handlers.htm
SampleServiceHandlers
1
service
resources/servicehandlersample_service.htm
ServiceHandlerSample_Services
1
template
templates/servicehandlersample_template.hda
null
1
@end
@ResultSet Filters
4
type
location
parameter
loadOrder
@end
@ResultSet MergeRules
4
fromTable
toTable
column
loadOrder
ServiceHandlerSample_Templates
IntradocTemplates
name
10
SampleServiceHandlers
ServiceHandlers
null
1
@end
@ResultSet ClassAliases
3
classname
location
loadOrder
@end
========================
Java Class
package com.ameriprise.ServiceHandlerSample;
import java.util.*;
import java.io.*;
import java.net.*;
import intradoc.common.*;
import intradoc.data.*;
import intradoc.shared.*;
import intradoc.server.*;
public class GetPurgedList extends ServiceHandler {
public void getPurgeList() throws ServiceException, DataException
DataResultSet fullStockData = new DataResultSet(new String[] {"Sample Content",
"11111", "123", "Sept-25-13" });
String resultSetName = m_currentAction.getParamAt(0);
m_binder.addResultSet(resultSetName, fullStockData);
============================================================
Template
servicehandlersample_template.hda
<?hda version="10.1.3.3.3 (080807)" jcharset=UTF8 encoding=utf-8?>
@Properties LocalData
blFieldTypes=
blDateFormat=M/d/yy {h:mm[:ss] {aa}[zzz]}!mAM,PM!tAsia/Calcutta
@end
@ResultSet ServiceHandlerSample_Templates
5
name
class
formtype
filename
description
PUTRGE_LIST_PAGE
Document
null
purge_list_page.htm
null
@endHi Ashok,
In your servicehandlersample_service.htm the Service Class should be your package name and not DocService. Here is how it should be:
<@table ServiceHandlerSample_Services@>
<table border=1><caption><strong>Scripts For Custom Services</strong></caption>
<tr>
<td>Name</td><td>Attributes</td><td>Actions</td>
</tr>
<tr>
<td>GET_PURGE_LIST</td>
<td>com.ameriprise.ServiceHandlerSample
0
PUTRGE_LIST_PAGE
null
null<br>
null</td>
<td>3:getPurgeList:GET_LIST:0:null</td>
</tr>
</table>
<@end@>
HTH
- Anand -
Wich function (class) could I use to create one pixel high object (frame)?
Hi guys, I need a pointer on a certatin line on the graphic screen. And I want it to be written in Java. I know how to make it to be "always on top" now, but AFAIK every applet or application is to be shown in a bordered window saying it is a Java object for security reasons. As I want it to be one pixel high, I apparently need to get rid of the frame border. Supposedly I have to switch off the security, but it's OK for me.
Wich function (class) do I use to create one pixel high object?
And one more thing. How do I generally show a graphic object of nonrectangular shape out of the bordered frame? Is there a way to do it without creating an transparent rectangular window/frame?I didn't quite know what you mean, but how's this?
public class MySinglePixelWindow extends JWindow {
public MySinglePixelWindow() {
super();
setSize(1,1);
setLocation(0,0);
public void paint(Graphics g) {
super.paint(g);
g.fillRect(0,0,1,1);
}Transparent Window:
public class MyTransparentWindow extends JWindow {
java.awt.Robot robot;
BufferedImage screen;
public MyTransparentWindow() {
super();
try {
robot = new Robot();
} catch(Exception e) {}
public void show() {
image = robot.createScreenCapture(getBounds());
super.show();
public void paint(Graphics g) {
super.paint(g);
Graphics2D g2 = (Graphics2D)g;
g.setComposite(AlphaComposite.newInstance(AlphaComposite.SRC_OVER,0.8));
g.drawImage(image,0,0,this);
}Puh!
You can't move this window though...
Nille -
Hw To Make Inner Class Distinguish Func Parameter And Outer Class Var
i fail to make an inner class distinguish among function parameter and outer class variable.
consider the following code:
public class a {
int var; // i want to access this one using inner class.
public a(int var) {
this.var = var;
class b {
public void fun() {
var = 100;
i get an error a.java:9: local variable var is accessed from within inner class; needs to be declared final.
when i change the code to this:
public class a {
int var; // i want to access this one using inner class.
public a() {
class b {
public void fun() {
var = 100;
it compiled no problem.it seems that inner class is accessing function parameter rather than outer class member.
is there any syntax i can use to make me access the outer class member variable whithout renaming or removing the function parameter?
thank you.a.this.var = 100; //Use this in the inner class.Amazing syntax -:)
-
Revision: 4959
Author: [email protected]
Date: 2009-02-13 17:10:57 -0800 (Fri, 13 Feb 2009)
Log Message:
Removed the undocumented TextBlockComposer and TextFlowComposer classes. These were helper classes for TextBox and TextGraphic, respectively. Their functionality has been rolled into TextBox, TextGraphic, and TextGraphicElement. This should improve both memory and speed since the helper objects no longer have to be created. It also allows more code to be shared in TextGraphicElement.
QE Notes: None
Doc Notes: None
Bugs: None
Reviewer: Carol
Modified Paths:
flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/TextBox.as
flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/TextGraphic.as
flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/baseClasses/TextGraphicElement.a s
Removed Paths:
flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/baseClasses/TextBlockComposer.as
flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/baseClasses/TextFlowComposer.as -
Exclude inherited properties and functions from code hinting
Since, by design, the [Exclude] metatag works only with MXML code hinting, I was wondering if there is any other way of achieving this. For my reasoning why I consider this feature a necessity please consult my bug report on jira.
Anyway, coming back to the problem at hand, I have come up with two possible ways of achieving this:
1. Use the [Deprecated] metatag and change an option in the Flash Builder, to hide Deprecated functions from the code hinting. The problem is, there is no such option!
2. Install a plugin which adds a new ASDoc tag (let's name it @exclude) which simply speaking removes all functions/properties which have @exclude in their asdoc from code hinting. But again, I have found no such plugin and I don't have necessary skills to accomplish this task.
3. A mix of both - plugin which adds an option to hide deprecated elements from the code hinting. Probably the easiest to develop but still, I haven't managed to find such plugin anywhere and I wouldn't know how to even start looking for information to write it.
If you know how this could be accomplished (without resorting to, for example, manipulating the projects's design by using Interfaces) I'd love to hear them.Well yes of course. But I am trying to make everything available to the same package. Like a namespace. But I want to only expose the base class for instantiation by third party developers.
For instance I have a base class in a SWC named SomethingClass. SomethingClass utilized SomethingClassB, SomethingClassC and SomethingClassD classes and there need to be public methods in between them.
During code completion/code hinting I would like to stop SomethingClassB, SomethingClassC and SomethingClassD from even showing up in that list.
The whole class. Not just some methods or variables. -
Smatrform and processing class
Hi,
I'm New to SAP CRM.
My requirement is to send a the activity transaction details to a customer as a PDF in the smartforms.
Here we can execute the action using a Smartform or Method call.
How to go about it.
How can we know the processing class for a gievn smartform. In which table can we find the entries or relationships between a smartform and processing class.
Regards
LekhaHi,
I am sorry. I am not able to understand ur question properly. Actually i did some smartfroms work in my organisation relating to CRM 2007.
Here, our functional people first assign the standard method and class and smartform. Then take a sample data. Then i used to copy the std form to zform and apply my logic in program lines. I got success.
The std methods and classes depend on the action type.
in service area i used.
cl_doc_processing_crm_order (processing class)
crm_srvorder_exec_smart_form (method).
if u goto std one u find a lot.
u better get the details from the funtional team.
hope this will help you.
best wishes,
mallik -
Data Template construction AND data template validation questions:
Hello World.
I am new to Oracle BI and I have sucessfully used the BI Java APIs to create from start to finish a pdf report process. I use the DataProcessor, RTFProcessor, and FOProcessor classes to do this. My question is other than the most simple of Data Templates being used, how is everyone building their data templates? And I would also like to know how are developers validating the actual data template file? I have submitted a request through my MetaLink account for obtaining either a "dtd" or "xsd" file that could be used to validate a constructed data template. I have not received any real answers. I plan on using either XMLSpy or MyEclispse 6 to create my data templates, but I need a "rule book" dtd or xsd file in order to use the auto prompting feature. Making a data template "in the dark" cannot be the method of choice for all of the developers that visit this forum. I see some really fancy/detailed reports and I would like to see how people are building there data templates. Building the data template is at least half the battle when constructing a BI report.
Thanks for your time.Notepad is the developer's choice for data definitions, seriously.
I have seen and used XMLSpy and have Stylus Studio but they are really a bit of overkill for the data templates. I use Stylus Studio for some of our XML-FO format templates, but that is another story.
Scott
Edited by: ScottC on Oct 22, 2008 3:00 PM
Maybe you are looking for
-
How to integrate operating charts of account to country and group coa
Hi Sap gurus, How to integrate operating chart of account to country and group chart of account Regards, Rajesh
-
TREX 7.1 Embedded Search for PLM
Hi there, Currently we have TREX Server 7.00 Build 49 However, I am bit of confused with the following notes "Note 1249465 - TREX 7.1: Installing TREX for Embedded Search", where they are talking about TREX 7.10...Is that mean we cannot use the Curre
-
Performance problem with Integration with COGNOS and Bex
Hi Gems I have a performance problem with some of my queries when integrating with the COGNOS My query is simple which gets the data for the date interval : " From Date: 20070101 To date:20070829 When executing the query in the Bex it takes 2mins but
-
Whitelist and restrictin​g abilty to upgrade
I Enjoy Hp's product and want to continue my support of them but the whitelist restriction is like a big if you don't like it take it somewhere else to me. Pls for the love of god allow and support or the disabling\or updating as more relevant and be
-
Currently we are looking at the integration of UCM and Webcenter. Can u please guide us in doing a full text search using UCM. The steps we followed for full text search is 1. Stopped the Content Server service. 2. On the Content Server's file system