Conditional Tabs (show/hide)

I'm trying to hide certain tabs based on the condition of
whether they recieve content or not.
Apparently, applying
... visible="{(someTextInput.text.length == 0) ?
false:true}"
doesn't work with tabs.
What's the correct approach with tabs?
Thanks,
James

here you go as your post says during application
initializtion to remove all children after first occurrence of tab
without a label right?
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute">
<mx:Script>
<![CDATA[
import mx.controls.TextInput;
import mx.controls.Alert;
private function checkTabs(e:Event):void
var _nolabel:Boolean = false
for each(var childTab:Canvas in
mytabnavigator.getChildren()){
if(childTab.label=="") _nolabel = true;
if(_nolabel) {
mytabnavigator.removeChild(childTab);
]]>
</mx:Script>
<mx:Canvas id="mycanvas" >
</mx:Canvas>
<mx:TabNavigator id="mytabnavigator" creationPolicy="all"
creationComplete="checkTabs(event)" x="155" y="207" width="200"
height="200">
<mx:Canvas label="One" width="100%" height="100%">
</mx:Canvas>
<mx:Canvas label="two" width="100%" height="100%">
</mx:Canvas>
<mx:Canvas label="three" width="100%" height="100%">
</mx:Canvas>
<mx:Canvas label="four" width="100%" height="100%">
</mx:Canvas>
<mx:Canvas label="" width="100%" height="100%">
</mx:Canvas>
<mx:Canvas label="six" width="100%" height="100%">
</mx:Canvas>
</mx:TabNavigator>
</mx:Application>

Similar Messages

  • Custom web part with ontextual tab - show/hide on focus

    Hi,
    I built a webpart that has a contextual ribbon tab and buttons, this webpart is added to a wiki page. When the wiki page is in edit mode I would like this custom ribbon tab to be shown or hidden depending on whether my webpart is clicked.
    Great thanks, if you can show me the right direction.

    Hi,    
    To show/hide the ribbon tab depending on the click event of the web part, a workaround is that we can use JavaScript to achieve it.
    With JavaScript, we can capture the click event of one web part in a page and show/hide with the help of the corresponding JavaScript function.
    Here are some links will provide more information:
    onclick Event
    Toggle (Show/Hide) Element
    Feel free to reply if there are still any questions.
    Best regards
    Patrick Liang
    TechNet Community Support

  • Show/Hide conditional text at a book level

    I am using TCS2 on Windows XP.
    FM 9.0 p250
    I have several files as part of a large FM book. Each file has the same text conditional tags. Can I, at a book level, set my conditions to show/hide, etc. and then update the book? So far, I only know how to open each file, set the SHOW/HIDE CONDITIONAL TEXT as I need it (not to show conditiona indicators and according to my built expression) and then save and close each file.
    Is there a way to do all my files at once? Note- I want them all set the same way... so that might make it easier..
    Thanks,
    Adriana

    adrianaharper wrote:
    I am using TCS2 on Windows XP.
    FM 9.0 p250
    I have several files as part of a large FM book. Each file has the same text conditional tags. Can I, at a book level, set my conditions to show/hide, etc. and then update the book? So far, I only know how to open each file, set the SHOW/HIDE CONDITIONAL TEXT as I need it (not to show conditiona indicators and according to my built expression) and then save and close each file.
    Is there a way to do all my files at once? Note- I want them all set the same way... so that might make it easier..
    Thanks,
    Adriana
    I don't have FrameMaker available right now, so I'm working from memory, using the traditional FrameMaker menus, rather than the FM 9 tools.
    Select all the files in the book window. With the book window active, open the View menu and look for Conditional Text. Your settings here apply to all selected files in the book window, so it's possible to set conditions on all or some files files. Ctrl+Click to select non-contiguous files; Shift+Click to select a range of contiguous files.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • Issue with page processing - confirmation message & show /hide a button..

    Hello,
    I am working on a to do list application.
    I have events and for each event, I show list of tasks (grouped in reports based on the calculated task's status).
    In one region I have a drop down list of events and a Select Event button.
    For each task, I had to create a CLOSE option (initially I used a link, but the requester wanted a confirmation before closing the task).
    Now I have a checkbox for each task (generated dynamically with apex_item.checkbox(1,task_id)).
    Closing a task in my application means to set the end_date to sysdate.
    I followed the instructions from
    http://download-west.oracle.com/docs/cd/B31036_01/doc/appdev.22/b28839/check_box.htm#CEGEFFBD. I've created also a button and a process and updated the sql from "delete" to "update".
    The process is set: OnSubmit - After Computations and Validations; Run Process Once per page visit (default).
    The issue number 1 is that I see the confirmation message (that tasks have been closed) every time I reload the page (the same when I click Select_event button).. not only after I press on that Close_task button..
    For issue number 2, I have to mention that I've added a condition to show / hide the Close_task button, only if I have at least 1 task in the report.
    The issue number 2 is that I see the button only if I click 2 times on the Select_Event button.. The same is for hide.
    I feel like I am missing something very important about how to synchronize different events(buttons clicks), processes..
    help..?
    Thank you!
    Anca

    This forum is magic..
    As soon as write here, I find the answer!
    Issue 1: I fixed it by specifying this: When Button Pressed (Process After Submit When this Button is Pressed) and my button. I miseed this 1st time.
    Issue 2: I moved the button after the report.. and now it's working just fine!
    I did this about it for some time before asking the question here.. but I just had to write here and got the right answer ;)
    Have a nice day!
    Anca

  • Condition tab in display mode while creating sales order.

    Hi Guys,
    When I go to create a sales order the condition tab shows all the condition types in grey, irrrespective of its being manual or mandatory. I know it has nothing to do with V/06 or standard pricing transactions. So I changes the item categry.Again used the same order type, same customer , same material and same sales area. Once I change the item category to Zxxx, Condition tab becomes changeable. So I concluded that item category is the culprit. But the question is Which part of item category is influencing it ?
    Please help.
    Regards,

    Hi Phani,
    While creating sales order (VAO1), I go to item level and click on condition tab. I see all the things in this tab grayed. Nothing is changeable. I changed the item category, while the pricing procedure was same as the old one. Condition tab became changeable. So it has something to do with item category. But what is that one thing missing in my item category which is making condition tab grayed out..?
    Regards,

  • Sale order showing a discount condition type twice in conditions Tab

    Dear Experts,
    Sale order showing a discount condition type twice in conditions Tab.
    Could you resolve my issue?
    Thanks in advance.
    Regards,
    Ravi

    Hi,
        In the Sales order, go to Conditions and in the Pricing 'Analysis' , check for where the system is determining the two values of this discount condition. It may be possible that it is determining from two condition tables.
    Also in the access sequence of this condition type, please make sure that the 'exclusive' indicator is checked for the condition tables.
    Please check if it helps.
    Thanks,
    Saurabh

  • FM9 crash during show/hide of conditional text

    I'm having a vexing problem with two of my chapters: whenever I attempt to show/hide the conditions, FM9 crashes with "Internal Error 9004, 6921852, 9677150, 0. Framemaker has detected a serious problem and must quit".
    A few things I've tried (as culled from posts on here):
    Updating to FrameMaker p250 from p237
    Saving as .mif, then opening and saving as .fm
    Changing the conditions on all chapters with the book open
    It's somewhat unpredictable. Saving as a .mif, then opening and saving as .fm worked once, but after performing an edit to the doc, it crashed again when toggling the conditions. Similarly, changing the conditions to all chapters with the book open seemed to avoid a crash, but trying it again crashed when it reached the problem chapter.
    It's definietly something in the file, as my co-worker will occasionally get the crashes with the the same chapters when showing/hiding conditions, but not always.
    Other details:
    My XP installation is up to date with all the Microsoft updates
    I'm using FM9 (unstructured)
    The docs in question are not "fresh" per se, but have been upgraded from FM8 to FM9
    Also:
    Our documents have conditions A, B, C, and D.
    In previous versions of Frame, we had been using the shuttle box interface for showing/hiding conditions: show A and B, hide C and D.
    Starting with FM8, we started using equivalent logical expressions: NOT "C" AND NOT "D".
    The crashing appears *not* to occur if I use the shuttle box interface. However, I'm told that we have use the logical expressions for some reason.
    Any ideas are appreciated. Thanks!

    SOLVED
    Here's my fix for Internal Error: 9004, 6921852, 9677150, 0 when saving as PDF, printing PDF, or printing to PS from FrameMaker 9 using Acrobat 9. YMMV.
    I could not reproduce this  Internal Error: 9004, 6921852, 9677150,0 when using conditions, so I do not know if this solution fixes the condition-provoked instance of  Internal Error: 9004, 6921852, 9677150, 0.
    Anyway, I uninstalled FM, rebooted, searched for leftover files, deleted them, rebooted, uninstalled Acrobat Pro Extended 9, searched for leftover files and registry entries, deleted them (probably missed a few), rebooted, removed the Xerox Phaser PS printer driver for my local printer (because it was PostScript, figured I should), rebooted, installed the Xerox Phaser PS driver, rebooted, installed FrameMaker, rebooted, installed Acrobat Pro Extended 9, rebooted, installed each patch for FrameMaker and Acrobat Pro Extended 9, rebooted, installed the MS Hotfix discussed here (http://blogs.adobe.com/techcomm/2008/07/hotfix_for_framemaker_1.html), and rebooted.
    All is now well for making PDFs.
    Sean

  • Show/Hide tabs in a report using profiles

    Hi,
       There is a need to show hide/show tabs based on User Profile or any other method.
       There are 1. Summary  2. Detailed Tab in report.
       For data analysts client want to show Detailed tab so that Analysts can work on Analysis.  Managers shoud be able to see only Summary tab.
      This is required to reduce no of modificatiosn required for reprots. This helsp to avoid prolifiration of reports as well.
      Pleas help on techniques/ tools to get this requirement at the earliest.
    Regards,
    Nanda Kishore B

    Hi Nanda,
    I do not think this functionality is currently available in WebI.
    However you could break these report tabs into two different reports and using access privilges make these two reports available to the concerned team.
    You can log a request at https://ideas.sap.com to directly work with the product group to check if this exact functinality could be included or not.
    Hope this helps.
    Regards,
    Manpreet

  • How to show deductible VAT in PO pricing conditions tab?

    Hi gurus,
    I checked out this similar thread "How to create VAT tax condition in Purchase order" [https://scn.sap.com/thread/1872416]; as this is still "Not answered", here I am to ask for your help.
    I can't access the VAT condition types availbale in system as per SAP standard JVRD - RM-Deductible or.JVRN - RM-Non deductible.... mentionet in the thread above.
    In this ITALIAN implementation we usually find what follows in "condition" tab, which shows only the non-deductible part of the VAT amount, which is calculated as 21%, with 1% deductible and 20% non-deductible:
    PBXX      Net price                 100,00 EUR
              Price 1                   100,00 EUR
              Price 2                   100,00 EUR
    NAVS      VAT purch. non deduc.      20,00 EUR
              Amount + tax              120,00 EUR
              Effective price           120,00 EUR
    while our customer requirement is to see:
    PBXX      Net price                 100,00 EUR
              Price 1                   100,00 EUR
              Price 2                   100,00 EUR
    NAVS      VAT purch. non deduc.      20,00 EUR
    XXXX      VAT purch. deductible       1,00 EUR
              Effective price           121,00 EUR
    Is this possible? How?
    Thank you sooo much.
    Laura

    Thank you for your helpful answer, I would need the customing steps to realize this.
    1) In customizing I define a new condition type ZZTT as follows :
    path SPRO>>IMG>>Material Management>>Purchasing>>Condition>>Define price determination process>>Define condition types
    2. maintain the calculation schema
    path as above except the last step
    Created a new calculation schema per copy of the existing one

  • FM12: Show/Hide condition does not apply to entire book

    FM12: From the Show/Hide Conditional Text pod, Show as per Condition applied to entire book does not consistently update book with correct condition. Now to get the desired condition, I have to apply the condition per section in the book. Has the workflow for this feature changed with FM12? Or is it a bug? Thanks, Patti

    > ... I have to apply the condition per section in the book.
    No, you don't. You can apply it to all component files in one operation. In the Book menu, select all component files.
    View > Show/Hide Conditional Text
    {edit}
    [ Set ]
    As Arnis pointed out, you do need to Update the book for complete re-application of Conditions.
    Edit > Update Book
    {select all possibly excluding Apply Master Page}
    In particular, any Cross-References to conditionalized text will still be as they were until xrefs are updated.
    We exclude AMP from Update because it is unstable in FM7, and run it as a separate operation, and re-Update book after that because pagination may have changed.

  • Disable or Hide or INACTIVE the CONDITIONS tab in ME22N(Change Pur.Order)

    Hello,
    We want to hide or Inactivate or greyed out all fields of CONDITIONS tab at 'Item Detail Level'  while editing or changing Purchase Order(ME22N) for particular PO type.
    I am not able to find the particular BADI or Enhancement or SCRREN EXITS, so that I can make greyed out all the fields of CONDITIONS tab at 'Item Detail' level while editing or changing Pur.Order(ME22N)
    Regards,
    Mahesh

    Hi Mahesh,
    [http://wiki.sdn.sap.com/wiki/display/Snippets/TransactionVariant-AStepbyStepGuidefor+Creation]
    [Hide Conditions|Hide conditions in PO;
    Create a transaction variant and try.
    Regards,
    Madhu.
    Edited by: madhurao123 on Aug 9, 2011 9:30 AM
    Edited by: madhurao123 on Aug 9, 2011 9:34 AM

  • Is there a quick way to show/hide conditional text to create a book?

    I have a set of files that represent chapters. These will be used in two books. Is there a way to show/hide conditional text from the book file rather than going into each chapter and setting show/hide for the book I want to create?

    WIth the book file open and selected, select all the files in the book (Ctrl+A), and apply your condition settings. Update the book.

  • Show/Hide tabs in top level navigation of a role based on assigned services

    Hi,
    I have an interesting requirement. I have created an overview page in abap web dynpro which has links to various services.
    Based on the r3 roles assigned to the user, we need to show/hide the services in the overview page and top level navigation.
    I can show/hide the views in the overview page but the links on top level navigation are created in the portal frontend by creating worksets, iviews, etc.
    Is there a way I can show or hide these worksets which are defined in the role on top level navigation?
    In a nutshell, can i update the visible/invisible property of a java workset from a call in abap web dynpro?
    Regards,
    Sumeet

    Please refer the framework page [http://help.sap.com/saphelp_nw70/helpdata/en/02/c7918e9fca44519701c47028a053fd/content.htm|http://help.sap.com/saphelp_nw70/helpdata/en/02/c7918e9fca44519701c47028a053fd/content.htm]
    What i meant was that you can do a custom TLN like this
    [http://help.sap.com/saphelp_nwce711core/helpdata/en/42/fd515a2aa95277e10000000a1553f7/content.htm|http://help.sap.com/saphelp_nwce711core/helpdata/en/42/fd515a2aa95277e10000000a1553f7/content.htm]
    Seems to me java/jsp is more appropriate than doing it via WDA.
    ANother way that you might look into this is Application integrator which again java programming effort needed.

  • VA02 - Header Condition Tab - Pricing Authorization

    Dear all
    One of my requirement is that, In Sales Order VA02, VA03, VA01  - in Header level Condition tab - I want to hide the Cost Price line only.
    I am able to do that Detail (Item level).
    But header level, it shows the Cost Price.
    Can someone hlep me, how to configure that not to display it based on authorization
    Regards,
    Venkat

    Hi
    Maintain the condition type as header condition as well in SPRO -MM - Purchasing - Conditions - define condition types.
    If you want it to be called in PO automatically then remove tick marks - required and mandatory in calculation schema for that vendor.
    thanks

  • How do you allow firefox to toggle show/hide menus

    I am using a website that has a show/hide text toggle. When I click the show button, it opens a new blank tab. I tested this on google chrome as well and it works properly. There must be a setting in firefox to correct this but I don't know what it is.

    Such a hide/show action is usually done via a JavaScript onclick event.
    If you get a new tab or window then this would suggest that the onclick isn't working and that the href is used and opens the new tab.
    You could check via the right-click context menu in the Inspector if there is an 'ev' button appended to this link (button).
    *https://developer.mozilla.org/Tools/Page_Inspector
    You can try these steps in case of issues with web pages:
    You can reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.
    *Hold down the Shift key and left-click the Reload button
    *Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    *Press "Command + Shift + R" (Mac)
    Clear the cache and remove cookies only from websites that cause problems.
    "Clear the Cache":
    *Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox/Tools > Options > Privacy > "Use custom settings for history" > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

Maybe you are looking for

  • Tablet won't connect with static LAN IP address

    Today I updated my Xperia tablet (model SGP311) to Android 4.4.2 (kernel version 3.4.0-perf-g32ce454). My tablet no longer connects to my home wi-fi network if I assign it a static LAN IP address. It connects fine if I use DHCP. But I prefer to assig

  • Printing to a Printer Connected to TIme Machine when using Remote Desktop

    Hi, I am having trouble printing to a printer connected to our wireless network via Time Capsule when I am on my remote desktop connection. Printing from all other programs work. I downloaded Bonjour on our Windows based server, and it did not detect

  • Unable to set columns under Layout Margins and Columns

    On certain pages in my 40 page document, I am unable to set the number of columns by using Layout>Margins and Columns. The columns option is dimmed out. I have tried to set them on a blank page and pages where columns were previously set (I can see t

  • G5 PPC runing 10.4.11 - need to move to 10.5.8 - guidelines? Tips?

    I have a G5 PPC desktop - running 10.4.11 I need to move to at least 10.5.8 to get support for a new printer {and it is time to start the progression to newer O/S anyway} I have the Black 10.5.6 Install DVD I have a Firewire external hard drive, Mac

  • Why can't I log in to YouTube when using Firefox?

    Information is stored on other websites just fine, and I have been able to log on to my YouTube account through Internet Explorer 8. However, when I click the 'Sign In' button on YouTube, I keep getting an error message that reads, "The page isn't re