Component for END button
Hi Experts ,
We have some issues occurring on clicking the END button in the UI screen .
So wanted to know is there any component linked to END button , as was unable to find any component for END button .
Thanks ,
Vaibhav
Hi,
You might want to check view HiddenView of component CRMCMP_IC_FRAME.
Method EH_ONFORWARDCALL is called when cliquing on the "End" button.
The event InteractionEndRequest is then raised, which leads to method HANDLE_END_INTERACTION of the same view.
Hope this helps.
Best regards,
Sylvain
Similar Messages
-
I cant find the end button when i receive a incomming call please help me. Is there any solution for it or is it a bug in the ios7.0.3 iam updated with ios7.0.3
Do you mean decline button before picking up the call?
-
Dynamic Text preparation for Command button in ADF (Tr component)
We have one command link and our requirement is to preapre the command button text dynamicaly .?
Details are givin below :
I need to get the button text value form the UCMS file based on the dynamic preparation .
The key value of UCMS is "setupfamily_group_1-8FAM4".
In the above mentioned key value the part 1 is "*setupfamily_group*_" is static text and part 2 "*1-8FAM4*" is dynamic which i will get throuth the List of Objects.
i.e managedServices.product.productId. here managedSercies is varible contains the Objects from the list.
please let me know how to append the part1 and part 2 as mentioned above in Command button text field ?
<tr:forEach items="#{pageFlowScope.myExtrasBean.managedServicesExtras}"
var="managedServices">
<tr:commandButton text="#{myExtrasBundle.setupfamily_group_+#managedServices.product.productId}" id="setup_service"
actionListener="#{pageFlowScope.myExtrasBean.manageMyFamilyProducts}"
action="vfFamilyFlow">
<f:attribute name="productId" value="#{managedServices.product.productId}"/>
</tr:commandButton>
</forEach>
We not getting how to append the Static and dynamic text for command button text filed ? pleas let me know the syntax .
ThanksHI
We have tried with above both options .its issues not resolved .
for the first one we are getting the compile time error
and for the second option ,when we run the dynamic value its self printing in the JSF .
We are trying to prepare the command button text as some part dynamically and some part static and its will act as key in the XML and get the corresponding value from the UCMS .
Thanks -
End Button Functionality in IC_Agent Role to Prevent Auto Save BP
Hi All,
I have noticed different behavior when we click on End Button in following cases.
Case 1. :-
Component :- ICCMP_BP_DETAIL
View :- BuPaDetail
I have made the changes in if_crm_ic_prepare_for_callback~execute to prevent BP save and it works fine.
Case 2. :-
Component :- ICCMP_BP_DETAIL
View :- ICCMP_BP_DETAIL/BuPaMoreCustomer
for this view I have added this interface if_crm_ic_prepare_for_callback in IMPL class and implemented its execute method. Now, when I click on end button this method is not getting triggered and BP is getting save.
Please help me how to prevent BP save in second case.
Thanks.Hello Nishit.
You have to subscribe to EndRequest in DO_INIT_CONTEXT with the following code:
DATA lr_cb_registry TYPE REF TO if_crm_ic_callback_registry.
* Register for callbacks during END processing
lr_cb_registry = cl_crm_ic_interaction_manager=>get_cb_registry_end_request( ).
lr_cb_registry->register( me ).
Check the same method (DO_INIT_CONTEXT) in ICCMP_BP_DETAIL/BuPaDetail -
SAP CRM WebUI : End Button Interaction center (and account CONFIRM)
Hi to everybody,
is there a function , or bapi , that performs the same steps of "END" button on interaction center?
I need to display data of the account selected and not the account confirmed.
At last,is there also a function to confirm an account without using the standard button on "Account Identification" view?
Or have i to degub the standard code directly?
Thanks in advance.
Regards.
Dario.Hello, Dario.
So there is a class CL_CRM_IC_AUTO_NAV2. It's preloaded when the agent logins to CRM. In a view CRMV_IC_APP_COMP you can maintain which classes are preloaded. This class is for AUTONAVIGATION component.
Take a look at it. It subscribes for some IC events in IF_CRM_IC_COMPONENT~INITIALIZE. For instance, for interaction_ended event. And it handles this event in method HANDLE_INTERACTION_ENDED. There is a code which makes default navigation:
if me->end_descr_object is initial.
TRY.
iv_nav_srv->navigate_to_default( ).
CATCH cx_root.
ENDTRY.
endif.
You may try to copy this class to your own, then comment this block in your class and subsitute standard class with your own in CRM_IC_APP_COMP.
Hope this will help. -
SAP CRM WebUI : End Button Interaction Center
Hi to eveybody,
is it possible to remain in the same page (for example in CSR detail) when the "END" button is being pressed on interaction center?
Now the system returns to main page and deletes all history.
Is it possible to make this in SPRO transaction or in other ways?
Thanks in advance.
Regards.
Dario.Hello, Dario.
So there is a class CL_CRM_IC_AUTO_NAV2. It's preloaded when the agent logins to CRM. In a view CRMV_IC_APP_COMP you can maintain which classes are preloaded. This class is for AUTONAVIGATION component.
Take a look at it. It subscribes for some IC events in IF_CRM_IC_COMPONENT~INITIALIZE. For instance, for interaction_ended event. And it handles this event in method HANDLE_INTERACTION_ENDED. There is a code which makes default navigation:
if me->end_descr_object is initial.
TRY.
iv_nav_srv->navigate_to_default( ).
CATCH cx_root.
ENDTRY.
endif.
You may try to copy this class to your own, then comment this block in your class and subsitute standard class with your own in CRM_IC_APP_COMP.
Hope this will help. -
How to find event handler for save button in salesorders
Hi,
I want perform event based on save button in salesorders.Can you tell me how to find the event handler for
save button.
Regards,
BrahmajiBrahma,
you can find the component, view details by doing an F2.
open the component, the view will be mostly an overview page i.e., the name ends OP etc.,
But your method name will be mostly EH_ONSAVE, you need to find exact view.
F2 does not come up properly for overview pages, you have to look into UI config tool preview and make sure sometimes.
Regards,
Masood Imrani S. -
Menu Button in ALV toolbar (multiple choices for a button)
Hi abapers,
I would like to have a button with multiple choices in the toolbar;
at the moment I have created a menu button with just one function.
Here is my code:
CLASS lcl_event_receiver (Definition)
CLASS lcl_event_receiver DEFINITION.
PUBLIC SECTION.
METHODS:
handle_toolbar
FOR EVENT toolbar OF cl_gui_alv_grid
IMPORTING e_object e_interactive.
ENDCLASS. "lcl_event_receiver DEFINITION
CLASS lcl_event_receiver (Implementation)
CLASS lcl_event_receiver IMPLEMENTATION.
METHOD handle_toolbar.
DATA: ls_toolbar TYPE stb_button.
*Separator
CLEAR ls_toolbar.
MOVE 3 TO ls_toolbar-butn_type.
APPEND ls_toolbar TO e_object->mt_toolbar.
*Button
CLEAR ls_toolbar.
MOVE 1 TO ls_toolbar-butn_type.
MOVE 'EDIT' TO ls_toolbar-function.
MOVE icon_change TO ls_toolbar-icon.
MOVE ' Modifica'(l02) TO ls_toolbar-text.
MOVE ' ' TO ls_toolbar-disabled.
MOVE 'Modifica' TO ls_toolbar-quickinfo.
APPEND ls_toolbar TO e_object->mt_toolbar.
ENDMETHOD. "handle_toolbar
ENDCLASS. "lcl_event_receiver IMPLEMENTATIONhi,
check this code and reward me if it helps you..
TYPE-POOLS : slis,icon.
*Structure declaration for tcodes
TYPES : BEGIN OF ty_table,
tcode TYPE tcode,
pgmna TYPE progname,
END OF ty_table.
*Structure for tocde text
TYPES : BEGIN OF ty_itext,
tcode TYPE tcode,
ttext TYPE ttext_stct,
sprsl TYPE sprsl,
END OF ty_itext.
*Structure for output display
TYPES : BEGIN OF ty_output,
tcode TYPE tcode,
pgmna TYPE progname,
ttext TYPE ttext_stct,
END OF ty_output.
*internal table and work area declarations
DATA : it_table TYPE STANDARD TABLE OF ty_table INITIAL SIZE 0,
it_output TYPE STANDARD TABLE OF ty_output INITIAL SIZE 0,
it_ittext TYPE STANDARD TABLE OF ty_itext INITIAL SIZE 0,
wa_table TYPE ty_table,
wa_output TYPE ty_output,
wa_ittext TYPE ty_itext.
*Class definition for ALV toolbar
CLASS: lcl_alv_toolbar DEFINITION DEFERRED.
*Declaration for toolbar buttons
DATA : ty_toolbar TYPE stb_button.
Data declarations for ALV
DATA: c_ccont TYPE REF TO cl_gui_custom_container, "Custom container object
c_alvgd TYPE REF TO cl_gui_alv_grid, "ALV grid object
it_fcat TYPE lvc_t_fcat, "Field catalogue
it_layout TYPE lvc_s_layo, "Layout
c_alv_toolbar TYPE REF TO lcl_alv_toolbar, "Alv toolbar
c_alv_toolbarmanager TYPE REF TO cl_alv_grid_toolbar_manager. "Toolbar manager
*Initialization event
INITIALIZATION.
*Start of selection event
START-OF-SELECTION.
*Subroutine to get values from tstc table
PERFORM fetch_data.
*subroutine for alv display
PERFORM alv_output.
CLASS lcl_alv_toolbar DEFINITION
ALV event handler
CLASS lcl_alv_toolbar DEFINITION.
PUBLIC SECTION.
*Constructor
METHODS: constructor
IMPORTING
io_alv_grid TYPE REF TO cl_gui_alv_grid,
*Event for toolbar
on_toolbar
FOR EVENT toolbar
OF cl_gui_alv_grid
IMPORTING
e_object.
ENDCLASS. "lcl_alv_toolbar DEFINITION
CLASS lcl_alv_toolbar IMPLEMENTATION
ALV event handler
CLASS lcl_alv_toolbar IMPLEMENTATION.
METHOD constructor.
Create ALV toolbar manager instance
CREATE OBJECT c_alv_toolbarmanager
EXPORTING
io_alv_grid = io_alv_grid.
ENDMETHOD. "constructor
METHOD on_toolbar.
Add customized toolbar buttons.
variable for Toolbar Button
ty_toolbar-icon = icon_generate.
ty_toolbar-butn_type = 0.
ty_toolbar-text = 'Button1'.
APPEND ty_toolbar TO e_object->mt_toolbar.
ty_toolbar-icon = icon_voice_output.
ty_toolbar-butn_type = 0.
ty_toolbar-text = 'Button2'.
APPEND ty_toolbar TO e_object->mt_toolbar.
ty_toolbar-icon = icon_phone.
ty_toolbar-butn_type = 0.
ty_toolbar-text = 'Button3'.
APPEND ty_toolbar TO e_object->mt_toolbar.
ty_toolbar-icon = icon_mail.
ty_toolbar-butn_type = 0.
ty_toolbar-text = 'Button4'.
APPEND ty_toolbar TO e_object->mt_toolbar.
ty_toolbar-icon = icon_voice_input.
ty_toolbar-butn_type = 0.
ty_toolbar-text = 'Button5'.
APPEND ty_toolbar TO e_object->mt_toolbar.
Call reorganize method of toolbar manager to
display the toolbar
CALL METHOD c_alv_toolbarmanager->reorganize
EXPORTING
io_alv_toolbar = e_object.
ENDMETHOD. "on_toolbar
ENDCLASS. "lcl_alv_toolbar IMPLEMENTATION
*& Form fetch_data
text
--> p1 text
<-- p2 text
FORM fetch_data .
Select the tcodes upto 200 rows from TSTC
SELECT tcode
pgmna
FROM tstc
INTO CORRESPONDING FIELDS OF TABLE it_table
UP TO 200 ROWS
WHERE dypno NE '0000'.
*Select the tcode textx
IF it_table[] IS NOT INITIAL.
SELECT ttext
tcode
sprsl
FROM tstct
INTO CORRESPONDING FIELDS OF TABLE it_ittext
FOR ALL ENTRIES IN it_table
WHERE tcode = it_table-tcode
AND sprsl = 'E'.
ENDIF.
Apppending the data to the internal table of ALV output
LOOP AT it_table INTO wa_table.
wa_output-tcode = wa_table-tcode.
wa_output-pgmna = wa_table-pgmna.
For texts
READ TABLE it_ittext INTO wa_ittext WITH KEY tcode = wa_table-tcode.
wa_output-ttext = wa_ittext-ttext.
APPEND wa_output TO it_output.
CLEAR wa_output.
ENDLOOP.
ENDFORM. " fetch_data
*& Form alv_output
text
--> p1 text
<-- p2 text
FORM alv_output .
*Calling the ALV
CALL SCREEN 0600.
ENDFORM. " alv_output
Calling the ALV screen with custom container
On this statement double click it takes you to the screen painter SE51.Enter the attributes
*Create a Custom container and name it CC_CONT and OK code as OK_CODE.
*Save check and Activate the screen painter.
Now a normal screen with number 600 is created which holds the ALV grid. PBO of the actual screen , Here we can give a title and *customized menus
*& Module STATUS_0600 OUTPUT
text
MODULE status_0600 OUTPUT.
SET PF-STATUS 'xxxxxxxx'.
SET TITLEBAR 'xxx'.
ENDMODULE. " STATUS_0600 OUTPUT
calling the PBO module ALV_GRID.
*& Module ALV_GRID OUTPUT
text
MODULE alv_grid OUTPUT.
*create object for custom container
CREATE OBJECT c_ccont
EXPORTING
container_name = 'CC_CONT'.
*create object of alv grid
CREATE OBJECT c_alvgd
EXPORTING
i_parent = c_ccont.
create ALV event handler
CREATE OBJECT c_alv_toolbar
EXPORTING
io_alv_grid = c_alvgd.
Register event handler
SET HANDLER c_alv_toolbar->on_toolbar FOR c_alvgd.
Fieldcatalogue for ALV
PERFORM alv_build_fieldcat.
ALV attributes FOR LAYOUT
PERFORM alv_report_layout.
CHECK NOT c_alvgd IS INITIAL.
Call ALV GRID
CALL METHOD c_alvgd->set_table_for_first_display
EXPORTING
is_layout = it_layout
CHANGING
it_outtab = it_output
it_fieldcatalog = it_fcat
EXCEPTIONS
invalid_parameter_combination = 1
program_error = 2
too_many_lines = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDMODULE. " ALV_GRID OUTPUT
*& Form alv_build_fieldcat
text
<--P_IT_FCAT text
FORM alv_build_fieldcat.
DATA lv_fldcat TYPE lvc_s_fcat.
CLEAR lv_fldcat.
lv_fldcat-row_pos = '1'.
lv_fldcat-col_pos = '1'.
lv_fldcat-fieldname = 'TCODE'.
lv_fldcat-tabname = 'IT_OUTPUT'.
lv_fldcat-outputlen = 8.
lv_fldcat-scrtext_m = 'TCODE'.
APPEND lv_fldcat TO it_fcat.
CLEAR lv_fldcat.
lv_fldcat-row_pos = '1'.
lv_fldcat-col_pos = '2'.
lv_fldcat-fieldname = 'PGMNA'.
lv_fldcat-tabname = 'IT_OUTPUT'.
lv_fldcat-outputlen = 15.
lv_fldcat-scrtext_m = 'PROGNAME'.
APPEND lv_fldcat TO it_fcat.
CLEAR lv_fldcat.
lv_fldcat-row_pos = '1'.
lv_fldcat-col_pos = '3'.
lv_fldcat-fieldname = 'TTEXT'.
lv_fldcat-tabname = 'IT_OUTPUT'.
lv_fldcat-outputlen = 60.
lv_fldcat-scrtext_m = 'Description'.
APPEND lv_fldcat TO it_fcat.
CLEAR lv_fldcat.
ENDFORM. " alv_build_fieldcat
*& Form alv_report_layout
text
<--P_IT_LAYOUT text
FORM alv_report_layout.
it_layout-cwidth_opt = 'X'.
it_layout-zebra = 'X'.
ENDFORM. " alv_report_layout
PAI module of the screen created. In case we use an interactive ALV or
*for additional functionalities we can create OK codes
*and based on the user command we can do the coding.
*& Module USER_COMMAND_0600 INPUT
text
MODULE user_command_0600 INPUT.
ENDMODULE. " USER_COMMAND_0600 INPUT
thanks,
gupta -
How to use Messeges component from a button Action ? (add item to Messages)
Hi
Thank you for reading my post
I have a Messages component on one of my ADF JSF pages.
i create an Action method for one of my buttons that are on the page and now i need to
add some items to Messages component , for example to alert the manager that the user name he/she want to add to system is already exists.
can some one give me some help about this ?
my problem is that from an Action method how i can access that Messages on the page that called the action.Hi,
this is from the ADF Developers guide which is available on OTN:
if (!password.equals(confirmPassword))
FacesMessage fm = new FacesMessage();
fm.setSummary("Confirm Password");
fm.setDetail("You've entered an incorrect password. Please verify that you've
entered a correct password!");
FacesContext.getCurrentInstance().addMessage(null, fm);
}Brenden -
[Feature Request] Better support for new buttons in JUNavigationBar
In my project I use a home made sub-class of JUNavigationBar, which contains some new functionality apart from a new button as well. This button allows me to refresh the currently selected row.
However, since I added this button though a simple this.add(), some of the functionality in JUNavigationBar may get confused.
For example, when I have removed some of the standard buttons but left my own button in place (setHasXXX()), the component index (calculated in JToolBar) and the array index for the buttons in JUNavigationBar may not match. This occasionally causes an ArrayIndexOutOfBoundsException.
In short, what I'm asking for, is a better way to manage buttons on JUNavigationBar. Even making the array of buttons and related methods and such protected in stead of private (so that my sub-class could handle it) would be a good start.Hi Arno,
I had a similar issue with trying to create a Nav bar with dynamic content. My solution was to leave all the standard buttons in place and to use setVisible(x) to make them appear or not as required.
BTW have you noticed that rollover behaviour isn't consistant ie works for FIRST/LAST etc but not for FIND/QUERY.
Regards
Andy -
Automatic navigation after "END" button depending on in- or outbound call
Hi all.
the requirement is:
In the case of inbound calls - the agent starts working on an item of the inbox and clicks on "END" when finished - the navigation should automatically bring him back to the inbox.
But if he starts with the account identification (outbound calls) then he should automatically jump back to account identification screen when clicking on "END".
I already got the Intent driven interaction working according to these steps. But now the navigation brings me ALWAYS back to the inbox.
1) Define a rule policy in the Rule Profile for context "Intent driven interaction":
If
Current Event Equals InteractionEnded-Interaction ended
Then
Navigate To ( Navigation Object type:Action = IC WebClient - Inbox:Display )
2) Release the rule using the "more" button and clicking on "relase draft rule" (the icon changes from yellow to green)
3) On the top level of my new policy I assigned my business role and the event that is being used (InteractionEnded).
4) I check business role customizing: function profile "INTENT_DRIVEN_INTERACTIONS" is assigned to "DEFAULT". Note: The intent driven profile "DEFAULT" is assigned to the service mgr. profile "IDI_DEFAULT".
Doing these changes my system now always jumps to the inbox when I click on the "END" button.
The problem seems to be that I am not able to figure out how to use the currentInboxItem as part of my rule policy.
I added a line in my rule for the currentInboxItem checking if the currentInboxItem is not-equal to "blank". This seems not to work. I guess I must rather check if currentinboxitem is "bound" or against a field of the item. But I don't see how to do this.
Has s.b. any idea how to get this work? Or on other ways how to get this work?
Does s.b. know how to debug when a rule is checked by the system?
Thanks & Regards,
ThorstenHi Paul,
I defined the execute method in the following way.
You can see below that lo_activity is defined in the following way:
lo_activity TYPE REF TO if_bol_bo_property_access,
CURRENTINBOXITEM' is a standard object of the global data container which gets filled when an inbox item gets selected.
'ZCURRENTINBOXITM' is the repository object of the context ICRule and I fill the parameter for the process type.
Hope this helps.
Regards, Thorsten
METHOD if_crm_smf_service~execute.
fill attributes for currentinboxitem
see implementation example in class CL_CRM_IC_F_G_TRANS
DECLARATION -
DATA :
lv_string TYPE string,
lo_bdc TYPE REF TO if_crm_ui_data_context,
lo_activity TYPE REF TO if_bol_bo_property_access,
lo_fb TYPE REF TO cl_crm_smf_fact_base,
lv_entity TYPE REF TO cl_crm_bol_entity,
lv_rel TYPE REF TO cl_crm_bol_entity,
lv_factbase TYPE string.
FIELD-SYMBOLS :
<lv_date> TYPE sydatum,
<lv_time> TYPE sytime.
CODE -
TRY.
CALL METHOD super->if_crm_smf_service~execute
EXPORTING
session = session
service_properties = service_properties.
CATCH cx_root.
ENDTRY.
lo_bdc = cl_crm_ui_data_context_srv=>get_instance( ).
get entity activities
lo_activity ?= lo_bdc->get_entity( 'CURRENTINBOXITEM' ).
prepare the nodes
lo_fb = session->get_factbase( ).
IF lo_activity IS BOUND.
TRY.
get only one order objects
lv_string = lo_activity->get_property_as_string( iv_attr_name = 'CRM_GUID' ).
lv_entity ?= lo_activity.
lv_rel = lv_entity->get_related_entity('BTOrderHeader').
CATCH cx_root.
ENDTRY.
IF lv_rel IS BOUND.
TRY.
CLEAR lv_string.
curr.inboxitem filled
lv_string = 'X'.
CALL METHOD me->set_fb_attr_by_id
EXPORTING
id = 'ZCURRENTINBOXITM'
value = lv_string.
process_type
CLEAR lv_string.
lv_string = lv_rel->get_property_as_string( iv_attr_name = 'PROCESS_TYPE' ).
create a child node and add the value
lo_node1->set_attribute( attrib_name = 'BT_PROCESS_TYPE'
attrib_value = lv_string ).
CALL METHOD me->set_fb_attr_by_id
EXPORTING
id = 'ZCII_PROC_TYPE'
value = lv_string.
CATCH cx_root.
ENDTRY.
ELSE.
CLEAR lv_string.
not filled
lv_string = space.
CALL METHOD me->set_fb_attr_by_id
EXPORTING
id = 'ZCURRENTINBOXITM'
value = lv_string.
ENDIF.
get next BTOrderHeader
lo_activity = bdc->activities->if_bol_bo_col~get_next( ).
ENDIF.
lv_factbase = lo_fb->get_factbase_as_string( ).
ENDMETHOD. -
How to change material component for a Purchase Order?
How to change material component for a Purchase Order?
I need FM .
PLEASE helpDear ,
Create PO with item category L....There in Item detail you will get tab for material.
There click in component Button, it will take you to the component screen there you can assign and deassign components.
Hope this helps.
Regards
Utsav -
Love the Pixi compared to the Pre for size and form factor, but I'd love to see it somewhere between the Treo Pro and its current form. You make it a little wider, move the ear speaker higher up and maximize the screen with less bezel. Add a clickable optical pad in the center so you can navigate through text and select text easier as well as add to the one handedness for simple navigation. I've used a samsung moment for awhile and love the 4 directional keys as a secondary form of nav. Throw in hard send/end buttons and you'd have a real winner.
I hate the Apple influence that has been brought to Palm when it comes to hardware design. I guess it's a pipe dream, but bringing back the removable storage would be huge as well. I can see the competition heating up as Android progresses and newer phone designs are brought out. It is tough to beat the candybar/thumb board combo for simple one handed operation though, and Palm could have a major winner and not just an "intro level" smartphone in the Pixi line. No reason for it to play second fiddle to the Pre. The Pixie isn't just for newbies.I have yet to visit a Sprint or Verizon store to check out the Pixi for myself, but your observations are thoughtful and well reasoned. You may have seen this suggested before, but it's not just baloney...the best way to get direct feedback to the business side of Palm (rather than just the Support side which includes these Forums), is to go to www.palm.com/feedback and lay it out there.
And thanks for your contributions to the Forums!
smkranz
I am a volunteer, and not an HP employee.
Palm OS ∙ webOS ∙ Android -
Problem in embedding a png file for a button's skin
I am trying to embed a png graphic as a skin for a button using actionscript class for a custom component. It has an error: "unable to resolve 'btn.png' for transcoding" - see method 1 code below. However, it works fine in method 2. Code are all shown belown. Can someone help regarding why this happens and how to make method 1 work?
Got error in method 1:
package net.abc.free
import mx.core.BitmapAsset;
public class myComp extends Canvas {
[Embed(source="assets/btn.png")]
[Bindable]
public var clasBtn:Class;
public function myComp() {
super();
Successful in method 2:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init()">
<mx:Script>
<![CDATA[
import mx.core.BitmapAsset;
[Embed(source="assets/btn.png")]
[Bindable]
public var clasBtn:Class;
]]>
</mx:Script>
<mx:Panel id="mainPanel" width="400" height="300" backgroundAlpha="0">
<mx:HBox width="100%" height="100%" horizontalAlign="center" horizontalGap="100">
<mx:Button id="myBtn" upSkin="{clasBtn}"/>
</mx:HBox>
</mx:Panel>
</mx:Application>If you don't put "/" in front of the path Flex will look for the file in the relative path of the file you refer it from.
Your first example will look for the png file in:
/net/abc/free/assets/ -- wrong path
Your second example will look for it in:
/assets/ -- since the application mxml file is at root level
but if you put /assets/ it will look for it in /assets/ no matter where the MXML/AS file is -
Why not autoskip for radio buttons? and the update_allowed FALSE issue
I would so dearly love there to be autoskip for radio buttons. (forms 11.1.1.4 jre 6...24) There is no autoskip property for the radio group nor for the individual buttons.
I don't find an easy way to emulate it either. Or am I missing something?
Anyone else solve this problem already? When the user selects a radio choice I want the focus to move
to the next enabled item on the form. You can do this with text items but not with radio groups. (In some cases the radio group has a when-radio-changed trigger
that enables/disables following items). This would all be a lot easier if radio groups just had autoskip. I wonder why they don't?
BTW the following has cost me a huge amount of time. In 6i it was the case in my experience that if you
disabled an item like this:
PROCEDURE disable_item (myitem in varchar2) IS
BEGIN
copy(null,myitem);
set_item_property(myitem,enabled,property_false);
set_item_property(myitem,visual_attribute,'DISABLED');
END;Then that could be reversed as so (the weird thing was you had to set navigable also despite not
having changed it yourself.
PROCEDURE enable_item (myitem in varchar2) IS
BEGIN
set_item_property(myitem,enabled,property_true);
set_item_property(myitem,navigable,property_true);
set_item_property(myitem,visual_attribute,'ENABLED');
END;But in 11.1.1.4 I had lots of trouble with Lov's not rising after the item had been disabled and then
re-enabled. No error message. Just didn't do it. Eventually I figured out that what happens is that
after disabling an item the item as also non-updateable. This was not the case in 6i. So then
the enable item code has to be something like this: [Note despite that not update_allowed it did not
automatically grey out the item firefox 3.6.17 and it still has to be done programmatically.]
PROCEDURE enable_item (myitem in varchar2) IS
BEGIN
set_item_property(myitem,enabled,property_true);
set_item_property(myitem,navigable,property_true);
set_item_property(myitem,visual_attribute,'ENABLED');
set_item_property(myitem,update_allowed,property_true);
END;Well right now 11.1.1.4 for autoskip for radio buttons this seems to be working ok. Crossing my fingers!
a block level when-radio-changed trigger with after scope (where item level when-radio-changed triggers
have before scope) with a simple next_item in there.
Where I was having problems before was next_item-ing onto disabled items. There was some kind of issue
with lov's. I'm having less trouble raising the lov programmatically. but also I had the problem that
items were getting set non-update_allowed without my realization.
when new item instance:
declare
currfield varchar2(70) := null;
begin
currfield := :system.trigger_field;
if (get_item_property(currfield,UPDATE_ALLOWED) = 'TRUE')
and (get_item_property(currfield,UPDATE_PERMISSION) = 'TRUE') then
list_values;
else
mess(currfield || ' UPDATE not allowed');
end if;
end;(mess is my program to display alerts.)
Maybe you are looking for
-
Hide Header Row in Query results.
Good afternoon Please assist. I have 7 queries in one sheet and would like to hide the header rows from the second to last query. I have hidden the row(s) and then selected "Adjust format after data refresh" in the query properties, but when a query
-
I want to sync my iPod to a new computer without losing app data. Is this possible?
My ipod says all data will be erased when I sync it to the new computer even though all of the music and apps have been transfered from the old computer. I want to keep the app data, but how do I do this? Is it even possible?
-
Passing Parameters between 2 Portlets on 1 Page
Hi, I'm new to this portlet stuff and I might miss something important, but: I "just" want to send parameters from one form on one Page to a portlet on the same page... PassAllParameters is already set to true... I also have read the "Primer" and the
-
hihi i been look for a way to link up WS with DB but i dont seem to find any good tut..... it would be nice if you could post link for some useful tut thx :)
-
What do Size=1 and BitSetCount=2 mean in the following script? MasterMemberSet ThisMember=Member(Id=1, Timestamp=2007-05-23 10:48:17.0, Address=192.168.0.204:8088, MachineId=26828) OldestMember=Member(Id=1, Timestamp=2007-05-23 10:48:17.0, Address=19