Change Button for Interface View is Inactive
Hi,
I have created a Web Dynpro ABAP component & application.
Now I want to add URL parameters to it.
I went to interface view, I can see "change" button in menu but its not clickable.
Any idea why this is happening?
Thanks and regards,
Amey
Hi Amey,
IF you dont have any interface attributes or methods, there is nothing you can change in Interface View.
For Adding Parameters, goto your Application to add application parameters in Parameters tab.
You can chooose from existing set of parameters or Create a new parameter such as TEST1 & any default value like 1 or A etc .
Now goto your Window method HANDLEDEFAULT & frmo here you can access what value you are getting from the URL Parameter TEST1 by using below code...
data lv_configid type string.
lv_configid = wdr_task=>client_window->get_parameter( TEST1' ).
now IF for your application say zph_test02, if you are running URL as http://xxxxxx.xx/sap/bc/webdynpro/sap/zph_test02?sap-language=EN&TEST1=2
The value lv_configid will have value 2 now when application is launched with that url & parameter TEST1=2.
Thanks,
Phani Mullapudi
Similar Messages
-
How to define exit plug for interface view?
hi experts,
I am trying to define exit plug for interface view , but i am not able to make interface view into change mode. it doesnt allow me. what should be done/
Thanks,
saurin shah.Hi ,
Check the Interface in the Window this will reflected in the Interface Window
Regards
Vikranth -
Change documents for Classification View
Hi,
Can anyone please tell me how to activate Change documents for the Classification view of material master. if we activate that one what will be consequences?
Thanks in adavanceCHANGING CLASSIFICATION VIEW FOR MATERIAL USING BAPI
->CREATE CHARACTERISTIC USING TCODE CT04
->CREATE CLASS USING TCODE CL01 .
-> RUN THIS PROGRAM TO CHANGE THE CLASSIFICATION VIEW
PARAMETERS: P_MATNR TYPE MARA-MATNR. "MATERIAL
DATA: OBJECTKEY TYPE BAPI1003_KEY-OBJECT,
OBJECTTABLE TYPE BAPI1003_KEY-OBJECTTABLE,
CLASSNUM TYPE BAPI1003_KEY-CLASSNUM,
CLASSTYPE TYPE BAPI1003_KEY-CLASSTYPE,
ALLOCVALUESNUMNEW TYPE TABLE OF BAPI1003_ALLOC_VALUES_NUM WITH HEADER LINE,
ALLOCVALUESCHARNEW TYPE TABLE OF BAPI1003_ALLOC_VALUES_CHAR WITH HEADER LINE,
ALLOCVALUESCURRNEW TYPE TABLE OF BAPI1003_ALLOC_VALUES_CURR WITH HEADER LINE,
RETURN TYPE TABLE OF BAPIRET2 WITH HEADER LINE.
OBJECTKEY = P_MATNR.
OBJECTTABLE = 'MARA'.
CLASSNUM = 'MTS_CABLE_BIN1'. "CLASS(CREATED USING CL01)
CLASSTYPE = '023'. "CLASS TYPE (023 FOR BATCH)
CALL FUNCTION 'BAPI_OBJCL_CHANGE'
EXPORTING
OBJECTKEY = OBJECTKEY
OBJECTTABLE = OBJECTTABLE
CLASSNUM = CLASSNUM
CLASSTYPE = CLASSTYPE
STATUS = '1'
STANDARDCLASS =
CHANGENUMBER =
KEYDATE = SY-DATUM
NO_DEFAULT_VALUES = ' '
IMPORTING
CLASSIF_STATUS =
TABLES
ALLOCVALUESNUMNEW = ALLOCVALUESNUMNEW
ALLOCVALUESCHARNEW = ALLOCVALUESCHARNEW
ALLOCVALUESCURRNEW = ALLOCVALUESCURRNEW
RETURN = RETURN
LOOP AT RETURN.
WRITE: / RETURN-TYPE ,RETURN-MESSAGE.
ENDLOOP.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT =
IMPORTING
RETURN =
BY VENKAT -
Is it possible to hide change button for PA30 via configuration?
Hi Ginasap,
If you understand enough create and change is almost the same at most case, so i dont see valid logic here. Suppose user A is only allowed to create record, so he create record (let say basicpay), from 01.01.2010 to 31.12.9999 and let say he can't change it, he always can create a new record with same date 01.01.2010 to 31.12.9999 which actually overwrite the record (TC1) exactly like change effect. i'm not sure if this fit you requirement but you can use asymmetrical approval, which mean when user "A" create a record, user "B" must unlock it. -
Dynamically change embedded interface view in window
I have a Maincomponent M which embedds in its Mainwindow an interface view V_L from a component definition interface cid L. CID L handles the layout with several views and has two at runtime chosen variants (= cid_L-implementating components ) L1 and L2.
now my wd-application starts e.g. with layout L1 and I want to switch at runtime via a button or an event to L2. how can I achieve this?
Because M embedds in its window V_L (which can be filled by L1 or L2) I tried to delete the component in the usage of L1 and create the new component for showing L2.
but this doesn´t work. should I change some navigation links dynamically? because I thought when I create component L2 the interfaceview V_L is filled and I it´s automatically shown in its higher-ranking Mainwindow from M which embedds V_L.Hi Thorsten.
Is your scenarion as follows.
You define an outbound plug in your main (e.g. 'OUT') at design time.
Then you start the application and you create a dynmic navigation using OUT
to L1 and embedd L1 in M this way.
Then you click a button and create again a dynamic navigation using OUT as outbound to L2 and embedd L2 in M?
If so you create 2 navigations which will be triggered when you fire OUT.
You can test this by setting the break point on the fire method. Somehow you will come to a point where you will see a table which stores the navigations and should contain 2.
I have a table with authorisation which contains all necessary data for the navigation to a corresponding component. I use the authoridation ID as name for the outbound which have to be created dynamically. And I use a Hashtable to store the value. This is of the type CL_C2S_SAPI_HASHTABLE. I create the object as attribute in view controller. Then each time a link is clicked I check whether the hashtable already contains a value for this authorisation. If not I call
prepare_dynamic_navigation and use the ID as outbound. Afterwards I store it in th hashtable.
lv_outplug = wd_this->outbound_plugs->getvalue( lv_auth ).
* the navigation to the specified auth is performed
* for the first time and have to be created.
if lv_outplug is initial.
lv_outplug = lv_auth.
try.
l_view_controller_api->PREPARE_DYNAMIC_NAVIGATION(
source_window_name = 'W_MAIN'
source_vusage_name = 'V_MAIN_USAGE_1'
source_plug_name = lv_outplug
target_component_name = lv_comp
target_component_usage = 'USED_COMPONENT'
target_view_name = 'W_MAIN'
target_plug_name = lv_plug
target_embedding_position = 'V_MAIN/UI_COMP_CONTAINER' ).
* save outbound_plug for later usage.
wd_this->outbound_plugs->setvalue(
exporting
name = lv_auth
value = lv_outplug
catch cx_wd_runtime_repository into lr_exception.
data s type string.
s = lr_exception->get_text( ).
raise exception type cx_wdr_rt_exception.
endtry.
endif.
l_view_controller_api->fire_plug(
exporting
plug_name = lv_outplug
Hope this helps.
Cheers,
Sascha -
All views other than the classic view are unnecessarily complicated, confusing and - to me - irritating. The view of each individual mail can of course be changed which is tiresome. Is there a way to have Thunderbird - who is otherwise a very good mailing software - in classic view for all my e-mails. By way of one general button that allows classic view throughout.
Thank you very much.
Jacquot Verborgheer... did you install the conversations add-on by any chance? Thunderbird has not changed the way it views mails ever I don't think, so I am looking for another cause in your case.
-
Is there a way to create a button for the tool bar that will View a page in "No Style'?
I guess what I'm asking is...Is there a way to make a customized button for the toolbar that will allow me to change the view on a webpage to 'No Style' as listed under the view menu. If so, How can I do this?
Try this add-on: <br />
https://addons.mozilla.org/en-US/firefox/addon/custom-buttons/ -
Dynamically Changing Labels for Multi Row Block Buttons
Forms [32 Bit] Version 9.0.4.1.0 (Production)
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
On my local: Windows 7 OS
I am having a difficult time in doing the following in forms, and not sure if it can be done?
I have a multi row block,based on DB table, which displays filename and another column from the table.
It also has a push button on each row, which opens and displays the physical file from its source, when clicked. The filename thus can have 3 diff statuses depending on its sources and accordingly corresponding button should display appropriate label:
a) View Image (its is in content server and successfully imaged. In this case I display the file in the browser, from the content server, when the button is clicked)
b) View File (Display the file from file system)
c) View Error (Display imaging error message from the table, as file failed to make it to the imaging server)
I have this logic currently coded in the post query trigger, at the block level, and tried using set_item_property(button_id, label, <button_lable>), where I programmatically set the button lable, based on the file status (imaged, not imaged or has error) in that row. This wroks well, only if all the files in the multi row block have the same status. If each of them have diff statuses, then only last processed files's status gets reflected into the button label. For eg: The file in the first row of the block is imaged, and one in the second row has an imaging error. The button label for the first row should say 'View Image' and button for the second row should say 'View Error'. But now buttons for both the rows display 'View Error', as thats what got processed last!
I __can not use set_item_instance property for 'label'__ (which lets us dynamically change the label on the push buttons).
Is there any way to do this for ORacle forms? I am now playing with having 3 diff button items in that block, laying them on top of each other and showing only those that are appropriate and hiding the others... But I am not sure it is going to give me what I need? I think I am going to end up facing the same issues as in above case!!
Any expert advice is highly appreciated.
Thanks in advance for your time:
Libran_Girl
Edited by: libran on Aug 30, 2011 8:04 AM
Edited by: libran on Aug 30, 2011 8:05 AM<p>I have just updated this existing PJC, that was originally constructed to handle Text Fields. You can, now, also handle buttons with it.
Set the Button's Implementation Class property to : oracle.forms.fd.MultiButton.
</p>
This is the code you have to put one triggers of your based block:
When-New-Record-Instance trigger: (based on the EMP table)
declare
LN$Pos pls_integer ;
LN$Rec pls_integer := Get_Block_Property('EMP', CURRENT_RECORD) ;
LN$Max pls_integer := Get_Block_Property('EMP', RECORDS_DISPLAYED) ;
LC$C Varchar2(15) ;
Begin
LN$Pos := LN$Rec - (trunc(LN$Rec/LN$Max) * LN$Max) ;
If LN$Pos = 0 Then LN$Pos := LN$Max ; End if ;
If LN$Pos > 0 Then
Set_Custom_Property('EMP.BT', LN$Pos, 'SET_LOG', 'true' );
-- Add the new item --
Set_Custom_Property('EMP.BT', LN$Pos, 'SET_NEW_REC', to_char(LN$Rec) );
-- Set some properties --
Set_Custom_Property('EMP.BT', LN$Pos, 'SET_LABEL', to_char(LN$Rec) || ',' || :EMP.ENAME );
If :EMP.JOB = 'MANAGER' Then
Set_Custom_Property('EMP.BT', LN$Pos, 'SET_FONT', to_char(LN$Rec) || ',Arial,bold,14' );
Set_Custom_Property('EMP.BT', LN$Pos, 'SET_FGCOLOR', to_char(LN$Rec) || ',0,0,255' );
End if ;
If :GLOBAL.I > 250 Then :GLOBAL.I := 5 ;
Else :GLOBAL.I := :GLOBAL.I + 5 ;
End if ;
LC$C := To_Char(LN$Rec) || ','
|| To_Char(255) || ','
|| To_Char(255-:GLOBAL.I) || ','
|| To_Char(255-:GLOBAL.I) ;
Set_Custom_Property('EMP.BT', LN$Pos, 'SET_BGCOLOR', LC$C );
Synchronize;
End if ;
end;When-Create-Record trigger:
declare
LN$N pls_integer ;
LN$Rec pls_integer := :system.cursor_record ;
LC$C Varchar2(15) ;
Begin
if get_block_property('EMP',TOP_RECORD) > 1 Then
LN$n := :system.cursor_record - get_block_property('EMP',TOP_RECORD) + 1 ;
else
LN$N := :system.cursor_record ;
end if;
If LN$N > 0 Then
Set_Custom_Property('EMP.BT', LN$n, 'SET_LOG', 'true' );
-- Add the new item --
Set_Custom_Property('EMP.BT', LN$n, 'SET_NEW_REC', to_char(LN$Rec) );
End if ;
end;Post-Query trigger:
declare
LN$Pos pls_integer ;
LN$Rec pls_integer := Get_Block_Property('EMP', CURRENT_RECORD) ;
LN$Max pls_integer := Get_Block_Property('EMP', RECORDS_DISPLAYED) ;
LC$C Varchar2(15) ;
Begin
LN$Pos := LN$Rec - (trunc(LN$Rec/LN$Max) * LN$Max) ;
If LN$Pos = 0 Then LN$Pos := LN$Max ; End if ;
If LN$Pos > 0 Then
Set_Custom_Property('EMP.BT', LN$Pos, 'SET_LOG', 'true' );
-- Add the new item --
Set_Custom_Property('EMP.BT', LN$Pos, 'SET_NEW_REC', to_char(LN$Rec) );
-- Set some properties --
Set_Custom_Property('EMP.BT', LN$Pos, 'SET_LABEL', to_char(LN$Rec) || ',' || :EMP.ENAME );
If :EMP.JOB = 'MANAGER' Then
Set_Custom_Property('EMP.BT', LN$Pos, 'SET_FONT', to_char(LN$Rec) || ',Arial,bold,14' );
Set_Custom_Property('EMP.BT', LN$Pos, 'SET_FGCOLOR', to_char(LN$Rec) || ',0,0,255' );
End if ;
If :GLOBAL.I > 250 Then :GLOBAL.I := 5 ;
Else :GLOBAL.I := :GLOBAL.I + 5 ;
End if ;
LC$C := To_Char(LN$Rec) || ','
|| To_Char(255) || ','
|| To_Char(255-:GLOBAL.I) || ','
|| To_Char(255-:GLOBAL.I) ;
Set_Custom_Property('EMP.BT', LN$Pos, 'SET_BGCOLOR', LC$C );
Synchronize;
End if ;
end;Don't forget to copy the multirecord.jar file in your /forms/java folder, then add it to the archive and archive_jini tags of your /forms/server/formsweb.cfg file.
Enjoy it,
Francois -
How can i create the blue "I"-Button for the Documentation in a view
How can i create the blue "I"-Button for the documentation in a view?
I want to prepare the button with user specified Information...
and where must be create the documentation?
thanks
Edited by: DDC-TD on Apr 24, 2008 10:22 PMyou have not mentioned where do u want the " I " information button ,
1. If u want for a report , u can get the information button on selection-screen only .
if u goto se38 on the mail screen u will find a radio button for documentaion ,
when u select it and click 'create' or 'change' , an editor will open and u can document anything there ....
2. Or specify where u want info button .
thanks ,
reward points if usefull. -
When I turn my Iphone for horizontal view it doesn't change, on any application???
You most likely have orientation lock on. Double tap the home button, swipe left to right, far left is the orientation lock, tap on/off.
-
Changing the default associated view for a related entity
A question from a peer:
Hey there
Do you know how in CRM 2015 to change the default associated view for a related entity?
Say you are in an Account and from the menu open the opportunities for that account.
That new pop up window states “Opportunity Associated View” I want to change that to “My Custom View”
I thought we covered this in class years back but cannot rememberThere are a few ways to get what you want, the easiest being
Create a document as you want it for a particular site, save it is junk.php or similar and create a new file by saving as this as the proper document name such as index.php
Use the Dreamweaver template system, i.e. create a template with a .dwt.php extension like template.dwt.php and use that to create new pages.
There are other ways like creating your own php template system. But you can put that in the too hard basket. -
BW error: "invalid call sequence for interface when recording changes"
I am getting the error "invalid call sequence for interface when recording changes" when I try to activate a datasource in BW. Any ideas on how to resolve this error?
Thanks.I already tried that. This is what's happening.. When I get this error, if I try again it will activate and gets collected into a transport. I moved this transport to our QA system. As soon as I try to execute an infopackage under this datasource in QA, I get the error datasource xxxxx must be activated. Before the excecution of the infopackage, the datasource is in "Active version executable". After I get the error message "datasource must be activated", the datasource in the QA system changes to "Active version not executable". I am not sure all these issues are related back to the "invalid call sequence" error I am getting when I try to activate the data source.
I also tried recollecting the transport from our Dev system to QA and it still gives the above errors.
Any help?
Thanks. -
How to handle the button "cancel" in a dialog box for displaying views?
Hello!
I ve a question about handling the cancel button in a dialog box for displaying views.
I ve already implemented the dialog box by using the following code:
METHOD eh_onnewqact.
DATA stitle TYPE string.
IF m_popup IS BOUND.
stitle = cl_bsp_runtime=>get_otr_text( alias = 'ZCC_ICRM/NEW_TASK' )."cl_wd_utilities=>get_otr_text_by_alias( 'ZCC_ICRM/NEW_TASK' ).
m_popup = comp_controller->window_manager->create_popup(
iv_interface_view_name = 'ZCC_POPUP_NEWBT/NewQActWindow'
iv_usage_name = 'CUNewQAct'
iv_title = stitle
CALL METHOD m_popup->set_on_close_event
EXPORTING
iv_view = me
iv_event_name = 'NEWQACT_POPUP_CLOSED'.
ENDIF.
m_popup->open( ).
ENDMETHOD.
My dialog box consists two buttons - cancel and create.
The cancel buttons should close the popup and the create button should create an entity of a specified object. but let us come to the cancel button. I did´nt find any information about implementing an cancel button. So, how should I implement it? I thougt
me->close( ). But that didnt works!
Could u give me further information about that, because my cancel event-handler is empty?
method EH_ONCANCEL_QACT.
endmethod.
After that I would know how my calling view could know that the user pushes the Create Button and how the data of 2 inputfields of the dialog box finds their way to the calling view in order to process this data there?
Thank you very much!Hi Michael,
thank you for your advice! This problem is solved...
...but I have another issue. Ive implemented 2 editable fields in my popup. The user should fill that fields with context and that context should be processed in the calling view of my popup.
My question is how to transfer these information from my popup to my calling view or method?
I tried the following...
lv_context_node ?= m_popup->get_context_node( 'QUICKACT' ).
IF lv_context_node IS NOT INITIAL.
lv_text = lv_context_node->get_date( attribute_path = '' ).
ENDIF.
But it doesnt work! The context node object is always empty/initial.
Thank you!
PS: Another possibility could be that the object / node of the calling view is transferred to the pop-up in order to process it there.
Edited by: Marcus Findeisen on Feb 22, 2011 12:13 PM -
I cannot find information to help me change the orientation of a video filmed in portrait format but it can only able to be played back lying on its side (landscape) instead of upright. All the rotation buttons for iPhoto are not 'engaged' when it is in video .
Thanks OT,
I tried the Export function but it would not allow me to choose the option of exporting to iMovie. I think you are right about needing Quicktime Pro. I opened iMovie and imported the clip from iPhoto and with some searching found the 'cropping, rotation' mechanism. So I now have a copy in the correct orientation. I plan to import/export it back to iPhoto because I want to have a copy on my iPhone to show people and I wanted to have it available as part of a slideshow I am making in iPhoto of my recent overseas trip. It is a pain that there is no simple orientating tool for the movie clips downloaded to iPhoto with the photos from the one camera. -
How to change color of a button for specific time interval in jsp
How to change color of a button for specific time interval in jsp.
Please help.
Thanks in advance.This was driving me crazy, too--and the previous answers did not seem to work. I eventually found that if I click one of the data symbols in the graph in exactly the right spot (see below), it selects only the data symbols and not the line. I can tell this because the little selection dots will be around each data symbol, but no selection dots will be on the line between the data symbols - like the graphic in Yvan's answer. Then and only then will the color symbol in the tool bar show the color of the data symbol, instead of the color of the line. I believe that you then have to first click on the color swatch in the toolbar and then select your color (or choose Show Colors and select from the color tool). Just clicking a color in the crayon box, for example, did not seem to work unless I first clicked on the color swatch in the toolbar, then clicked Show Colors on that dropdown, and +only then+ clicked the crayon or whatever.
_The right spot to click_ seems to be just above the exact center of the data symbol, at least for the diamond shape symbol that I prefer. Sometimes it takes several tries to hit the right spot. If I miss it, the whole line is selected, which is indicated by the little selection dots on the line, between the data symbols. When I click the right spot, those selection dots go away, leaving only the data symbols selected. Then I can change the color, as described above.
I hope this works for you too.
Maybe you are looking for
-
WRT1990AC shuts down 2.4GHz WLAN as soon as external drive is connected
I have a very weird problem with my newly bought WRT1900AC Everything works fine, but as soon as I connect my USB Drive to the router (be it on the USB1 or USB2 port), the 2.4GHz WLAN is no longer working. Curiously enough, the router still thinkgs,
-
Does anyone know how to set up print so that it comes out double sided with the macbook pro??
-
How to create hyperlinks in Acrobat 9 Pro?
Hi everyone, Is there a way to create hyperlinks from within Acrobat 9 Pro? If so, can you let me know how? I am having a hard time finding out how to do so. Thank you in advance for your help:) Christine
-
I have several songs on itunes that are MPEG Audio files however these files will not transfer to my ipod. Please can anyone advise how I can get them to sync.
-
Hi, Am looking for some help and advice please. All i want to do is to turn off the SMS & Email popup, not the icon notification, i've already disabled that, but the popup that says 'You have 1 new message' with 'Show' on the bottom left and 'Exit' o