Colorier certaines cases d'un tableau

 Bonjour !
Voilà l'idée : j'ai un VI qui balaye des valeurs dans un tableau 1D.
Ce que je voudrais, c'est que lorsque le programme s'effectue sur la case d'indice i, celle-ci se colorie en rouge.
J'ai essayé de placer un noeud de propriété, mais je ne vois pas de propriété "couleur".
Auriez vous une solution à me proposer ?
Résolu !
Accéder à la solution.

superposer sur ton tableau un tableau de booléen
(dont le booléen de référence aura été customisé avec une image perso ... un cadre rouge avec l'intérieur transparent)
Quand tu passes sur la valeur "i" .. (en parralèle tu gères ton tableau de booléen) ... tu fait paser ton booléen n°i à True
... et ta valeur d'indice i dans ton tableau de valeurs sera alors entourée d'un cadre rouge.
J'utilise ce principe en 4 couches dans mon échiquier, cela fonctionne tip-top.
Pour coloriser "entièrement" la case d'indice i de ton tableau de valeurs ... là, je ne vois pas.
Un tableau est un ensemble dont les éléments ont tous les mêmes propriétés.
Tu n'arriveras pas à "coloriser"directement  UNE (et une seule) case de ton tableau de valeurs.
La superposition me semble l'unique solution pour obtenir un bel effet.

Similar Messages

  • Rendre inaccessible une case d'un tableau

    Bonjour,
    Est-ce possible de bloquer une case d'un tableau?
    J'ai déjà réussi a griser et bloquer un tableau entier mais j'aimerai savoir s'il est possible de bloquer et griser une cellule particuliaire.
    Merci

    Par exemple, lorsque je ne sélectionne pas 'Set variable' dans les cases du tableau 'Control', je n'ai pas besoin de la case contenu dans le tableau 'Set variable'. Ou encore lorsque je selectionne 'Manu' dans une case du tableau 'Transition condition1' (ou 'Transition condition2') je n'ai pas besoin des cases des tableaux 'Comp1', 'Value1' et 'Next step1' (respectivement  'Comp2', 'Value2' et 'Next step2'). C'est pour ça que je voulai rendre inaccessible ou griser certaines cases.
    Pièces jointes :
    menu.GIF ‏1665 KB

  • How do i get my code to be applicable in a certain case

    Greetings ABAPers. I would like to know the various ways in which i can get my code to be applicable in a certain case. Ive include the code below. I want the code to execute only when the object type is 'BP' for business partner. That is, i want my logic (code) to execute only when the object type is an external object (BP) otherwise it should be handled normally the way SAP handles internal objects. The tricky part for me isnt the actual check because i could have used the CHECK statement. The tricky part is how do i tell it to handle it the way SAP handles normal internal object assignments i.e. pass execution onto SAP so to speak.
    Any suggestions as to how i can clean up my code and improve my commenting is also greatly appreciated.
    Code:
    method if_ex_hrbas00infty~before_output.
    Ensure that this validation only occurs for this user
    check sy-uname = 'LMANDIMIKA'.
    If the function code is an insert then continue or stop otherwise
    check pppar-fcode = 'INSE'.
    *Data declarations
    data: lt_hrp1001 type table of hrp1001,
    ls_hrp1001 type hrp1001,
    lv_sobid type sobid,
    lv_sclas type sclas,
    lv_rsign type rsign,
    lv_relat type relat,
    lv_plvar type plvar,
    lv_otype type objid.
    Clear the local table and local variables
    refresh lt_hrp1001.
    clear: lv_sobid, lv_sclas, lv_rsign, lv_relat, ls_hrp1001, lv_plvar, lv_otype.
    *Take our data declarations and insert data elements from the new relationship which we are trying to create.
    lv_sclas = old_innnn-vdata+0(2). "target object type
    lv_sobid = old_innnn-vdata+2(10). "target object ID
    lv_rsign = old_innnn-subty+0(1). "relationship direction
    lv_relat = old_innnn-subty+1(3). "relationship type
    lv_otype = old_innnn-otype.
    lv_plvar = old_innnn-plvar. "planned version
    *Check for existing relationships between a BP of that type with other external objects
    select * from hrp1001 into table lt_hrp1001
    where plvar = old_innnn-plvar
    and sobid = lv_sobid
    and sclas = lv_sclas
    and rsign = lv_rsign
    and relat = lv_relat
    and otype = lv_otype.
    *Loop through the table and compare the existing relationship with the new one
    loop at lt_hrp1001
    into ls_hrp1001.
    Check that the end date for the existing relationship is after (greater than) the start date for the new relationship.
    if ls_hrp1001-endda > old_innnn-begda and ls_hrp1001-begda < old_innnn-endda.
    message e004(/cco/a3_msg) with lv_relat lv_sobid '' ''.
    exit.
    endif.
    endloop.
    endmethod.

    Hello kpmolinarivera,
    The iTunes Store country can be changed in Settings > iTunes & App Stores > Apple ID: > View Apple ID > Country/Region.
    iOS: Changing the signed-in iTunes Store Apple ID account
    http://support.apple.com/kb/HT1311
    Cheers,
    Allen

  • How do i get my code to be applicable in a certain case only

    Greetings ABAPers. I would like to know the various ways in which i can get my code to be applicable in a certain case. Ive include the code below. I want the code to execute only when the object type is 'BP' for business partner. That is, i want my logic (code) to execute only when the object type is an external object (BP) otherwise it should be handled normally the way SAP handles internal objects. The tricky part for me isnt the actual check because i could have used the CHECK statement. The tricky part is how do i tell it to handle it the way SAP handles normal internal object assignments.
    Any suggestions as to how i can clean up my code and improve my commenting is also greatly appreciated.
    Code:
    method if_ex_hrbas00infty~before_output.
    Ensure that this validation only occurs for this user
      check sy-uname = 'LMANDIMIKA'.
    If the function code is an insert then continue or stop otherwise
      check pppar-fcode = 'INSE'.
    *Data declarations
      data: lt_hrp1001 type table of hrp1001,
            ls_hrp1001 type hrp1001,
            lv_sobid type sobid,
            lv_sclas type sclas,
            lv_rsign type rsign,
            lv_relat type relat,
            lv_plvar type plvar,
            lv_otype type objid.
    Clear the local table and local variables
      refresh lt_hrp1001.
      clear: lv_sobid, lv_sclas, lv_rsign, lv_relat, ls_hrp1001, lv_plvar, lv_otype.
    *Take our data declarations and insert data elements from the new relationship which we are trying to create.
      lv_sclas = old_innnn-vdata+0(2).    "target object type
      lv_sobid = old_innnn-vdata+2(10).   "target object ID
      lv_rsign = old_innnn-subty+0(1).    "relationship direction
      lv_relat = old_innnn-subty+1(3).    "relationship type
      lv_otype = old_innnn-otype.
      lv_plvar = old_innnn-plvar.         "planned version
    *Check for existing relationships between a BP of that type with other external objects
      select * from hrp1001 into table lt_hrp1001
        where plvar = old_innnn-plvar
          and sobid = lv_sobid
          and sclas = lv_sclas
          and rsign = lv_rsign
          and relat = lv_relat
          and otype = lv_otype.
    *Loop through the table and compare the existing relationship with the new one
      loop at lt_hrp1001
        into ls_hrp1001.
    Check that the end date for the existing relationship is after (greater than) the start date for the new relationship.
        if ls_hrp1001-endda > old_innnn-begda and ls_hrp1001-begda < old_innnn-endda.
          message e004(/cco/a3_msg) with lv_relat lv_sobid '' ''.
          exit.
        endif.
      endloop.
    endmethod.
    Edited by: Lovemore Mandimika on May 14, 2008 10:36 AM

    Hello kpmolinarivera,
    The iTunes Store country can be changed in Settings > iTunes & App Stores > Apple ID: > View Apple ID > Country/Region.
    iOS: Changing the signed-in iTunes Store Apple ID account
    http://support.apple.com/kb/HT1311
    Cheers,
    Allen

  • Affecter des coordonnées à chaque case d'un tableau

    Bonjour,
    Esct ce qu'il est possible d'affecter des coordonnées X, Y a chaque case d'un tableau 2D. Exemple ds le tableau excel ci joint
    Par exemple je vx que la case (0,0) dont le contenu est 1 ait un systeme de coordonnées(0.0035,-0.0035).
    Merci d'avance,
    Pièces jointes :
    tab.jpg ‏33 KB

    Bonjour,
    Pourquoi ne pas tout simplement utiliser un tableau de cluster ? Cela parait plus simple....
    Cordialement,
    Pièces jointes :
    tableau_vi.vi ‏7 KB

  • Comment désactiver uniquement certaines valeurs d'un tableau de booléen (commande) sur la face avant

    Bonjour,
    j'ai une commande sur la face avant consituée d'un tableau de booléen (diode).
    Je souhaiterai griser/désactvier uniquement certains élèments de ce tableau pour contraintre le choix de l'utilisateur.
    Merci

    Bonjour,
    Je comprends ton problème mais malheuresement ce n'est pas possible.
    Mis-à-part les vlaeurs, toutes les diodes de ton tableau ont les mêmes propriétés (mêmes couleurs, même nom, ...) puisqu'il s'agit d'une diode répétée.
    Donc si tu en grise une, elles le seront toutes. D'ailleurs ne je sais pas si on peut grisé tout simplement dans un tableau... le mieux est de grisé le tableau en lui même dans ce cas là.
    Donc bref, grisé certain élément n'est pas possible, par contre, tu peux vérifier une modification et la refuser si l'utilisateur n'a pas le droit de changer cette valeur.

  • Diagram disable adds overhead in certain cases

    I was doing some timing tests of two ways to do the same thing – a typecast and flatten to string.  Well, in the process I saw a discrepancy when a diagram disable structure was wrapped around a typecast.  Without the diagram disable, 1000000 iterations took 274 msec.  With a diagram disable around the same thing, it took 1485 msec.
    This scared me a bit, because technically the diagram disable case should be no different (ok, maybe a small overhead).  It further scared me, because the same overhead is invisible with flatten to string.  Inconsistent behavior…
    The vi that clearly shows the “bug” in 8.0.1 is attached.
    This is not a show stopper, but says “use the diagram disable structure with caution”.
    Thoughts?
    Attachments:
    Diagram Disable Bug.vi ‏24 KB

    Apparently that wasn't the only case where Diagram Disable behaves differently than just having the code inline.  I also was  investigating the performance of certain VIs, because I wanted to know if variant operations were faster than flatten/unflatten to/from string.
    In the following snippet, I set the number of loop iterations to 100 and ran the VI, resulting in an Elapsed Time of ~50ms.  I then moved the 'To Variant' VI inside the Enabled structure for both cases (Disabled and Enabled), and running the VI again resulted in an elapsed time of over 2 seconds!  The source code should be identical in both cases, but it appears as though there is some optimization occuring in the first case that is not occurring in the 2nd case. It's as though in the first case, the compiler is smart enough to realize that the loop output does not change from iteration to iteration, but in the 2nd case it gets stupid.
    So continue to beware of the Diagram Disable structure...
    Attachments:
    benchmark.png ‏71 KB

  • Supprimer certaines lignes d'un tableau

    Bonjour à tous,
    J'avance petit à petit mais un problème auquel je n'avais pas pensé survient.
    Voila : je me retrouve avec un tableau de coordonnées x et y (tableau 2 colonnes avec un nombre de  lignes variables). 
    Certaines lignes contiennent en coordonées y la valeur 512 (2eme colonne) et je souhaite enlever toutes ces lignes afin d'obtenir un nouveau tableau purger de ces lignes
    Par exemple sur la face avant jointe j'ai 2 lignes sur les 5 au totale avec la valeur 512, je souhaite en sortie de mon traitement avoir un autre tableau  avec seulement les 3 lignes restantes (et  les lignes corespondantes de la première colonne !) - cette valeur 512 est placer de facon aléatoire sur mes différentes lignes.
    j'ai fait un bout de vi, que je joint, mais cela ne fonctionne pas et je ne suis pas du tout sur d'utiliser la bonne méthode.
    ( la partie la plus à gauche me permet juste d'avoir un tableau avec des valeurs égale ou non à 512.)
    Merci de votre aide...
    Résolu !
    Accéder à la solution.
    Pièces jointes :
    face avant.png ‏45 KB
    diagramme.png ‏13 KB
    essais purge tableau.vi ‏13 KB

    Super efficace Ouadji !
    c'est gentil ... mais après 4 ans de labview à raison de 4hrs par jour (parfois 10  )
    ce type de problème est résolu en temps réel pendant que je lis la question. (normal après 4ans)
    ceci dit ...au début .... TOUT était un problème ... j'ai du poser un bon millier de questions sur ce forum.
    donc pas d'inquiétude .... si tu pratiques LV régulièrement et si tu "en veux" ...
    ce type de problème deviendra vite un bonbon sucré  

  • Not all my passwords are synced across. Are there certain cases when it is not supposed to?

    I have two computers, one at work and my personal laptop. Both are set up to use FF4 sync, and I checked, passwords are enabled to be synced. However, I found that certain passwords are not synced (well, one at least) -- I thought adding the page as a favourite might help but no luck. The password is still not synced. Are there circumstances in which passwords should not sync (by design)? Or is this some bug?
    Thanks for the great browser, guys and gals!

    It's possible that particular Password is somehow "broken" to sync. In which case, Sync will skip it.
    To correct it;<br>
    - Delete the entry that isn't syncing from your passwords. <br>
    - Sync Now<br>
    - Then visit the page for the password, add the password<br>
    - Sync Now, again<br>
    - Finally, Sync Now, from other machine.

  • Oracle 11g stored procs: SELECT ALL_ARGUMENTS not returning certain values in certain cases

    I'm doing a select on the ALL_ARGUMENTS like:
    SELECT count(*) FROM all_arguments WHERE owner LIKE 'MySchema' ESCAPE '/' AND object_name LIKE 'MyStoredProc' ESCAPE '/' AND package_name LIKE 'MyPackage' ESCAPE '/';
    Sometimes, after connecting to the DB after a certain period of time, I get a result = 0, althought the Stored Procedure is there. Immediatelly after that I retry, and I get result = 2.
    Why is that? Does the SELECT recompile the stored proc?

    I'm surprised that you get anything if you use that query.
    Oracle considers object names to be uppercase unless the name is enclosed in double quotes. So there would be no schemas with a name 'MySchema' since the name would actually be 'MYSCHEMA'.

  • Parent not clipping children in certain cases

    I've run into 2 different cases where clipping doesn't work.
    One I can produce a test case that reproduces the problem where
    another I have a program that is demostrating the problem, but I
    don't know why. I've found a hack that causes clipping to get
    turned back on, but I wanted to know if anyone else has encountered
    these problems. I'm surprised because clipping is such a basic
    neccessity, and easy to implement I'm confused as to why Flex is so
    buggy. Here is one way of reproducing my first clipping problem.
    Create two canvases one as a child of the other, and set a bottom
    constraint on the child.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:Canvas backgroundColor="black" x="10" y="10"
    width="313" height="218" horizontalScrollPolicy="off"
    verticalScrollPolicy="off">
    <mx:Canvas id="c1" backgroundColor="blue" right="0"
    height="166" left="0" y="149"/>
    </mx:Canvas>
    <mx:Canvas backgroundColor="black" x="367" y="10"
    width="313" height="218" horizontalScrollPolicy="off"
    verticalScrollPolicy="off">
    <mx:Canvas id="c2" backgroundColor="red" height="166"
    bottom="-97" width="313" x="0"/>
    </mx:Canvas>
    </mx:Application>
    The above mxml will show clipping work (in blue), and
    clipping failing (in red). Turn off the use of bottom constraints
    and it will start working. I've filled a bug on the above code. I'd
    like to file another bug on the second one I've found, but I can't
    seem to boil it to down to a simple test cases.
    The next one I'm not sure why it's not clipping. I have a
    series of images being displayed on a Canvas in CD Coverflow in
    iTunes/iPhone like UI. The images will spill outside the container
    when they get larger than the parent. However, if I put another
    child whose bounds also spill outside the parent, and set
    visible="false" then clipping will start working and all children
    will be clipped properly.
    Any ideas why clipping is so flaky? Are there cases where
    this is by design?
    Charlie

    d9tech,
    It's definitely a bug. We need simplified test case that
    exhibits the bug so we can submit it to JIRA. There are several
    works arounds that you can do to get it to work. Including the one
    Peter provided in the form. You can see others here:
    http://bugs.adobe.com/jira/browse/SDK-13584
    I don't think this problem is related to this bug though as
    I'm not using bottom or right constraints in doing my layout. What
    you describe sounds very similar to what I was doing as well. If
    you post your some of your code it might help in working out a test
    case that we can provide to JIRA so the Flex engineers can fix it.
    My program is not that trivial so I wasn't going to post it, but if
    you have one that's simpler then I'd be up for helping you work out
    a test case.
    Thanks
    Charlie

  • One step purchase order approval - Trigger only in certain cases.

    Hi,
        I want to trigger the one step workflow approval for Purchase Orders only in ceraitn cases.
    When the PO is created from a shopping cart it has to be automatically approved. In other cases the workflow has to be triggerred.
    I tried setting the no_further_approval flag to 'X' in the Approval BADI but did not work.
    Any Suggestions?
    Does the BADI BBP_WFL_APPROV_BADI work for one step approval or is it only for the n step?
    Is it better to manipulate the start conditions?
    Any help is appreciated.
    Joe Vellaiparambil

    Hi
    If the workflow is not working as expected, refer to SAP Note 322526, Analysis for workflow problems.
    You should go with making the start conditions work, as you are aware that only 1 level Approval is required. Try making changes in the start conditions by using transaction - SWB_PROCUREMENT.
    Note ->This BADI - BBP_WFL_APPROV_BADI is only recommended for N-step dynamic approval workflow. I don't think you need this BADI as the first alternative.
    <u>Refer to few links as well.</u>
    http://help.sap.com/saphelp_srm50/helpdata/en/ee/277e3c281f1817e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/2c/e68d406b305537e10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/8b/4fa9585db211d2b404006094b92d37/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/0e/bc7d3c6715c854e10000000a11402f/content.htm
    Regards
    - Atul

  • SKIP THE QUALITY IN PROCUREMENT IN CERTAIN CASE

    Dear SAPians,
                         My case is as follows :
    - We procure Material 'GUARSPLIT' and in Quality is activated along with the Procurement Data 'ACTIVE' with QM Control Key 'Z007' ( Certificate required, invoice block ) & Certificate Type 'YQ01' (Test certif. "2.2"  EN 10204).
    - We now want to get it crushed from a Contractor  'A'  PO is being made with the delivery address of contractor with the check of  SC box to make it Service contract.
    - Now when 'MIGO' is being done with moment type '101' , the System is responding that A Category YQ01 inspected Certificate is Required and we are unable to do the MIGO.
    - We want to do the MIGO in such a way that When we procure for Contractor 'A' the material should not come in Quality Stock & When we Procure it for our company 'IGL' By normal 103 & 105 then it must come thru Quality Inspection. The Quality will be activated in Material Mater in both cases & material code will be 'GUAR SPLIT' in both the cases.
    Thanks in advance.
    A.Mittal

    Dear Sujit,
                    Thnks for ur prompt reply. But as per your advised we cannot withdraw the 101 inspection lot creation as we are using some other scenarios where we required the inspection lot generation.
    I Feel that i have to more clarify my scenario so that you may suggest a better solution. my scenario is as follows :-
    We are procuring one material 'GUARSPLIT' from the Vendor 'A'. Material Master is having Inspection type '01' & Status 'Active'.
    In QM Procurement Data section ... QM Procurement is Active & QM Control Key 'Z007' , Certificate Type 'YQ01' is set.
    Now we want to give this material to a another vendor 'B' for grinding so we are making a PO where this Vendor 'B' is selected in Delivery Address and 'SC VEND' check box is selected.
    Our requirement is that when we give this 'GUARSPLIT' to 'B' Vendor then no inspection lot should be generated. and when we recieved it at our company say 'ABC' then inspection lot must be generated.
    Presently it is not happning & in 'B' Vendor case during MIGO it is showing error ' A Catagory YQ01 inspected certificate is Required' and we are unable to do the GR (MIGO) and inspection lot also not generated. On the other hand if we are taking it for our company address then no problem is coming. it is only coming if we are taking the Delivery Address of Vendor 'B'.
    Please help me in this case.
    Regards.

  • How exclude QM in certain cases

    1)In normal cases they are purchasing  a material and created inspection lot (with movement type 103) and taking usage decision(if accepted ,will go to unrestricted(105) otherwise returned with 124)
    How ever if the same material purchased from another vendor it should not under go any inspection(it should not create inspection lot as inpsection not required) .
    2)Also the same material if they purchase from local vendor it should not create inspection lot.(inspection not required)
    3)For Non stock materials(UNBW), inspection is required. how to address this.is it possible  by manual inspection lot or source inspection
    Edited by: raguram29 on Jun 24, 2010 2:03 AM

    Hi Raguram,
                           2)Also the same material if they purchase from local vendor it should not create inspection lot.(inspection not required)
    This can be achieved by settings in QM info record --QI01 -Here you can avoid inspection lot for particular vendor & material combination in Inspection control tab set as X-No Inspection
    3)For Non stock materials(UNBW), inspection is required. how to address this.is it possible by manual inspection lot or source inspection
    This can be achieved by settings in QM info record --QI01 -Here you can Get material  inspection for particular vendor & material combination in Inspection control tab Tick Source inspection -no GR
    Thanks,
    Rajanikanth

  • Avoid processing of WPUBON in certain case

    Hello Experts,
    We have a requirement for an Invoicing Scenario for a SAP IS R System. In this scenario, in case of a Particular Condition Type (ZXXX) in WPUBON IDOC (Segment E1WPB03), the further processing of Goods Movement (Article Document) and Billing Invoice (Billing Document) is avoided.
    I know there are following user exits which may be used, however I am not sure if this is possible and if yes how -
    EXIT_SAPLWPUE_050              POS Inbound Processing Messages
    EXIT_SAPLWPUE_102              IDoc WPUBON01 Before Document is Posted
    EXIT_SAPLWPUE_104              IDoc WPUBON01 Before Inbound Processing
    EXIT_SAPLWPUE_105              Check Whether IDoc Transaction WPUBON01 Is Compressable
    EXIT_SAPLWPUE_106              IDoc WPUBON01 Process User Segment
    EXIT_SAPLWPUE_109              IDoc WPUBON01 After Inbound Processing
    Any pointers are appreciated.
    With Regards,
    Vikrant

    Hi Carsten,
    Thanks for your reply.
    I have found out the User Exit EXIT_SAPLWPUE_102 can be used but not sure how. Do you have any idea??
    I am not sure, but I would like to know how we can handle this kind of scenario with Transaction Type and corresponding configuration. Can you please guide for this also??
    With Regards,
    Vikrant

Maybe you are looking for

  • How do I find the newest version of MediaSource to downlo

    I've been trying to get my Nomad Jukebox Zen Xtra (40 GB) to be recognized by my xbox 360, and I hear I have to download the latest firmware. So I download the first Playsforsure firmware and I see a 2nd one on the list that says to download that one

  • Mac Mail hacked FIVE times!

    I've had the same e-mail address for over twelve years and I'd never been hacked (or whatever it's called when everyone in your address book receives spam from you) until six months ago, when I bought a Macbook Pro and started using Mac Mail. Since t

  • Because Appearance Matters

    You know i think that sometimes we have to take a step back, and realise how lucky we are being part of the mac community. I was born in 1944 and I am bit slow on my apple G4. On Feb 15th I purchased for our club, iLife'6 & Work'6 from the new Apple

  • Error moving through large report

    Post Author: dbronstein CA Forum: General We have an ASP.NET 2.0 app with Crystal XI R2.  When we try to move to the end of a large report, we get this message: Failed to retrieve data from the database. Details: [Database Vendor Code: 17 ] Error in

  • Copy User Missing in SP07

    Hi All,   I am on version 1.00.72.00.xxxxx I am unable to see the copy user option when I right click on users in the studio. I thought this was available in SP07. am i missing something ? Message was edited by: Tom Flanagan