Logic function disable items

what is the logic of the array of the function enable disable items on a Menu ring in LabView 5.1

I'm not sure if you're asking why there should be disabled items or how to disable selected items. Why is because there may be situations where menu items don't apply and you don't want a user to select them. As to how, if you have a menu ring with items a,b,c, and d. If you want to disable b, this is element 1 in the array of elements and to disable it, you create an array with 1 as the only element and wire this to the property node DisabledItems (LV 6 and up. Not sure about name if 5.1). On the Front Panel, you can simply select the item you want to disable and then right click to enable or disable it.

Similar Messages

  • Function to disable items

    Hi everybody,
    My function disFormItems :
    <script language="JavaScript1.1" type="text/javascript">
    function disFormItems(item1){
    if(document.getElementById(item1).value != "")
    disItem = document.getElementById(item1);
    disItem.style.background = '#C0C0C0';
    disItem.disabled = true;
    </script>
    I call it on my p32_id_feuillet element
    OnClick="disFormItems('P32_ID_FEUILLET');" It works.
    But I want to launch this function when I open the page
    Second, I want my element to be bold, when I add disItem.style.font = ‘bold’ but my element don’t stay to a disabled state.
    Thanks. Bye.

    OK. I think your javascript is getting a bit confused! The basic code should be something like:
    <script language="javascript" type="text/javascript">
    function desactiverElement(item)
    var x = document.getElementById(item);
    if (x)
    x.style.backgroundColor = "#C0C0C0";
    x.disabled = true;
    </script>
    It's not clear in your example above if you actually want to test the value of the field before disabling it - are you checking it against P33_NEQ? If so:
    <script language="javascript" type="text/javascript">
    function desactiverElement(item)
    var x = document.getElementById(item);
    if (x)
    var y = document.getElementById("P33_NEQ");
    if (y)
    if (x.value != y.value)
    x.style.backgroundColor = "#C0C0C0";
    x.disabled = true;
    </script>
    Either way, the script at the bottom of the page should just be:
    <script language="javascript" type="text/javascript">
    desactiverElement("P33_ID_FEUILLET");
    </script>
    You also mention that you want the element to be bold. Using the disabled option probably won't allow you to do this as this normally turns all items into shades of grey. You can try using readOnly instead of disabled. Then try adding:
    x.style.fontWeight = "bold";
    Andy

  • Apex- disabling items

    Dear's
    I would like to disable item of any type on a apex page to block the data entry from the end user. I am populating those fields with function (e.g created_by field). When I am trying to insert into database, these columns are not getting inserted. Please let me know how to restrict a page item from the user data entry? And also the field should be updated in the database with the value whatever it has.
    Dennis

    You're definitely correct that disabled items are not submitted with the form. Depending on your needs, you can add logic to a database trigger or use hidden items as Daniel suggested. You can also add your own read-only attribute to the fields by adding readonly or readonly="readonly" to the HTML Field Element Attributes. This will make the field readonly, but will allow it to be submitted. That said, for fields like created_by, created_date, updated_by, updated_date, I always recommend setting those in a database trigger since that is the most accurate representation of those fields. If you want to capture the APEX user doing the insert or update, you can use an expression like :new.created_by := NVL(v('APP_USER'), USER). This will grab the APEX user when there is one or will insert the schema user when there isn't.
    Rgds/Mark M.

  • Disabled item problem on Apex 4.1.1.00.23

    Hello gentleman's
    I've got a problem. On my application i have a page with a text field with the options 'Disable' and 'Save Session State' setted to 'yes'. When i put some value on the text field using javascript and try to submit the page the following error message appears:
    'Session state protection violation: This may be caused by manual alteration of protected page item P1_TEXT. If you are unsure what caused this error, please contact the application administrator for assistance. Contact your application administrator.'
    I really need to save the session state of the text field, even when it is disabled, does anybody know anything about this issue?? I reproduced the error on apex.oracle.com:
    http://apex.oracle.com/pls/apex/f?p=1942:LOGIN:1277533900325401
    login: test
    password: test
    Best Regards
    Rogério

    What you're seeing is the intended and desired functionality of disabling an item and proof of APEX's built-in security robustness.
    To accomplish what you want:
    Turn off the 'Disable' option and set the 'HTML Form Element Attributes' to readonly="readonly"Keep in mind though, that now your "disabled" item can be modified by any user that knows how to access and manipulate DOM objects. If that is a concern you may need to come up with some way to validate the item values allowed.

  • Disable items

    I am currently using the following javascript to disable items.
    Page Header
    <script language="JavaScript1.1" type="text/javascript">
    function disFormItems(item1){
    disItem = document.getElementById(item1);
    disItem.style.background = 'biege';
    disItem.disabled = true;
    </script>
    Region Footer
    <script language="JavaScript1.1" type="text/javascript">
    disFormItems('P157_RANK');
    </script>
    The background changes colour.
    You can still over type the items, but this value is not saved.
    How do I stop the users from over typing, ie, totally disable field.
    Gus

    Will one of the following do?
    1) Make your text item of type Text Field (Disabled)
    2) Set a Read Only condition for your item
    Andy

  • Programmatically obtain disabled items within Enum, Array, etc.

    Hi,
    I am attempting to obtain the disabled state of every control and indicator and save this to a configuration file for a specific VI; which includes a broad range of arrays, strings, booleans, enums, etc. For simple objects, such as a string, that only have a single value this is easy using property nodes like this:
    For more complex objects, such as an enum, that have multiple values the above method only works for the enum object itself not the items within. If a property node is created for one of these more complex objects there is a property called "DisabledItems[]" which is not available using the Ctl property node (I assume because not all controls and indicators have multiple items). I would like this function to be compatible with all VIs so manually creating property nodes for the more complex objects is out of the question.
    Does anyone know how to generically and programmatically obtain the disabled items of one of these more complex objects? The same goes for arrays, clusters, rings, etc. 
    Thanks for any help,
    Aric
    Solved!
    Go to Solution.

    You can use the Class Name or Class ID property to find out what kind of control it is then use the To More Specific Class to cast the RefNum to the correct class.  You then have access to the properties you're interested in.
    Kelly Bersch
    Certified LabVIEW Developer
    Kudos are always welcome

  • Disable Item in tabular form in Apex

    I would like to disable items in tabular forms.
    If line status is Draft then all items of tabular form are enable other disable.
    How to write this condition and where should i write because in dynamic action tabular Item is not showing...
    Edited by: 926257 on Apr 9, 2012 12:53 AM

    hi
    926257
    you can do that using java script
    these links may helpful to you
    <a href>Tabular form: how to dynamically enable/disable columns and rows
    <a href>Tabular Form: Enable/Disable a field based on the status of a check box
    <a href>http://www.codetoad.com/javascript/enable_disable_form_element.asp</a>
    <a href>http://www.tizag.com/javascriptT/javascript-getelementbyid.php</a>
    thanks and regards
    pavan

  • Hp officejet/deskjet 4625 fax function disabled after a factory reset.

    Officejet/Deskjet 4625 Fax function disabled after a factory reset.
    - HP 4625
    - Fax function disabled after a factory reset, fax function disabled on fax machine.
    Good day HP community! I have a problem on my Hp officejet/deskjet 4625 after i did a factory reset. Oh by the way my printer is on a wireless connection setup and its ip address kept on changing and became very annoying so i decided to do the factory reset. After the factory reset i visited a "teach me to how to re-setup the wireless connection for Hp officejet/deskjet 4625" i downloaded the file needed on the installation and followed the steps but I failed. Here is the LINK.
    My installation failed during the "connect the usb cable from the printer to the computer" sequence. I plugged the usb cable waited patiently but after a long 30 minutes wait nothing happened. The full feature installer of the Hp officejet/deskjet 4625(OJ4620**) didnt work for me. Luckily i have a friend that had a  basic installer of the Hp officejet/deskjet 4620(DJ4620**) sent me via e-mail. I wonder what is the difference between OJ4620 and DJ4620 installers were, but thanks to my friend the DJ4620 worked. I finished the installation and the wireless connection setup was successfull!
    Now i can print via usb cable connection, network ssid connection & tru apple products. I just have one problem. My printer's fax function was disabled. I believe that the OJ4620 had an issue on win7 64bit OS, i also believe that the DJ4620 isnt capable on installing the fax function because it was only a basic installer. 
    I tried to search in the internet but to no avail, I cannot find a HP 4620 fax installer either an officejet installer nor a deskjet installer.
    My machines:
    Desktop - 64bit
    Netbook - 64bit
    Macbook Pro
    Macbook Air
    Hp officejet/deskjet 4625
    I badly need help on the fax functions because my small office need it everyday. I hope someone can help me here. Thanks in advance!

    Hello theEGG.
    Thank you for your detailed response. I understand after installing printer you are unable to use your Fax features. Any HP printer full feature software package already comes with the fax features.
    Please uninstall your software. I am going to provide a HP document to help you: Uninstall The Software. After this progress is done please move onto the next step: (This is only for your Windows computers)
    How to clean Temp Folder. In this document there is two ways to clean out the Temp folder. Please choose which option you are conformable with.
    To install the software, please use the:Printer Install Wizard. Make sure you leave the USB cord out of the computer until it props you to insert the USB cord.
    If you have any other questions please let me know.
    Ashley
    I worked on behalf of HP.

  • How to change the font color of a disabled item

    Can I change the default color of a disabled item from gray to something else? I've tried to put style="color:darkblue" in the HTML form element attributes but it didn't worked.

    Hi,
    Code probably run, but IE do not just understand CSS what code set ?
    I did find something related
    http://www.askthecssguy.com/2007/05/shawn_asks_the_css_guy_about_s_1.html
    Regards,
    Jari
    Edited by: jarola on Oct 27, 2010 11:24 PM
    And this
    http://stackoverflow.com/questions/602070/changing-font-colour-in-textboxes-in-ie-which-are-disabled

  • Quicktime functions disabled because a compatibile version of QT could not be found...

    Suddenly I am getting this error on start-up...Quicktime functions disabled because a compatibile version of QT could not be found...what give
    ? AECS3...I have Quicktime Pro 7.65, I works fine, quicktime works in Premiere and in the Bridge. AE can't even see .mov files....I searched the net, tried some suggestions (putting a .dll in a folder.) and just can't get it working again. Any help?

    Are you on Windows?
    I've seen one of the apple software updates corrupt my Quicktime install.
    Uninstalling it, or iTunes, or both, then redownloading it from apple and re-installing fixed the problem. You can download Quicktime independently of iTunes, but you can't get iTunes without quicktime. Make sure both are gone from Add/Remove programs.
    I would give that a shot.
    -c

  • Access for the disabled item

    Hi All!
    I have a disabled htmldb item, how can i read or access for this item's value? I would like to work with this value in the apex process.
    Now, if i use this disabled item (:P1_DIS_ITEM) in the process i get null value... But there is a value in...
    thx

    Hello:
    Disabled items are cleared out from session state upon Submit.
    Create a hidden item on your page and populate this hidden item just as you populated the disabled-item.
    In your page-process refer to the hidden item instead of the disabled item.
    Varad

  • Disabled item in plot legend when scrollbar is visible

    Problem is that plot legend shows only the plots being displayed correctly, while plot legend scrollbar is not being displayed, which is being controlled using LegPlotMin and LegNumRows properties. But when plot legend scrollbar is enabled (when number of plots exceed a certain number) then one disabled item (already being displayed in the enabled item above it) becomes visible. How to not show it while plot legend scrollbar is visible?
    Second question. If plot legend scrollbar is visible and the user has scrolled it to the bottom and left it there and then selects options where the number of plots are less than a certain threshold and the scrollbar is set to invisible, using property node; then the only lower disabled plot names are shown. So how do I set the scroll position for plot legend scrollbar. I could not find any scroll position property for plot legend scrollbar.
    Thanks

    It is true that you cannot set the index of the topmost displayed plot in a plot legend. It's a missing property! To accommodate long legends, I have used two graphs, one hidden behind the other. Both receive all the data, and their two legends are aligned side by side. In fact, I wrote a routine to align legends of stacked plots, which I've attached here for you. Maybe you'll find it useful!
    Attachments:
    align legends.llb ‏144 KB

  • SOCO function "Complete Item" doesn't work

    Helo.
    Please help to solve a problem.
    We have SRM 5.5
    We want to remove positions from SOCO through function "Complete Item".
    But at logon under the Ukrainian language function doesn't work. At logon under English language function in SOCO works.
    How can it be? And why?

    Hi,
    either you need to install the Ukrainian language completely (including supplementation) or if you plan to use the translation workbench for mass translation, you need to translate the texts included in the application you use.
    Please note: If you plan to use Translation Workbench (SE63) for mass translation, supplementation in that system should be avoided (see e.g. SAP Note 353852) !
    Best regards,
    Nils Buerckel

  • HTMLDB_ITEM.TEXT : disable item !

    Hello,
    I have a question regarding the use of HTMLDB_ITEM.TEXT,
    Exemple, if my report contains the following :
    select
    HTMLDB_ITEM.HIDDEN(1,p.id) id,
    HTMLDB_ITEM.TEXT(2,p.year) year,
    HTMLDB_ITEM.TEXT(3,p.name) name
    FROM person p
    where p.id = :P1_ID
    - the column year is diplayed but I have to disable it.
    - the column name is updated by the user.
    the save process is the following :
    for i in 1..wwv_flow.g_f01.count loop
    if wwv_flow.g_f01(i) is not null then
    update person set name = wwv_flow.g_f03(i)
    where id=:P1_ID and year = wwv_flow.g_f02(i) ;
    end if;
    end loop;
    works fine.
    My problem is : I must disable the column year, I have do the following :
    select
    HTMLDB_ITEM.HIDDEN(1,p.id) id,
    HTMLDB_ITEM.TEXT(2,p.year,3 ,2, 'DISABLED=DISABLED') year,
    HTMLDB_ITEM.TEXT(3,p.name) name
    FROM person p
    where p.id = :P1_ID
    Now, wwv_flow.g_f02(i) is no longuer recognized !!!!!!
    Any help !
    Jina.

    Jina,
    Perhaps this posting helps?
    Re: Bug: Disabled items on tabular form
    Regards,
    Marc

  • 40222 Disabled item failed validation.

    When I run a Forms app, I receive this error message after I click one of its buttons:
    41012 Invalid value for field Renewal_Type
    40222 Disabled item RB.Renewal_Type failed validation.
    There is a radio group by that name in one of the blocks, although it has not been assigned to a canvas. I think the developer of this app may have intended it for another form that he was going to build, but never got to it; thus it's disabled. Is that what causes this error message or is it something else? How can I fix this? Thanks.
    Edited by: Prohan on Sep 10, 2010 9:42 AM

    I found the answer here:
    FRM - 40212 / FRM - 40222 error on a radio group during query
    I can't say I understood the explanation for why it worked, but it did.

Maybe you are looking for

  • Cross reference or hyperlinking not working for InDesign CS5 Book to ePub

    I cannot get hyperlinks or cross reference links to work when generating an ePub from InDesign CS5. (7.0.0.355, Mac OS 10.6.2) Here's how to recreate a simple test demonstrating the issue. 1. Create a new InDesign Book (File -> New -> Book) 2. Create

  • My Safari keeps quitting when i try to open it

    I was using Safari 8.0.2 on my Macbook Air 2013 (OS X Yosemite) and suddenly, safari quitted and subsequently when I try and open Safari, a message just pops up and says "Safari quit unexpectedly". There's an option that says "Reopen" but when I clic

  • Itunes won't start in Windows Vista Home Premium

    I have an HP Pavillion dv6000 laptop that I just got around christmas, and it is running vista homem premium. Everything was working great until about a week ago, I started itunes, and windows just comes up telling me that itunes has stoppoed working

  • Are itunes lps of the same quality as the analog

    The question is this : an    analog format weather a computer reel to reel or an anlog lp contains much more data then it's digital counterpart. how does itune LP compare to its LP version.

  • Photos missing after upload to icloud photos

    Good Morning, We recently activated the icloud photo beta app to move all of the ipad photos into icloud as we were having issues accessing a few photos from the photostream and though it may be a good starting point. Since the upload a selection of