How to enable/disable a button in Photoshop panel?
Anyone know how you'd create the proper code in a Photoshop extension panel so that certain buttons in the panel could be enabled or disabled dynamically as needed?
Hi Sonunew2flex,
Write one public function in main application file as below...
// In main application file
public function changeButtonDisableStatus(bool:Boolean):void
yourNuutonId.enabled = bool;
//In your hear renderer do this
if(cb.selected=true)
Application.application.changeButtonDisableStatus(true);
else
Application.application.changeButtonDisableStatus(false);
Thanks,
Bhasker
Similar Messages
-
How to Enable the SAVE button in the Menu Bar of the Invoice Document.
Hi.
How to Enable the SAVE button in the Menu Bar of the Invoice Document as it is disabled for me.
I would like to save the Invoice document in PDF format.
Regards
IrfanHi,
Normally, for the archiving or generation of the invoice document in PDF format is handled by maintaining the output records through VV31/VV32 with the relevant printer, storage mode ( 3- print and archive or 2- archive only ), no. of messages ( means no of copies ) in the communication method.
Then when you click the print button through VF03 in the print options pop-up you get a print at the physical printer and at the same time an archived copy ( PDF copy ) attached with the document.
So, please make sure the output records are fine to allow a PDF copy generated and then try to print and check in VF03 by entering into the billing document.
Hope this helps you.
However, from the print preview you normally would not be allowed to save or print.
Regards,
Ram
Edited by: Ramakrishna Peri on Apr 3, 2009 9:16 AM -
I was wondering how could i disable a button until another
action has been accomplished before enabling a button. Is there
anyone that could help me on this?This might help - it's a script I picked up somewhere a few
years ago that disables a button once it's been pushed, then if the
page has not been submitted after a few seconds, it will flash an
alert to the user telling them to hold their horses. It's helped
cut down on people resubmitting things.
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function disableForm(theform) {
if (document.all || document.getElementById) {
for (i = 0; i < theform.length; i++) {
var tempobj = theform.elements
if (tempobj.type.toLowerCase() == "submit" ||
tempobj.type.toLowerCase() == "reset")
tempobj.disabled = true;
setTimeout('alert("Your form is being submitted. The process
will finish in a few seconds.")', 3000);
return true;
else {
alert("Your form is being submitted. The process will finish
in a few seconds.");
return false;
// End -->
</script> -
How to enable Previous Step Button in First Substep of FPM Road Map
Hello All,
I have created three MainSteps M1 M2 M3.
In Main Step M2 having Substeps Say S1 S2 S3 S4.
In M2 of S1 Previous Button by default it is disabled. Means user can't go back from First Substep(S1) to Main Step2 (M2).
Please let me know how to enable "Previous Step" Button in First Substep (S1) of FPM Road Map in M2.
Thanks in Advance.
Br
-CWHello BS,
Thanks for your suggestions.
Yes we can do with custom button.
Is there anyway to enable standard Previous Step Button in First Substep instead of creating cutom button.
Please guide me if any other options.
BR
-CW -
When I navigate web with Firefox my Thinkpad trackpoint center button is not working. With other web browsers it works well. Where is the problem in firefox, how to enable TrackPoint center button?
I have exactly the same settings in Options (in both computers)
for history, these 2 add-ons and all other stuff in Options. The only difference is that on 1 pc sessions can be saved and closed tabs can be reopened, on other main pc they stopped to work. + no any other add-on that does similar things works on this pc.
It is also interesting that I can reopen closed visited sites from History Panel, but not by pressing the Button. For now I only manually bookmark links to a temporary folder.
Recently (some 2 month ago) I pressed x and Firefox closed all tabs without saving them without displaying save & quit pop up.
so I changed 4 settings in about.config
browser.tabs.warn on close true
browser.warn on quit true
browser.warn on restart true
browser.show.quit warning true
but the problem with sessions appeared only 1 week ago.
So I guess the problem is not with the History settings or other settings. Seems that something responsible for button or for storing info about tabs/sessions got corrupted. :( -
How to enable/disable the input fields based on the data entered in the web dynpro application abap? If the user enters data in one input field then only the next input field should be enabled else it should be in disabled state. Please guide.
Hi,
Try this code.
First create a attribute with the name readonly of type wdy_boolean and bind it read_only property of input field of which is you want to enable or disable.
Next go to Init method.
Set the readonly value as 'X'.
DATA lo_el_context TYPE REF TO if_wd_context_element.
DATA ls_context TYPE wd_this->element_context.
DATA lv_visible TYPE wd_this->element_context-visible.
* get element via lead selection
lo_el_context = wd_context->get_element( ).
* @TODO handle not set lead selection
IF lo_el_context IS INITIAL.
ENDIF.
* @TODO fill attribute
* lv_visible = 1.
* set single attribute
lo_el_context->set_attribute(
name = `READONLY`
value = 'X').
After that Go to the Action ENTER.
First read the input field ( first input field, which is value entered field) , next give a condition
if input value is not initial then set the readonly value is ' '.
DATA lo_nd_input TYPE REF TO if_wd_context_node.
DATA lo_el_input TYPE REF TO if_wd_context_element.
DATA ls_input TYPE wd_this->element_input.
DATA lv_vbeln TYPE wd_this->element_input-vbeln.
* navigate from <CONTEXT> to <INPUT> via lead selection
lo_nd_input = wd_context->get_child_node( name = wd_this->wdctx_input ).
* @TODO handle non existant child
* IF lo_nd_input IS INITIAL.
* ENDIF.
* get element via lead selection
lo_el_input = lo_nd_input->get_element( ).
* @TODO handle not set lead selection
IF lo_el_input IS INITIAL.
ENDIF.
* get single attribute
lo_el_input->get_attribute(
EXPORTING
name = `VBELN`
IMPORTING
value = lv_vbeln ).
if lv_vbeln IS not INITIAL.
DATA lo_el_context TYPE REF TO if_wd_context_element.
DATA ls_context TYPE wd_this->element_context.
DATA lv_visible TYPE wd_this->element_context-visible.
* get element via lead selection
lo_el_context = wd_context->get_element( ).
* @TODO handle not set lead selection
IF lo_el_context IS INITIAL.
ENDIF.
* @TODO fill attribute
* lv_visible = 1.
* set single attribute
lo_el_context->set_attribute(
name = `READONLY`
value = ' ' ). -
How to enable touch screen stylus in photoshop: Dell Inspiron 13: windows 8?
How to enable touch screen stylus in photoshop: Dell Inspiron 13: windows 8?
You don't need to enable anything. For it to work you need a touch screen display and a pressure sensitive pen. Not a capacitive pen like those used on a iPad.
A capacitive pen will work with the interface but not the brush tool. -
How does one disable a button in the web UI?
How does one disable a button in the web UI? I am trying to disable the edit button in the web UI for Accounts. What are the steps to take in order to accomplish that?
Hi Abdul,
Locate the Toolbar group group for that application. It should be ACC_OIC01 in your case. You can deactivate a specific button (event) under the toolbar group.
Regards,
J.Prabananth -
How to Enable/Disable suppressUpload and suppressDownload
my xml doesnt have this attribute
how to enable /disable supressUpload and suppressDownload.
<?xml version="1.0" encoding="utf-8" ?>
- <MeRepApplication schemaVersion="1.1" id="ZAM_09" version="09">
<Property name="CLIENT.BUILDNUMBER" />
<Property name="C_APPLRESOLVE" />
<Property name="DATA_VISIBLE_SHARED">X</Property>
<Property name="E_APPLRESOLVE" />
<Property name="FACADE_C_CLIENT">X</Property>
<Property name="FACADE_E_CLIENT">X</Property>
<Property name="HOMEPAGE.INVISIBLE" />
<Property name="INITVALUE" />
<Property name="RUNTIME">JSP</Property>
<Property name="TYPE">APPLICATION</Property>
- <SyncBO id="ZAM_09" version="2" type="twoWay" allowCreate="false" allowModify="true" allowDelete="false" reqDirectSync="true" downloadOrder="1">
- <TopStructure name="TOP">
- <Field name="SYNC_KEY" type="N" length="10" decimalLength="0" signed="false" isKey="true" isIndex="true">
<Input type="create">false</Input>
<Input type="modify">false</Input>
</Field>
- <Field name="BUKRS" type="C" length="4" decimalLength="0" signed="false" isKey="false" isIndex="false">
<Input type="create">false</Input>
</Field>
- <Field name="ANLN1" type="C" length="12" decimalLength="0" signed="false" isKey="false" isIndex="false">
<Input type="create">false</Input>
</Field>
- <Field name="ANLN2" type="C" length="4" decimalLength="0" signed="false" isKey="false" isIndex="false">
<Input type="create">false</Input>
</Field>
- <ChildStructure name="010">
- <Field name="SYNC_KEY" type="N" length="10" decimalLength="0" signed="false" isKey="true" isIndex="true">
<Input type="create">false</Input>
<Input type="modify">false</Input>
</Field>
- <Field name="BUKRS" type="C" length="4" decimalLength="0" signed="false" isKey="false" isIndex="false">
<Input type="create">false</Input>
</Field>
- <Field name="ANLN1" type="C" length="12" decimalLength="0" signed="false" isKey="false" isIndex="false">
<Input type="create">false</Input>
</Field>
- <Field name="ANLN2" type="C" length="4" decimalLength="0" signed="false" isKey="false" isIndex="false">
<Input type="create">false</Input>
</Field>
- <Field name="KOSTL" type="C" length="10" decimalLength="0" signed="false" isKey="false" isIndex="false">
<Input type="create">false</Input>
</Field>
- <Field name="WERKS" type="C" length="4" decimalLength="0" signed="false" isKey="false" isIndex="false">
<Input type="create">false</Input>
</Field>
- <Field name="STORT" type="C" length="10" decimalLength="0" signed="false" isKey="false" isIndex="false">
<Input type="create">false</Input>
</Field>
- <Field name="TXT50" type="C" length="50" decimalLength="0" signed="false" isKey="false" isIndex="false">
<Input type="create">false</Input>
</Field>
- <Field name="TXA50" type="C" length="50" decimalLength="0" signed="false" isKey="false" isIndex="false">
<Input type="create">false</Input>
</Field>
</ChildStructure>
</TopStructure>
</SyncBO>
</MeRepApplication>Just adding on to Nameeta's post, there is a supress download checkbox in the advanced setting s link(Settings -> Advanced Settings) on the client, this will supress downloads for all syncbos and not just for any one syncbo. Also there are no tools in the middleware to add these settings, the only way to do this is to modify the xml manually.
Best Regards,
Karthik
Message was edited by:
Karthik V Setty -
How to Restrict/Disable back button in browser
Hi guys,
I am writing a enterprise web application using ADF. I am using JDeveloper 11.1.2.0.0.
I want to restrict/ disable browser back/forward buttons in all my .jspx and .jsf pages.
It was discussed in following thread as well.
how to Restrict/Disable back button in browser
Can somebody give a way to do this please.
Regards !
SameeraHi Sudipto,
This is one of my .jspx pages. I wonder where should I put that javascript code. I have tried in several places and didn't work.
<?xml version='1.0' encoding='windows-1252'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<f:view>
<af:document title="Registration Page" id="d1">
<af:messages id="m1"/>
<af:form id="f1">
<af:pageTemplate viewId="/MyPageTemplate.jspx" id="pt1">
<f:facet name="MainPageRegion">
<af:group id="g1">
<af:panelSplitter splitterPosition="454"
inlineStyle="width:943px; height:200px;"
id="FirstRN">
<f:facet name="first">
<af:panelGroupLayout layout="scroll" id="pgl1">
<af:outputText value="Registration Details"
inlineStyle="font-weight:bold;" id="ot1"/>
<af:separator id="s1"/>
<af:panelFormLayout labelAlignment="start" id="pfl1">
<f:facet name="footer"/>
<af:panelLabelAndMessage label="#{bindings.RegNum.hints.label}" id="plam1">
<af:outputText value="#{bindings.RegNum.inputValue}" id="ot2"/>
</af:panelLabelAndMessage>
<af:selectOneChoice value="#{bindings.ProcType.inputValue}"
label="#{bindings.ProcType.label}"
required="#{bindings.ProcType.hints.mandatory}"
shortDesc="#{bindings.ProcType.hints.tooltip}" id="soc1">
<f:selectItems value="#{bindings.ProcType.items}" id="si1"/>
</af:selectOneChoice>
<af:selectOneChoice value="#{bindings.RegStatus.inputValue}"
label="#{bindings.RegStatus.label}"
required="#{bindings.RegStatus.hints.mandatory}"
shortDesc="#{bindings.RegStatus.hints.tooltip}" id="soc2">
<f:selectItems value="#{bindings.RegStatus.items}" id="si2"/>
</af:selectOneChoice>
<af:panelLabelAndMessage label="#{bindings.TotalUsdAmt.hints.label}" id="plam2">
<af:outputText value="#{bindings.TotalUsdAmt.inputValue}" id="ot3">
<af:convertNumber groupingUsed="false"
pattern="#{bindings.TotalUsdAmt.format}"/>
</af:outputText>
</af:panelLabelAndMessage>
<af:panelLabelAndMessage label="#{bindings.TotalPfiAmt.hints.label}" id="plam3">
<af:outputText value="#{bindings.TotalPfiAmt.inputValue}" id="ot4">
<af:convertNumber groupingUsed="false"
pattern="#{bindings.TotalPfiAmt.format}"/>
</af:outputText>
</af:panelLabelAndMessage>
</af:panelFormLayout>
</af:panelGroupLayout>
</f:facet>
<f:facet name="second">
<af:panelGroupLayout layout="scroll"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich" id="pgl2">
<af:outputText value="Creation Details"
inlineStyle="font-weight:bold;" id="ot5"/>
<af:separator id="s2"/>
<af:panelFormLayout labelAlignment="start" id="pfl2">
<f:facet name="footer"/>
<af:panelLabelAndMessage label="#{bindings.CreatedByName.hints.label}" id="plam4">
<af:outputText value="#{bindings.CreatedByName.inputValue}" id="ot6"/>
</af:panelLabelAndMessage>
<af:panelLabelAndMessage label="#{bindings.CreationDate.hints.label}" id="plam5">
<af:outputText value="#{bindings.CreationDate.inputValue}" id="ot7">
<af:convertDateTime pattern="#{bindings.CreationDate.format}"/>
</af:outputText>
</af:panelLabelAndMessage>
<af:selectOneChoice value="#{bindings.RequestedBy.inputValue}"
label="#{bindings.RequestedBy.label}"
required="#{bindings.RequestedBy.hints.mandatory}"
shortDesc="#{bindings.RequestedBy.hints.tooltip}" id="soc3">
<f:selectItems value="#{bindings.RequestedBy.items}" id="si3"/>
</af:selectOneChoice>
<af:panelLabelAndMessage label="#{bindings.DepartmentName.hints.label}" id="plam6">
<af:outputText value="#{bindings.DepartmentName.inputValue}" id="ot8"/>
</af:panelLabelAndMessage>
</af:panelFormLayout>
</af:panelGroupLayout>
</f:facet>
</af:panelSplitter>
<af:panelSplitter inlineStyle="width:944px; height:132px;"
splitterPosition="452" id="SecondRN">
<f:facet name="first">
<af:panelGroupLayout layout="scroll"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich" id="pgl3">
<af:outputText value="Notes to Buyer"
inlineStyle="font-weight:bold;" id="ot9"/>
<af:separator id="s3"/>
<af:inputText value="#{bindings.NotesBuyer.inputValue}"
simple="true"
required="#{bindings.NotesBuyer.hints.mandatory}"
columns="#{bindings.NotesBuyer.hints.displayWidth}"
maximumLength="#{bindings.NotesBuyer.hints.precision}"
shortDesc="#{bindings.NotesBuyer.hints.tooltip}"
rows="5" id="it1">
<f:validator binding="#{bindings.NotesBuyer.validator}"/>
</af:inputText>
</af:panelGroupLayout>
</f:facet>
<f:facet name="second">
<af:panelGroupLayout layout="scroll"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich" id="pgl4">
<af:outputText value="Party Notes"
inlineStyle="font-weight:bold;" id="ot10"/>
<af:separator id="s4"/>
<af:inputText value="#{bindings.PartyNotes.inputValue}"
simple="true"
required="#{bindings.PartyNotes.hints.mandatory}"
columns="#{bindings.PartyNotes.hints.displayWidth}"
maximumLength="#{bindings.PartyNotes.hints.precision}"
shortDesc="#{bindings.PartyNotes.hints.tooltip}"
rows="5" id="it2">
<f:validator binding="#{bindings.PartyNotes.validator}"/>
</af:inputText>
</af:panelGroupLayout>
</f:facet>
</af:panelSplitter>
<af:spacer width="10" height="20" id="s5"/>
<af:outputText value="Registration Lines"
inlineStyle="font-weight:bold;" id="ot11"/>
<af:separator id="s6"/>
<af:commandButton text="Add Item"
disabled="#{RegistrationBean.disableAddItemBtn}"
action="CatalogPage" id="cb1"/>
<af:commandButton text="Search Item"
action="ItemLitsPage"
disabled="#{RegistrationBean.disableSearchCataBtn}" id="cb2"/>
<af:table value="#{bindings.RegLinesRegPageVO.collectionModel}"
var="row" rows="#{bindings.RegLinesRegPageVO.rangeSize}"
emptyText="#{bindings.RegLinesRegPageVO.viewable ? 'No rows yet.' : 'Access Denied.'}"
fetchSize="#{bindings.RegLinesRegPageVO.rangeSize}"
width="900" id="t1">
<af:column sortProperty="ProductCode" sortable="false"
headerText="#{bindings.RegLinesRegPageVO.hints.ProductCode.label}" id="c1">
<af:outputText value="#{row.ProductCode}" id="ot12"/>
</af:column>
<af:column sortProperty="Qty" sortable="false"
headerText="#{bindings.RegLinesRegPageVO.hints.Qty.label}" id="c2">
<af:outputText value="#{row.Qty}" id="ot13">
<af:convertNumber groupingUsed="false"
pattern="#{bindings.RegLinesRegPageVO.hints.Qty.format}"/>
</af:outputText>
</af:column>
<af:column sortProperty="UnitPrice" sortable="false"
headerText="#{bindings.RegLinesRegPageVO.hints.UnitPrice.label}" id="c3">
<af:outputText value="#{row.UnitPrice}" id="ot14">
<af:convertNumber groupingUsed="false"
pattern="#{bindings.RegLinesRegPageVO.hints.UnitPrice.format}"/>
</af:outputText>
</af:column>
<af:column sortProperty="Currency" sortable="false"
headerText="#{bindings.RegLinesRegPageVO.hints.Currency.label}" id="c4">
<af:outputText value="#{row.Currency}" id="ot15"/>
</af:column>
<af:column sortProperty="UsdAmount" sortable="false"
headerText="#{bindings.RegLinesRegPageVO.hints.UsdAmount.label}" id="c5">
<af:outputText value="#{row.UsdAmount}" id="ot16">
<af:convertNumber groupingUsed="false"
pattern="#{bindings.RegLinesRegPageVO.hints.UsdAmount.format}"/>
</af:outputText>
</af:column>
<af:column sortProperty="UsdPfiAmount" sortable="false"
headerText="#{bindings.RegLinesRegPageVO.hints.UsdPfiAmount.label}" id="c6">
<af:outputText value="#{row.UsdPfiAmount}" id="ot17">
<af:convertNumber groupingUsed="false"
pattern="#{bindings.RegLinesRegPageVO.hints.UsdPfiAmount.format}"/>
</af:outputText>
</af:column>
<af:column sortProperty="UsdTotalAmount" sortable="false"
headerText="#{bindings.RegLinesRegPageVO.hints.UsdTotalAmount.label}" id="c7">
<af:outputText value="#{row.UsdTotalAmount}" id="ot18">
<af:convertNumber groupingUsed="false"
pattern="#{bindings.RegLinesRegPageVO.hints.UsdTotalAmount.format}"/>
</af:outputText>
</af:column>
</af:table>
</af:group>
</f:facet>
<f:facet name="ActionButtonBarRegion">
<af:group id="g2">
<af:commandButton actionListener="#{bindings.Commit.execute}"
text="Save"
disabled="false" id="cb3">
<af:setActionListener from="#{false}"
to="#{RegistrationBean.disableAddItemBtn}"/>
<af:setActionListener from="#{false}"
to="#{RegistrationBean.disableSearchCataBtn}"/>
<af:setActionListener from="#{bindings.RegistrationId.inputValue}"
to="#{pageFlowScope.regToEdit}"/>
</af:commandButton>
<af:commandButton text="Home" action="HomePage" immediate="true" id="cb4"/>
</af:group>
</f:facet>
<f:attribute name="PageTitle" value="Registration Page"/>
</af:pageTemplate>
</af:form>
</af:document>
</f:view>
</jsp:root>
Regards !
Sameera
Edited by: samme4life on May 17, 2012 2:39 AM
Edited by: samme4life on May 17, 2012 2:42 AM -
How can I use the button in one panel to control the other panel's appearing and disappearing?
How can I use the button in one panel to control the other panel's
appearing and disappearing? What I want is when I push the button on
one button . another panel appears to display something and when I
push it again, that the second panel disappears.> How can I use the button in one panel to control the other panel's
> appearing and disappearing? What I want is when I push the button on
> one button . another panel appears to display something and when I
> push it again, that the second panel disappears.
>
You want to use a combination of three features, a button on the panel,
code to notice value changes using either polling in a state machine of
some sort or an event structure, and a VI Server property node to set
the Visible property of the VI being opened and closed.
The button exists on the controlling panel. The code to notice value
changes is probably on the controlling panel's diagram, and this diagram
sets the Visible property node of a VI class property node to FALSE or
TRUE to show or
hide the panel. To get the VI reference to wire to the
property node, you probably want to use the Open VI Reference node with
the VI name.
Greg McKaskle -
How to enable/disable button
Hi,
i m new to pcui, i got how to hide the button in toolbar group. but could you please guide be how to enable r disable the button which is in toolbar group.
thanks in advanceHi venkat,
Follow the step, it's example of Lead CRMD_BUS2000108 & View is *ZMSR_RE5 *
1) Go to CRMC_PCUITOOLS.
2) Go to Analysis Tools -> Determine the Correct Model Access Class.
3) Give Application - CRMD_BUS2000108 & View ZMSR_RE5 & execute.
4) Click on New -> MFT Sales (Transaction type)
5) Note Toolbar Group - > LEA_SR_50.
6) Go to CRMC_BLUEPRINT_C.
7) Go to Toolbar Group -> Toolbar Group Structure.
8) Give Toolbar Group - LEA_SR_50.
9) Search for ZMSR_RE5 Toolbar elements.
10) Click on Details.
11) Check whether FLAG is Not Set in Exp. Display. Choose Flag set Event has Occurred to Hide the Button.
it will help u
On......................... -
How to enable /disable a command Button based on a table's selectOne choice
Hi everyone.
I am using JDeveloper 10.1.3.3 and wish to enable / disable a commandButton based on the user's selection of the selectOne radio button.
The idea is that a row of a table may have an associated document so I want to enable or disable the button that downloads it based n the current row selected.
I have followed the advice on problem with table I defined my selectOne component as follows :
<af:tableSelectOne text="#{res['tables.selectionFacet.title']}"
autoSubmit="true"
attributeChangeListener="#{backing_browseCVs.onSelectionChange}">The function inside the backing bean looks like this
public void onSelectionChange(AttributeChangeEvent attributeChangeEvent)
// access the faces context
FacesContext fc = FacesContext.getCurrentInstance();
// get value of the expression #{row.hasCVDocument} that indicates
// if a document has been added
ValueBinding vb =
fc.getApplication().createValueBinding("#{row.hasCVDocument}");
Boolean hasDoc = (Boolean)vb.getValue(fc);
// enable the doownload button accordingly
downloadCVDocBtn.setDisabled(!hasDoc);
}My problem is that the method never fires. I have placed a breakpoint at the first line but it is never reached.
Any advice will be most welcome.
ThanassisHi,
You might need to add 'dataProvider' part in the expression language in your selectionListener:
#{bindings.CVList.currentRow.[b]dataProvider.hasCVDocument}
#{bindings.CVList.currentRow} returns an instance of ViewRowImpl which does not have 'getHasCVDocument()' method, but does have:
Object getCurrentRow()
method, which returns objects from your CVList list, which do have getHasCVDocument() method...
Expression language is resolved through reflection, so when you write:
#{processScope.someClass.someReferencedClass.someAttribute} it is something like:
Get someClass from processScope map, then:
someClass.getSomeReferencedClass().getSomeAttribute()
It's a bit more complex but you get the idea.
Vladimir -
Enabling/Disabling a button in Web appl. based on exception in a Query
Hi all,
I am wondering whether we can grey out a button in the web applic. designer based on whether a report has an exception showing.
So now we can enable or disable a button, so at runtime, when the web app runs, and a condition is visible in the analysis item table, then the button (save for example) should be disabled, otherwise if there are no exceptions then it should be enabled.
I am thinking Javascript, but not sure how to read the exceptions in a web apps query?
Thanks for any help forwarded.
Regards
SMSHi Sumit,
just add one more attribute of type wdy_boolean, and bind this attribute to readonly property of button by coding.
then as per your cell value set the attribute value, below is the some sample code.
METHOD wddoinit .
DATA: lv_node TYPE REF TO if_wd_context_node,
lt_mara TYPE ig_componentcontroller=>elements_mara,
wa_mara TYPE ig_componentcontroller=>element_mara.
SELECT matnr
ersda
ernam
mtart
matkl
meins FROM mara INTO CORRESPONDING FIELDS OF TABLE lt_mara
WHERE meins = 'GM' OR meins = 'CCM'.
SORT lt_mara BY meins.
lv_node = wd_context->get_child_node( name = wd_this->wdctx_mara ).
LOOP AT lt_mara INTO wa_mara.
IF wa_mara-meins = 'GM'.
wa_mara-readonly = 'X'.
ELSE.
wa_mara-readonly = ' '.
ENDIF.
MODIFY lt_mara FROM wa_mara TRANSPORTING readonly.
lv_node->bind_structure( SET_INITIAL_ELEMENTS = ABAP_FALSE
new_item = wa_mara ).
ENDLOOP.
lv_node->bind_table( new_items = lt_mara ).
ENDMETHOD.
Regards
Srinivas -
Enable / Disable a button Based on a value
Hi all,
How can i enable or Disable a Button Based on some input Text value.
Here is the ADF Code fragment:
*<af:switcher id="customActionButtons"*
*facetName="#{actionAvailable.isCustomActionButtons}">*
*<f:facet name="true">*
*<af:panelGroupLayout layout="horizontal" id="pgl10">*
*<af:commandToolbarButton actionListener="#{invokeActionBean.setOperation}"*
*text="#{wf:getResourceValue('APPROVE', 'bindings.customActions')}"*
*disabled="#{!bindings.APPROVE.enabled}"*
*action="#{invokeActionBean.invokeOperation}"*
*partialSubmit="false"*
*visible="#{wf:isCustomActionAvailable('APPROVE', 'bindings.customActions')}"*
*id="ctb2">*
*<f:attribute name="DC_OPERATION_BINDING"*
*value="bindings.APPROVE"/>*
*</af:commandToolbarButton>*
*<af:inputText value="#{bindings.input.inputValue}"*
*label="#{bindings.input.hints.label}"*
*required="#{bindings.input.hints.mandatory}"*
*columns="#{bindings.input.hints.displayWidth}"*
*maximumLength="#{bindings.input.hints.precision}"*
*shortDesc="#{bindings.input.hints.tooltip}"*
*id="it1">*
*<f:validator binding="#{bindings.input.validator}"/>*
*</af:inputText>*
I have highlighted the Button and Input text in Bold.
Any suggestions,
Thanks,
karthikyou need to set the autosubmit property for the text field to true. and set the partial trigger for the the button to that input text id.
and set the rendered property for the button based on the input text value.
same idea is exist in this link:
http://groundside.com/blog/GrantRonald.php?title=conditional_rendering_of_jsf_fields_depe&more=1&c=1&tb=1&pb=1
Edited by: M.Jabr on Feb 7, 2011 1:26 AM
Maybe you are looking for
-
The above error occurs when I place unique constraint on a column in a custom list. This error only occurs because the custom list has been configured to only allow creaters to view and edit their own list items. I just can't see why that should prev
-
Am I supposed to receive a code for the rest of season 5 breaking bad?
I purchased the season pass assuming it was for the whole season, not just a portion of it. I was disappointed to find that the final episodes were unavailable after they began airing. I recently read an article about this exact situation. Should I b
-
Why won't the airplay button come up now I have upgraded to ios7
I can not get my iPhone or my wife's phone or our iPad to connect to Apple TV by airplay anymore, I upgraded everything yesterday to ios7 and airplay was working, I have come to it today and nothing will connect, the button has disappeared off everyt
-
Integrated Configuration transport error
Hi, I just transported an Integrated Configuration from DVE system to the QA and the IC in the QAS is not configured correclty. PI 7.1 My IC have multiple operations and 2 receivers. The Receivers System were translated correctly (SYSDVE > SYSQA) how
-
I have saved many PDF files from my mails - when I want to open (Adobe Reader on Samsung tablet) the file last saved I have no possibility find it simply by sorting file list by time - (list is fixed by name only) - how to change list order?.