Navigating through the items of a datablock

Hi,
I'm trying to navigate through all the items of a datablock to set the item property 'visible' to false. It works except for the last item. It gives me the following error: FRM-41016: Cannot set DISPLAYED attribute of the current item. Even when I first go to the first item of the datablock or the previous item. Does the cursor also navigates to items that are invisible or don't have a canvas? Any help?
This is my code:
PROCEDURE HIDE_ITEMS (datablock in VARCHAR2) IS
l_curr_item VARCHAR2(40);
BEGIN
go_block(datablock);
go_item(Get_Block_Property(datablock, FIRST_ITEM));
LOOP
l_curr_item := :system.cursor_item ;
NEXT_ITEM;
IF l_curr_item = Get_Block_Property(datablock, LAST_ITEM) THEN
go_item(Get_Block_Property(datablock, FIRST_ITEM));
SET_ITEM_PROPERTY(l_curr_item,VISIBLE,property_false);
EXIT;
END IF;
SET_ITEM_PROPERTY(l_curr_item,VISIBLE,property_false);
END LOOP;
END HIDE_ITEMS;
Thanks

You can cycle through the items in a block by using the FIRST_ITEM property, then use Get_Item_Property to find each item's NEXTITEM. Then you can test each item using Get_item_property to determine if it is NAVIGABLE.
You should not use go_block or go_item to do any of this.

Similar Messages

  • Does anyone know a way to programatically loop through the items in the document library

    A lot of the funcations like deleteSymbol and updateSymbol depend on which items are "selected" in the library panel.
    Is there a way to programatically access these selections?
    or
    Loop through the library?
    or
    Set selections?

    Yup, I've asked for an API to access the selection in those panels for years, to no avail.
    Note that you can loop through layers, frames and pages, but you can't tell what the user has selected in the actual panel UI.  Also, you can't find out which symbols are currently used in the document.  Nor can you programmatically insert a rich symbol into the document and have it maintain its "richness".

  • Navigating through artists menu

    Happy New Year!
    Does anyone have a suggestion for navigating through the artists menu? I have hundreds of artists and can't stand having to click (circle) all the way down the alphabet. Is there a feature that allows me to go straight to artists starting with "M" for example?
    Many thanks in advance =)

    You need to have a iPod nano (Second Generation) and Fifth Generation iPod (Late 2006).
    If it's an older iPod video, you do not have the search feature.
    http://docs.info.apple.com/article.html?artnum=304338
    Also, the search feature displays all songs that contain (not start with) the letters you input.
    You want the Fast scroll feature.
    Again, this is avalable only with the latest iPod Update (on the 5G and Nano).
    From the Users manua, available here -> iPod User Manuals
    "Scrolling Quickly Through Long Lists
    If you have more than 100 songs, videos, or other items, you can scroll quickly through
    a long list by moving your thumb quickly on the Click Wheel.
    Note:
    Not all languages are supported.
    To scroll quickly:
    1 - Move your thumb quickly on the Click Wheel, to display a letter of the alphabet on the screen.
    2 - Use the Click Wheel to navigate the alphabet until you find the first letter of the item you're looking for.
    This takes you to the first item in the list beginning with that letter. Items beginning with a symbol or number appear before the letter “A.”
    3 - Lift your thumb momentarily (or stop moving your thumb for about one second) to return to normal scrolling.
    4 - Use the Click Wheel to finish navigating to the item you want.

  • Help looping through page items

    Hello,
    I'm new to InDesign scripting and I need a way to programmatically loop through the items on a page of a document and get all of the text frame IDs (Using javascript). Once I find a match of the text frame I am looking for, I will need to update its contents. Is there an easy way to do this?
    Thanks in advance!
    - Lloyd

    Hey!
    var myTextFrames = app.activeDocument.textFrames;
    var myTextFramesNo = myTextFrames.length;
    Now myTextFramesNo holds number of text frames in document and myTextFrames holds text frame objects. Now you can run through text frames and set contents for each of them like this:
    myTextFrames[0].contents = "My Frame Contents";
    That's for start
    tomaxxi
    http://indisnip.wordpress.com/

  • ASCP collections not collecting the Items description from source Instance

    Hi,
    We have defined one item in source instance with item's description in Inventory. After the collection and planning, in workbench we could not able to see the Item's description. Can anyone advice me why the Item's description was not collected and shown in ASCP workbench?
    Thanks & Regards,
    Bharathram.N

    Hi Kevin,
    Thanks for your update. Now I can able to see Item's description in workbench.
    Actually somebody have mistakenly deleted the decription field in the backend in the table MTL_SYSTEM_ITEMS_B but the same item's dscription was present in MTL_SYSTEM_ITEMS_TL and thats how we found somebody have done this deletion manually from backend and not through the ITEM API.
    Now we have populated the description field in MTL_SYSTEM_ITEMS_B and ran the standard collection and the same being shown in ASCP Workbench.
    Thanks for your inputs.
    Thanks & Regards,
    Bharathram.N

  • Hiding a web item through the command line URL

    We use the Web API and command line processing heavily to pass in different filter values, variable values, data providers, etc. to our web reports.  I had a requirement within a given area to launch our web reports with the Navigation block visible on the web template.  In our commonly used 'default' web template, we currently allow the users to switch this item on/off once they are in the report, but we always have it come up Hidden initially.
    My question is this: is there some trick to getting a web item property changed dynamically at execution time from Hidden=X to Hidden= ?  I have tried numerous attempts to format a URL to change this behavior, but have been unsuccessful.  A sample would be: &ITEM=GR6&MULTI=X&HIDDEN=  --> this is intended to make all items with 'GR6' in the name unhidden.  But in my case, it ends up making more web items visible than I want.  Even specifying the Item name directly does not help.
    I have also tried applying it in conjunction with a command sequence from the Web API docs. Is there a particular command that this has to go with (i.e. LDOC? RESET_WEB_ITEM? etc.)?  We have a button on the web template that issues the command <SAP_BW_URL ITEM='GR6' MULTI='X' HIDDEN=''> when clicked -- this works fine.  How do I apply the same type of logic to the initial URL within the command processing?
    Any help would be appreciated.  I know that I can resolve this by just creating a copy template with this web item set to Visible instead of Hidden at the launch.  I was just thinking I could reuse the main web template and control it through the URL.
    Thanks...
    Jody Chassereau

    Heike,
    maybe you can help me out on this one:
    I'm trying to implement Tobias Kaufmann's How To Paper <i>Web Printing with Excel</i>.
    Before calling the respective Abap classes from my web template, I want to hide the web item <i>Hierarchical Filter Selection</i> as this one comes out ugly when downloaded to Excel. So what I'm doing is, I first hide the Filter Selection and then call the Abap classes.
    Here is the coding that I am using:
    <!-- Web Print with Excel-->
    <td class="SAPBEXNavLine"><A href="<SAP_BW_URL
    CMD_1='Item=HIERCONTEXTMENU_1&HIDDEN=X'
    CMD_2='CMD=PROCESS_HELP_WINDOW&HELP_SERVICE=HELP_SERVICE_PRINT&ITEM=Table_1&SUBCMD=PRINT_EXCEL'>">
    <IMG  alt="Web Print with Excel" src="/sap/bw/Mime/bex/icons/print.gif" border=0></A></td>
    This coding is working fine.
    The problem is however, that the <i>Hierarchical Filter Selection</i> is now hidden in my web template. To unhide it, I thought I'd use the coding as above, but add a third command (CMD_3) to make that item visible again.
    Here is the coding:
    <!-- Web Print with Excel-->
    <td class="SAPBEXNavLine"><A href="<SAP_BW_URL CMD_1='Item=HIERCONTEXTMENU_1&HIDDEN=X'
    CMD_2='CMD=PROCESS_HELP_WINDOW&HELP_SERVICE=HELP_SERVICE_PRINT&ITEM=Table_1&SUBCMD=PRINT_EXCEL'
    CMD_3='Item=HIERCONTEXTMENU_1&HIDDEN='>">
    <IMG  alt="Web Print with Excel" src="/sap/bw/Mime/bex/icons/print.gif" border=0></A></td>
    Unfortunately, only the commands CMD_1 and CMD_3 are being executed (which is kind of useless), the main command CMD_2 however is not.
    Do you have any idea why this is happening and how to avoid this?
    Really appreciating your help,
    Regards,
    Yogen

  • I want to implement three level Horizental navigation on the top navigation and menu items are created based on the data available in a SharePoint List.

    Hi All,
    I want to implement three level Horizental navigation on the top navigation and menu items are created based on the data available in a SharePoint List.
    Implement this requirement through customization, how can i start any help
    Thanks

    Hello,
    You can follow these links to get the result that you want. You can get the desired result either using the custom list or a site map. Please make sure when you edit the master page, dont work on the original v4.master. Always make a a copy and then work
    on it.
    This link will show you how get that navigation using a list.
    http://www.bitsofsharepoint.com/BlogPoint/Lists/Posts/Post.aspx?ID=60
    This link will show you how get that navigation using a sitemap.
    http://www.sharepointdiary.com/2012/01/custom-top-navigation-using-sitemap.html
    Please mark as "Answered" if this helped you.
    Thanks,
    norasampang

  • Every movie purchase through iTunes fails to transfer to my iPhone or iPad and the message I get is this: some of the items in the itunes library, including were not copied to the ipad because you are not authorized for them on this computer... help?

    For a couple months now, every movie purchase through iTunes fails to transfer to my iPhone or iPad giving me the error: "some of the items in the iTunes library, including were not copied to the iPad because you are not authorized for them on this computer". I have read many forums about deleting, reinstalling, de-authorizing and authorizing my iMac through the iTunes store. Many suggestions don't work except to rename the movie to *.MP4 in Finder under the iTunes movie directory. I imagine this is a setting or a bug somewhere... any suggestions on how to bypass having to rename the files in Finder? My research into Google suggests this problem dates back to 2007 or so but it is now more prevalent than ever.
    Thanks.

    Try:
    iTunes repeatedly prompts to authorize computer to play iTunes Store purchases

  • I have an app update on my phone through the app store, but i dont have that app and when i hit update it says the item is no longer available for sale,, but i cannot get rid of the little 1 at the corner of the app store app,, how can i get rid of it

    i have an app update on my phone through the app store, but i dont have that app and when i hit update it says the item is no longer available for sale,, but i cannot get rid of the little 1 at the corner of the app store app,, how can i get rid of it,, i have iphone 5

    You installed a hacked app, originally from the Mac App Store. It contains the receipt for a different app, downloaded using an account that you don't control. You need to identify and remove the hacked app.
    Important: The app you need to remove is not necessarily the one named in the App Store notice. For example, if the App Store says you need to update "Twitter," the hacked app may be "Angry Birds" or something else entirely. Don't make any assumptions about which app you're looking for. To find it, you have to carry out a systematic search.
    Triple-click anywhere in the line of text below on this page to select it:
    kMDItemAppStoreHasReceipt=1
    Copy the selected text to the Clipboard (command-C).
    In the Finder, press the key combination command-F to open a search window, or select
    File ▹ Find
    from the menu bar. In the search window, select
    Search: This Mac
    from the row of tokens below the toolbar. Below that is a popup menu initially showing Kind. From that menu, select  Other...
    A sheet will drop down. In that sheet, select Raw Query and click OK or press return.
    Now there will be a text box to the right of popup menu. Click in that box and paste (command-V).
    The search window will show all the App Store products you've installed. Compare those search results with the list of your purchases from the App Store. To see the complete list, you may need to unhide hidden purchases. If any apps were download from the App Store using other Apple ID accounts that you control, sign in to the store under each of those ID's and check the purchases.
    At least one of the items listed in the search window is not among your purchases in the App Store. Move each such item to the Trash. You may be prompted for your administrator password. Empty the Trash.
    Log out and log back in. Test.

  • Just bought a new mac mini, wireless keyboard, and track pad. My track pad will not synch. All advise I have been given is to change items in the setting menu, but I cant because I still have to get through the setup!!

    Just bought a new mac mini, wireless keyboard, and track pad. My track pad will not synch. All advise I have been given is to change items in the setting menu, but I cant because I still have to get through the setup!!

    The power button for the Trackpad is on the right hand end of the battery case. Press that button to initiate the pairing process. On the top of the Trackpad just above the power button is a tiny green light (you probably cannot see it unless it is lighted). That light will indicate ehther or not the Trackpad is discoverable. If the Trackpad has discoverable the green light will blink on and off. If it does not pair within 3 minutes you will have to press the power button again to re-initiate the pairing process. Once your Trackpad has paired, you can just leave it on and it will pair automatically when you reboot your Mac.
    If you are having problems pairing, try turning off any other Bluetooth devices within 30 or so feet of your Mac mini. That includes other Computers, iPhones, iPads, etc. that may be in the area. Once your Trackpad has pairedwith your mini, you don't have to be concerned about other Bluetooth devices.
    One other hint, I find that although the Wireless Trackpad does not eat batteries as fast as the Magic Mouse it still uses more than the Wireless Keyboard. It is a good idea to keep a supply of AA batteries around. I have used Apple's Rechargable batteries, but found they did not last that long before needing to be recharged. I have had the best battery life from Duracell Quantum batteries.

  • Line items posted through the non leading ledger

    Hi Sap Experts,
    I have activated non leading ledger to which assigned fiscal year variant.
    I want to post line items through the non leading ledger.
    Can any body please me advise.
    Regards,
    Prabhakar

    HI,
    Use the tcode FB50L and FB01L.
    It is Ledger group posting without LeadLeadger.
    Regards
    Madhu M

  • Unable get the bean in Controller of the item created through OAF Personalization

    Hello Folks,
    I have a requirement to create an Static Styled Text item through OAF Personalization and that item should be shown if it meets some particular condition.
    So I tried to extend the controller of the page and tried to get the reference of the bean but I am not getting the bean in the controller class.
    I have seen the main page and some external regions are there in the page.
    Main Page has the controller attached in its page layout region and other regions don't have any CO attached.
    Whenever I create the item it is under that particular region.
    When I try to access some seeded item created under that region and I am able to get the bean in the controller but not the one created by me.
    Here is the scenario:
    Suppose Page Name is TestPG, it includes some external region like XyzPG, whenever I create the item it gets created under XyzRN with name XyzRN.item1 but whatever seeded items are there those are there with name item2,item3 etc. For item2, item3 I am able to get the bean but not not for XyzRN.item1 in the controller.
    Could you please tell me how to get the bean for XyzRN.item1 in the main page controller.
    Please reply soon. Its urgent.
    Thanks,
    Raja Dutta

    Hi Shobit,
    I have tried the workaround given by you at the 4th reply.
    a) In your base page controller, try to get bean instance of child embeded region top ui element.
    b) Now use this bean instance to find child region instance from your base page CO
    But it didn't work for me :-( :'(
    Here is the information about the page and region:
    The page includes the region like this:
    <page xmlns="http://xmlns.oracle.com/jrad" xmlns:oa="http://xmlns.oracle.com/oa" xmlns:ui="http://xmlns.oracle.com/uix/ui" xmlns:jrad="http://xmlns.oracle.com/jrad" version="10.1.3_1086" xml:lang="en-US" file-version="$Header: AccountInfoPG.xml 120.8.12010000.2 2009/06/01 12:05:24 vnetan ship $" xmlns:user="http://xmlns.oracle.com/jrad/user">
    <oa:pageLayout id="PageLayoutRN" windowTitle="Account Information" amDefName="oracle.apps.ce.bankaccount.server.BankAccountAM" controllerClass="oracle.apps.ce.bankaccount.webui.AccountInfoCO" warnAboutChanges="true">
    <oa:defaultSingleColumn id="AccountInfoRN" extends="/oracle/apps/ce/bankaccount/webui/AccountInfoRN"/>
    I have check the /oracle/apps/ce/bankaccount/webui/AccountInfoRN through Functional Administration, it doesn't have any controller attached.
    I have tried like this:
    1. I have created one static styled text item through the main page personalization:
    Static Styled Text: IBAN Message which has id XxIBANMessage
    2. Another static styled text item through the region (included in the main page )personalization:
    Static Styled Text: (AccountInfoRN.XxIBANMessage1) [ When viewed at page level ]
    Static Styled Text: (XxIBANMessage1) [ When viewed at region level ]
    Controller Code is:
          try{
          // Get bean of Static Styled Text item  using    findChildRecursive
          OAStaticStyledTextBean ibanMessageBean2 = (OAStaticStyledTextBean)webBean.findChildRecursive("XxIBANMessage");
          if(ibanMessageBean2!=null && !ibanMessageBean2.equals(""))
            pageContext.writeDiagnostics(this,"XXAccountInfoCO:processRequest:found 1",2);
            ibanMessageBean2.setRendered(true);
          else
            pageContext.writeDiagnostics(this,"XXAccountInfoCO:processRequest:not found at page level 1",2);
          OAStaticStyledTextBean ibanMessageBean = (OAStaticStyledTextBean)webBean.findChildRecursive("AccountInfoRN.XxIBANMessage1");
          if(ibanMessageBean!=null && !ibanMessageBean.equals(""))
            pageContext.writeDiagnostics(this,"XXAccountInfoCO:processRequest:found 2",2);
            ibanMessageBean.setRendered(true);
          else
            pageContext.writeDiagnostics(this,"XXAccountInfoCO:processRequest:Not found with alias 2",2);
          OADefaultSingleColumnBean bean = (OADefaultSingleColumnBean)webBean.findChildRecursive("AccountInfoRN");
          pageContext.writeDiagnostics(this,"XXAccountInfoCO:processRequest:bean="+bean,2);
          OAStaticStyledTextBean ibanMessageBean1 = (OAStaticStyledTextBean)bean.findChildRecursive("XxIBANMessage1");
          if(ibanMessageBean1!=null && !ibanMessageBean1.equals(""))
            pageContext.writeDiagnostics(this,"XXAccountInfoCO:processRequest:found 3",2);
            ibanMessageBean1.setRendered(true);
          else
            pageContext.writeDiagnostics(this,"XXAccountInfoCO:processRequest:Not found through region 3",2);
          /*===========with findIndexedChildRecursive ===========*/
            OAStaticStyledTextBean ibanMessageBean3 = (OAStaticStyledTextBean)webBean.findIndexedChildRecursive("XxIBANMessage");
            if(ibanMessageBean3!=null && !ibanMessageBean3.equals(""))
              pageContext.writeDiagnostics(this,"XXAccountInfoCO:processRequest:findIndexedChildRecursive:found 1",2);
              ibanMessageBean3.setRendered(true);
            else
              pageContext.writeDiagnostics(this,"XXAccountInfoCO:processRequest:findIndexedChildRecursive:not found at page level 1",2);
            OAStaticStyledTextBean ibanMessageBean4 = (OAStaticStyledTextBean)webBean.findIndexedChildRecursive("AccountInfoRN.XxIBANMessage1");
            if(ibanMessageBean4!=null && !ibanMessageBean4.equals(""))
              pageContext.writeDiagnostics(this,"XXAccountInfoCO:processRequest:findIndexedChildRecursive:found 2",2);
              ibanMessageBean4.setRendered(true);
            else
              pageContext.writeDiagnostics(this,"XXAccountInfoCO:processRequest:findIndexedChildRecursive:Not found with alias 2",2);
            OADefaultSingleColumnBean bean1 = (OADefaultSingleColumnBean)webBean.findIndexedChildRecursive("AccountInfoRN");
            pageContext.writeDiagnostics(this,"XXAccountInfoCO:processRequest:bean1="+bean1,2);
            OAStaticStyledTextBean ibanMessageBean5 = (OAStaticStyledTextBean)bean1.findIndexedChildRecursive("XxIBANMessage1");
            if(ibanMessageBean5!=null && !ibanMessageBean5.equals(""))
              pageContext.writeDiagnostics(this,"XXAccountInfoCO:processRequest:findIndexedChildRecursive:found 3",2);
              ibanMessageBean5.setRendered(true);
            else
              pageContext.writeDiagnostics(this,"XXAccountInfoCO:processRequest:findIndexedChildRecursive:Not found through region 3",2);
          catch(Exception e)
            pageContext.writeDiagnostics(this,"XXAccountInfoCO:processRequest:catch:Erro:"+e.getMessage(),2);
    O/p through diagnostics:
    XXAccountInfoCO:processRequest:not found at page level 1
    XXAccountInfoCO:processRequest:Not found with alias 2
    XXAccountInfoCO:processRequest:bean=OADefaultSingleColumnBean, localName='header'
    XXAccountInfoCO:processRequest:Not found through region 3
    XXAccountInfoCO:processRequest:findIndexedChildRecursive:not found at page level 1
    XXAccountInfoCO:processRequest:findIndexedChildRecursive:Not found with alias 2
    XXAccountInfoCO:processRequest:bean1=OADefaultSingleColumnBean, localName='header'
    XXAccountInfoCO:processRequest:findIndexedChildRecursive:Not found through region 3
    Please advise. its urgent. meanwhile I will try the workaround given at 3rd reply.
    Thanks
    Raja Dutta

  • Is there any method to remember the running subtitle and audio stream when navigating through menus?

    I have a language Menu named 'Setup' with 4 buttons 1.English  2.Spanish  3.Spanglish  4.Subtitle Off.
    To reach this page you have to hit Setup button on Main Menu. The setup button takes to a sub-menu of Setup where I have a symbol of 'tick' at Subtitle Off indicating the state of the current subtitle stream. I have 3 more sub-menus with similar buttons but with 'tick' at different languages indicating the state of the current running/selected language, 2nd page has English with tick, 3rd page has Spanish with tick and 4th has Spanglish with tick. My client wants me to jump on the respective language ticked page when you hit the setup button on Main Menu. As far as I understand we cannot assign a code in Encore to a single button to read what subtitle stream is running.
    Is there any method to remember the running stream when navigating through menus?
    I have done this in Sonic Scenarist.
    Regards,
    A Gandhi

    I think this was added in a "newer" version of Encore (meaning anywhere from CS4 up). In any event, it is available in Encore CS6.
    There is a menu (not button) property that allows yoi9u to make the active subtitle track button the default (i.e. selected/highlight shows) just as you want.

  • In iTunes I'm having problems changing the "Media Kind" with a number of playlists in the OPTIONS menu from "music" to "audiobook". After going through the steps, the next time I check the items have reverted back to "music". What step am I missing?

    In iTunes I'm having problems changing the "Media Kind" in the OPTIONS menu from "Music" to "Audiobook". After going through the steps, the next time I check, the items have reverted back to "Music". What must I do to save it as an "Audiobook"?

    After more digging in the Support section here and some Google work, I turned off iTunes Match and lo and behold!  I can change the media kind to Audiobook!  So, it looks like iTunes Match locked the files up somehow and for some reason.
    I went into iTunes Store > iTunes Match > "No, Thanks" to disable it on the local PC.

  • How do I cancel a Newsstand subscription when there is no auto-renew facility/option through Settings? After removing the item on Newsstand it still shows as Active in Store Settings/Manage Subscriptions.

    How do I cancel a Newsstand subscription when there is no auto-renew option via Settings/Manage Subscriptions? After removing the item from the Newsstand site it still shows as Active via Settings/Manage Subscriptions. The publisher tells me it is not a subscription rate that is theirs, they have no knowledge of it, I subscribed through iTunes Store. Thank you!

    Hi qwerty,
    Dun tink that creative customer support sucks cos I had been dealing with them in the past and I can say that their service are quite gd and fast. If you wanted a refund, I tink you need to contact the store that sells you the product. Dun tink creative will refund you though.

Maybe you are looking for