Enabling a button only when a tilelist contains items

In my app I have a button that empties a tilelist however I want it to only be 'enabled' when that tilelist actually contains items and disabled when it doesn't.
What code would I need to apply to the following enabled property of the button to make it only be enabled when a tilelist (simply called tilelist1 in this example) contains at least 1 item?:-
enabled="{tilelist1.}"

Thanks. I've already tried ".dataProvider>0" and that worked but I suppose that'd work too. Thanks for helping out though.

Similar Messages

  • How to enable a button only when a tilelist item is selected

    Simple question but it seems quite awkward to me. How do I enable a button only when an item within a tilelist is currently selected?
    For example lets say if I have a button called button1 that is disabled by default and a tilelist called tilelist1 what would I have to add into the brackets of the following code (enabled property of the button) to ensure that the button is only enabled when an item in the tilelist is currently selected but disabled when no items are selected:-
    enabled="{}"

    enabled="{tilelist1.selectedItem}"
    that should do it, it's making an implicit comparision with null (tilelist1.selectedItem == null) which will result in a boolean.
    SelectedItem is null when nothing is selected , not null when something is.

  • Get Accept & Reject Buttons only on click of work item in sap inbox

    Hi,
    ALL
    I have a issue.
    I have created a form in module pool which has a certain set of feilds. I have placed two buttons in the form namely " Submit " & Update. When ever the submit button is clicked in the form the form which is an attachment goes to the respective approvers for approval.
    Issue : I have not placed any Accept or Reject Buttons in the form, I want these buttons to get displayed when the form is displayed in the SAP inbox of the user.
    I am not aware of the process, that how the Accept & Reject buttons appear when the form is used for approvals in the workflow.
    Can any one suggest me the process, that how do i use these buttons while displaying when the work item is clicked in the users inbox but not when the form is intially filled.
      - The approval or Reject buttons should not get displayed when the user is initially filling up the form.
    -  The Approval or Reject Buttons should be displayed when the work item is clicked in the sap inbox of the user, instead of update & Submit.
    On click of the work item - the accept & Reject buttons should be displayed but not the Update & Submit and this should be displayed only when the work item is clicked.
    Kindly suggest me the way how to get that ..if possible some peice of  code would also be good.
    Expecting an earlier reply !
    shankar

    Hi Shanky,
    You can create two module pool programs for requirement.
    One is for trigger the workflow and other one is to get the approval.
    For the approval, create a dialog method and call the screen using call transaction.
    So at run time when the user clicks the work item it will display the Approver screen. under Approve or Reject button you have to call the function module, SAP_WAPI_COMPLETE_WORKITEM to complete the work item.
    Thanks,
    Viji.

  • Enabling a button only after all other boxes on the slide have been clicked

    Hi,
    I am using Captivate 5 but I am fairly new to it and have very little scripting experience so I think what I am looking for is possible but I am not sure how to go about it!
    I have a slide with 10 click boxes which each link to a different slide with further information. Once the user has visited the additional slide they return to the original slide and can continue working through the click boxes to discover all of the information. This first slide also has a back and a next button to enable navigation through the rest of the project.
    Ideally I do not want to force people to click these boxes in a particular order and I do not want to prevent them visiting the additional pages more than once. However I would like to set up the page so that the next button will only be enabled once all of the click boxes have been pressed. At the moment, i do not have anything to stop the user just continuing through the project without reading the additional information.
    Any help would be much appreciated.
    Thanks,
    Mary

    Hi Lilybiri,
    Thanks for your reply,
    I think I would be able to use the second option of using buttons that became greyed out and then a next button appears on the slide once all of the pages have been visited.  Would you be able to send me the template please?
    I have a couple of other questions as well, I hope you don't mind! - Is it possible to do this using an image button rather than a transparent one or does this make it much more complicated? At the moment I have targets on the image which have a click box placed over them. It would be easy to change this to just the background image with the targets as image buttons but I am not sure I would be able to create the same style with the transparent button?
    I would need to increase the number of variables to 10, if I follow the same naming conventions etc would this be a relatively simple process?
    Finally I would not want the checkmarks to appear, how easy is it to make this change?
    Sorry for all the questions but I really appreciate your help!
    Mary

  • Sandbox error only when loading URL containing directory with purely numeric name.

    This error only occurs under very strange circumstances.  We have several clients whose domain names begin with a sequence of digits (e.g. 401blah.com).  We have file paths under another server employing directory names derived from these domain names. (e.g. /4/401/...).  We employ the same scheme for all domain names, so fooblah.com would utilize directory /f/fooblah/...
    Our swf file is embedded in an HTML page which is served up from 401blah.com (name is an example).  It attempts to load images from another server (e.g. pictures.foo.com//4/401/...).  The pictures.foo.com site has a crossdomain.xml file that permits all domains to access its contents.  When the swf at fooblah.com tries to load an image at pictures.foo.com//f/fooblah/... it does so without a hitch.  However, when the same swf hosted in an identical page at 401blah.com attempts to access an image at pictures.foo.com//4/401/... it fails with the following error:
    Error #2048: Security sandbox violation: http://401blah.com/v8/widgets/generic/image/semantic-slideshow.swf cannot load data from http:/pictures.foo.com/4/401blah/0288/2015daea4046387201f6d2e38e0c1ac6.jpg
    Now, I'm using fake names for the domain here in order to obfuscate the customer, but if I substitute in the correct customer name, the URL http:/pictures.foo.com/4/401blah/0288/2015daea4046387201f6d2e38e0c1ac6.jpg does, in fact, access the correct image.
    When we use non numeric directory names everything works without a hitch.  When we use numeric directory names, despite all info being in its proper place and a proper crossdomain.xm, loading the images in fails.
    In fact, according to our net-trace, when we use numeric directory names, pictures.foo.com (fake domain name substituted in for real domain name), flash doesn't even try to look at its crossdomain.xml file (while it does try, and succeeds at doing so, when non numeric directory names are used).
    It looks like Flash is doing some kind of test on the URL and making an incorrect determination on it.  Any help on this that does not involve changing our directory scheme would be appreciated.  I have read all of the relevent documentation and our crossdomain.xml file is set up correctly, so please focus on the behavior visa vi strange treatment of numeric directory names in the URL.

    try to write your php code with notepad.
    There could be invisible characters when using Dreamweaver or similar softwares.

  • Strange hi pitch noise thru headphones button only when moving the mouse!?

    So i'm sitting there with a pair of sony headphones working on my intel imac and I notice a high pitch (but very quiet) noise.
    Eventually I work out that it only happens when I move my mouse.
    Does this happen to anyone else?

    I saw these last year!
    http://discussions.apple.com/thread.jspa?messageID=2713451&#2713451
    http://discussions.apple.com/thread.jspa?messageID=2301548&#2301548
    For more go here
    http://discussions.apple.com/search.jspa?threadID=&q=mightymouse+audionoise&objID=c189&dateRange=lastyear&userID=&numResults=15
    17" iMac Intel Core Duo 1.5GB Ram   Mac OS X (10.4.9)   Maxtor 300GB FireWire Creative Inspire 2.1 2G Nano

  • How to Enable a Button

    Hello,
    I have a little problem to Enable a Button.
    I have a Text-Item and a Button in my Form-Modul. I want to write a Code which checks if the Text-Item is Null. If it is then the Button must be enabled.
    But which Form-Trigger must I use to do this.

    This question is definitely more clear then Sven's;-)
    I would use the when-validate-item-trigger on your text field,
    and in addition the post-query-trigger if you want to set the
    property already when retrieving records from the database.
    IF :MY_BLOCK.EINGABE IS NULL THEN
      SET_ITEM_INSTANCE_PROPERTY('MY_BLOCK.MY_BUTTON', :SYSTEM.TRIGGER_RECORD, ENABLED, PROPERTY_FALSE);
    ELSE
      SET_ITEM_INSTANCE_PROPERTY('MY_BLOCK.MY_BUTTON', :SYSTEM.TRIGGER_RECORD, ENABLED, PROPERTY_TRUE);
    END IF;

  • Show a report region only when link in other report is clicked

    Hi Friends,
    I am having 2 report regions.In my first report region i am having a column as a link. I want to show the 2nd report
    region only when the link in the 1st report region is clicked. There is a button in the 2nd report region i want to show
    that button only when the link in the first report is clicked.
    The code for my first report is
    select * from tasks;i have a link column task_id as
    f?p=&APP_ID.:10:&SESSION.::&DEBUG.::P10_TASK_ID:#TASK_ID#My 2nd report code is
    select * from task_details where task_id=:P10_TASK_ID;Plz help,
    Thanks,
    TJ

    Hi Andy,
    I tried this but having one problem. When i press a link the vaule of P10_TASK_ID is set and the 2nd report is shown.
    When i go to other page and come back to this page the 2nd report is showing even with out pressing the link this is
    because the value set for :P10_TASK_ID is still there. Where can i put the value back to null so that the 2nd report is
    not shown with our pressing the link in the 1st one.
    Thanks
    TJ

  • Repeater fails using {container.item} context within included JSP pages

    Greetings,
    I'm using Bea Workshop 8.1.2 and netui's based framework.
    I'm experiencing a problem relating to the use of jsp:insert tags as a way of templating the code as to make it more maintainable and cost effective.
    The problem arises when using repeaters and then binding a <netui> tag with a "container.item" context inside the included jsp page.
    Example:
    On a PageController we define on its scope a rather simple data structure:
    public String[] array={"Item1","Item2","Item3"}
    The associated index is as follows:
    index.jsp
    <netui:html>
    <netui-data:repeater dataSource="{pageFlow.array}">
    <netui-data:repeaterHeader></netui-data:repeaterHeader>
    <netui-data:repeaterItem>
    <netui:label value="{container.item}"/><br>
    </netui-data:repeaterItem>
    <netui-data:repeaterFooter></netui-data:repeaterFooter>
    </netui-data:repeater>
    </netui:html>
    This works as expected, it prints the data in the array list. Fine.
    Now, with the <jsp:insert> tag usage, we get two files index.jsp and body.jsp:
    index.html
    <netui:html>
    <netui-data:repeater dataSource="{pageFlow.array}">
    <netui-data:repeaterHeader></netui-data:repeaterHeader>
    <netui-data:repeaterItem>
    <jsp:include page="body.jsp" flush="true"/>
    </netui-data:repeaterItem>
    <netui-data:repeaterFooter></netui-data:repeaterFooter>
    </netui-data:repeater>
    </netui:html>
    body.jsp
    <netui:html>
    <netui:label value="{container.item}"/>
    <netui:label value="{pageFlow.array[0]}"/>
    </netui:html>
    With this example the {container.item} tag fails with this exception:
    "Caught exception when evaluating expression "{container.item}" with available binding contexts [actionForm, pageFlow, globalApp, request, session, appication, pageContext, bundle, container, url, pageInput]. Root cause: com.bea.wlw.netui.script.xscript.IllegalContextStateException: The Tag "com.bea.wlw.netui.tags.html.Label@cb5dce" does not have a valid parent of type DataAccessProvider. The expression "container["item"]" requires a parent of this type."
    BUT - and here is my problem with this - the label tag with {pageFlow.array[0]} PRINTS THE DESIRED ELEMENT.
    Also, on an extended example with a <form> tag around the main index html and the array structure inside a FormData class, {actionForm.array[0]} ALSO PRINTS THE DESIRED ELEMENT.
    Only {container.item} gloriously fails with an exception complaining about IllegalContextStateException.
    This is a total nonorthogonal behaviour, the features do not work as expected and indeed, with the importance of repeaters for netui's development, this preclude us from the minimum standard for structured web application design.
    Does anyone have any clue about this behaviour? If not a fix, at least an explanation...
    Thanks in advance.

    I am trying to insert multiple rows I when submited I am get ting only 1 row in the DatabaseForm.
    my netui.log file shows this error:
    29 Oct 2004 17:25:48,941 WARN NetUIReadVariableResolver []: Could not create a ContextFactory for type "com.bea.netuix.servlets.script.PortalVariableResolver$PortalContextFactory" because the ContextFactory implementation class could not be found.
    29 Oct 2004 17:26:35,288 ERROR SortFilterColumn []: Unable to load /com/bea/wlw/netui/databinding/grid/filter/filter-window.properties. Using com.bea.wlw.netui.tags.databinding.grid.util.grid
    Throwable: java.util.MissingResourceException: Can't find bundle for base name /com/bea/wlw/netui/databinding/grid/filter/filter-window.properties, locale en_US
    Stack Trace:
    java.util.MissingResourceException: Can't find bundle for base name /com/bea/wlw/netui/databinding/grid/filter/filter-window.properties, locale en_US
    at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:804)
    at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:773)
    at java.util.ResourceBundle.getBundle(ResourceBundle.java:511)
    at com.bea.wlw.netui.tags.databinding.grid.column.SortFilterColumn.<clinit>(SortFilterColumn.java:143)
    at jsp_servlet._activitychange.__grid._jspService(grid.jsp:21)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:463) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at com.bea.wlw.netui.pageflow.PageFlowJspFilter.doFilter(PageFlowJspFilter.java:208) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:316)
    at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.superForward(PageFlowRequestProcessor.java:1301)
    at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor$DefaultHttpRedirector.forward(PageFlowRequestProcessor.java:1317)
    at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.doForward(PageFlowRequestProcessor.java:1199)
    at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.processForwardConfig(PageFlowRequestProcessor.java:1093)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
    at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.process(PageFlowRequestProcessor.java:650)
    at com.bea.wlw.netui.pageflow.AutoRegisterActionServlet.process(AutoRegisterActionServlet.java:527)
    at com.bea.wlw.netui.pageflow.PageFlowActionServlet.process(PageFlowActionServlet.java:152)
    at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6456)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3661)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2630)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    29 Oct 2004 17:27:31,164 WARN FlowController []: Could not find exception handler method exceptionHandler for java.lang.ArrayIndexOutOfBoundsException.
    29 Oct 2004 17:27:31,165 WARN FlowController []: Could not find exception handler method exceptionHandler for java.lang.IndexOutOfBoundsException.
    29 Oct 2004 17:27:31,165 WARN FlowController []: Could not find exception handler method exceptionHandler for java.lang.RuntimeException.
    The actionForm uses a FormData which has a Array of all the fields that need to be populated.
    Any idea why only 1 row shows up ?.
    Thanks
    Raghav

  • CS 5.5. Advanced actions enable a button that jumps to slide... when revisited, button only continue

    Essentially, I have a slide with six buttons on it.... five that navigate to other pages as an interaction, and a continue button that breaks the loop and moves the user forward in the lesson. I have an advanced action that shows the continue button after all other buttons have been used. The problem:
    When a user navigates back to this interaction hub, the enabled continue button doesn't jump to the proper slide... it slowly just moves into a slide in the loop.
    Any idea why a continue button would no longer jump to the proper page after it has been activated?

    Hi there
    Actually I do believe there is a way to make the behavior what you want. But I'll address your issue for making things known to Adobe first. Adobe has something called the "Wish Form/Bug Reporting Form" that they monitor. So you use that. (Link to that is in my sig line)
    As for the button issue, you can accomplish it using Advanced Actions. What you need to do is to manipulate the Playhead to keep it paused. One way is by configuring the variable rdcmndGotoFrame with the value rdinfoCurrentFrame. Sometimes this works to just keep the playhead paused. Other times I've tried to do it with some success by repositioning the playhead farther upstream and allowing it to "float" back to the pause point of the object. And to do this you use the variable rdcmndGotoFrameAndResume and assigning it the frame number earlier in time. Of course, to do this you must first calculate the frame number to position at. I normally did this by inserting a Text Caption configured to present the rdinfoCurrentFrame variable and manipulating the pause points using a Click Box object to arrive at the desired value.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • How I disable my textbox at view time and Enable only when insert or edit t

    hi master
    Sir i have master detail form and i am not use toolbar i am usint my button add/edit/view/next/last and other
    sir my requirement is all textbox disable at view time enable ony edit or inserting time
    how I disable my textbox at view time and Enable only when insert or edit time.
    i use this
    if :system.form_status='change' then
    if :system.form_status='insert' then
    if :system.form_status='execute query' then
    but not right work
    please give my idea where i use what statment
    send me sample
    Aamir

    Aamir,
    Set the text item's Enabled property to False at design time. Then, using SET_ITEM_PROPERTY (see Forms Help), set to Enabled in the relevent part of the code on the WHEN-BUTTON-PRESSED triggers on your Insert and Update buttons. Similarly, disable on your Save button once the cnahges are saved etc.

  • Forgot passcode -find my iphone enabled -message disable find my iphone. I cannot do this as my phone is disabled.I logged onto icloud and removed the phone (can be done only when its offline

    I have completely forgotten my passcode and have find my iphone enabled. When I try to restore I get the message disable find my iphone. I cannot do this as my phone is disabled.I logged onto icloud and removed the phone (can be done only when its offline) but the phone keeps appearing.

    Do this:
    Plug in your iPhone into your computer.
    Hold the power button and home button for 10 seconds the both with each other.
    Then release the power button but keep holding the home button for another 15 seconds.
    This'll put it onto DFU mode so that you can restore it. Good luck!

  • Iphone 4: Home Button Not Working. The home button only works when it is connected to iTunes, once i disconnet it does not work, i have tried a restore to factory settings but it still is not working. Any suggestions?

    iphone 4: Home Button Not Working. The home button only works when it is connected to iTunes, once i disconnet it does not work, i have tried a restore to factory settings but it still is not working. Any suggestions?

    Apple, as I said, does not repair your iPhone. All hardware service issues are handled by replacing the unit. So they can't handle the home-button issue without also addressing the issue of the cracked screen, for which they'll almost certainly charge you. But you can make an appointment at an Apple Store or call Apple tech support and plead your case.
    Regards.

  • Help... Have ate in living room & bedroom & I could works fine on iPhone4 as well as ipad2 wifi. I have home sharing enabled on all but when I rented a movie it was all good & charged but the download took over 24 hours & only in the bedroom.... Please he

    Help... Have ate in living room &amp; bedroom &amp; I could works fine on iPhone4 as well as ipad2 wifi. I have home sharing enabled on all but when I rented a movie it was all good &amp; charged but the download took over 24 hours &amp; only in the bedroom.... Please help

    The remote app can either automatically find libraries available on a network (with home sharing available) or if you haven't got home sharing enabled, you can manually pair an itunes library with the remote app (using a number that is generated by the app and then typed into the itunes library).
    That is why I am so confused, as it seems to be the home sharing that is the problem!

  • Error when opening table container file keydb read only

    Hi Guys,
    We are installing solution manager 4.0 on windows/sql but we are getting following error and couldnt continue the installation
    FKD-00070  Error when opening table container file C:\PROGRA1\SAPINS1\SOLMAN\SYSTEM\MSS\CENTRAL\AS\keydb.xml for writing. Possible reason: "read-only"
    ERROR 2008-06-04 20:10:56.843
    FKD-00049  XML - Parser error: error: no DTD specified, can't validate in line 1, 1
    in file C:\Program Files\sapinst_instdir\SOLMAN\SYSTEM\MSS\CENTRAL\AS\keydb.xml.
    Please help
    Regards,
    Santosh

    Further info
    keydb.xml is empty and the directory has got write access for everyone
    regards
    Edited by: Santosh Keerti on Jun 4, 2008 1:29 PM

Maybe you are looking for

  • Setting up new ini with exisiting itunes

    I just bought a new mini ipod from a friend. How do I make sure all the songs stored in my itunes will transfer properly? And, how do I register the new ipod to myself? Thanks

  • Is there a full download option?

    I need to download Reader 9 to burn to CD, because the site I need it at only has a 512k frame which would be hammered by a download (I can download it from home with my 6mbit connection). Is there a way to download Reader without using the download

  • Stolen iPhone

    My mothers iPhone just got stolen. She has the Find iPhone app on her phone. Is it possible to find it from my iPhone or iPad?

  • Bookmarks are not sticking

    I have audio that I record with Audio Hijack Pro and they are saved as AAC bookmarkable. The actual filename ends with .m4a. I am losing the bookmarks. I just tried a test with a real audio book from audible and it did not save the last played locati

  • Prob node root PL/SQL

    Hi, how can i put an attribute to my root node like this? in PL/SQL <?xml version='1.0'> <ROOT xmlns = 'schema.xsd'> <------- </ROOT> Thanks