How to add commandLink attribute programmatically
Hi,
I have command Link:
af:commandLink text="save" actionListener="#{myBean.method}" partialSubmit="true">
<f:attribute name="name" value="#{emp.name}"/>
</af:commandLink>
If i use above code in jsf and get the attribute name it gives me the value like "testUser" (name entered by user in textbox)
If, I am adding this command Link programmatically like
RichCommandLink saveLink = new RichCommandLink();
saveLink.getAttributes().put("field1", "#{emp.name}");
then, it gives me hardcoded values as
*System.out.println( saveLink.getAttribute("name")); ---> #{emp.name}*
Any inputs how to get actual value as "testUser" instead of expression when adding attribute programmatically?
Edited by: 899404 on Dec 30, 2011 1:31 AM
Hi,
try like this
FacesContext context = FacesContext.getCurrentInstance();
ApplicationFactory apf =
(ApplicationFactory)FactoryFinder.getFactory(FactoryFinder.APPLICATION_FACTORY);
Application appl = apf.getApplication();
ExpressionFactory ef = appl.getExpressionFactory();
MethodExpression me =
ef.createMethodExpression(context.getELContext(), "#{MyBean.readXML}", String.class,
new java.lang.Class[] { });
RichCommandLink xmlCommandLink = new RichCommandLink();
xmlCommandLink.setText("Test");
xmlCommandLink.setImmediate(true);
xmlCommandLink.setActionExpression(me);~Abhijit
Edited by: Abhijit Dutta on Dec 30, 2011 3:09 PM
Similar Messages
-
How to Add custom Attribute in XML
How to add Custom attribute recusrivly. With sequence order.
//Before xml:-
var myxml:XML=
<root>
<leval0 >
<leval1 >
<leval2></leval2>
<leval2></leval2>
</leval1>
<leval1 >
<leval2></leval2>
<leval2></leval2>
</leval1>
</leval0>
</root>
////After xml:
var myxml:XML=
<root>
<leval0 levalid="0" >
<leval1 levalid="0_0" >
<leval2 levalid="0_0_0"></leval2>
<leval2 levalid="0_0_1"></leval2>
</leval1>
<leval1 levalid="0_1" >
<leval2 levalid="0_1_0"></leval2>
<leval2 levalid="0_1_1"></leval2>
</leval1>
</leval0>
</root>//call this method
trace(addAttribute(myxml));
//method
private function addAttribute(node:XML, depth:String = ""):XML
if (node.hasComplexContent())
var count:int = 0;
var prefix:String = 0 < depth.length ? depth + "_" : "";
var currentAtt:String;
for each (var nodeItem:XML in node.children())
currentAtt = prefix + count;
nodeItem.@levalid = currentAtt;
addAttribute(nodeItem,currentAtt);
count++;
return node; -
How to add (multiple) cursors programmatically in an XY graph?
how to add (multiple) cursors programmatically in an XY graph?
I am building an XY graph. then I would like to add cursors at certain locations (positioned on x axis) I determine through a program.
How can I add cursors programatically?
Thank you.Initialize a cluster array (CrsrList type) with as many cursors as you think you would ever need. Setup your cursors dynamically, then delete the unused cursors (array elements) and then update your CursorList property.
Message Edited by vt92 on 03-20-2009 04:04 PM
"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
Attachments:
cursors.PNG 5 KB -
How to add Custom Attributes in the SOAP header for OWSM
Hi,
I like to know how to add the Custom Attributes in the SOAP header for OSWM username token authentication.
Currently we are getting the header element like
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
here we need to add the attribute "soap:mustUnderstand="1" , so the element will look like
<wsse:Security soap:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
Any info on this will be helpful.
Thanks,
ArunMHi Jay, you can make it in more than 1 way.
I suggest you the following:
- create an URL iview that points to any URL you want.
- define a Resource that points to the iview (with a window name, to open in new window)
- define an Area that points to the resource
- add your new Area to the your current Area Group
Regards! -
How to add an attribute to a notification message ?
Hi,
I want help in adding an attribute to a PO Approval notification message.
The attribute is from the PO Header screen , it is the Ship-To field (See screenshot) : http://i48.tinypic.com/2wh35v5.jpg
Kindly help me and tell me how i can add this attribute to Approve PO with PDf message (See screenshot) : http://i46.tinypic.com/nchvzs.jpg
Best Regards,
YousefYousef,
- You add an attribute at item level, let's call it SHIP_TO, type varchar
- You add another attribute at the message level, let's call it SHIP_TO too and set its value to item attribute SHIP_TO
- Now you doble-click on the message and edit its body and add the reference to this new attribute:
Ship to: &SHIP_TO
- Save the workflow process and upload to the database.
- Now you need to set this attribute's value using WF_ENGINE.SetItemAttrText() just like the other existing attributes for this workflow.
Regards -
How to add/set attribute "collectiveParentRDN" in DSEE6.3.1 installation.
Hi,
I'm new to DSEE and I have a question ,
I have a code which
1. First it binds to LDAP server through a proxy user.
2. Authenticates a user
3. Gathers all the roles that a user is a member of.
It uses ,collectiveParentRDN as a DN attribute.
For e,g,in following line from the code:
userDN = attrs.get("collectiveParentRDN").get().toString();
But Im getting userDN as null as there is no attribute called collectiveParentRDN in the LDAP schema Im using.
However when I use entryDN instead, it works.
But I need to use collectiveParentRDN . and I'm not able to configure this attribute in the
When I try to add this attribute I get a constraint /schema violation error.
Can anyone please tell me how to add /set this attribute to DSEE6.3.1 LDAP server.?
Here is the complete code snippet:
import java.util.ArrayList;
import java.util.Hashtable;
import javax.naming.Context;
import javax.naming.NamingEnumeration;
import javax.naming.directory.Attributes;
import javax.naming.directory.DirContext;
import javax.naming.directory.InitialDirContext;
import javax.naming.directory.SearchControls;
import javax.naming.directory.SearchResult;
public class LDAPPrototype {
public static final String LDAP_URL = "ldap://localhost:389";
public static final String LDAP_LDAPSERVER_SEARCHBASE = "o=MyLDAP";
public static final String SECURITY_AUTHENTICATION_METHOD = "simple";
public static final String INITIAL_CONTEXT_FACTORY = "com.sun.jndi.ldap.LdapCtxFactory";
public static final String LDAP_USER_GROUP_ATTR = "nsRole";
private static final String LDAP_USER_LOGIN = "dsingh1";
private static final String LDAP_USER_PASSWORD = "password";
// NOTE: Three new params for authenticating proxy.
public static final String LDAP_PROXY_PROXYDN = "uid=will,ou=Blue,ou=People,o=MyLDAP";
public static final String LDAP_PROXY_UID = "will";
public static final String LDAP_PROXY_PASSWORD = "password";
// NOTE: TWO new params to get users correct DN after search
public static final String LDAP_USER_DN_ATTR = "collectiveParentRDN";
public static final String LDAP_USER_CN_ATTR = "cn";
public static void ldapAuthentication() {
Hashtable env = new Hashtable();
Hashtable cloneEnv = new Hashtable();
DirContext ctx = null;
String userDN = null;
String userCN = null;
String searchBase = null;
try {
env.put(Context.SECURITY_AUTHENTICATION,
SECURITY_AUTHENTICATION_METHOD);
env.put(Context.INITIAL_CONTEXT_FACTORY, INITIAL_CONTEXT_FACTORY);
env.put(Context.PROVIDER_URL, LDAP_URL);
cloneEnv = new Hashtable(env);
env.put(Context.SECURITY_PRINCIPAL, LDAP_PROXY_PROXYDN);
env.put(Context.SECURITY_CREDENTIALS, LDAP_PROXY_PASSWORD);
ctx = new InitialDirContext(env);
System.out.println("Initial bind succesful");
SearchControls searchCtls = new SearchControls();
String[] returnedAtts = { LDAP_USER_DN_ATTR, LDAP_USER_CN_ATTR };
searchCtls.setReturningAttributes(returnedAtts);
searchCtls.setSearchScope(SearchControls.SUBTREE_SCOPE);
String searchFilter = "(uid=" + LDAP_USER_LOGIN + ")";
searchBase = LDAP_LDAPSERVER_SEARCHBASE;
System.out.println("Checking for user !!!");
NamingEnumeration answer = ctx.search(searchBase, searchFilter,
searchCtls);
System.out.println("User search successful !!!");
Attributes attrs = null;
while (answer.hasMore()) {
System.out.println("Searching for user attrributes!!!");
// Print all the user attributes
SearchResult sr = (SearchResult) answer.next();
attrs = sr.getAttributes();
System.out.println("Num of attributes = " + attrs.size());
// NamingEnumeration attrKeys = attrs.getIDs();
// while (attrKeys.hasMore()) {
// String at = attrKeys.next().toString();
// System.out.println("Key = " + at + ", value = " +
// attrs.get(at).get());
if (attrs.get(LDAP_USER_DN_ATTR) != null) {
System.out.println("User DN found for user: "
+ LDAP_USER_LOGIN);
userDN = attrs.get("collectiveParentRDN").get().toString();
System.out.println("User DN = " + userDN);
if (attrs.get(LDAP_USER_CN_ATTR) != null) {
System.out.println("User CN found for user: "
+ LDAP_USER_LOGIN);
userCN = attrs.get(LDAP_USER_CN_ATTR).get().toString();
System.out.println("User CN = " + userCN);
if ((userDN != null) && (userCN != null)) {
break;
userDN = LDAP_USER_CN_ATTR + "=" + userCN + "," + userDN;
System.out.println("Modified user DN = " + userDN);
cloneEnv.put(Context.SECURITY_PRINCIPAL, userDN);
cloneEnv.put(Context.SECURITY_CREDENTIALS, LDAP_USER_PASSWORD);
System.out.println("Authenticating user : " + userDN);
ctx = new InitialDirContext(cloneEnv);
System.out.println("Authenticated user : " + userDN);
System.out.println("Get user groups !!!");
String[] returnedGroups = { LDAP_USER_GROUP_ATTR };
searchCtls.setReturningAttributes(returnedGroups);
NamingEnumeration groups = ctx.search(searchBase, searchFilter,
searchCtls);
ArrayList<String> groupList = new ArrayList<String>();
while (groups.hasMore()) {
// Print all the user attributes
SearchResult sr = (SearchResult) groups.next();
attrs = sr.getAttributes();
if (attrs.get(LDAP_USER_GROUP_ATTR) != null) {
System.out.println("Num of groups found = " + attrs.size());
String groupName = attrs.get(LDAP_USER_GROUP_ATTR).get()
.toString();
groupList.add(groupName);
System.out.println("Group found = " + groupName);
} catch (Exception e) {
System.out.println(e);
e.printStackTrace();
public static void main(String[] args) {
ldapAuthentication();
}Thanks in Advance.
RahulYou are right, that attribute is not in the schema.
I think perhaps that could be the reason I'm getting an schema violation error when I'm trying to add it.
Can you please tell me how do I add any new attribute to the schema ?
Thanks in advance
Rahul. -
How to add new attribute for triggering workflow?
Dear Expert,
I want to create condition for triggering workflow.
I am working on travel request workflow, using BUS2089.
my requirement is to differentiate or make condition of triggering workflow based on trip activity type,
but I can't find any attribute about trip activity type.
how to add activity type to be available for create condition?
thanksHi,
If am not wrong you are trying to raise event when ever there is a new travel request raised, so the BOR would be availbel in the workflow container to be more preciese it would be available in the event container, so you need to find out the right attribute in the BOR where the trip type is assigned and validate this in the start conditions i mean in the basic data of the workflow where you activate the event linkage.
Regards
Pavan -
How to add new attribute in product catalog?
Hi All,
Can anyone tell me how to add new field/attribute in product catalog?
The requirement is to display product's new attribute on product catalog screen.
Do I need to create any custom java class?
Need suggestion!!
Thanks.
Regards,
RupaliHello Rupali,
I am assuming a CRM E-Commerce scenario for my help here.
Can anyone tell me how to add new field/attribute in product catalog?
You must start from defining the new Attribute in an exisiting or new Set Type. Use transaction code COMM_ATTRSET. Once you have the attribute / attribute set defined, you can assign this to your catalog - in the header data as the Basic characteristic List.
to display product's new attribute on product catalog screen
See catalog/ProductDetailISA.jsp for tips - search for catalog.isa.attribute. The catalog item WebCatItem has all the details available already.
com.sapmarkets.isa.catalog.webcatalog.WebCatItem currentItem = webCatItem;
If you want to show the details of attributes in the catalog page - say - catalog/ProductsISA.jsp, the instance of WebCatItem is already available. In this page look for
<isa:iterate id="item"
name="itemPage"
type="com.sapmarkets.isa.catalog.webcatalog.WebCatItem">
You can see that item is an instance of the WebCatItem and follow the code in the <isa:iterate> loop. Using the following code
Iterator itemAttribute = item.getCatalogItemAttributes();
will give you the attribute list. You can iterate over the list of attributes and do what you want.
Easwar Ram
http://www.parxlns.com -
How to add custom attributes to UME
hi gurus,
I have developped an appliation in that I want add custom attributes to UME for the sake of retriving the BrandType.
Please give me suggestion how to do this.
Thanks in adance.
LohiHi Lohi,
UME setup
1) go to Configuration tool (C:\usr\sap\J2E\JC02\j2ee\configtool\consoleconfig.bat)
2) For Global server configuration->services->com.sap.security.core.ume.service define property ume.admin.addattrs as BU_PARTNER and for ume.admin.self.addattrs as <empty>. (to set value select entry, input value in Value field and click Set)
3) Click Apply changes button on the toolbar.
4) Restart server.
5) Login to http://<server_name>:<server_port>/useradmin/index.jsp and define BU_PARTNER property.
Code:
try {
final IWDClientUser wdUser = WDClientUser.getCurrentUser();
final IUser user = wdUser.getSAPUser();
final String[] attribute = user.getAttribute(
"com.sap.security.core.usermanagement",
"BU_PARTNER");
if( attribute==null || attribute.length == 0 || !Utils.isNotEmpty(attribute[0]) ) {
wdComponentAPI.getMessageManager().reportMessage(...);
return;
} else {
buPartner = attribute[0];
} catch (final WDUMException e) {
wdComponentAPI.getMessageManager().reportMessage(...);
Best regards, Maksim Rashchynski. -
How to add project summary programmatically to publishing page.
Let me know how to add project summary webpart to page in sharepoint 2013.
Hi,
Okay,
check those links to add web part using code, try them and change the parameter to the name of the web part
http://www.stefangordon.com/add-web-part-to-page-programmatically/
http://blogs.msdn.com/b/tconte/archive/2007/01/18/programmatically-adding-web-parts-to-a-page.aspx
http://nikpatel.net/2010/11/09/programmatically-add-the-web-part-on-the-sharepoint-web-part-page/https://manojssharepointblog.wordpress.com/2013/03/27/adding-and-removing-web-parts-programmatically-in-sharepoint/
https://social.msdn.microsoft.com/Forums/sharepoint/en-US/1bc7212c-385d-4a89-9b7e-9d37ee762017/add-webpart-on-sharepoint-page-programmatically?forum=sharepointdevelopmentlegacy
Kind Regards,
John Naguib
Technical Consultant/Architect
MCITP, MCPD, MCTS, MCT, TOGAF 9 Foundation
Please remember to mark your question as answered if this solves your problem -
How to add Navigation attributes values via ABAP while creation of CVC
Hi,
I have a requirement like, I have to add navigational attributes to the cvc record while CVC creation ( /sapapo/mc62 transaction).
There were two scenarios: 1. Usually when they load master data from BW side those navigation attributes available and when we do CVC creation it's automatically picks those values. If NOT then i have to bring Market segment and Business unit navigational attributes values from ECC via RFC function module by passing MPN and End customer division as a input.
I am facing problem when BW side if business unit and Market segment were blank.
Do we have any Function modules available to add navigational attributes data and should update corresponding master data tables.
Please help me step by step process on this.
Thanks
Ravi
Edited by: REDDY KALLURI on Jan 22, 2011 10:30 PMMichael,
Are you intending this as a commercial solution or a work around?
To take an existing equivalent, one would build a view in the database tailored for each grid in an Oracle Forms application. Or a separate query layered over tables for each form/grid in a Delphi or Access application? Even if it is ninety nine percent the same over half a dozen forms/grids?
And now you've added a whole slew of "slightly different" rowSetInfos to maintain.
So if you wanted to add a column that needs to appear everywhere... you've just increased the workload multi-fold?
That would be a management nightmare, wouldn't it? Not to mention yet more performance cost and a slower system?
Hmmmm..... I'm not sure I like where this is headed... someone needs to do some convincing...
null -
How to add an attribute to "group" element in the DataTemplate dataStructur
Hi,
I want to add an attribute to the group element in the dataStructure section of DataTemplate. I want my output XML file to look like:
<G_EMP xmlns:xsd="http://www.w3.org">
<ENAME>John</ENAME>
</G_EMP>
This can be done in Oracle Reports 6i by setting a value to the XMLTag attribute in the property pallette of G_EMP group in the report. Please let me know if there is a way to do the same in the Data Template.
So far I've observed only three attibutes that can be used with group element (name,dataType,source). Is there any other attribute that I can use to get the afore mentioned XML structure.Moved to the LiveCycle Designer forum: http://forums.adobe.com/community/livecycle/livecycle_modules_and_development_tools/livecy cle_designer_es?view=discussions
-
How to add new Attribute in exits Entity at RunTime
Hi ,
I have try to add new attribute in my entity object at run time useing following code .
EntityDefImpl lnewEntity = EntityDefImpl.findDefObject("model.entity.Applicant");
aNewEntity.addAttribute("FirstName", "FIRST_NAME", String.class, false,
false, false);
but its giveing me NullPointerException exception
Caused by: java.lang.NullPointerException
at oracle.jbo.server.EntityDefImpl.getSuperAttrDef(EntityDefImpl.java:4709)
at oracle.jbo.server.EntityDefImpl.addAttributeOfKind(EntityDefImpl.java:4774)
at oracle.jbo.server.EntityDefImpl.addAttribute(EntityDefImpl.java:4764)
at dk.decorateWithAttributes(UC1315ServiceImpl.java:1120)
at dk.ServiceImpl.setNewQuestionsRowSet(UC1315ServiceImpl.java:858)
at dk.bean.HelperBean.setQuestionsFrameLayout(UC1315HelperBean.java:314)
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)
... 57 more
<RegistrationConfigurator> <handleError> ADF_FACES-60096:Serverundtagelse under PPR, nr. 1
javax.el.ELException: java.lang.NullPointerException
at com.sun.el.parser.AstValue.invoke(Unknown Source)
at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
at oracle.adf.controller.internal.util.ELInterfaceImpl.invokeMethod(ELInterfaceImpl.java:168)
at oracle.adfinternal.controller.activity.MethodCallActivityLogic.execute(MethodCallActivityLogic.java:160)
at oracle.adfinternal.controller.engine.ControlFlowEngine.executeActivity(ControlFlowEngine.java:989)
at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:878)
at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:777)
at oracle.adfinternal.controller.engine.ControlFlowEngine.routeFromActivity(ControlFlowEngine.java:551)
at oracle.adfinternal.controller.engine.ControlFlowEngine.performControlFlow(ControlFlowEngine.java:147)
at oracle.adfinternal.controller.application.NavigationHandlerImpl.handleAdfcNavigation(NavigationHandlerImpl.java:109)
at oracle.adfinternal.controller.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:78)
at org.apache.myfaces.trinidadinternal.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:43)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:130)
at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:879)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:312)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:185)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
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 oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:175)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
Thanks,
AshwaniCan you provide the correct code snippet?
The provided code snippet:
EntityDefImpl lnewEntity = EntityDefImpl.findDefObject("model.entity.Applicant");
aNewEntity .addAttribute("FirstName", "FIRST_NAME", String.class, false, false, false);
The variable references are different - lnewEntity / aNewEntity
Can you do a null check if you add the attribute?
if(aNewEntity != null) {
aNewEntity .addAttribute("FirstName", "FIRST_NAME", String.class, false, false, false);
Thanks,
Navaneeth -
How to add ProxyAddress attribute to multiple users? with powershell
I need to add the attribute ProxyAddress several users at once, in AD 2008 R2. with powershell.
Thanks beforehand.Hi,
Use Set-ADUser:
http://ss64.com/ps/set-aduser.html
See the -Add parameter.
Don't retire TechNet! -
(Don't give up yet - 13,085+ strong and growing) -
How to add new attribute as descrition to 0Material infoobject?
Hi BI Gurus,
I am trying to add a new attribute to 0MATERIAL. The new attribute called Z_DESC which will be displayed as Material Description.
My problem is how can I get Material long description show on this new added attribute. Since the master data load from different datasource: Attribute, Text, and Hierachy, how can I get text to show on attribute?
I looked up on 0MATERIAL_ATTRIBUTE datasource there is no field NAME or DESCRIPTION but there is long description on 0MATERIAL_TEXT. Should any have idea how to get text show on added new attribute?
Thanks in advacne,
TOMSBSHi BW Team
How was the symptom and how the Message no. RSDMD217 show?
If you have encounter the problem as mine: I added new attibutes to I/O 0MATERIAL and then tried to load the data to I/O 0MATERIAL again, it shows error message Message no. RSDMD217 and I cannot be able to see the data on new added attributes.
I checked on PSA and found some records didn't sound right such as on material code column is filled with text so I use T Code RSRV to check the consistency of the I/O. It shows an errors as
Characters are not allowed in characteristic values (characteristic 0MATERIAL).
So I click on Correct Error Tab and try to reload again. It works.
Maybe you are looking for
-
Why can't I use my headphone on my 2G Ipod Touch?
Everytime I put in my headphones I always have to twist the plug of my headphones to listen to music and if I bump it or touch it lightly I the sound will either go off or I would only be able to hear out of one ear bud. I have brought many headphone
-
How to upload images in to custom table and display them in normal ABAP report?
Hi Experts, Can anyone suggest me ,how to upload images into customised table and display thoes images in normal abap report. Thanks in Advance, Rgds, Anusha
-
Directory Problems - Uploading to Pair Networks
Apologies if this has been covered elsewhere - I couldn't find any reference. I'm uploading my site to Pair Networks, which requires all website files be uploaded to a folder called "public_html". Using my FTP program, I can see that there is a short
-
Adjusting speed of a motion keyframe
When I created a motion keyframe path, the clip just zips of the screen and I cannot figure out how to adjust the speed. Thanks for any tips! Best Regards, Eric
-
Where is the content aware move tool?
I can't find the content aware move tool amongst the other icons!! Here's a screenshot of what I can see. All of my software is brand new too.