How to hide a button...
hi,
i am using follwing code for creating a button in a jsp page
<html:submit property="action"><bean:message key = "cra.save"/></html:submit> ...Now i have two button & i want to disable /hide another button
untill the first button is clicked. when the first button is clicked i want afterthat second button should enable.
i dont able to understand how to do that in jdeveloper..can anyone please suggest me anything...its very much urgent..
Have a boolean flag in the bean.. and refer it in the disabled section of the commandButton2
<af:commandButton id="cb1" partialSubmit="true" actionListener="#{Bean.action}">
<af:commandButton id="cb2" disabled="#{Bean.value}" >
in the bean have the code as
private boolean value; //have getter and setter
public void action(ActionEvent actionEvent){
setValue(false); // call setter of value. and set false
Similar Messages
-
How to hide "Resfresh" button in top yellow bar of guided procedures?
Hi Folks
I would like to remove the "Refresh" button in the top yellow bar of an guided procedures workitem. You get to this yellow bar when you click on an uwl workitem which is associated with guided procedures view. Does anybody know how to hide this button?
Thanks a lot for helping!!
Kind regards
BettinaDear Bettina,
this will be a feature of NetWeaver CE 7.2.
Until then it simply is not possible.
There is one workaround, you can use the SingleTask view of a Process Instance, which however will show ONLY the action itself, without the Process Title, or the Ctx Panel or the Phase Navigator.
If this works for you, I can guide you how to achieve it.
Regards,
George. -
How to Hide advance button in input list of values Popup
I am using input List Of Values component to select value from search Pop up, in that popup i need only basic search only , i am unable to hide advance button... plase tell me how to hide this advance option
I haven't tried this, but check
How to remove basic/advanced button in inputListOfValues search dialog
This does not have complete solution, but might give you some lead. -
How to hide exit button on overview view of adress iview.
Hello Gurus,
Can anybody suggest me how to hide the exit button on overview page of address iview?
Thanks,
ShaHi
1) If you want the exit button to be hided u can use the following code in doModify as we know this doModify will be called each time the action is performed so when we use this code exit button will be hided all the time.
Button btn_ui= (button) view.getElement("Button_ID");
btn_ui.setVisible(WDVisibility.NONE);
2) if you want to hide only on specific time then better to use the value attribute of type com.sap.ide.webdynpro.uielementdefinitions.Visibility then bind this to exit button's property--> visibility and in your code wherever required set the visibility.
Ex: value attribute name : va_Exit_Visible
type : com.sap.ide.webdynpro.uielementdefinitions.Visibility
wdContext.currentContextElement().setVa_Exit_Visible(WDVisibility.NONE);
Regards
Prasad. -
How to hide default buttons on WD selection screen
Hi Experts,
Is there a way to hide default buttons ( Cancel, Check, Reset, Copy ) on web dynpro selection screen ??
Please let me know how can I achieve this..
Thanks in advance !
AnandBy selection screen do you mean the select-options reusable component? If so, then there is an API of the component that you can call to disable these fields. Use the SET_GLOBAL_OPTIONS method of the select-options API to acomplish this:
data: l_ref_cmp_usage type ref to if_wd_component_usage.
l_ref_cmp_usage = wd_this->wd_cpuse_select_options( ).
if l_ref_cmp_usage->has_active_component( ) is initial.
l_ref_cmp_usage->create_component( ).
endif.
wd_this->lv_wd_select_options =
wd_this->wd_cpifc_select_options( ).
* init the select screen
wd_this->lv_sel_handler =
wd_this->lv_wd_select_options->init_selection_screen( ).
wd_this->lv_sel_handler->set_global_options(
EXPORTING
* i_display_btn_cancel = ABAP_TRUE " Displays "Cancel" Button
* i_display_btn_check = ABAP_TRUE " Displays "Check" Button
* i_display_btn_reset = ABAP_TRUE " Displays "Reset" Button
i_display_btn_execute = abap_false " Displays "Apply" Button -
How to hide gui buttons in selection screen
In Selection screen how to hide buttons like back, exit,cancel buttons.
can any one help.Hi,
Create a new GUI Status for your program.. put whatever button you require for it..
In the AT SELECTION-SCREEN OUTPUT event..
SET pf-status xxx.
Regards,
Anand -
How to hide reset button in af-query panel in ADF
Hello All,
i am using Jdeveloper version- 11.1.2.0.38.60.17 ,i am facing problem with hiding reset button in "af-Query panel".
kindly suggest me how to hide it. it's urgent.
Thanks & Regards
AbhijeetPS
Edited by: 967068 on Oct 23, 2012 12:39 PMHello All
I have solved this problem.
Go to Query panel properties inspector and set Display mode = simple
and drag an af- command button outside of the query panel.
<af:commandButton text="Search" id="cb6" actionListener="#{bindings.Execute.execute}"/>
Thanks
AbhijeetPS
Edited by: AbhijeetPS on Oct 23, 2012 6:38 PM -
How to hide refresh button in crviewer?
Hi,
I want to hide refresh button when view the crystal report in webi, but don't know how to do that
Pls give me some advice,thanks~Hi Julian,
I tried, but the fresh button is still there. Just when click this button,it says you have no right to refresh the report.
i guess if we want to hide the refresh button,we may edit the viewer.js in Crystal reports web application folder,but not sure and don't know how to do that, pls help me~ -
How to hide 'Search' button from Search GUIBB?
Hi All,
I know we can configure search GUIBB to hide 'Search' button and 'Clear' button. But I have to dynamically control this property. Is there any solution to implement it?
Thanks,As always, you are such a reliable source of help! :-)
That robots.txt you mentioned...do what with that? I mean, how does that tell it "dont index the images"? For that matter, there are tons of pages on the server I don't want being indexed yet either because they are half baked for later development.
Thanks!
Create the file, and upload it to the root directory. It's as simple as that. But you'll have to read the details on the google hits to see the exact syntax of the exclusions.
Now - here's why this is happening....
Somewhere, google has found a link to this URL -
http://bluehippotravel.com/photos/destinations/TH/
The bluehippotravel host has NOT disabled directory browsing. When you browse to that URL, instead of getting a FORBIDDEN message like you should, you get a page listing the contents of that directory. Google is indexing that page. Ask your host to turn off directory browsing for that folder. -
How to hide 'layout button' on ALV toolbar
Hi,
I have an ALV and it has standard toolbar, now i want to hide 'Layout button' from the toolbar based on specific condition e.g when flag = 1.
How to do that.
Thanks,If you are using the REUSE function, you can use the "EXCLUDING" parameter, and pass the FCODE for "Change Layout" to this table. This will remove the icon from the toolbar. Here is an example.
REPORT rich_0001 .
* Global ALV Data Declarations
TYPE-POOLS: slis.
* Internal Tables
DATA: BEGIN OF ialv OCCURS 0,
test1(10) TYPE c,
test2(10) TYPE c,
END OF ialv.
DATA: xfc TYPE slis_fieldcat_alv.
DATA: ifc TYPE slis_t_fieldcat_alv.
DATA: iexcluding TYPE slis_t_extab.
DATA: xexcluding LIKE LINE OF iexcluding.
PARAMETERS: p_hide TYPE c DEFAULT 'X'.
START-OF-SELECTION.
REFRESH iexcluding.
* If the user wants to hide the change layout icon, then add to IEXCUDING
IF p_hide = 'X'.
xexcluding-fcode = '&OL0'.
APPEND xexcluding TO iexcluding.
ENDIF.
REFRESH ifc.
xfc-reptext_ddic = 'Test1'.
xfc-fieldname = 'TEST1'.
xfc-outputlen = '10'.
APPEND xfc TO ifc.
xfc-reptext_ddic = 'Test2'.
xfc-fieldname = 'TEST2'.
xfc-outputlen = '10'.
APPEND xfc TO ifc.
* Call ABAP List Viewer (ALV)
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
it_excluding = iexcluding
it_fieldcat = ifc
TABLES
t_outtab = ialv.
Regards,
Rich Heilman -
How to hide 'SAVE' button in adobe form layout
Hi Friends,
I have a requirement to hide 'SAVE' button in adobe form layout .They dont want to save the form .
Is there any way to achieve this .I have gone through scn ,but couldnt find the proper solution
Thanks and Regards,
Subeesh KannottilHi Subeesh,
Are you talking about restricting the User from Saving the Adobe Form Output.
Regards,
Sivanand Ala -
How can hide the buttons based on condition
Dear all
I have to hide the button based on condition
When I open the third page directly I want to hide that button
When I open the third page via first and second page I need to visible that button
I pass spell parameter from first to second and second to third
In third page I get the value using pagecontext
I write the code in third page co
If I go directly third page it is null
If I go to third page via first the value is Y
If(“Y”.equals(pmode))
OASubmitButtonBean btn =( OASubmitButtonBean )webBean.findChildRecursive(“<id>”);
If(!btn=null)
btn.setrendered(true);
else
btn.setrendered(false);
but the button is not hiding
Regards
SreekanthHi Srikanth,
I have modified ur method:
OASubmitButtonBean btn =( OASubmitButtonBean )webBean.findChildRecursive(“<id>”);
If(btn !=null)
If(“Y”.equals(pmode))
btn.setrendered(true);
else
btn.setrendered(false);
Thanks,
'Kumar
Edited by: Kumar Kovela on Aug 3, 2009 5:53 AM -
How to hide sort buttons in BEx Web?
Hi,
I've got an input-ready query with hierarchy on lead column and key figures on data columns. I'd like to hide sort buttons in column headers to decrease the space required and make the screen simpler. Any possibilities to get rid of these, in this case useless, arrows?
Thanks!
AkiHi,
Create a new GUI Status for your program.. put whatever button you require for it..
In the AT SELECTION-SCREEN OUTPUT event..
SET pf-status xxx.
Regards,
Anand -
How to hide the buttons based on some conditions
Dear all
Good morning
i have three pages
when ever user directly go to third page i want to hide the button "backtofirstpage"//button name
when user go to third page via first page i mean first page i want to visible the button "backtofirstpage"/button name
what is the procedure
at least hiding is not posible at least disable/enable
Regards
SreekanthHi,
In the if condtion read the value of parameter [[You need to send it from first page]] and get it in process Request Method of controller of third Page and based upon it set the render property of that button & in the else condition set the render property to false.
You need to create a PVO & also create a Boolean attribute.
Set the render property in Property window like ${oa.xxPVO1.setRender} -- ${oa.viewInstanceName.viewAttributeName}.
Read more in dev guide & search through the forums.
Thanks
--Anil -
How to hide some buttons like CREATE PURCHASE ORDER, COPY, EDIT from POWL?
In SRM 7 ECS we need to hide some buttons like CREATE PURCHASE ORDER, COPY, EDIT from POWL"s. We can do some manipulation via security but we need to make a few buttons invisible without security. Appreciate any advice. Thanks.
Hi Ashwanin
To make read only
Below are the steps to Hide the buttons in POWL table
1. if you want to Gray out the Buttons
IMG > SRM SERVER> Cross Application Basic Settings --> Extensions and Field Control. There you will find a node to control Actions. based on the object type choose your option and make it as read only
To Make invisible
1.If you want to make invisible the button .
IMG > SRM SERVER> Cross Application Basic Settings --> Powl and Advance Search - > Adjust powl layout ,search criteria and push button (OR) t-code : /SAPSRM/POWL_CUST
2.choose the POWL type for the POWl table
3.click on Action node , you will find all the acction assigned for the POWL table ,delete the entry which you want to make invsible and save it
4 .Now run the report POWL_D01 and provide powl type in the selection criteria and deleate the catche quries
Regards
chinnaiya P
Edited by: chinnaiya pandiyan on Jun 27, 2011 3:12 PM
Maybe you are looking for
-
What cable do I need to connect my MacBook Pro 17 inch to an Epson EX71 Projector
My old MacBook Pro had a video adaptor port that is no longer on the newest MacBook Pro that I purchased in June 2011. Not sure which cable I need.
-
No signal and lost service twice
ive had my iphone 4 for 10 hours, no signal and lost service completly twice ***. my 3g has full signal. if they dont fix it soon i want my money back. this iphone is a POS OS is 4.0.1
-
Is there a bug or problem with increased noise when exporting pictures out of Lightroom 4?
Is there a bug or problem with increased noise when exporting pictures out of Lightroom 4?
-
How can I reduce the size of the jvm?
I would like to decrease the size of a jvm; I've found a program that makes it, but you don't know how does it works (and you have to pay for it), I'm talking about VM Optimizer 2.0, from Invirtus. Can anyone tell me how can I reduce the size of the
-
Fiori Approve Travel Expenses Accept / Reject error
Hello, I have installed the Approve Travel Expenses app and it looks to be working okay appart from the approve / reject buttons. I have setup the scenarios using transaction SIMGH. These are the only configuration changes i could find i need to make