Display.getCurrent, testing for display item type?

To save myself quite a few lines of code, I would like to test for the type returned by display.GetCurrent and set a variable to that.
For isntance:
thisDisplayItem = display.getCurrent();
Will this work? Or will I have to know ahead of time what it will return in order to cast it?

Sorry to waste everyones time. I just realized it's a simple matter of instanceof comparison.
:P

Similar Messages

  • Controlling of Input width for Password Item Type

    can we control the Input Width of
    password Item Type when the form creation.
    If the Item Type is Password for any field during the form creation, i want to control the Input Width for that field for good
    appearence.Pls tell me the solution.
    Thanks

    Through Functional configuration, this is not possible.  Please carry out coding corrections in USEREXIT_COBL_RECEIVE_VBAP as recommended in the following note.
    Note 1739319 - Cost center in Sales order item
    G. Lakshmipathi

  • Why URL column in WWSBR_ALL_ITEMS is empty for url item type??

    I tried to query url of the url item from WWSBR_ALL_ITEMS, but url doesn't return anything. Did I queried wrong table? Can someone please let me know how to find the actual url(such as http://www...) for the url item type. Thanks!

    I don't remember exactly where I got this solution -- I think it was from a TAR -- but I have the following comment on the copy of WWSBR_ALL_ITEMS that we use to replace the one that ships with Portal 3.0.9.8:
    "The join between WWV_THINGS(t) and WWSBR_URL$(u) is defined as t.url = u.url(+). The join should be t.id = u.object_id(+)"
    I haven't looked at the type stuff in a while, but I remember that we used the subtype to identify things when we were working with that view.

  • Unable to check'relevant for delivery' for 'Standard' Item type in Item cat

    Hi
    I am facing a strange situation in SAP when I tried to create a new
    Item category with Item type as 'Standard' & 'Relevant for Delivery',I
    am getting a message that 'Relevant for Delivery'is possible only with
    Value Item & Text Item...We have an other Item category in the system
    which is of Item Type 'Standard' & 'Relevant for Delivery'..We could
    create that Item category without any issues..Could you please let me know
    why system is behaving differently when we have same combinations( Item
    type as 'Standard' & 'Relevant for Delivery'.)
    Regards
    Prasad

    Hi Ramesh
    Thanks for your response..
    Only if we check'relevant for delivery' field the item will appear in the delivery document.
    Regards
    Prasad

  • Is it possible to have undefined attributes for an item type...see more in the messag

    I want to create an item called 'book' with attributes like title, date of publish, language, pages....and author, but i want that users can assign many authors (as much as users want)....is this possible?? How can I realize it??? Could I create author like a item type too?
    Thanks for all

    You can have any number of multi table mappings in an item descriptor.
    Take a look at the following example
    http://docs.oracle.com/cd/E23507_01/Platform.20073/RepositoryGuide/html/s1204repositoryexampleconetomanywitha01.html
    You can also open any repository in dyn/admin say userProfile.xml in ProfileAdaptorRepository and see the existing one to many (multi table) mappings.
    It just depends on how many multi properties you have in your requirements, create as many multi table relationships.
    ~Gurvinder

  • Error in Viewing Draft Invoice for Service Item Type

    Hi
    I am facing an error in viewing draft service invoice.
    I am saving a document (PO/ Invoice)  as draft.
    When i am trying to view from document draft list by double-clicking it. the Visual Studio Just-in-Time debugger opens up stating SAP Business One.exe encounterd an problem and by clicking NO button the SAP closes.
    Note: The Invoice is created for Service Items, it is working perfect with Item.
    This is urgent - any help
    I am using 2005 B PL 05 with SQL 2005 on Win 2003 SP1
    Indrajit

    Do you have any Addon's.
    As you seek answers here please post a support message to SAP Support
    https://websmp205.sap-ag.de/sbo-message-old

  • Vacation Rule works for ALL but not for particular notification in Item typ

    Hi,
    I have a situation where Vacation Rule is Ignored when choose the select option in notification page of vacation rule and notifications were being sent to Original Approver (who created the vacation Rule) instead of delegate.
    Vacation rule is working perfectly when choose the notification as ALL but is not working when given a particular message(Timecard Approved,Approve Requisition).
    Below is some example of this inconsistent behavior:
    1. Selected Item type as OTL Workflows for Employees, For this Item Type there are 3 Notifications as
    TIMECARD_APPROVED,ERROR_MESSAGE,TIMECARD_APPROVAL_INLINE in select opition.
    If i select the TIMECARD_APPROVAL_INLINE notifications are going to delegate, and for TIMECARD_APPROVED not going to delegate.
    2. Selected PO Approval, It contains only one Notification(PO_PO_APPROVE). So it is working fine.
    3 Selected PO Requisition Approval,it contains the 4 notifications.
    PO_REQ_APPROVE_SIMPLE_JRAD, PO_REQ_APPROVE,PO_REQ_INVALID_FORWARD,PO_REQ_NO_APPROVER.
    If i select the PO_REQ_APPROVE_SIMPLE_JRAD notifications are going to delegate, and for PO_REQ_APPROVE not going to delegate.
    Any inputs on this.
    Version 11.5.10.2 RUP 6.
    Regards,
    Ajith

    Hi,
    on problem I spot is that all your components created by the forEach loop have the same ID value. I suggest you change the ID to e.g. id="soc_#{item.index}" for zhe select one choices. In addition, I don't see where you refresh components after the change
    Frank

  • Testing for applications associated with a file type

    Dear contributors,
    while trying to open a simple *.txt file via java.awt.Desktop.open(File)
    the IOException is thrown. According to Javadoc there is "no associated
    application or the associated application fails to be launched" in this
    case. Interestingly the Desktop class does not provide methods to test
    for particular file type registration, just for the "support" of a generic
    Desctop.Action. Colud you please illuminate how to check, whether a file
    extension / file type / mime type has an associated application in a platform
    (in)dependent way at least for "opening" ?
    OS: Linux, 2.6.24-22-generic, x86_64
    JDK: 1.6.0_07, 64 bit
    Many thanks
    Jaro Pullmann

    If you make the call and an exception is thrown, then there is not application associated with the file type--otherwise I believe you need to do some registry work if you do not want a pretest.

  • Hide "more" button in a list view, only works for first item in the list

    I have the following code in a list view that outputs several dozen items in a web app.  The code only works for the first item, how can I make it loop through and execute the test for each item in the list view?  The {tag_hide more button} is a checkmark field that yields a numeric 1" if checked otherwise yields a numeric "0".
    <div id="more-option">
            <p class="right"><a href="{tag_itemurl_nolink}" class="btn btn-small btn-very-subtle">More &rarr;</a></p>
          </div>
          <div class="more-selection" style="display: none;">{tag_hide more button}</div>
          <script>
    if ($(".more-selection").text() == "1") {
        $("#more-option").hide();
    </script>

    What's the URL for the site where you are using this?  Offhand, it looks like it should work with your first example so you are either placing the script before those elements are loaded or you might try wrapping your current javascript inside the:
    $(document).ready(function() {
    --- your existing javascript here
    This make sure the code runs once all the html is loaded on the page.  Without seeing a URL and debugging with the js console in Chrome I can't give you a solid answer.
    But, I do know that you can probably do this with a lot less markup.  Once we figure out what the actual problem is I have a better solution mocked up for you on jsfiddle.
    When looking at my HTML code on jsfiddle, please realize I setup some dummy HTML and removed your tags and added actual values which would be output by your tags.  The main thing I did was remove the whole div.more-selection and instead, added a "data-is-selected" attribute on your div.more-option element.  Then, in my javascript for each div.my-option element on the page, we loop through them, find the value of that data attribute and hide that div if it's less than 1 (or 0).
    Here's the fiddle for you to look at:  http://jsfiddle.net/thetrickster/Mfmdu/
    You'll see in the end result that only two divs show up, both of those divs have data-is-selected="1".
    You can try pasting the javascript code near the closing </body> tag on your page and make sure to wrap my js inside a <script> tag, obviously.  My way is neater on the markup side.  If you can't get it to work it's likely a jquery conflict issue.  My version is using the $(document).ready() method to make sure all the code is loaded before it runs.
    Best,
    Chris

  • "Ask for Finder Items" Automator action broken?

    OK, I'm pulling my hair out on Automator (again). I'm on OS X Lion 10.7.1.
    Here's what I want to do: I have image files named "something-something (S1).png" and I want to create a copy of each file named "something-something (S2).png" then resize that copy to 50% the size of the original. A perfect choice for Automator, I would have thought.
    So here's the workflow I came up with:
    1. Ask for Finder Items: Type set to Files and Allow Multiple Selection checked.
    2. Duplicate Finder Items: To create a copy, hopefully named "something-something (S1) copy.png".
    3. Rename Finder Items: Set to Replace Text, with Find set to "(S1) copy" and Replace set to "(S2)" (in basename only).
    4. Scale Images: Set to By Percentage 50.
    I would have thought that would have worked. Trouble is, it doesnt even get to first base. When I run the workflow I see the expected choose file dialog, and I choose a test PNG file. Then Automator happily announces that "Ask for Finder Items completed" in the log, and proceeds to sit .. and sit ... and sit. It says it's running, but nothing is happening. No duplicate file action happens, no rename .. nothing. Oh, and yes, I do see the selected filename in the "Results" area for the Ask for Finder Items action.
    What's going on? Any ideas? For a supposedly intuitive tool I find automator inscrutable (and I'm a 30 year seasoned operating system oftware developer).
    TIA,
    --Tim

    FWIW, if you've found a bug, please contact Apple Support folks or (if you have access) use the BugReport tool. 
    (This is a user forum, and the Apple Engineering folks may or may not see any reports that are posted here.)

  • GetItemData integration api: unable to read data for custom item

    Hello,
    I am trying to retrieve the data of an custom item via the getItemData api but i am gett the error message
    "Not implemented for this item type"
    I checked the api documentation, the list of supported item types include custom methods.
    Is there any thing that i need to maintain for the custom method so that i can read the data stored by it using the getItemData api.
    or is it simply not possible to read custom item data.
    Thanks for the help,
    Regards,
    Saurav

    Hi Ruediger,
    Thanks for the reply.
    To test the getItemData API i have implemented the hello world custom method example (java script).
    I created an item using the UI and edidted the content.
    when i try to read the saved data using the api i am getting the message
    encountered an error:
    Server returned HTTP response code: 400 for URL: https://streamwork.com/v1/items/5EXAbr-TgVCJV1qgL8-g1W/item_data?
    <?xml version="1.0" encoding="UTF-8"?>
    <error>
      <http_status>400 Bad Request</http_status>
      <message>Not implemented for this item type.</message>
    </error>
    When i try to read the data of a text item using the same API I am getting the correct response
    <text_item>
       <text_content><p>Hello testing</p></text_content>
    </text_item>
    So i was wondering how i can implement the getItemData for my custom method.
    Thanks and regards,
    Saurav.

  • Line item type Info Object ????????/

    Hi friends
       just for clarification is there any 0 Info Object available for Line Item Type field (i.e,  LINETYPE (char 5) in FAGLFLEXA Table)....or do I need to create a custom object...
    Thanks

    Hi,
    No need to waste much time here. If you are not able to find any relevent IO in Buisness content also , then create a new z-info object.
    With rgds,
    Anil Kumar Sharma .P

  • Remove UWL Action from just one item type

    I would like to remove the "forward" action from only one item type in the UWL.  There is the ability to remove an action from all items in a particular iView using "List of UWL Actions to exclude", however, I can not find out how, or if it is possible to exclude a UWL action in the XML configuration file for just one item type.  We are on NWO4s sp 05.  Does anyone know if this can be done and what the xml snippet would look like that would remove the "forward" action from a single item type?
    Regards,
    Stephanie.

    Kiran,
    The xml snippet you sent does remove the "forward" action from the UWL preview iView, but it does not remove the action from the list view.  To the right of every item in the list view is the "properties" icon (unclear on the actual name of this icon - the one that has 3 small lines and a triangle).  When this is clicked the "forward" option still appears.  I am looking for a way to totally disable the forward option on the defaultView, but only for certain item types.
    Regards,
    Stephanie.

  • VA01 Item category display only for specific order type

    Hi,
    I have a requirement to deactivate(display only) item category field in VA01 table item for certain order type . I tried the user exit  MV45AFZZ(USEREXIT_FIELD_MODIFICATION). This is working only if the table item has a value. i.e I could able to enter an item category first and then enter the material and quantity.
    So please suggest any alternative how to make the item category field(VBAP-PSTYV) column display only for centrain order type.
    Regards
    Aromal R

    Hi,
    Create a Custom Authorization Object so that you can control it for certain users.  2. Write implicit enhancement spot in the include TCS MV45AF0T_TCTRL_U_ERF_AUFTRAG_I,
    FORM TCTRL_U_ERF_AUFTRAG_INIT
    AUTHORITY-CHECK OBJECT 'ZITMCAT'
              ID 'ACTVT' FIELD '02'.
    IF SY-SUBRC NE 0.
    *    DATA: WA_COLS LIKE LINE OF TCTRL_U_ERF_AUFTRAG-COLS.
    LOOP AT   TCTRL_U_ERF_AUFTRAG-COLS INTO WA_COLS.
       IF WA_COLS-SCREEN-NAME = 'VBAP-PSTYV'.
       WA_COLS-SCREEN-INPUT = 0.
       WA_COLS-SCREEN-OUTPUT = 1.
      MODIFY TCTRL_U_ERF_AUFTRAG-COLS FROM WA_COLS.
       ENDIF.
    ENDLOOP.
    ENDIF.
    Regards
    Aromal R

  • PRRW - Displaying separate line items for separate Wage Type / tax Code

    Hi ,
    In the Travel trip PR05 after the trip is setteled, the trip no. need to run with the Posting run through Tcode: PRFI. Then we need to Run the Created Document using the Tcode: PRRW. My Requirement is that for some WAGE TYPE which are assigned with the Expense type which are assigned to the Same GL Account. While posting in FI we need to get the Different line items history for diffrent Expense type even though the expense type are assigned for the same Account Number.
    For Eg:
    EXPENSE TYPE: BUSB settelment amount -1.53
    BUSL settelment amount -2.67
    VERM settelment amount 50.00
    After Posting i need to get as Same Doc Number with different line items in the FBL1N while posting.
    I found the BADI for the same TRIP_POST_FI, but to get the soultion to my requirement i need the help on that.
    Please provide me with the sample code so that i can get over the issue.
    Best Regards
    Bhavana

    could u please share on how u found the resolution for this.
    It will be a great help.
    thank you,

Maybe you are looking for

  • Satellite C855D-S5303 Video Memory

    I just bought this laptop because I needed something that wasnt expensive and needed it quickly (for college). I have replaced the original 2GB's of RAM with 8GB's. Is there a way to dedicate some of this extra RAM to my video memory? I have already

  • Airport won't light up - nothing.  it's only  16 months old. is it unusual for it to be dead?

    Airport won't light up - nothing.  I've only had it 16 months.  Is it possible that it died that quick?  Any suggestions?  Thank you very much.

  • Iphoto 6 backup to dvd?

    I have passed the mark of putting in one dvd and clicking burn. Now it says it won't fit on one dvd, however when i deselect a couple of albums so it will fit....the burn zips done in one second and the disc is empty. Is there way to get it backed of

  • SAP Bundle Patches VS Orclaes CPU Patches

    Fellow admins Sorry I am new to these Oracle CPU patches what is the difference between SAP Bundle and Oracle Patches besides Oracle CPU's are for Native ORacle systems and the Bundle patches have fixes related to SAP's interaction with Oracle? Is th

  • XML forms rating

    Hello, I've created xmlforms and thanks to an UI command group I'm able to rate the documents from the renderlist To see the results of the rating I have to go to the detail page.  How can I make the result appear in the renderlist?  I already added