AET custom field in custom component
Hello,
The button Create New Field is disabled in AET in my custom component/view, how could i create a new field in my custom component. Do i need to assign my custom component or custom BOL anywhere ?
Thanks,
L.Will
Hi Lisha,
You are right. It is maintained by SAP.
The reason that AET does not work is because there is/are missing entries in one of DB table.
Namely the enhance BO assignment to the UI Object Type.
Could you please tell me, what is the UI Object Type in your current application.
In order to figure this out, you can put mouse cursor in one of the field in the UI and then press F2.
Then you can go to SM30 in SAP GUI open the View BSPDLCV_OBJ_TYPE and search for the UI object type.
Select the UI object type and see whether any enhanced BO is defined.
In your case it should be empty, otherwise you can use AET.
And if it is empty we need to figure out which enhanced BO is relevant for the given UI Object Type.
If the buttons are disabled, it can have two meaning.
1. AXTREG is not completely maintained
2. The Object you want to enhance is not supported by AET
Regards
Leon
[SAP Community Network Forums on mobile|https://cw.sdn.sap.com/cw/ideas/7910]
Similar Messages
-
Writing a custom component with multiple fields.
Does anyone have some pointers on writing a custom component that properly handles multiple input fields?
An example usage might be as follows:
Assume the following java classes:
public interface Address {
//... getters/setters for Address.
public class Company{
Address getAddress(){...};
}The tag usage might be something like the following:
<custom:address value="#{myCompanyBean.address}" />
Extending UIComponentBase I can easily render the output and create all the needed input elements. I'm also able to properly retrieve the submitted values in the decode method. But I'm unsure how to handle the "UpdateModelValues" step. Do I simply over-ride processUpdates, or is there more housekeeping to be done?
Thanks.I'm guessing that doing addChild inside createChildren causes an infinite loop.
Why aren't you just doing this with MXML? it would be a lot simpler. -
How do you reference a valueObject located in main to a custom component created in Catalyst?
Hello,
I have been working with the Catalyst Beta 2 / Flash Builder beta trying to create a photogallery and have hit a little bit of a snag, try as I might I can't seem to find the answer anywhere. I am still new to Flex so please excuse me if this is a basic question, I have been trying to understand more about Flex to make my designs in Catalyst better.
I found this video on Adobe TV: http://tv.adobe.com/watch/rich-internet-applications-101/ria-stepbystep-16-binding-a-data- service-to-flash-builder-components/
It's wonderful and I have the datalist I created in Catalyst working with the XML file I generated but I designed my little photogallery a bit diffrent, I created a Custom Component in Catalyst so that when you click an item on the DataList it pop's up a little screen with a larger photo in on it, rather then having an image in the main application. Now my problem seems to be that I can't refrence the valueObject I created with the wizard as it's in my Main.mxml file, is there a way to refrence it from my Custom Component so the larger image will display? Is there a way to let the component know which item on the dataList in the main application is selected and display the correct image?
I should also say I really enjoy working with the Beta for both Flash Builder / Catalyst, thanks for the hard work!
Thanks for the help,
ChrisI am afraid you cannot bind to static properties in Windows Store Apps. It is simply not supported.
You could create a proxy class that exposes the static command property and bind to this property of an instance of the proxy object:
http://stackoverflow.com/questions/14186175/bind-to-a-static-field-in-windows-8-xaml
http://stackoverflow.com/questions/4708711/how-can-i-use-the-xstatic-extension-for-phone7-silverlight-apps
You will of course have to create an instance of the proxy object. There is no way around this.
Please remember to mark helpful posts as answer to close your threads and then start a new thread if you have a new question. -
I want to add DataGrid in my custom component as a child component,
I want to add DataGrid in my custom component as a child component, can we ?? or should i generate HTML for table creation in my custom component's renderer ?
I did that:
for example, if i want to add a Button control in my custom control:
public void encodeChildren( FacesContext context ) throws IOException
super.encodeChildren( context );
//createComponent raises exception.... invalid component type
//UIComponent field = FacesContext.getCurrentInstance().getApplication().createComponent( javax.faces.component.html.HtmlInputText.class.getName() );
HtmlInputText input = new HtmlInputText();
getChildren().add( input );
public boolean getRendersChildren()
return true;
}Can you give me any example, i want to add child components at run time basically.. -
How to create custom component in CRM 2007
Hi.
I am new for the CRM 2007 Web UI.
Here we have CRM_UI_FRAME.
Like this so many Components are there.
I want how to create our own component.
I created it as follows.
Open the Transaction code bsp_wd_cmpwb.
Provide Z Name in the Component.
Zcomponent
Press Create button.
Go to Run Time Repository.
Press Change Mode.
Create a MODEL as ALL.
GO to Browser Component Structre.
Select View.
Provide View name.
Create the View.
Go to view Layout.
Provide the code like this.
<%@page language="abap"%>
<%@ extension name="htmlb" prefix="htmlb"%>
<%@ extension name="xhtmlb" prefix="xhtmlb"%>
<%@ extension name="crm_bsp_ic" prefix="crmic"%>
<%@ extension name="bsp" prefix="bsp"%>
<cthmlb:overviewFormConfig/>
Create the context under the context.
Go to Configuration tab.
Assigne the Attributes to the Screen.
GO to the Run Time Repository.
press change mode.
Assigne the view name to the Window.
Save it.
Test the Componet. But it is not diaply anything on the screen.
How i will get the data into the web UI.
Can anybody expalin about this one to me with screen shorts if possible.
I want add some fields into the web UI. Provide some values into that. Capture the values.
Navigate the data from one screen to another screen. How it is possible. I did not understand.
If i am changing any screens in the pre define component it shows dump.
So, now i need Custom component with adding of the fields.
Please give me proper information regarding this one.
Thank You.
Krishna. B.Hi,
Try put the htmlb to show a field:
<thtmlb:label design="LABEL" for="//<context>/<field>" text="<field>"/>
<thtmlb:inputField id="<field>" maxlength="31" size="20" value="//<context>/<field>"/>
In order to get value, you can write a simple code in the event_handler:
LR_BOL type ref to IF_BOL_BO_PROPERTY_ACCESS
LR_BOL = ME->TYPED_CONTEXT-><context>->COLLECTION_WRAPPER->get_current()
var1 = LR_BOL->GET_PROPERTY_AS_STRING('FIELD').
take a look at lr_bol methods so that you can see the set and get methods.
Regards,
Renato. -
How can I make a custom component focusable?
Hi all,
I'm using a custom made component that consists of a JLabel
and a JTextField. I want to make this component focusable,
and when it's in focus I want the JTextField to have the
focus so that the user can start typing immediately.
I've looked at the java tutorial
(http://java.sun.com/docs/books/tutorial/uiswing/misc/focus.html#focusable).
When my component gets the focus I request the focus to the
JTextField. The problem is: whenever i check if my custom
component has the focus, it hasn't because JTextField has it
(the focus, i mean :-) ) Which isn't strange i think, but
how can i solve this problem?I want to make this component focusable, and when it's in focus I want the JTextField to have the focus
The problem is: whenever i check if my custom component has the focus, it hasn't because JTextField has it (the focus, i mean :-) So whats the problem the textField has focus as desired.
You don't need to make the containing panel focusable in order for the text field to receive focus. The FocusManager is smart enough to place focus on the first focusable component contained in the panel. If you make the panel focusable then you will need to use the tab key twice, once to move focus to the panel and a second time to move focus to the text field. -
Using itemCreationPolicy with a custom component
I'm working on a project where the users need to be able to have a 'filtered' view of one of the edit dialogs. I'm using view states to control which of the input fields show up for each view. The 'save' logic is the same for both states, so I still need to be able to pull data for the inputs even if they are not currently displayed. I tried setting itemCreationPolicy to immediate with no success. Some of the inputs were getting created but the initial values were not being set. The issue seems to be that the input component (an extended version of DropDownList) defers setting the selected value until the commitProperties() method. Since the inpit isn't actually being shown, the commitProperties() method is never getting called and the value is never being set.
Can anyone suggest a workaround for this issue? The only thing I can think of would be to use includeInLayout and visible to show/hide the inputs, but that is going to get really messy since I would have to apply it to every input and the FormItem components that enclose them.Jasmin,
Is your class included in the custom component?
Yes, It is a annotated entity class,
When creating sessionFactory it is not loading the class.
i'm using flowing code block for creating sessionFactory,
factory =
new AnnotationConfiguration().addAnnotatedClass(dao.entity.UserEntity.
class).setProperty(
"hibernate.dialect",m_dialect ).setProperty(
"hibernate.connection.driver_class", m_driverClass).setProperty(
"hibernate.connection.url", m_connectionUrl ).setProperty(
"hibernate.connection.username",m_userName).setProperty(
"hibernate.connection.password", m_password).setProperty(
"hibernate.hbm2ddl.auto", m_hbmTodll ).setProperty(
"current_session_context_class",m_contextClass ).configure(resource).buildSessionFactory();
Is the jar referenced in the class patch section of the component.xml?
Yes , I have tried for this approch too , but class is entity class is not loaded. -
Issue in custom component in custom timecard layout-OTL
Hi,
I have created a custom layout based on seeded layout.Added new custom component Dept reference field to the sedded layout.
When trying to save the timecard template including dept reference field completed.The saved timecard template is dropping Dept reference filed.therefore,it is also dropped from the exported/downloaded .csv file.
code details:
BEGIN HXC_LAYOUT_COMPONENTS
"US Projects Alternate Timecard Layout-Dep field"
OWNER = "CUSTOM"
SEQUENCE = "226"
COMPONENT_DEFINITION = "TEXT_FIELD"
RENDER_TYPE = "WEB"
PARENT_COMPONENT="US Projects Alternate Timecard Layout-Day Scope Building blocks for worker timecard matrix"
REGION_CODE="HXC_CUI_TIMECARD"
REGION_CODE_APP_SHORT_NAME="HXC"
ATTRIBUTE_CODE="DEPT_REF"
ATTRIBUTE_CODE_APP_SHORT_NAME="HXC"
LAST_UPDATE_DATE = "2004/05/23"
BEGIN HXC_LAYOUT_COMP_QUALIFIERS
"US Projects Alternate Timecard Layout-Dep field"
OWNER = "CUSTOM"
QUALIFIER_ATTRIBUTE_CATEGORY = "TEXT_FIELD"
QUALIFIER_ATTRIBUTE1 = "N"
QUALIFIER_ATTRIBUTE2 = "N"
QUALIFIER_ATTRIBUTE3 = "5"
QUALIFIER_ATTRIBUTE4 = "1"
QUALIFIER_ATTRIBUTE5 = "30"
QUALIFIER_ATTRIBUTE18 = "EXCLUDE"
QUALIFIER_ATTRIBUTE19 = "|TEMPLATE|CSV|"
QUALIFIER_ATTRIBUTE20 = "N"
QUALIFIER_ATTRIBUTE21 = "Y"
QUALIFIER_ATTRIBUTE22 = "L"
QUALIFIER_ATTRIBUTE25 = "FLEX"
QUALIFIER_ATTRIBUTE26 = "HRP"
QUALIFIER_ATTRIBUTE27 = "Attribute3"
LAST_UPDATE_DATE = "2004/05/23"
END HXC_LAYOUT_COMP_QUALIFIERS
END HXC_LAYOUT_COMPONENTS
Please help me in this regard....
Thanks
Sri...Did you update the export layout too and added that to preferences?
--Shiv -
Best strategy for variable aggregate custom component in dataTable
Hey group, I've got a question.
I'd like to write a custom component to display a series of editable Things in a datatable, but the structure of each Thing will vary depending on what type of Thing it is. So, some Things will display radio button groups (with each radio button selecting a small set of additional input elements, so we have a vertical array radio buttons and beside each radio button, a small number of additional input elements), some will display text-entry fields, and so on.
I'm wondering what the best strategy for tackling this sort of thing is. I'm sort of thinking I'll need to do something like dynamically add to the component tree in my custom component's encodeBegin(), and purge the extra (sub-) components in encodeEnd().
Decoding will be a bit of a challenge, maybe.
Or do I simply instantiate (via constructor calls, not createComponent()) the components I want and explicitly call their encode*() and decode() methods, without adding them to the view tree?
To add to the fun of all this, I'm only just learning Faces (having gone through the Dudney book, Mastering JSF, and writing some simpler custom components) and I don't have experience with anything other than plain vanilla JSP. (No EJB, no Struts, no Tapestry, no spiffy VisualDevStudioWysiwyg++ [bah humbug, I'm an emacs user]). I'm using JSP 2.0, JSF 1.1_01, JBoss 4.0.1 and JDK 1.4.2. No, I won't upgrade to 1.5 (yet).
Any hints, pointers to good sample code? I've looked at some of the sample code that came with the RI and I've tried to navigate the JSF Blueprints stuff, but I haven't really found anything on aggregating components into a custom component. Did I miss something obvious?
If this isn't a good question, please let me know how I can sharpen it up a bit.
Thanks.
John.Hi,
We're doing something very similar. I had a look at the Tomahawk Date component, and it seems to dynamically created InputText components in the encodeEnd(). However, it doesn't decode this directly (it only expects a single textual value). I expect you may have to check the request yourself in decode().
Other ideas would be appreciated, though - I'm still new to JSF. -
Scroll bar, buttons and a Custom Component - help
Thanks to another forum I was able to create a scroll panel and add a scroll bar to it. That works fine. Inside the scroll panel I have thumbnails of the product that I'm highlighting. I want to be able to click on the thumbnail and have a full size photo of the product come up in the window next to the scroll panel. I created a custom component that has a stage showing each full size product individually. This worked fine when I simply had buttons and no scroll bar. I could convert the thumbnail to a button and then add interaction so that it would go to the proper state of the custom component. Where I'm having problems is now that I've imbedded the buttons in a scroll panel I'm no longer given the custom component as an option to pick from. I can add interaction, but it only gives me the option of picking one of the pages, and not a component.
I've attached a screen grab to help show what I'm describing.
Any ideas?
DougDoug, thanks for asking this question.
Hi ADAM...
It seems that a lot of us are asking the same question: Scrollbar Navigation-Make Actionable
(I created a low-fidelity proof-of-concept to test—using a datalist as you suggested. See link in my posting).
I have reviewed the video you refer to here, but you example still does not allow for individual items in the datalist (scrollbar) to be assigned individual actionable events.
Can you expain your thinking in Option 1, as a workaround? Do you have any other suggestions?
BOTTOM LINE
We are all looking to do the same thing... something we are going to see A LOT MORE of after Uncle Steve's TABLET presentation next week:
A scrolling menu, with selected items in the menu causing "navigation" to a certain point in a scroll panel. (imitating the flick or slide effect of iPhone).
Suggestion: Can you add a field to thedatalist so that when the "repeated item" (in edit mode) is configuredto do an action (i.e., On-Click, Transition to State), we can then assign the state you'd like for each item in thetable itself?
Now the issue is making it change the "State" within another component (i.e. scrolling panel). Can that be done?
Thanks,
- Rick -
Entity not saved inside custom component embedded in standard view
Hi ,
I have embedded a custom component inside a standard component. The custom component has two views. The first view is assigned to the item overview page and the second view is assigned to the main window of the standard component.
I have enhanced the BOL model (using EEWB) and created a new entity with z structure.
There is a button in the first view which is used to navigate to the second view. The custom fields are filled up in the second view.
Even though I am able to fill up the custom fields in the second view, these fields are not getting saved when I save the main transaction.
However, If I fill up the fields from the first view ( ie the overview page ) , these are getting saved.
Please let me know if you have any solution. This would be very helpful.
Regards,
JaydipHi Anubhav,
I have created the Custom Component(zso_disclaimer) with the BOL Object BTAdminH. I have used few fields which is available in the BTAdminH(ZZDISC_WAR_ID,ZZACC_EX_CONT,ZZACCEPT_WAR and ZZFLD00004G). I have used this custom component(zso_disclaimer) in the standard conponent BT115H_SLSO as Assignment block. when i enter the values in the fields and press enter the values get disappears. So i am not able to proceed further. Can anyone help me to solve this problem.
Thanks & Regards,
Ashok. -
Custom component Search and Result view using value node :pls help
Hi Experts,
I am creating a Custom component with Search and Result view using value nodes.
This is the code I wrote in the Search button event handler method.
The data which gets in lv_search I need to put in lv_col .
Can somebody guide me for this.
Points will be awarded .
METHOD eh_onsearch.
DATA : lv_current TYPE REF TO if_bol_bo_property_access,
lv_search TYPE zcrm_orgstruct_search, "Search value node structure
lv_result TYPE zcrm_orgstruct_result, "Result value node structure
lv_col TYPE REF TO if_bol_bo_col.
lv_current ?= me->typed_context->search->collection_wrapper->get_current( ).
CALL METHOD lv_current->get_properties
IMPORTING
es_attributes = lv_search.
me->typed_context->searchresult->collection_wrapper->set_collection( lv_col ).
op_toresultview( ).
ENDMETHOD.
Regards,
LakshmiHi Lakshmi,
Could you please share with us how it was solved.
"CALL METHOD lv_current->get_properties
IMPORTING
es_attributes = lv_search."
Did you get any values in lv_search ?
Because while using value nodes for search view (which inherits from advance search controller class), the above method does not return any search values entered in the fields.
Please let me know how did you solve it.
Thanks & Regards
Vidhya -
Where to create root BOL in custom component - best practice
Hi Experts,
I have created a BOL class to insert values into a ZTable.
I have created a custom component/views for the BOL. Now how will the create method in the BOL will be called. In which method of the component controller or view controller do I create the BOL root..
I want to use the following code.
CALL METHOD SUPER->WD_CREATE_CONTEXT
DATA:
lref_substitute TYPE REF TO if_bol_bo_property_access,
lv_index TYPE i,
lref_bol_entity TYPE REF TO cl_crm_bol_entity,
lrf_cuco TYPE REF TO cl_gs_mcat_mcat_impl,
lref_bol_core TYPE REF TO cl_crm_bol_core,
lv_object_name TYPE crmt_ext_obj_name VALUE cl_crm_catego_genil=>gc_ob_schema,
lv_create_param TYPE crmt_name_value_pair_tab,
lv_number TYPE int4 VALUE 1,
lref_new_substitute TYPE REF TO if_bol_entity_col,
lr_tx TYPE REF TO if_bol_transaction_context
lref_bol_core = cl_crm_bol_core=>Get_instance( abap_true ).
lv_object_name = 'ZHRUS_D2'.
TRY.
CALL METHOD lref_bol_core->root_create
EXPORTING
iv_object_name = lv_object_name
iv_create_param = lv_create_param
iv_number = lv_number
RECEIVING
rv_result = lref_new_substitute.
CATCH cx_crm_unsupported_object .
ENDTRY.
CHECK lref_new_substitute IS BOUND.
lref_substitute ?= lref_new_substitute->get_first( ).
CHECK lref_substitute IS BOUND.
me->typed_context->zhrus->collection_wrapper->clear( ).
me->typed_context->zhrus->collection_wrapper->add( iv_entity = lref_substitute ).
I give the code in various methods and it all works fine. But what is the best way to create the root node.
Regards,
Abdullah IsmailHi Abdullah,
I use something like this to create a root entity in the BOL Core. In this case, a standard entity: BTOrder.
*- Data dictionary
DATA lr_core TYPE REF TO cl_crm_bol_core.
DATA lr_fac TYPE REF TO cl_crm_bol_entity_factory.
DATA lt_params TYPE crmt_name_value_pair_tab.
DATA lr_ent TYPE REF TO cl_crm_bol_entity.
FIELD-SYMBOLS <line> TYPE crmt_name_value_pair.
*- Get the core instance and factory
lr_core = cl_crm_bol_core=>get_instance( ).
lr_fac = lr_core->get_entity_factory( 'BTOrder' ).
*- get supported parameters for this object
lt_params = lr_fac->get_parameter_table( ).
*- Set the process Type
READ TABLE lt_params ASSIGNING <line> WITH KEY name = 'PROCESS_TYPE'.
<line>-value = '0010'.
*- Create the BOL entity, based on parameters
lr_ent = lr_fac->create( lt_params ).
lr_ent = lr_ent->get_related_entity( 'BTOrderHeader' ).
*- Lock order
CHECK lr_ent->lock( ) = abap_true.
It is an alternative way. Check if it helps you creating your Z-Object in the BOL root
Kind regards,
Garcia
Edited by: Bruno Garcia on May 12, 2011 12:15 PM -
Passing a reference / variable to a Custom Component
Hi, I was wondering if someone could help me.
It seems like a very simple problem but I cant for the life
of me seem to work out a solution.
I have created a Custom Component that extends from the
UIComponent that consists of a “rev counter” style
clock face etc….
I want to use this component multiple times within my
application – however feed it different data so for example
each “rev counter” on the page will be displaying
different data etc…..
I want to be able to reuse my component and not have to
create a new component every time I add a “rev counter”
to my application, therefore I need some way of passing a reference
/ variable to the component (maybe from the <mx /> tag where
I declare it in the MXML code ??? )
<mx:Application ….
xmlns:comps="components.*" …..>
<comps:RevCounterComp id=”” (add something
here to reference???) />
</ mx:Application>
Doing this will allow me to reuse my ONE custom component
MANY times feeding it different data (different data provaiders for
each instance of the single component)
Hope this makes sense???
Any help / advice is much appreciated,
Thanks,
Jon.Jon,
jmryan's suggestion is the preferred way to go. This way you
can use the simple MXML syntax that you described in your post.
If your custom component is defined in ActionScript, you can
use setters or the creationComplete event to update the component
when the values are passed in from the tag (they are set *after*
your constructor runs).
Even easier, if your component is defined in MXML, you can
add [Bindable] to your public field and then bind directly to it in
the custom component's MXML code.
- Peter -
How to handle children of custom component
Hi,
does anybody know an example of how to develop a custom UIComponent which is able to render any kind of child? For example:
<x:mycomponent columns="3" valu="#{list-of-items} var="item">
<h:graphicImage url="#{item.url}/>
<h:selectBooleanCheckbox />
</x:mycomponent>
The result should be a table with 3 columns where each table-cell contains the result of the rendering process of its children, in this case a picture with a checkbox.
I have tried it and managed to get the correct html-result. But I do not get the input of the checkbox if the above code snippet is a part of a html-form.
So what I realy like to have is the sourcecode of some kind of UIComponent which does something like this.
Kind Regards,
TobiasThanks for the swift reply Craig
My custom component has 3 elements hence the currentTarget
could be either the folder icon, the status icon or the text field.
Is there some way of finding the parent of which ever of
these sub items of the cusom component is clicked?
Here is the code for my custom component
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="
http://www.adobe.com/2006/mxml"
width="240" height="60" cornerRadius="15" borderStyle="none"
backgroundColor="#ffffff" themeColor="#ff0000">
<mx:Script>
<![CDATA[
[Bindable]
public var studentName:String ="Student Name";
]]>
</mx:Script>
<mx:Text x="64" y="24" text="{studentName}" />
<mx:SWFLoader x="10" y="10" width="32" height="24"
source="@Embed('assets/folderIcon.swf')" />
<mx:SWFLoader x="19" y="42" width="11" height="11"
source="@Embed('assets/cfStatusIcon.swf')" />
</mx:Canvas>
Maybe you are looking for
-
Deleting a single event in ical
I have a regular event in ical that is in every weekend. As other things crop up i delete it if im not goign to be able to do that particular event. It has worked well on my phone and ical. But today i decided to delete the even through my icloud
-
SSO between R/3 and portal
our portal certificate key has got expired so i have renewed it and imported the same into my ECC system and added to ACL list But now when we test the JCO connection the following error results com.sap.mw.jco.JCO$Exception: (103) RFC_ERROR_LOGON_FAI
-
In IPhoto '08, viewing single vs. multiple photos
In IPhoto '08, in Library/Photos, I'm no longer able to view a screen of thumbnails. I'm only able to view a single photo at one time. This was not true in the past.
-
How to get Recolor Artwork tool to let me choose from my color groups
When I use the Recolor Artwork tool to change all the colors on an image at once, I can't figure out how to get it to let me choose from my color groups in my library. I have my library loaded on the side panel, but it won't let me choose from then w
-
How to sync all email accounts AT ONCE in N8 Symbi...
Hi to all There is any way to sync all email accounts AT ONCE in Nokia N8 with Symbian Belle ? Because syncing one by one is very unpleasant (I have 12 email accounts on my phone). Is there a way to sync all accounts at once? hank you for your attent