Yo Create Custom Attributes
I would like to know the way by which
i can create custom attributes programmatically.
The developer guide shows example of creating
custom attributes by extending the tiedocument.
But my requirement is to create a custom attribute
without extending the tiedocument.
i.e, for a documentdefinition i create like this
myClass{
DocumentDefinition def = new DocumentDefinition(session
def.setAttribute("NAME",AttributeValue.newAttributeValue("myname"));
oracle.ifs.beans.Document mydocument =
(oracle.ifs.beans.Document)ifs.createPublicObject(def);
Similarly I tried using for attribute
myClass{
AttributeDefinition adef = new AttributeDefinition(ifs);
adef.setAttribute("MYNAME",AttributeValue.newAttributeValue("xxxx")) ;
Attribute at23 = (Attribute)ifs.createSchemaObject(adef);
Can anyone guide me on this.
Thanks in advance
Amedius
See the following post:
http://technet.oracle.com:89/ubb/Forum36/HTML/000678.html
Similar Messages
-
How to create custom attributes & object classes through ldif files in OID
Hi,
I have to create 4 attributes and one object class(custom) in OID. I want to creae these attributes and object class through LDIF file.
I tried creating an attribute through this command
ldapadd -p 389 -h localhost -D cn=orcladmin -w password -f D:/newattr.ldif
this ldif file contains inf. for creating a new attributes:
dn: cn=subschemasubentry
changetype: add
add: attributetypes
attributetypes: ( 1.2.3.4.5.6.10 NAME "xsUserType_new" DESC "User Type Definition" EQUALITY caseIgnoreMatch
SYNTAX "1.3.6.1.4.1.1466.115.121.1.15" )
I am getting error: Object class violation
Failed to find add in mandatory or optional attribute list.
Please help to find where I am going wrong...
Thanks.Hi Ajay,
Thank you for the help. Now i am able to create both attributes and object classes in OID through Ldif files.
I was getting constraint violation error because (I think) I was not giving proper naming convection for attributes and object classes. For OID, there are certain Ldap naming conventions. They are as follows:
# X below is the enterprise number assigned by IANA
1.3.6.1.4.1.X.1 - assign to SNMP objects
1.3.6.1.4.1.X.2 - assign to LDAP objects
1.3.6.1.4.1.X.2.1 - assign to LDAP syntaxes
1.3.6.1.4.1.X.2.2 - assign to LDAP matchingrules
1.3.6.1.4.1.X.2.3 - assign to LDAP attributes
1.3.6.1.4.1.X.2.4 - assign to LDAP objectclasses
1.3.6.1.4.1.X.2.5 - assign to LDAP supported features
1.3.6.1.4.1.X.2.9 - assign to LDAP protocol mechanisms
1.3.6.1.4.1.X.2.10 - assign to LDAP controls
1.3.6.1.4.1.X.2.11 - assign to LDAP extended operations
By using these conventions for attributes and object class, I did got any error and they were created in OID.
Thanks a zillion.
Kalpana. -
Unable to create Custom Attributes
I just recently did an install of EPM 11.1.2.3. When I go to add custom attribute in Planning under entity I get an error stating "An error occurred while processing this page". I have uninstalled and re-installed about 3-4 times and still get the same message. I had no problem with release 11.1.2.0, 11.1.2.2.
Maybe related, but when I add a member to the Period dimension I get the message "The member you selected does not exist", but it adds the member anyway. Clicking on help result in error 404--Not Found.
Diagnostic only reveal "Failed REG:Registry -- PROJECT (id: 168ab7c3ac0344677a37fbee13f1c5e7dc3S7fc8):"APPLICATION" child missed
Any ideas?
ThanksHi,
Whatever steps you have done seems to be correct for adding an UDF in Create User page. If the UDF is not displayed, then refresh the content by clicking the refresh icon at the top right hand corner of the dialog box while selecting Add Content -> "Data component - catalog" -> userVO. Also I would suggest you to give an unique name while creating the UDF using form designer in sysadmin console. Try it again and it should work.
In worst case try the below steps
1. Create and activate a Sandbox.
2. On the left nav pane, expand Upgrade and click on link Upgrade User Form.
3. On the page that opens, the table will display all your UDFs. Click Upgrade Now and wait for completion.
4. Export(recommended) and Publish the sandbox.
After that create another sandbox in identity console,create sandbox, click on customize and after that try following the same process of adding from userVO -
Programmatically create custom attributes in KM
Hi all,
We are implementing an application which uploads/downloads files to/from KM content of a portal user. The application will also display the list of files for the portal user. The file list displays the standard file attributes: filename, created_date, size.
Additionally to these attributes we want to store some custom attributes (e.g. last sent to, received from...) for files in the KM.
We need to create these custom attributes programmatically at runtime, if the file is stored/updated in the KM content.
How can we programmatically create these kind of custom attributes in KM and read/write these custom attributes at runtime?
Thanks,
Yasarhi,
General example on how to code KM
http://wiki.sdn.sap.com/wiki/display/Snippets/UpdateKnowledgeManagementusingWebDynproJavaApplication
Coding custom attributes, look into Properties section
https://media.sdn.sap.com/html/submitted_docs/nw_kmc/howto/rf/client_api/rf_client_api.html
Coding custom renderer.
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f7b176eb-0701-0010-2b84-8edb1f76771d?QuickLink=index&overridelayout=true
Srini -
EIM 4.3.X Creating Custom attribute Failure
Hi All
Has any one been able to use the custom attributes feature of EIM under Tools? When ever i add a custom attribute and press save the IE Page is just constantly loading and the attribute never saves. I have tried leaving it for ages but it eventually just times out. I am just trying this in my lab at the moment for a customer POC. If any one has a lab of 4.3.X can they try this out? I do not recommend doing it on a live system as if it works you will not be able to delete the new field :-).
If not i think a TAC case will be the only option :-(
Thanks,
Matt PAfter you create the name are you hitting enter so that the custom atrribute is now part of the list and then hit save?
Good point. Getting the right technique with eGain is essential.
It is needed where ever you have to do this - workflows, data access links, data usage links etc. Even when you are experienced, it's possible to forget, save the item and come back later and find that the item has not really been added to the list.
Thanks for chiming in, egain_karthik. Hang around please.
Regards,
Geoff -
Creation of Custom Attributes in org structure
Hi All,
I was creating custom attributes that could be displayed in PPOMA_BBP. I tried to create it in table T77omattr, but it doesnot show up in the org plan.
Can somebody provide insight on this and let me know what i need to exactly do in order to create a custom attribute and allow for changes in the org plan?
Thanks
SunnyHi SRM guru,
I am also having a same requirment ...
We have a requirement to create the custom attributes in T770mattr for EG employee number.
I have to specify a field name to for entries to be made in table TT77oMATTR. where do i create the field name?
We have a requirement to match the custom attributes to a custom field developed on the shopping cart screen.
if u suggest me how u have achevied the same, then i can also follow the same.
Please help me asap.
my mail id is [email protected]
Thanks and redards,
Mani -
Custom attributes on endpoints objects in ISE 1.3 ??
Hi,
I would like to create custom attributes on an endpoint object - just as it is possible to do on user object.
How do I do that ?
Can I use the REST API for that - or is that not supported ?
Best regards
TueFrom what I was able to gather, the two primary reasons were:
1. Customers complaining that it was too complex to get even a basic customized portal going
2. TAC was getting way too many case related to troubleshooting custom HTML portal issues
Not too long ago I completed a deployment where the customer provided the custom HTML portal which was causing the BYOD flow to break (randomly). As soon as we uploaded a portal that was created in Cisco Portal Builder, the issues went away. -
How to enable Custome Attribute
We wanted to create custome attribute for Version dimension in planning appliction but this option is disabled in planning web for this dimension property.
How to enable the custome attribute option for version dimension in Hyperion Planning application(11.1.2.1).
Thanks in Advance,
ID
Edited by: 818693 on 17 Jun, 2011 2:48 AMHi,
I'm not sure at all, but due to te fact that Version is a specific planning dimension, you may not add an attribute dimension on it.
If in Planning Administration, Dimensions page, you select your version dimenion. If you click on dimension, do you see a button "add attribute" appearing ? You may try on Entity dimension.
If you see it in Entity, and not in Version so it means you can't add an attribute.
Regards, -
Customer attributes in SAP Solution Manager
Hi,
I have created Customer Attributes in SAP Solution Manager, SPRO--> SAP Solution Manager-->Capabilities-->Implementation/Upgrade-->Blueprint and Configuration-->Object Attributes--> Definition of Customer Attributes for Object Types. I have assigned the Customer Attributes for Project/Solution.
Now I have the attribute in the project nodes but I can't enter Attribute Values. How can I solve this problem?
Regards.Hi,
you need assign value in solar02, when you assign attributes to the object. check out
Adding customer attributes to objects in Project and Solution
Thanks
Jansi -
Customer attributes creation for interface scenario ?
Hi Experts,
I want to create customer attributes in the interface scenario in dswp transaction.
I was able to create one using the SPRO transaction. but it does not allow me to add further.
Can anyone tell me how to resolve this or give any useful blogs, as i am a beginner.
Thanks,
Shamly
Edited by: Shamly MM on Jun 9, 2010 10:10 AMHi,
Are you looking for Application Monitors and Customer exits for your requirement. May be this [guide|https://websmp110.sap-ag.de/~sapdownload/011000358700006184412006E/Setup_Guide-Customer_Exit.pdf] can help you.
Hope this helps.
Regards,
Jagan -
How can I add a custom attribute to the create page dialog?
I followed the following link to add a custom attribute called starred and this attaribute can be displayed in siteadmin grid
http://dev.day.com/docs/en/cq/current/developing/customize_siteadmin.html
I would like to let the user input the value when they create a page. That's why I would like to add a custom field in the input dialog box as attached pic.
The method you describe before can only added those CQ bulid-in attribute.
For those custom attribute, how can I added it?Hi,
How can I customize the /bin/wcmcommand or how can I make use of [2] to create a custom WCMCommand?
I think the "formUrl" is to post those input value to the jcr repository?
var createDialog = {
"jcr:primaryType": "cq:Dialog",
"id": CQ.Util.createId("cq-createdialog"),
"title":CQ.I18n.getMessage("Create Page"),
"formUrl": CQ.shared.HTTP.externalize("/bin/wcmcommand"),
"params": {
"cmd":"createPage",
"_charset_":"utf-8"
I have added a field called "starred"
Moreover, when I using the firebug to trace the post command, I can see that the starred value is posted also.
:status
browser
_charset_
utf-8
cmd
createPage
label
b
parentPath
/content/keyword_elaboration
starred
c
template
/libs/collab/commons/templates/form
title
a
Source
cmd=createPage&_charset_=utf-8&%3Astatus=browser&parentPath=%2Fcontent%2Fkeyword_elaboration&title=a&label=b&starred=c&template=%2Flibs%2Fcollab%2Fcommons%2Ftemplates%2Fform
However, when I go to the crxde to view the node's attribute, the properity starred is not created
Are there anything I did wrong or missing?
Thanks.
Message was edited by: aslkit -
Need to create new users in Office 365 with custom attributes from a csv file
I am exporting users from an active directory environment and then deleting them from AD. They are Alumni and will no longer be in AD.
I have a csv file with the following fields that I need to use to create new Alumni email boxes in Office 365 for. I need the CustomAttributes because my Dynamic Distribution Groups use them. I am fairly new to PowerShell and have been unable to get this
to work. I suspect I may have to split it into two parts, but am not sure how to proceed. Any assistance would be appreciated. I was directed here from the Office 365 community.
Import-Csv -Path c:\CSVfiles\CreateAlumni.csv | ForEach-Object {
New-MsolUser -FirstName $_.FirstName -LastName $_.LastName
-UserPrincipalName $_.UserPrincipalName
-DisplayName "$($_.FirstName) $($_.LastName)"
-Password $_.Password
-CustomAttribute1 $_.CustomAttribute1
-CustomAttribute3 $_.CustomAttribute3
-CustomAttribute10 $_.CustomAttribute10
-CustomAttribute11 $_.CustomAttribute11
-CustomAttribute12 $_.CustomAttribute12
-LicenseAssignment 'domaincom:EXCHANGESTANDARD_ALUMNI'
-UsageLocation USOk, it wasn't stopping after 2 iterations. What I was seeing was 2 failures. The first was the Get-Mailbox command and the second was when it tried to assign attributes. For some reason it is not looping when it fails. It just goes on and tries to assign
the Custom Attributes. I added writes in to tell me what was happening.
### Check if mailbox is provisioned yet
Write-Host "Checking if mailbox is provisioned yet..." -foregroundcolor yellow
$found = $false
$count = 0
Do {
try {
Get-Mailbox -Identity $_.UserName -ErrorAction Stop
$found = $true
Write-Output 'Mailbox found. Details:'
Get-Mailbox -Identity $_.UserName
} catch {
Write-Output 'Sleeping'
$count++
Start-Sleep -Seconds 5
If ($count -ge 12) {
Write-Output 'Mailbox not found. Quitting.'
$found = $true
} Until ($found)
Write-Host "Adding Custom Attributes to User" -foregroundcolor yellow
Set-Mailbox -Identity $_.UserName -CustomAttribute1 $_.CustomAttribute1 -CustomAttribute3 $_.CustomAttribute3 -CustomAttribute10 $_.CustomAttribute10 -CustomAttribute11 $_.CustomAttribute11 -CustomAttribute12 $_.CustomAttribute12
Write-Output "User has been Provisioned in Office 365!" -foregroundcolor yellow
Checking if mailbox is provisioned yet...
The operation couldn't be performed because object 'Joe.Cool2003' couldn't be found on 'CO1PR07A002DC01.NAMPR07A002.prod.outlook.com'.
+ CategoryInfo
: NotSpecified: (:) [Get-Mailbox], ManagementObjectNotFoundException
+ FullyQualifiedErrorId : [Server=CO1PR07MB125,RequestId=e1aabda1-01e4-4f68-984e-e20be0975242,TimeStamp=5/22/2014 4:23:59 AM] [FailureCategory=Cmdlet-ManagementObj
ectNotFoundException] 2788FB48,Microsoft.Exchange.Management.RecipientTasks.GetMailbox
+ PSComputerName : pod51038psh.outlook.com
Mailbox found. Details:
The operation couldn't be performed because object 'Joe.Cool2003' couldn't be found on 'CO1PR07A002DC01.NAMPR07A002.prod.outlook.com'.
+ CategoryInfo
: NotSpecified: (:) [Get-Mailbox], ManagementObjectNotFoundException
+ FullyQualifiedErrorId : [Server=CO1PR07MB125,RequestId=16a8a2bc-333a-455c-8504-e0b99c44c334,TimeStamp=5/22/2014 4:24:00 AM] [FailureCategory=Cmdlet-ManagementObj
ectNotFoundException] 2788FB48,Microsoft.Exchange.Management.RecipientTasks.GetMailbox
+ PSComputerName
: pod51038psh.outlook.com
Adding Custom Attributes to User
The operation couldn't be performed because object 'Joe.Cool2003' couldn't be found on 'CO1PR07A002DC01.NAMPR07A002.prod.outlook.com'.
+ CategoryInfo
: NotSpecified: (:) [Set-Mailbox], ManagementObjectNotFoundException
+ FullyQualifiedErrorId : [Server=CO1PR07MB125,RequestId=8319d220-b9dd-492f-8182-5083cf56e58b,TimeStamp=5/22/2014 4:24:00 AM] [FailureCategory=Cmdlet-ManagementObj
ectNotFoundException] C7844A24,Microsoft.Exchange.Management.RecipientTasks.SetMailbox
+ PSComputerName
: pod51038psh.outlook.com
User has been Provisioned in Office 365!
Of course the user has been provisioned, but the CustomAttributes have not been assigned. :( -
How to Access Custom Attributes created in UME.
Hi All,
I have created a custom attribute in UME by using the config tool, the problem that i was facing is i am unable to access those custom attributes via Iuser Api i.e even though i am using the method getAttributeNamespaces() it is returning all the attributes except the custom attributes that i have created in UME.
Thanks in Advance,
RV.Hi RV,
Use the user.api jar in your appln.
follow these steps in your code:
IWDClientUser wdUser = WDClientUser.getCurrentUser();
IUser user = wdUser.getSAPUser();
user.getAttribute("com.sap.security.core.usermanagement", "exact name of the custom attribute");
if you are still facing the problem paste your code here for analysis. -
OIM 11gR2 - custom attribute with illegal binding on Create User form in published sandbox
Hi,
I think I have managed to paint myself into a corner!
In OIM 11gR2 I have added a number of custom attributes to the "User Form" - some Text-, some Lookup-type attributes.
While customizing the "Create User" page within a sandbox and adding a SelectOneChoice item and fiddling around with its binding, I was distracted by a phone call and the browser timed out.
The binding property on the new item is now not correct and the sandbox has unfortunately been published, and I am now unable to enter the "Create User" page - when I try, I get the following:
<Sep 23, 2013 2:39:11 PM CEST> <Warning> <oracle.adf.view.rich.component.fragment.UIXRegion> <ADF_FACES-00009> <Error processing viewId: /user/createView URI: /oracle/iam/ui/runtime/form/view/pages/userCreateForm.jsff actual-URI: /oracle/iam/ui/runtime/form/view/pages/userCreateForm.jsff.
javax.el.PropertyNotFoundException: Target Unreachable, 'ekstraresource1__c' returned null
at com.sun.el.parser.AstValue.getTarget(AstValue.java:108)
at com.sun.el.parser.AstValue.isReadOnly(AstValue.java:149)
at com.sun.el.ValueExpressionImpl.isReadOnly(ValueExpressionImpl.java:248)
at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer._getUncachedReadOnly(EditableValueRenderer.java:486)
at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.cacheReadOnly(EditableValueRenderer.java:416)
at oracle.adfinternal.view.faces.renderkit.rich.LabeledInputRenderer.beforeEncode(LabeledInputRenderer.java:128)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:340)
<Sep 23, 2013 2:39:11 PM CEST> <Warning> <oracle.adf.view.rich.component.fragment.UIXRegion> <ADF_FACES-00009> <Error processing viewId: /catalog-tf/cart-details URI: /oracle/iam/ui/catalog/pages/cart-details.jsff actual-URI: /oracle/iam/ui/catalog/pages/cart-details.jsff.
javax.el.PropertyNotFoundException: Target Unreachable, 'ekstraresource1__c' returned null
at com.sun.el.parser.AstValue.getTarget(AstValue.java:108)
at com.sun.el.parser.AstValue.isReadOnly(AstValue.java:149)
at com.sun.el.ValueExpressionImpl.isReadOnly(ValueExpressionImpl.java:248)
at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer._getUncachedReadOnly(EditableValueRenderer.java:486)
at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.cacheReadOnly(EditableValueRenderer.java:416)
at oracle.adfinternal.view.faces.renderkit.rich.LabeledInputRenderer.beforeEncode(LabeledInputRenderer.java:128)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:340)
Caused By: java.io.IOException: javax.el.PropertyNotFoundException: Target Unreachable, 'ekstraresource1__c' returned null
at oracle.adfinternal.view.page.editor.renderkit.PageCustomizableRenderer.encodeAll(PageCustomizableRenderer.java:764)
at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)
at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:405)
etc.
Of course the sandbox should not have been published - but it is - and I am stuck trying to figure out how to somehow undo this mess.
Is it possible to clean up this mess by diving to the database and removing some rows from the right tables - or perform some other operations undo my mistake?
Thanks in advance,
- Tomoim version is oim 11gR2 with BP4
-
Creating a new custom attributes in org structure
Hi SRM guru,
We have a requirement to create the custom attributes in T770mattr for EG employee number.
I have to specify a field name to for entries to be made in table TT77oMATTR. where do i create the field name?
We have a requirement to match the custom attributes to a custom field developed on the shopping cart screen.
if u suggest me how u have achevied the same, then i can also follow the same.
Please help me .
my mail id is [email protected]
Thanks and redards,
ManiDear dinesh,
how r u?
how to decide a which table and field name has to de used, bcoz system is auotmatically assign some HR table for me and in ur example u have used tax tables..
We have a requirement to match the custom attributes to a custom field developed on the shopping cart screen.
Regards,
Mani
Maybe you are looking for
-
Hello there - Hopefully someone can help, because this is just frustrating and weird. In Mail on Mac OSX Lion, I can create all the Smart Mailboxes I want, but if I try to create a Smart Mailbox folder, it shows up just fine in the sidebar. But, as
-
HP Laserjet m251nw - won't print in color
I am not able to print in color to my hp m251nw. It has been about a week since the problem started. I replaced all the color cartridges as they were low. Now, no matter what device I use to print - laptop, mobile phone, etc. it always comes out i
-
It's somewhat slow on my mac, maybe I'm not using the best one: Wifi, Bluetooth or USB connection?
-
TS1967 Having trouble after installing latest iTunes
I have tried to install the latest itunes on windows xp, but keep getting this answer when I try to run it "This application has failed to start because dbghelp.dll was found. iTunes was not installed correctly. reinstall iTunes. Error 7 (Window 126)
-
Create CGRect from view's frame (iPhone OS 3.1)
Another basic question, but how do I create a CGRect from a view's frame? I'm thinking of doing something like CGRect drawSurface = self.view.something but I'm not sure exactly what propert(ies) to invoke. Any help would be appreciated!