Edit Selection Indicator For Template Buttons
Hello,
I have been searching for an answer to my question but have not been able to find an answer. Perhaps because I'm not searching for the proper terminology.
I applied the Apple template "Wedding Classical Index" to a menu, and am now trying to customize it in order to create a template for automated chapter index creation. I have been able to reposition everything so far except for the indicators that show which button is selected. I repositioned the button text... but now these indicators are not in the correct location. Is there a way to move them... or is there a way to turn them off and export the menu to photoshop and create my own overlay in photoshop for button selection indicators?
Thank You,
Matt
is there a way to turn them off and export the menu to photoshop and create my own overlay in photoshop for button selection indicators?
I think you could take a screenshot of the menu, then use that in Photoshop (after resizing to 720x480 if needed) and create an overlay, then select your new overlay in DVDSP. It might require some tweaking. You also may then have to create a new template.
Similar Messages
-
Making a Selected state for a button
Im being really stupid, im making a simple button (ive made
the up, over, down and hit states) but i want the button to remain
selected in the hit colour not just when it is pressed but when it
is selected. Is there a way of adding a selected state??
Thanks for any helpHi Adam
Please do not post multiple post on the same subject.
2 hours is barely any time to wait for reply, it might take
many more hours or days
before anyone find time to entertain your thread, so please
post and relax.
Regards
Urami
Happy New Year guys - all the best there is in the 2006 :)
<urami>
http://www.Flashfugitive.com
</urami>
<web junk free>
http://www.firefox.com
</web junk free> -
Selection values for radio button
Hi everybody,
I want to use radio button which display revenue in function of airline class ...
Then, for the different values, i want use:
Text: Economic --> Values= A,B,C,D
Text: Business --> Values=G,H,J
Text: Flex --> Values= others values than A,B,C,D,G,H,J
How i can proceed ?
Thanks for your help
Rodolphe.Hi,
I think you can approch the issue better.
Same text can't pass different values because this way you "lose data".
The user can't differentiate between Economic with value A or Economic with value B.
If you like Econimic to be "translated" to A and B and C and D, you have to do it on the element inwhich you are using the Economic's semantic using IF statements.
For example, you can have 9 graphs: 4 Economic (one for A, one for B etc.), 3 Business and 2 other.
You can have a visibility condition for the Economic graphs, such as @RadioButtons=="Ecomonic".
If you'd like to elaborate on your end goal, I'll be more than happy to help,
Regards,
Shay -
Selection indicator for costing line items in production order
Dear all,
Do anyone know how to change field "AFVGD-SELKZ" of operation inside producion order? Any user-exit or standard program?
As content of field "AFVGD-SELKZ" is carried from routing. But is it possible to change in production order level?
Please kindly adivce.
Cheers,
KarenKaren,
Let me give some more additional inputs, for an operation to become relevant for costing there are 2 options.
1. As Ramanujam suggested - Control Key.
2. In the Routing operation details you have a field to mark an <b>operation costing relevant this field takes priority over control key in defining the costing</b>. This field can be found in the operation details - General Data section of routing.
<b>Some tricks,</b>
What i mean here is a control key may not be relevant for costing, but still if this field is marked as costing relevant or percentage costs then this is the priority.
if this field is marked not relevant for costing and if the operation has a control key relevant for costing then in this case control key takes priority.
In short what i meant is that you need to consider both "Control key" as well as the operation costing relevancy defination field.
Hope this helps your understanding in resolving your problem....Reward your points if so,
Regards,
Prasobh -
Have 6 Buttons and would like to use a red tomato with a green stem to indicate that button is being rolled over and selected?
Short answer - No. Two long answers - yes and yes.
Highlights can be only single color (two bit indexed color) and your image is not.
However, you can have up to 3 highlights using different colors for each one. So edit your image so you overlay 3 different colors (in photoshop layers, =1, =2, and =3). I would probably try the bottom layer as the red ball; then the white reflection, and then the green on top. When the highlight is active, all 3 colors show.
The other method is to use autoactivate (on a button) to go to a different menu that changes the image in the background for that button. You create multiple menus, with an ordinary state for all buttons in all menus, except for the "highlight" different for the "selected" button. Mouseover won't autoactivate, so this doesn't work on a computer the way you'd like. -
How to programatically select text for editing in an af:inputText control?
Hello, I am new to jdeveloper 11.1.1.3.0 and have searched and searched for info. I must be using the wrong terms as I cannot find any info or example on how to programatically select text for editing in an inputText field.
My request is to change an existing app so when the user presses a button, control should go to the inputText control (this part works, see existing backing bean code from another developer below) but automatically select the text within for editing by the user (saving the user from having to select the text first before editing).
Backing bean code to set the focus to an inputText field:
* sets the cursor to the given component id
* @param componentId of item on page
public void setFocusOnUIComponent(String componentId) {
FacesContext facesContext = FacesContext.getCurrentInstance();
ExtendedRenderKitService service =
Service.getRenderKitService(facesContext, ExtendedRenderKitService.class);
UIComponent uiComponent = facesContext.getViewRoot().findComponent(componentId);
service.addScript(facesContext,
"Component = AdfPage.PAGE.findComponentByAbsoluteId('" + componentId + "'); Component.focus();");
} I hope this isn't a dumb question and would appreciate it if someone can steer me in the right direction.
Thank you for any info,
GaryHi,
not a dumb question at all. Before answering it, here some comments on the code you pasted in your question
1. UIComponent uiComponent = facesContext.getViewRoot().findComponent(componentId);
This code line is not used at all in your method. So it seems you can get rid of it
2. "Component = AdfPage.PAGE.findComponentByAbsoluteId('" + componentId + "'); Component.focus();");
I suggest to change it to
"var component = AdfPage.PAGE.findComponentByAbsoluteId('" + componentId + "'); component.focus();");
as it is better coding practice to have variable names starting with a lower case letter and being flagged with the "var" identifier
For pre-selecting text in an an input component, there is no API available in ADF Faces, which means you need to reach out to the rendered HTML ouput. To access the markup for the rendered component, you can try
var markup = AdfRichUIPeer.getDomContentElementForComponent(component)
If this markup returns the HTML input component then you can use JavaScript you find on the Internet to select the area of it. If it does not return the input component then you may have to use
document.getElementById(componentId+'::content')
Note however that working directly with generated HTML output bears the risk that your code breaks when - for whatever reason - the ADF Faces component rendering changes in the future
Frank
Frank -
Select all and dselect all can any body provide a code for these buttons
hi
i have taken 4 buttons for select all and dselect all and sort up and sort down can any body provide a code for these buttons.
thankshi,
Refer this link...
code for select_all and deselect_all in modulepool -
Code for execute button on selection screen to get result
hi experts,
I need a help for writing a code for execution button on selection screen.Like in normal report on abap editor
we insert selection criteria like number and we get the result according that particular number on next screen.
same thing i am trying here also. So i am writing a code on button that when i press the button it will go to the next
screen according to the selection criteria.
Plz help me helpful answers are appriatiated !!!
Thanks & regards
Vipul Guptahi,
In the OnAction write :
1. get the values entered in selection criteria using :
DATA lo_nd_cn_check TYPE REF TO if_wd_context_node.
DATA lo_el_cn_check TYPE REF TO if_wd_context_element.
DATA ls_cn_check TYPE wd_this->element_cn_check.
DATA lv_ca_check LIKE ls_cn_check-ca_check.
navigate from <CONTEXT> to <CN_CHECK> via lead selection
lo_nd_cn_check = wd_context->get_child_node( name = wd_this->wdctx_cn_check ).
get element via lead selection
lo_el_cn_check = lo_nd_cn_check->get_element( ).
get single attribute
lo_el_cn_check->get_attribute(
EXPORTING
name = `CA_CHECK`
IMPORTING
value = lv_ca_check ).
Now lv_ca_check has your value entered in Selection criteria.
2. write the select query to fetch data according to selection criteria.
select * from <table> into correponding field of table <internl table>
where Field = lv_ca_check.
3. Now in the internal table <internl table> you have values according to search criteria.
4. Bind the internal table with node which is binded to table to show data.
lo_nd->bind_table( internaltable ).
I hope it is clear . -
Field Selection Key In Release Indicator For PR
Hi,
Can you explain what is the use of Field Selection Key in Release indicator for PR on what basis to select this value.
regards,
zafarHi
Field selection key directs which values can be changed after the relevant release indicators have been set
Eg suppose you want to supress the field for PR after first release indicator has been set you have to assign the relevant field selection key to Release indicator
you can assign the same to the release indicators in
spro-mm-Purchasing -PR-Procedure with classification-set up Procedure with classification-release indicators
you can set the field selection key in
spro-mm-purchasing -PR- define screen layout at document level
Regards
Sandeep -
How to Set "Enter" keyword instead of mouse click for template based button
hi,
I have a page with textfield and submit button. but every time user has to use mouse to click on submit button .
how can i make the page work even if user just press "Enter" on keyboard.
it should work similar to login page where user can either use mouse or simply press "enter ". Any help on this please ?
Thanks,
SriHi ,
Thanks For the help.
Apart from Setting the Submit when Enter pressed setting of the text item to Yes. I had to separate the process.
It works only when I separated the After submit process
1- one After submit process for submit button
2 -Another After submit process when button pressed- No button condition
condition type = Curren page = page submitted(this page was posted).
Thanks,
Sri -
REUSE - how to hide row selection indicator
Hi,
I am using fm REUSE_ALV_GRID_DISPLAY , within i have an editable checkbox field.
But in the grid i need to hide the row selection indicator. (ie the square push button appers first column of the gird)
But if i am using REUSE_ALV_LIST_DISPLAY, the row indicator is not appearing?
Any suggestions?
Thanks
aRshi...
here sending u the report i m currently working ( used REUSE_ALV_LIST_DISPLAY and output dont hav the selection tab )
Plz check the FM for merge ALV.
plz send me urs code, so if possible i ll try to fix it.
thank-you
REPORT zrwty_wty_errors .
TYPE
TYPE-POOLS: slis, icon.
Tables
Tables : pnwtyh,
balhdr.
Data Decleration
DATA: text(1000), lv_clmno(40).
Internal table for messages ( Datewise )
DATA: BEGIN OF it_balhdr OCCURS 0,
lognumber TYPE balhdr-lognumber,
log_handle TYPE balhdr-log_handle,
END OF it_balhdr.
Internal table for PNWTYH
DATA: BEGIN OF it_pnwtyh OCCURS 0,
clmno TYPE pnwtyh-clmno,
log_message TYPE pnwtyh-log_message,
END OF it_pnwtyh.
Internal table to fetch the actual text messages
DATA: it_message LIKE balm OCCURS 0 WITH HEADER LINE.
Internal Table to handle the ALV o/p
DATA: BEGIN OF it_grid OCCURS 0,
clmno TYPE pnwtyh-clmno,
chgdat TYPE dats,
icon TYPE icon-id," BALIMSGTY
text(1000),
END OF it_grid.
Field Catelog and layout Decleration
*DATA: it_fieldcat TYPE lvc_t_fcat,
wa_fieldcat TYPE lvc_s_fcat OCCURS 0 WITH HEADER LINE,
x_fieldcat TYPE lvc_s_fcat OCCURS 0 WITH HEADER LINE.
*DATA: x_layout TYPE lvc_s_layo.
DATA: it_fieldcat TYPE slis_t_fieldcat_alv," type slis_fieldcat_alv
wa_fieldcat TYPE slis_fieldcat_alv OCCURS 0 WITH HEADER LINE,
x_layout TYPE slis_layout_alv.
DATA: lv_repid LIKE sy-repid.
have hotspot for a PO.
DATA: s_fieldcat LIKE LINE OF it_fieldcat.
s_fieldcat-hotspot = 'X'.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-002.
SELECT-OPTIONS:
s_aldate FOR balhdr-aldate.
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-001.
PARAMETERS : r1 RADIOBUTTON GROUP rg DEFAULT 'X'.
PARAMETERS : r2 RADIOBUTTON GROUP rg .
SELECTION-SCREEN END OF BLOCK b2.
if s_aldate-high = '00000000'.
s_aldate-high = s_aldate-low.
endif.
FM to fetcht he messg no. based on date
CALL FUNCTION 'APPL_LOG_READ_DB'
EXPORTING
object = 'WTY'
subobject = 'CLAIMMSG'
EXTERNAL_NUMBER = ' '
date_from = s_aldate-low
date_to = s_aldate-high
TIME_FROM = '000000'
TIME_TO = '240000'
log_class = '1'
PROGRAM_NAME = '*'
TRANSACTION_CODE = '*'
USER_ID = ' '
MODE = '+'
PUT_INTO_MEMORY = ' '
IMPORTING
NUMBER_OF_LOGS =
TABLES
HEADER_DATA =
HEADER_PARAMETERS =
messages = it_message
MESSAGE_PARAMETERS =
CONTEXTS =
data: zlines type i.
describe table it_message lines zlines.
if it_message[] is initial.
message S398(00) with 'No data found.'.
exit.
endif.
IF radio button ERROR only is selected, Delete others
IF r2 = 'X' .
DELETE it_message WHERE msgty <> 'E'.
ENDIF.
fetch log_handle from BALHDR
SELECT lognumber log_handle FROM balhdr INTO TABLE it_balhdr FOR ALL
ENTRIES IN
it_message WHERE lognumber = it_message-lognumber.
Based on log _handle fetch claim no from PNWTYH
SELECT DISTINCT clmno log_message FROM pnwtyh INTO TABLE it_pnwtyh FOR
ALL ENTRIES IN it_balhdr WHERE log_message = it_balhdr-log_handle.
LOOP AT it_message.
*select single clmno into lv_clmno from pnwtyh as a inner join BALHDR
*as
b on
*aLOG_MESSAGE = bLOG_HANDLE where b~LOGNUMBER = it_message-LOGNUMBER.
READ TABLE it_balhdr WITH KEY lognumber = it_message-lognumber.
IF sy-subrc = 0.
READ TABLE it_pnwtyh WITH KEY log_message = it_balhdr-log_handle.
IF sy-subrc = 0.
lv_clmno = it_pnwtyh-clmno.
ENDIF.
FM to fetch the actual text message
CALL FUNCTION 'FORMAT_MESSAGE'
EXPORTING
id = it_message-msgid
lang = 'EN'
no = it_message-msgno
v1 = it_message-msgv1
v2 = it_message-msgv2
v3 = it_message-msgv3
v4 = it_message-msgv4
IMPORTING
msg = text
EXCEPTIONS
not_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
*data: message like BAPIRET2-MESSAGE.
*data: it_text like BAPITGB occurs 0.
*CALL FUNCTION 'BAPI_MESSAGE_GETDETAIL'
EXPORTING
id = it_message-msgid
number = it_message-msgno
LANGUAGE = SY-LANGU
textformat = 'RTF'
LINKPATTERN =
MESSAGE_V1 =
MESSAGE_V2 =
MESSAGE_V3 =
MESSAGE_V4 = -
IMPORTING
MESSAGE = message
RETURN =
TABLES
TEXT = it_text
it_grid-clmno = lv_clmno.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
input = it_grid-clmno
IMPORTING
output = it_grid-clmno.
Local Variable to handle Date Data
DATA: l_tmstp(30) TYPE c,
l_date TYPE sydatum.
WRITE it_message-time_stmp TO l_tmstp LEFT-JUSTIFIED DECIMALS 0
NO-GROUPING.
l_date = l_tmstp(8).
it_grid-chgdat = l_date.
it_grid-text = text.
IF it_message-msgty = 'E'.
it_grid-icon = '@0A@'.
ELSEIF it_message-msgty <> 'E' AND it_message-msgty <> 'S'.
it_grid-icon = '@09@'.
ENDIF.
APPEND it_grid.
CLEAR it_grid.
CLEAR: lv_clmno, it_message, text.
ENDIF.
ENDLOOP.
PERFORM display_alv.
*& Form display_alv
text
--> p1 text
<-- p2 text
FORM display_alv .
PERFORM build_field_catalog.
PERFORM build_layout.
Assign program name to variable
lv_repid = sy-repid.
Call the ALV Grid FM for Display
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'
EXPORTING
i_callback_program = lv_repid
i_grid_title = 'Wty Errors'
is_layout_lvc = x_layout
it_fieldcat_lvc = it_fieldcat
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
TABLES
t_outtab = it_grid[]
EXCEPTIONS
program_error = 1
OTHERS = 2 .
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER =
I_BUFFER_ACTIVE = ' '
i_callback_program = lv_repid
I_GRID_TITLE = 'Display Messages'
I_CALLBACK_PF_STATUS_SET = ' '
i_callback_user_command = 'USER_COMMAND'
I_STRUCTURE_NAME =
is_layout = x_layout
it_fieldcat = it_fieldcat
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = ' '
IS_VARIANT =
IT_EVENTS =
IT_EVENT_EXIT =
IS_PRINT =
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
t_outtab = it_grid[]
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " display_alv
*& Form build_field_catalog
text
--> p1 text
<-- p2 text
FORM build_field_catalog .
wa_fieldcat-col_pos = 1.
wa_fieldcat-fieldname = 'ICON'.
wa_fieldcat-seltext_l = 'Mssg Type'.
wa_fieldcat-icon = 'X'.
wa_fieldcat-outputlen = 8.
wa_fieldcat-tabname = 'IT_GRID'.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-col_pos = 2.
wa_fieldcat-fieldname = 'CHGDAT'.
wa_fieldcat-seltext_l = 'Chg Date'.
wa_fieldcat-outputlen = 10.
wa_fieldcat-tabname = 'IT_GRID'.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-col_pos = 3.
wa_fieldcat-fieldname = 'CLMNO'.
wa_fieldcat-seltext_l = 'Claim No'.
wa_fieldcat-outputlen = 12.
wa_fieldcat-tabname = 'IT_GRID'.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-col_pos = 4.
wa_fieldcat-fieldname = 'TEXT'.
wa_fieldcat-seltext_l = 'Message Text'.
wa_fieldcat-outputlen = 100.
wa_fieldcat-tabname = 'IT_GRID'.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
MODIFY it_fieldcat FROM s_fieldcat TRANSPORTING hotspot
WHERE fieldname = 'CLMNO'.
*CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
EXPORTING
i_structure_name = 'ZWTY_ERR'
i_bypassing_buffer = 'X'
CHANGING
ct_fieldcat = it_fieldcat[]
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
I_PROGRAM_NAME =
I_INTERNAL_TABNAME =
I_STRUCTURE_NAME = 'ZWTY_ERR'
I_CLIENT_NEVER_DISPLAY = 'X'
I_INCLNAME =
I_BYPASSING_BUFFER =
I_BUFFER_ACTIVE =
CHANGING
ct_fieldcat = it_fieldcat[]
EXCEPTIONS
INCONSISTENT_INTERFACE = 1
PROGRAM_ERROR = 2
OTHERS = 3
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
wa_fieldcat-col_pos = 1.
wa_fieldcat-fieldname = 'ICON'.
wa_fieldcat-seltext_l = 'Mssg Type'.
wa_fieldcat-seltext = 'Mssg Type'.
wa_fieldcat-icon = 'X'.
wa_fieldcat-SCRTEXT_L = 'Mssg Type'.
wa_fieldcat-outputlen = 8.
wa_fieldcat-tabname = 'IT_GRID'.
APPEND wa_fieldcat TO it_fieldcat.
MODIFY it_fieldcat FROM wa_fieldcat TRANSPORTING seltext_l WHERE
fieldname = 'ICON' .
CLEAR wa_fieldcat.
MODIFY it_fieldcat FROM wa_fieldcat TRANSPORTING seltext icon
*SCRTEXT_L
*WHERE
fieldname = 'ICON' .
CLEAR wa_fieldcat.
wa_fieldcat-col_pos = 2.
wa_fieldcat-fieldname = 'CHGDAT'.
wa_fieldcat-seltext_l = 'Chg Date'.
wa_fieldcat-seltext = 'Chg Date'.
wa_fieldcat-SCRTEXT_L = 'Chg Date'.
wa_fieldcat-outputlen = 10.
wa_fieldcat-tabname = 'IT_GRID'.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
MODIFY it_fieldcat FROM wa_fieldcat TRANSPORTING seltext_l WHERE
fieldname = 'CHGDAT' .
CLEAR wa_fieldcat.
MODIFY it_fieldcat FROM wa_fieldcat TRANSPORTING seltext SCRTEXT_L
*WHERE
fieldname = 'CHGDAT' .
CLEAR wa_fieldcat.
wa_fieldcat-col_pos = 3.
wa_fieldcat-fieldname = 'CLMNO'.
wa_fieldcat-seltext_l = 'Claim No'.
wa_fieldcat-outputlen = 12.
wa_fieldcat-tabname = 'IT_GRID'.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-col_pos = 4.
wa_fieldcat-fieldname = 'TEXT'.
wa_fieldcat-seltext_l = 'Message Text'.
wa_fieldcat-seltext = 'Message Text'.
wa_fieldcat-SCRTEXT_L = 'Chg Date'.
wa_fieldcat-outputlen = 100.
wa_fieldcat-tabname = 'IT_GRID'.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
MODIFY it_fieldcat FROM wa_fieldcat TRANSPORTING seltext_l WHERE
fieldname = 'TEXT'.
CLEAR wa_fieldcat.
*MODIFY it_fieldcat FROM wa_fieldcat TRANSPORTING seltext SCRTEXT_L
*WHERE
fieldname = 'TEXT'.
CLEAR wa_fieldcat.
LOOP AT it_fieldcat.
IF it_fieldcat-fieldname = 'CLMTY'.
it_fieldcat-seltext_l = 'ICON'.
it_fieldcat-icon = 'X'.
MODIFY it_fieldcat.
ENDIF.
ENDLOOP.
*Adding the Text to be displayed
x_fieldcat-reptext = 'Claim No.'.
MODIFY it_fieldcat FROM x_fieldcat TRANSPORTING reptext WHERE
fieldname = 'CLMNO' .
CLEAR x_fieldcat.
x_fieldcat-reptext = 'MSG TYPE'.
x_fieldcat-icon = 'X'.
MODIFY it_fieldcat FROM x_fieldcat TRANSPORTING reptext icon WHERE
fieldname = 'CLMTY' .
CLEAR x_fieldcat.
x_fieldcat-reptext = 'Text'.
MODIFY it_fieldcat FROM x_fieldcat TRANSPORTING reptext WHERE
fieldname = 'TEXT' .
CLEAR x_fieldcat.
MODIFY it_fieldcat FROM s_fieldcat TRANSPORTING hotspot
WHERE fieldname = 'CLMNO'.
ENDFORM. " build_field_catalog
*& Form Build_layout
text
--> p1 text
<-- p2 text
FORM build_layout .
CLEAR x_layout.
x_layout-colwidth_optimize = 'X'.
x_layout-zebra = 'X'.
ENDFORM. " Build_layout
FORM display_detail *
--> UCOMM *
--> SELFIELD *
FORM user_command USING ucomm LIKE sy-ucomm
selfield TYPE slis_selfield.
IF ucomm = '&IC1'.
READ TABLE it_grid INDEX selfield-tabindex.
*IF sy-subrc = 0.
*SET PARAMETER ID 'CLMNO' FIELD it_grid-clmno.
*CALL TRANSACTION 'ZWTY' AND SKIP FIRST SCREEN.
*ENDIF.
IF sy-subrc EQ 0.
SET PARAMETER ID 'CLMNO' FIELD it_grid-clmno.
CALL TRANSACTION 'WTY' AND SKIP FIRST SCREEN.
ENDIF.
IF sy-subrc EQ 0.
CALL 'WTY' FOR SELECTED CLAIM
CALL FUNCTION 'ZWTY_CLAIM_DISPLAY'
EXPORTING
i_clmno = it_grid-clmno
iv_from_doc = 'J'
EXCEPTIONS
not_found = 1
authority_failed = 2
no_claimtype = 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.
ENDIF.
ENDIF.
ENDFORM. "user_command
regards
vinsee -
Hi,
it is possible to define style for the button on the form?
Portal version: 3.0.6.6.5leinadjan wrote:
Hello everybody,
(I'm using APEX 3.2)
I get a really annoying problem. I'm using report region to show the selected options in one of my application. When I'm creating or editing that content, I do it in a specialised page. To edit my content, I'm using a standard edit button link in my first column. But the button column is ALWAYS taking too much space in my report, it shouldn't be longer then 30 pixels wide. I 'm trying to use the attribute fields or table attribute fields with style="width:30px;" but it never works. I'm having a hard time following this (and I don't currently have access to 3.2). Although its a different version, suggest you create a similar example on apex.oracle.com to give a clearer idea of the situation.
The only way I found to do that was by creating a new template and write my new style in the header option. But I was told that I can't edit those tamplate. What template? Who told you this?
I'm thinking that some substitution strings are missing and that is why it changes nothing.What substitution strings?
It always helps if you provide precise details of:
<li>Full APEX version
<li>Full DB/version/edition/host OS
<li>Web server architecture (EPG, OHS or APEX listener/host OS)
<li>Browser(s) and version(s) used
<li>Theme
<li>Template(s)
<li>Region/item type(s) -
Error while selecting entity for composantEO
Hi,
Briefly, I do an example of displaying a list of components (and already it works properly), but when I added a link to the removal of components I have encountered an error
Voila details
function code delete
public void deleteComposantMethod(String action,String param)
System.out.println("Now we are inside deleteComposantMethod");
System.out.println("we search composant with numcomp : "+param);
ComposantVOImpl inst=getComposantVO1();
Row row[]=inst.getAllRowsInRange();
for(int i=0;i<row.length;i++)
ComposantVORowImpl rowi=(ComposantVORowImpl)row;
System.out.println("checking the composant ===> "+rowi.getNumcomp());
if(param.equals(rowi.getNumcomp().toString()))
try{
rowi.remove();
getOADBTransaction().commit();
System.out.println("Deleting succes");
catch(Exception ex)
System.out.println("error : \n"+ex.getMessage());
return;
in the browser page component disapru it seems that it works correctly, but nothing changes at data base and voila the error message I get from embedder OC4J server log
Application: FND, Message Name: FND_GENERIC_MESSAGE. Tokens: MESSAGE = oracle.jbo.DMLException: JBO-26080: Error while selecting entity for ComposantEO
thanks
Please note: although no board code and smiley buttons are shown, they are still usable.
thanksHi,
for those who have encountered the same problem as me, you should check that the table name sql query is of the form Name_Schema.Name_Table.
For this right click on the entity in the workspace> edit entity> Database Objects> Schema Objects and add the schema name before table name( Name_Schema.Name_Table).
thanks, -
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 add a new button in IC tool bar and handle the event for the button?
Hi,
I am working on CRM 2007 Interaction center. To add a new button to IC toolbar, customizing is available to define a new button and then assign in to the profile.
In SPRO->CRM->IC webclient->Customer Specifc System Modifications->Define Toolbar Buttons, I defined one new button with ID ZSTART.
Now in SPRO->CRM->IC webclient->Basic Functions->Communication Channels->Define Toolbar Profiles , I selected Default profileid and in Generic Layout Buttons Tab, I added the new button ZSTART in Position 3.
So after completing the customizing when the user logs in using role IC_AGENT, the button (with ID:ZSTART) gets displayed in the IC toolbar too.
Now on click of this button, I need to create an object.
To do so, I have to catch the event which is raised by this new button.
Please let me how to implement the event handler for this new button. What will be the event name for this button click event and how I can subscribe for it ?
Please let me know if anyone of you have already worked on similar requirements.
Regards,
Manas.
Edited by: manas sahoo on Jul 22, 2008 7:49 PMHello Manas,
There are a couple of threads in the community that might help you out (if you haven't already found them):
Re: IC Web Client Toolbar
/message/3621917#3621917 [original link is broken]
Regards,
Renee Wilhelm
Edited by: Renee Wilhelm on Nov 6, 2008 7:46 PM
Maybe you are looking for
-
Hi all, I need to build EDI based interface for which the Seeburger adapter is needed. I never worked with this kind of adapter and I dont know well how to start! I did some searches in SDN and saw the Xi Seeburger page (http://seeburger.com/xi). C
-
Creating Invoices on Specific Dates
Hello Gurus, you can process invoices periodically. All deliveries due for billing on a certain date can be combined into one collective invoice. To do this, you must first: Ÿ maintain individual billing dates in the factory
-
Jrew error when install 8i client in chinese win98
I got the following error when installing the 817 client to chinese win98. JREW caused an invalid page fault in module JAVAI.DLL at 0167:6ee3803a. Registers: EAX=00000060 CS=0167 EIP=6ee3803a EFLGS=00000206 EBX=c0000005 SS=016f ESP=0063ebf0 EBP=0063f
-
I have couple of jsf pages in adfc-config. Also, I have a bounded task flow. I want to invoke this bounded tf after users entered data in those unbounded tf pages. Thank you.
-
Sharing Music to iOS device via iCould (Country Issue?)
Does anyone know in what countries the music "sharing" works via iCould? I live in Sweden and just tried to buy a song on iTunes to get it to my iPhone 4 with iOS 5.0.1.. But i does not work. I dont' even get the Automatic Update (or what it's called