Enable desable item

Hello
how it is possible to enable or disable an item in page b based on a value of an item of page a , when going from page a to page b?
Regards
Aris

I have found a solution. It seems that if i define the XMlList outside the menu and i use it as the menu dataprovider like you can see in the code i can enable/desable the menu by setting up the enabled value with a bindable boolean (in the first case the enabled option didn't worked with a bindable variable only with: enabled="false" which didn't helped me cause i coudln't enable the menutiem back in):
[Bindable]
private var isEnabled:Boolean=false;
<mx:XMLList id="myMenuList">
<menuitem label="menu1">
<menuitem label="menu1_1" open=""/> 
</menuitem> 
<menuitem label="menu2"> 
<menuitem label="menu2_1" open=""/> 
<menuitem label="menu2_2" open="" enabled="{isEnabled}"/> 
</menuitem> 
</mx:XMLList> 
<mx:MenuBar id="myMenuBar" dataProvider="{myMenuList}" width="100%"> 
</mx:MenuBar>

Similar Messages

  • Enable single item recovery with two retention settings at the database level.

    Hello All,
    We have an Exchange 2010 SP3 RU4 environment and planning on moving from third party archives solution to Native Exchange archives for cost reduction purposes, upgrading to Exchange 2013 to benefit from added in place features is not within scope at
    this stage.
    We are looking at implementing the following steps and want to know if it will work:
    1-Create archive DB(s) as per our usage and growth projections
    2-Enable archives for all our users and migrate current archive content to it.
    3-Create Retention Tag/Policy to move all records from live to archive "Age limit for retention" 90 days (no retention tags on the policy)
    4-Enable Single Item recovery for all of our users (script the same to run twice daily to enable SIR for newly created accounts)
    5-Set the "Keep Deleted Items" on the Live DB(s) to 90 days and the Archive DB(s) to 7 Years
    6-We are NOT using Legal Hold or plan to use it except on per as need basis
    Are we accomplishing the following:
    1-Items are automatically archived after 90 days
    2-Items archived now have a 7year retention based on the "keep deleted items" set for the archive DB(s)
    3-Items copied back to the live mailbox by a user will be returned to the archive database the next time the folder assistant runs against this user account (based on load or if run manually)
    4-Hard deleted items by a user is recoverable as long as the email record is within the retention period set at the database where it resides.
    5-Hard deleted items are recoverable using MFCMapi or by a restore.
    6-Items are permanently purged on the archive DB(s) after 7 years.
    Any input, ideas, recommendations, clarifications would be greatly valued and appreciated.  
    Ash

    Thanks CodexCZ,
    So, SIR will "kind of" do the same as the retention tag except I can use different durations based on the limits on each DB? am I correct?
    thanks again.
    Ash

  • Enable open item mgt

    We have some GL accounts that we need to enable open item management. These gl accounts already have postings.
    What is the best solution to convert these accounts to open item managed.
    Thanks
    krishna

    Dear Krishna,
    Good evening and greetings,
    We have copied the same program into a Z program and removed that validation check that the program is doing and are able to achieve the desired result.  For your kind information we are not using New GL Accounting Concept of ECC5.0, instead we are still in the classic GL accounting.
    If you are also on the same option, then go ahead and copy the program to ZRFSEPA02 and execute in development client to check its behaviour and then go ahead in production client.
    Please reward points if found useful.
    Thanking you
    With kindest regards
    Ramesh Padmanabhan

  • How to make disable/enable single item recovery effectively Immediately?

    for the following command , "it may take up to one hour to disable single item recovery",my question is how to make the disable/enable  single item recovery
    effectively Immediately by some command?
    SingleItemRecoveryEnabled $false/true
    http://technet.microsoft.com/en-us/library/ff678798(v=exchg.141).aspx
    Please click the Mark as Answer button if a post solves your problem!

    other options:
    Move the mailbox to another DB or if in a DAG, activate the DB on another server. ( the activating seems to work as far as I have seen at least).
    Twitter!: Please Note: My Posts are provided “AS IS” without warranty of any kind, either expressed or implied.

  • 10g: Enabled list items and scrollbars look disabled

    Hi,
    Is there any way to change the way list items and scrollbars look in 10g?
    Enabled list items and scrollbars look disabled to me (the list button on the list item and the arrow buttons on the scrollbars are greyed out).
    Visual attributes doesn't seem able to control this.

    Nope you're pretty much stuck with the look and feel of the decoratiosn unless you want to create your own pluggable component - this would give you more control but you'd have to consider if it's worth the investment.

  • Enable/Disable item Based Value from Select in Tabular Form

    Hi Guys
    I want to Disable text field in Tabular form, Based on the Select List Item Value.
    Let's Say
    I'm having one select lista and text box in each record in tabular form.
    Select List having 2 items ... Add Text(return value 1) and No Text(return value 2)
    if value =1 then i want to enable text box , so user can enter value.
    if value=2 then text box won't allow to add text or will become disalbe.
    Please Help
    Thanks

    Hi,
    You can do this by using a small java script
    <script language="JavaScript" type="text/javascript">
    <!--
    function FldEnableDisable(pThis)
    if (pThis == 50)
      $x('P2_TEXT').disabled=true;}
    else
    { $x('P2_TEXT').disabled=false; }
    //-->
    </script>Here P2_Text is the text box whose value I am enabling or disabling based on the selected value from a List box. On The list box I have onChange="javascript:FldEnableDisable(this.value)" ( You can specify this under HTML Form Element Attributes)
    Thanks,
    Manish Jha

  • Enabled Disbaled Item

    Hello Friends...
    I have 2 Issues ...
    Issue 1 ...
    I want to enabeld or disabled field here is 2 loops
    loop -- 1
    Fetchning Record or Field Name from Database ... for compare if equal then enable true.. else false..
    loop -- 2
    this loop is depend on item level i want to check all items and which item name equal to database field name
    then its property equal to true else false. ..
    but i have error in (:system.cursor_record / :system.current_record)
    and the error is that
    ON ERROR : FRM-41032: Cannot set ENABLED attribute of current item BLOCK.ITEMNAME.
    but item name and block name is fine ...
    I don't understand what i do here.. Please Help me ..
    Issue 2...
    I want to mark check box as a checked from click button..
    when-button-press then checkbox mark checked..
    How to do this ...
    My Issue -- 1 Code is ... !
    Declare
         vc_last_Item VARCHAR2(60);
         v_item item;
         first_itm varchar2(60);
         v_curr_itm varchar2(60);
    Begin
         Break;
         go_block('REPORT_PARAMETERS');
         vc_last_Item := GET_BLOCk_PROPERTY('REPORT_PARAMETERS', LAST_ITEM);
         first_itm := Get_Block_Property( 'REPORT_PARAMETERS', FIRST_ITEM );
         for x in
         (select * from v_rep_par_nm)
         loop
              loop
                   v_item := find_item(:system.cursor_item);
                   If      :system.current_item = x.type_nm
                        then
                        set_item_property(v_item, enabled, property_true);
                             --Enabled_an_item('system.cursor_item', 'Y');
                   else
                             set_item_property(v_item, enabled, property_false);
                             --Enabled_an_item('system.cursor_item', 'N');
                   end if;
                   exit when :system.current_item = vc_last_Item;
                   next_item;
              end loop;
    end loop;
    exception
         when no_data_found then
         null;
         when others then
         message(sqlerrm ||'--');
    end;

    Hi,
    Issue 1 - the cursor must currently be focussed on the item you are attempting to enable / disable which is why you are getting this error. You need to make sure that the cursor is somewhere else e.g. using GO_ITEM to an enabled item.
    Issue 2 - you simply set the value of the checkbox to the checked / unchecked value you have set in the checkbox properties e.g. block_name.checkbox_item := 'Y';
    Hope this helps - if so please mark the post as helpful and if this answers your questions please mark the thread as answered.
    Mark

  • How to enable a item programmatically

    I have disabled a text item and want to enable it programmatically at the record level.
    I am using the following code but it doesnot work
    set_item_instance_property('block.item_name',current_record,insert_allowed,property_true);
    set_item_instance_property('block.item_name',current_record,update_allowed,property_true);
    set_item_instance_property('block.item_name',current_record,navigable,property_true);
    Thanks in advance.

    Hi,
    I think your question answer is some where here, look at this in your help file
    setting INSERT_ALLOWED to true has no effect at the item instance level unless it is set consistently at the block and item levels. For example, your user cannot type data into an item instance if INSERT_ALLOWED is true at the instance level, but not at the item or block levels.
    setting NAVIGABLE to true has no effect at the item instance level unless it is set consistently at the item and item instance levels
    Setting NAVIGABLE to true may affect whether the block is considered enterable. A block’s read-only Enterable property will be true if and only if its current record contains an item instance whose effective value for the NAVIGABLE property is true.
    etting UPDATE_ALLOWED to true has no effect at the item instance level unless it is set consistently at the block, item, and item instance levels.
    Regards, Khawar.

  • Record Level - Enabling & Disabling Item Checkbox in hierarchical Display

    Hi all,
    I need to display the a Hierarchical ALV. My requirement is to enable or disable particular Line Item's Checkbox.
                  *Header
                     Field1     Field2      Field3      Field4    Field5
                          #Item
                             'Checkbox'    Field1       Field2       Field3         Field4    Field5    Field6      Field7
    Here for perticular Item records ,the checkbox should be disabled.
    Please help me in this aspect.
    Thanks & Best Regards,
    Vishnu

    You can do that using TOP_OF_LIST event , there you can Disable or Enable the check box using the condition.
    In TOP_OF_LIST Event , read the report line by line and there you can check the condition.

  • Enabling Line-item Details

    HI Folks
    I am trying to test the feature called Line Item details. At the moment all accounts have this set to No. I ttried to change this on an existing accounrt to Y and load but I got an error message saying refrential integrity. I then tried to create a new account and uploaded this. It loaded burt when I went to a data grid and rightclicked there was no option for line items so I thought I might be missing something.
    I looked in my admin guide and there is another section in the metadata on the scenario which has the same attribute so I changed this to a Y but again when I try to reload I get the Refrential integrity error.
    Has anyone tried to set this up before particulary on existing accounts. Does the scenario also need this enabled or does that attribute refer ro something else. I havent used this featurre before but looks like it might be useful. Any help/advice is most appreciated
    Thanks
    Tahir

    The referential Integrity check come because you may have some data in the existing account as well. As this account did not support Line Item Details previously. So what you need to do is while loading metadata you check clear all metadata before loading. This might help you.
    Yes this needs to be enabled for the scenario in the metadata.
    Hope this is helpful
    Varun

  • Pay on Receipt for project enables Inventory Item.

    Dear all,
    We have this Pay on receipt scenario enable for all the procuement transaction, but while creating Receipt for Inventory Items which is Project specific Invoice in not created in the system. Can any one help regarding this why only with Inventory related project Item its not creating Invoice working fine for expense scenarios.

    CAn you please provide additional information,on
    whether the records are interfaced to AP interface tables?
    Does they error out?
    Do review the MOS note "ERS Invoices Rejected In Payable Open Interface Due To Project Related Data in AP Interface Tables (Doc ID 1359013.1)"

  • How to enable sent item for resource maillbox.

    Hello Team,
    I have access to shared mailbox. I need emails sent from shared mailbox be sent to "Sent item" folder.
    Does anyone knows the option to enable this feature.
    Thanks
    Srinivas

    Hi,
    To force Outlook to store messages in the Sent Items folder of that same shared mailbox when the messages are sent from a shared mailbox, please follow the steps below:
    Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully.
    For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft
    Knowledge Base:
    322756 How to back up and restore the registry in Windows
    A. Install the Outlook 2010 hotfix package that's dated December 14, 2010. For more information about this hotfix package, see the following Microsoft Knowledge Base article: 2459115
    Description of the Outlook 2010 hotfix package (outlook-x-none.msp): December 14, 2010
    B. Enable the hotfix by adding the DelegateSentItemsStyle registry entry, and then set the entry's value to 1. To do this, follow these steps: 
    1. Click
    Start, click Run, type regedit, and then click
    OK.
    2. Locate and then click the following registry subkey:
    HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Outlook\Preferences
    3. On the
    Edit menu, point to New, and then click DWORD Value.
    4. Type
    DelegateSentItemsStyle, and then press Enter.
    5. Right-click
    DelegateSentItemsStyle, and then click Modify.
    6. In the
    Value data box, type 1, and then click
    OK.
    7. Exit Registry Editor.
    We can learn more information from this kb below:
    http://support.microsoft.com/kb/2843677
    Melon Chen
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Enable menu items JavaScript execution privileges

    The note for the setting seems to contradict itself and/or the rest of the documentation: "Enables executing JS by clicking menu items. When off, privileged JS calls can be executed via the menu unless they have been wrapped in the app.trustFunction. Executing non-privileged JS calls via menu items is not blocked whether this box has been checked or not."
    Is that supposed to read "JS calls cannot [...] unless"?
    Will checking the box make reader more or less restrictive of embedded javascript from arbitrary sources in unsigned pdfs?

    Added this to the top of your code
    app.addMenuItem({
            cExec: "mySaveAs();",
                  cParent: "Edit",
                 cName: "Test"
    and tried to execute from the Edit drop down, however it is still throwing error. " This operation is not permitted "
    Acrobat EScript Built-in Functions Version 9.0
    Acrobat Annotations / Collaboration Built-in Functions Version 9.0
    Acrobat Annotations / Collaboration Built-in Wizard Functions Version 9.0
    Acrobat SOAP 9.0
    RaiseError: This operation is not permitted.
    Doc.saveAs:21:Menu Test:Exec
    ===> This operation is not permitted.
    I'm guessing there must be a setting in my Adobe Reader 9 that is causing this, if you are able to run the same script.
    FYG, the path c:\temp\ exists on the system i'm testing on,
    Any ideas?
    FYG, i'm a complete newbie to this javascript programming

  • Enabling Single Item Recovery per databse

    Hello,
    I am trying to find a command that will set "Single Item Recovery" to be true for all mailboxes in a database. I know how to set it for a single mailbox but I can't seem to find the correct syntax to make it work for each mailbox in a particuliar database.
    This is what I have come up with so far but it tries to set it on all mailboxes in all databases:
    [PS] C:\Get-Mailbox | Where{$_.Database -eq servername\databasename} | Set-Mailbox -SingleItemRecoveryEnabled $true
    Also, is there a way to set it as the default for all new mailboxes created in a database?
    TIA.
    Mark

    Addition to what Jonas said :)
    For a scheduled script you can use the same command as you already did: Get-Mailbox -Server
    servername| Set-Mailbox -SingleItemRecoveryEnabled $true. If you run that command once every night you would have to wait no more then one day before the new users have the correct settings.
    And if you want to make it a bit more complex you can add a where function and the command will only configure the mailboxes that has been created in the last 24h: Get-Mailbox -Server
    servername | Where { $_.WhenCreated -gt (get-date).adddays(-1) } | Set-Mailbox -SingleItemRecoveryEnabled $true
    Martin Sundström | Microsoft Certified Trainer | MCITP: Enterprise Messaging Administrator 2007/2010 |
    http://msundis.wordpress.com

  • How MRP would behave? if Pegging is not enabled at item level

    Hi,
    How MRP would behave in the following conditions.
    Item Level Setup,
    1)No Pegging
    2)Soft Pegging
    3)Hard Pegging
    thank you in advance,

    Just to clarify, irrespective of how you set the pegging attribute, the plan will calculate the supply /demand for the item (provided it is a planned item.)
    If it is a "no pegging" item, you won't be able to drill down from a planned order to the demand that caused the planned order to be generated. Similarly, you cannot drill down from the demand to the planned order that satisfies the demand.
    The soft pegging attribute is used if you do not have/want project/task data to be considered during planning.
    The hard pegging is used if you segregate supplies by project/task and you do not want to use a supply meant for one project to satisfy demand for a different project (or a different planning group).
    Hope this helps,
    Sandeep Gandhi

Maybe you are looking for

  • Windows 7 automatic login to AD and Edir

    Any one have clear instructions on how to accomplish automatic login to a windows AD domain and edirectory? Using Novell Client 2 Sp3 for windows 7 (IR6). Novell is the primary login. Goal is to enable the automatic login to both as user "install" ..

  • Data Cartridges in Oracle 10g XE

    Has anybody ever used Oracle 10g Express Edition and installed a third party data cartridge? Just wondered if they worked OK and were allowed under the licence agreement. I haven't read anywhere in the licence that they are forbidden and I wondered i

  • Dynamically embedded swf, has it ever worked

    I have to repost it. Wondering what adobe will say about it. I have tried this for a couple of days. I created a swf object in window.onload (also tried to create it directly while the script was loaded ), then call an AS function from JS. statically

  • ITunes LP buttons don't work?

    I just purchased Pink Floyd 'The Wall' iTunes LP version and the 'play album' button and 'song selection' button do not work when i click on them. Any ideas? the other buttons in the iTunes LP work fine. Thanks Steve

  • Content viewer starting at first page.

    Hello, I was wondering if there is a way to configure adobe content viewer to start back to first page every time you switch from an article to another? I've seen here that you can return to the first page by triple tapping on the article title : htt