Define attributes in Comp. Controller
dear all,
How i can define any variable in Attribute tab in component controller,so that be accessible to other views?
Hi Ali,
Once you create the attribute in component controller, you can access this attribute from any view:
data lo_componentcontroller type ref to ig_componentcontroller .
lo_componentcontroller = wd_this->get_componentcontroller_ctr( ).
*eg. Access comp.controller attribute and assign some value.
lo_componentcontroller->w_status = 'X'.
In the above code 'w_status' attribute is defined under attribute tab of the comp. controller.
Regards,
Ravi
Similar Messages
-
Declaring and accessing custom global attributes of component controller
Hi,
I want to declare some global attributes for Component Controller and initialize them in WdDoInit() method.
I have declared them under Component Controller --> Attributes tab --> after wd_context and wd_this (say G_MESSAGE).
However, when I am trying to set them in wdDoInit() method, I get compilation error saying G_MYMESSAGE is unknown and its not defined using data statement.
How do I access these attributes?
Thanks and regards,
AmeyHello Amey,
You need to access the variable by "wd_this->g_mymessage"
Since wd_this attribute in each controller refers to interface of local controller. you could read the description of that attribute in attribute tab.
Regards
Anurag Chopra -
Limitations of User Defined attributes in USR.
11.1.1.3
I added a notes field to the user defined fields of a user, customer wanted a textarea to makes notes in reagarding the user in question.
Can someone tell me where the limitations of these fields are listed?
I added a large textfield and the system happily accepted the size and made a clob in the db.
I have added the permissions in the policy to make it visible in create as well as in view and modify, all that works fine.
However, when I modify the field by simply writing a small note in it....
I save the change, no exceptions, no error whatsoever
the correct data gets into the clob field in the USR table
but the text area in the user view show the entity object name and reference/instance instead...
i.e.
i add the text "test" into the text area, press save
the fields then shows me...
weblogic.jdbc.wrapper.Clob_oracle_sql_CLOB@65e1
So, I am looking for where this limitation is mentioned in the manuals or trying to find out if its a bug.
Reason I am wondering is because there is a field (USR.USR_NOTE) in the DB which is a CLOB but I cant
find any reference to that in the User Configuration, i.e. what does the system use it for?
So, if there is a limitation on the size of fields in the User Configuration, where can I see them?
I looked in the System and developer manuals and I see nothing on that there.
What is the maximum and where can I see that defined?Hello Antilles.
The user defined attributes that you refer to it´s used to specify additional attributes.
You can find more useful information about this topic in this link: http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/nav.htm
Regards Pedro -
Help needed in creating user defined attribute
Hi all,
I want to create user defined attributes and make it available for all users in sun LDAP5.2,I have followed the below mentioned steps,
1.Under configuration-schema i have created attribute named "ldapproducts"
2.I have created new object class "userproducts" and made the parent to be "inetorgperson" and added my "ldapproducts" attribute in required attribute.
Now,in directory tab,Iam trying to add the "ldapproduct" attribute for each user but my defined attribute i.e,"ldapproducts"is not available in the "Add Attribute"list
please let me know do i need to do some steps or do i need to do any changes in DS files..
waiting for ur replies...
thanks in advance.Hi,
I dont know the solution for this, but heres a work arround
//create new label some where else in the excel sheet as shown below
Label lblcmbdata;
for(int i=0; i<1000; i++)
lblcmbdata = new Label(75, i, (i+1)+" satish", format);
sheet1.addCell(lblcmbdata);
}//set the validation range as shown below
writableCellFeature.setDataValidationRange(75,0,75,1000);
Label cmb = null;
cmb = new Label(0, 1, "Select",format);
cmb.setCellFeatures(writableCellFeature);
sheet.addCell(cmb);this will create a combo list with 1000 values
also you can keep the data to be populated in the different sheet in same workbook by creating a named range as below
workbook.addNameArea("cmbdata", sheet1, 0, 0, 0, 1000);
// then fill the data in sheet1
Label lblcmbdata;
for(int i=0; i<1000; i++)
lblcmbdata = new Label(0, i, (i+1)+" satish", format);
sheet1.addCell(lblcmbdata);
//set the validation named range as below
writableCellFeature.setDataValidationRange("cmbdata");
Label cmb = null;
cmb = new Label(0, 1, "Select",format);
cmb.setCellFeatures(writableCellFeature);
sheet.addCell(cmb);Thanks and Regards
Satish -
Customer Master Definable Attributes to Sales Order and Pricing
Hello,
I have a requirement to set a customer master flag using freely definable attributes. I am planning to use KNA1-KATR10 from the GENERAL Customer Master data. We do not want the flag to be sales area specific. The flag will be on the ship to customer.
I need to determine how to copy this flag into the sales order and then also to ensure that this field is available for evaluation in a pricing requirement routine.
How do i accomplish this? An alternative would be to use the Customer Grp fields , KNVV-KVGR1 but i am guessing the process would be similar.
Best RegardsIf you want to save Katr10 to the order, you will have to
1. Append new fiield to VBAK within an append structure like zzvbak.
2. Retrieve Katr10 and move to VBAK in MV45afzz form userexit_move_field_to_vbak.
3. Append new field Katr10 to pricing communication structure komk in include komkaz.
4. If you retained Katr10 as field name then you are done since there is a move corresponding from vbak to komk, if not you need to move this to komk in MV45afzz form userexit_pricing_prepare_tkomk.
The field will now be populated and available in your pricing requirement routine. Hope this helps.
Matt -
Define attributes in Sender File Content Conversion
Hello everybody,
I have the following issue:
I have the next flat file:
0001;159;2008-04-03;Customer_2008-04-03.xml
0001;953;0;1;0
0002;2907;0;1;0
And I have to convert it to the next XML structure:
<DocumentsBatch id="0001" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<BatchInfo>
<SumDocumenten>159</SumDocumenten>
<date>2008-04-03</date>
<name>Customer_2008-04-03.xml></name>
</BatchInfo>
<Document id="0001">
<Customer>953</Customer>
<Portnumber>0</Portnumber>
<denied>1</denied>
<Port>0</Port>
</Document>
<Document id="0002">
<Customer>2907</Customer>
<Portnumber>0</Portnumber>
<denied>1</denied>
<Port>0</Port>
</Document>
My question is: Is it possible to define an attribute (e.g. id="0001" in <Document id="0001">) in File Content Conversion? If so, how can I do that?
Your answers will be rewarded with points.
Kind regards,
KamranHi Kamran,
its not possible to define attribute in File Content conversion.Instead u can create one more field "id" under the segments DocumentsBatch, Document etc.
Thanks
Ritu -
User defined attributes - usages
Hi,
I would like to hear how other OA developers have used user defined attributes for an item, if they have used it. I would appreciate if you could share that information.
As for me, I used it for items (messagetextinput, choice etc) in my custom search region to assign attribute names to these items to know what the values given by the user should be associated with and searched for. I had to create a custom search region since query region from oaf didn't allow to associate more than on VO to it.
I just want to see what other purposes others have used the user defined attributes to get a better understanding of it.
Thank you,
ArunHello Antilles.
The user defined attributes that you refer to it´s used to specify additional attributes.
You can find more useful information about this topic in this link: http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/nav.htm
Regards Pedro -
How to retrieve user defined attributes in Prepopulating a request dataset
Hi,
I have created couple of user defined attributes in user profile.
And I am tryting to develop a prepopulate adapter in a request dataset for a resource. I need to prepopulate request dataset based on the values of above said user defined attributes.
I tried to use tcResultSet result=UserOppsIntf.getSelfProfile(); in my pre-populate adapter but it is giving me only the following attributes and it is not giving any of my user defined attributes.
Users.Manager Key
Users.Manager Login
Users.Manager First Name
Users.Manager Last Name
Users.Password Warning Date
usr_locale
Users.Key
Users.Password Expired
Users.Middle Name
Users.User ID
Users.Password Expiration Date
Users.Status
Users.Password Warned
Users.Email
Telephone Number
Users.Display Name
usr_timezone
Users.Lock User
Users.Last Name
Users.First Name
MEMBERTYPE
If I use the code userData = usrService.getDetails("User Login", RequesterID, null); then I am getting only the following.
Display Name:
act_key:
Full Name:
usr_key:
User Login:
Last Name:
First Name:
Please let me know how to retrieve all of user defined attribute values in prepopulate adapter for a request dataset.Use below code to get all attributes in user profile including UDF.
OIMInternalClient objOimInternalClient = null;
User user = null;
UserManager usrService = null;
objOimInternalClient = new OIMInternalClient();
if (objOimInternalClient != null) {
try {
objOimInternalClient.loginAsAdmin();
usrService = objOimInternalClient
.getService(UserManager.class);
user = usrService.getDetails("usr_key", strUserKey, null);
endDate = (Date) user.getAttribute("End Date");
} catch (Exception e) {
e.printStackTrace();
} finally {
if (objOimInternalClient != null)
objOimInternalClient.logout();
if (user != null)
user = null;
if (usrService != null)
usrService = null;
In order to see all UDF's in User profile, please create Authorization Policy. -
LDAP search cannot find entry by user "defined attribute" or "sounds like
Hi, I have an JSP program that searches an LDAP Sun One Directory Server.
All of my search filters ( by givenname,sn,mail and phone #) work fine with the search base set at the very top (root ) of my DIT tree.
However with the same search base, searching by an "User Defined Attribute" fails to return anything (and note that my search filter includes the objectclass that goes with this user defined attribute)?
Yet, if I change the search base so it points all the way down the DIT tree (maybe near RDN?), the "User Defined Attribute" search works fine ?
Additionally, "sounds like" search filter (givenname~=) fails to find anything at
the upper root search base of DIT. If I change the search base to point down in the DIT tree as I did above, the "sounds like" filter will work?
I've tried everything I know?Hi Dora9,
Thanks for your reply.
I am glad that you have solved the problem and thanks for your share us the solution
here, so it would be helpful for other members who get the same issue
and we will close this case.
In addition, I suggest you could try to get
the issue confirmed and diagnose by product team. Would you please create connect report for it? You will get email notification for update from the product team experts:
http://connect.microsoft.com/VisualStudio/feedback/CreateFeedback.aspx,
if you submit it, you could share us the link here, so we could know the latest information from the Product team expert. And I will help you to vote it.
Thanks for your understanding.
Best Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Hi All,
I wanted few information on User defined attributes in Projects. It would be of great help if I get few suggestions.
I wanted to add few fields to the Update task progress screen. How can I add these field as there is no specific page layout exist for this page. Do I need to use OA Framework to achieve the same? If Yes, how can we modify these seeded pages?
Please guide me.
Thanks in Advance,
Srini.UDA can be added to project/task/classification. We can not modify the Update Task Progress form using UDA. If the changes are minimal then you can go for personalization or modify the sources as per OAF standards.
-
User Defined Attributes in Tree List
Does anyone know what the User Defined Attributes is used for in the tree list (when in Create / Edit List Entry screen)?
I'm trying to put a title tag on my list entries so I get a tooltip when hovering the mouse over each entry and thought this might be the way to do it.
If not then User Defined Attributes sounds like it could be useful anyway but I can't find any documentation on what it does.Hello Antilles.
The user defined attributes that you refer to it´s used to specify additional attributes.
You can find more useful information about this topic in this link: http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/nav.htm
Regards Pedro -
User-defined Attributes in CRM WebUI
Hi there,
I am using the Attribute 1 (defined in IMG->CRM->Master Data->BP->Define Attributes->Define User-Defined Attributes) to determine if a customer may or may not be given credit, just a simple yes or no attribute. My question is how to make this attribute be available when I'm creating a new BP in the WebUI under General Data?
Thanks in advance.Hi CharlieF,
I have a trouble with the same attributes in the "Account overview", in the view "BP_HEAD/AccountDetails", when i select a value in this fields and i try to save, the system display the error message: " Field group Attribute 1 is hidden; do not enter data in corresponding fields"
Have you solved this issue?
Can you explain me how?
Thanks in advance. -
BP User Defined Attributes -- Error
Hi experts!!
The customer i am working on needed some extra fields on the Accounts screen page, so i defined all User Defiened Attributes from 1 to 10 and added them from the Node MARKETING of the component BP_HEAD.
When i try to save the Account (after filling one of the attributes) I get the following error msg: Classification data is already maintained for business partner.
The Account can be saved and replicated to the ERP if the attributes remain empty.
What am i missing here???
Is there a connection between the attributes and account classification ??
Thank you in advanceThe error was fixed with Note 1271004.
BUT .. now when i Save the Account with User Defined Attributes filled the replication to ERP does not happen..
If the attributes are empty it gets replicated.
Any ideas???
Please help!! -
As title.
I can't find any ways to delete those system defined attributes like author, description and etc.
Thanks.Thanks for your quick response. Which tool (iTunes?) would you recommend to use on the PC (Windows 7) to select the photos I want to delete?
-
User defined attributes for use with personalization
Hello,
I have a stand alone region that works correctly and is able to be added to seeded pages via personalization. I would like to allow the personalization to define the value of a user defined attribute when the personalization is added to the page. However I do not see any user defined attributes in the list when I add the region via personalization.
Has anyone ever done this before?
Kristofer CruzIf you are not drawing this in an JEditorPane, but just with DrawText, you will have to split the text up your self, draw the first half, then switch colors, then draw the second half.
Maybe you are looking for
-
CLASSPATH problem, deploying JSP app without right to modify classpath...
I want to deploy a JSP web app to apache server with JRun for running JSP, but I don't have the permission to copy the required library files to the classpath, nor modify the classpath to append my application's path. Is there any way to workaround?
-
BAPI or Function module for transaction POP2
Hi, I have a requirement to change the value of a field in transaction POP2. Does anyone know any BAPI or FM to update the transaction POP2.
-
How can I delete devices in Icloud
Hi, I have two devices listed in find my Iphone that I have sold. How can I delete them from the list?
-
My kids have downloaded games easily using my credit card number which is now on file.now updates are automatically being charged to my credit card.how do I remove my credit card number from the files?
-
StrutsTags/JSP or... Another Nesting Newbie
I am having trouble teaching myself Struts taglib syntax/JSP coding and I am stuck on a classic nested object JSP/Struts syntax problem... Can you explain the errors in the following snippet? Background: The form associated with the jsp contains a pr