Action on change

Hi,
I have the VI program as show in attachment.
I am entering data in the matrix POINTSX and POINTSY. When I click the OK button, I would like to compute the value of Q1,Q2,etc as shown.
I made a case with "Value change" (I also tried "Mouse up and Mouse down").
The problem is that when I click OK once, nothing happens. I have to click two times for my Qi to compute...
Is there a way that I can click only once to compute the Qi?
Is there a way that when I click OK, it goes to 1 and then return to his initial state without clicking twice?
Thank you very much,
Jack
Attachments:
Labview.JPG ‏50 KB

You need to place the terminals of the two array controls inside the event structure.
(Right now they get read at the start of the loop and not after the event executes.)
If the OK button is set to latch action, it should also go inside the event case for the same reason. This way it will properly reset.
LabVIEW Champion . Do more with less code and in less time .

Similar Messages

  • Issue in execution of Dynamic action on change event

    Hi,
    Greetings.
    I have scenario, where I have one select list (P_CATEGORY) and one shuttle control (P_ROOMS) on page.
    The values of the shuttle list is being populated based on the selected value in select list.
    The left pane of shuttle control's value based on LOV and source of the shuttle item is a plsql function, which returning colon separated value list.
    So that returned values shown in the right pane of shuttle.
    The LOV values are getting being populated using cascading LOV i.e based on the of Select List item. But the Shuttle source values not getting auto refresh and for achieving that I've created a dynamic true action on change event of Select list.
    The dynamic action is with :
    Action : Set Value
    Set Type : PL SQL funciton body
    Page items to submit : P_CATEGORY (this is select list)
    Escape Special Character : Yes
    Suppress Change event : Yes
    Affected Elements -
    Selection type : Item(s)
    Item(s) : P_ROOMS
    This is perfectly working on Firefox but not working on IE9 & Google Chrome.
    I've debugged in both IE9 & Google chrome and found the dynamic action get executes ajax call and the values get back but not rendering on the screen. i.e not assigning to the item.
    So can you please advice me what will be a workaround for this issue?
    I am using Application Express 4.1.0.00.32 .
    I'll appreciate your prompt response.
    Thanks & Regards,
    Jaydipsinh Raulji

    I don't understand why this is not working withouth seeing an example, there might be multiple processes working on the item.
    Anyway if the value is returned check if the value is in the session aswell. If it is in the session but not on the page that means you will need to find a way to bring it from the DB to the page. You can do this by adding an action to your DA:
    Action: Execute PL/SQL code
    PL/SQL code: NULL;
    Page Items to Return: your shuttle item

  • Dynamic Action On change tabular form question

    Hi guys!
    I've wanted to add dynamic action on change (tabular form) to execute PL/SQL which checks if column of the tabular form has changed and if yes it changes walue of text field to Y or N. It doesnt work...and I don't know why. If I create validation with this PL/SQL it works. Can you help?
    DA:
    On change - Tabular Form
    PL/SQL;
    DECLARE
       nazwa     VARCHAR2(4000);
       counter   NUMBER := 0;
    BEGIN
       FOR i IN 1 .. apex_application.g_f08.COUNT
       LOOP
        SELECT NAZWISKO INTO nazwa FROM SPR_META.M_UZYTKOWNICY WHERE NAZWA_UZYTKOWNIKA = apex_application.g_f02(i);
          IF wwv_flow_item.md5(nazwa) <>  wwv_flow_item.md5(apex_application.g_f08(i)) THEN
            counter := counter + 1;
          END IF;
       END LOOP;
       IF counter > 0 THEN
       :P5_IS_TABULAR_FORM_CHANGED := 'Y';
       ELSE
        :P5_IS_TABULAR_FORM_CHANGED := 'N';
      END IF;
    END;Page items to submit: P5_IS_TABULAR_FORM_CHANGE
    What's wrong?
    With regards,
    PsmakR

    Region static id shouldn be in bracketsYou missed the '#' informt of the region id.
    why my original PL/SQL process did not work
    FOR i IN 1 .. apex_application.g_f08.COUNTThis works only when the application array has values and that happens only when the page is submitted.When you submit the dynamic action , it isn't.
    This script combined with script to detect changes makes apex page running very slowIf you use that PLSQL code(assuming it works as expected) , then its going to take a server request every-time you change a field in the tabular form and loop though all the array values(if they would be submitted before) and recalculate and compare the checksums . Isn't that going to be very inefficient.
    As for that JS code, it only runs at the client side. You can do all the server side checks on submit, when the user expects some delay due to processing.

  • Action to change specific colors

    I'm trying to create an action to change two specific colors in ~300 different logo files (.ai and .eps). I'm coming from Photoshop so I assume there is a way to create a droplet from an Illustrator Action but that's a different topic.
    The colors are Pantone 143 and 287 which need to be changed to 143 U and 287 U, respectively.
    Here are the steps that I think I need to record for my action:
    Unlock all layers
    Add new colors to swatch board
    Select all layers
    Recolor Artwork... (Edit -> Edit Colors -> Recolor Artwork... This step is not recorded?)
    Save file
    The problem is that the Recolor Artwork step is not recorded. Can anyone explain what I should be doing to create this action properly?

    JavaScript is the answer. I found this somewhere A while back. This script changes Pantone 133 to 101. It can be edited to apply to any other Spot colors.
    This script requires both the old color and the new color exist in your swatches pallette before you run it.
    #target illustrator
    var docRef = app.activeDocument;
    with (docRef) {
              var replaceColor = swatches.getByName('PANTONE 101 C').color;
              for (var i = 0; i < pathItems.length; i++) {
              with (pathItems[i]) {
                        if (filled == true && fillColor instanceof SpotColor) {
                                  if (fillColor.spot.name == 'PANTONE 133 C') fillColor = replaceColor;
                        if (stroked == true && strokeColor instanceof SpotColor) {
                                  if (strokeColor.spot.name == 'PANTONE 133 C') strokeColor = replaceColor;
              for (var j = 0; j < stories.length; j++) {
                        with (stories[j]) {
                                  for (var k = 0; k < characters.length; k++) {
                                            with (characters[k].characterAttributes) {
                                                      if (fillColor instanceof SpotColor) {
                                                                if (fillColor.spot.name == 'PANTONE 133 C') fillColor = replaceColor;
                                                      if (strokeColor instanceof SpotColor) {
                                                                if (strokeColor.spot.name == 'PANTONE 133 C') strokeColor = replaceColor;
    More answers can be found here, such as how to make it unlock everything.
    http://forums.adobe.com/community/illustrator/illustrator_scripting?view=discussions

  • Agentry: Trigger action when changing main screen tab

    Hi,
    I'm adapting Work Manager for iPad and in my main screen I have 4 tab screens: Work Orders, Notifications, Time Sheets and Crew Manager.
    I would like to trigger a List Selection action step when the user navigates to the Time Sheets tab in order to select the current day of the week automatically. I already created and tested the action with a button and it's working fine but I don't find a way to trigger an action when changing main screen tabs.
    Here my main screen:
    In the screen definition there is not much I can define... just the icon, size and styling...

    Ok, thank you both, the question has been answered
    Regarding Bill suggestions I think there are too many possible actions in the main screen where to apply the selection step.
    And to apply Jason's workaround I need to do a major UI change and user's are too familiar now with the solution that has been in production for a while...
    I think I will set the date after transmit. It won't work on the initial load and when user manually selects a different day and comes back to the tab, but I think it will cover more than 90% of application uses since they are supposed to synchronise every morning and register time for the current date usually.
    @Jason: I hope you can tell the idea to the engineering team

  • Dynamic action to change item label

    Hi All,
    How can I use dynamic action to change item label?
    thanks.

    Hi,
    fac586 wrote:
    Why and when do you want to dynamically change a label? This would have a detrimental effect on usability and accessibility.
    Consider a visually impaired user of your app using a screen reader. The screen reader identifies a checkbox labelled "Free Cake". They like the sound of that, so navigate to the checkbox to tick it. Your dynamic action fires when it gets focus and changes the label to "Give all my money to Fadi".I think this would confuse even a sighted user! I don't know the OP full requirements or constraints but I can bet the OP does not want to change the item label when the user navigates to it.
    I have to say that I don't like forms that change as the user enters data. I think that enabling and disabling fields is OK, but not hiding or showing or changing labels or field types.
    In any case, if you have to do it, an alternative to changing an item label is to have 2 separate items: one hidden and one shown. Then, using some triggering event, you can hide one and show the other.
    Because there are built-in dynamic actions to hide and show items but not to change item labels, one might thing that one approach is more acceptable than the other. However, if those 2 separate items occupy the same spot in the page, from a user point of view (or screen reader for that matter) I don't see any difference between those two approaches (in my view, both bad practices.)
    And because of its lots of nested tables, lack of headings etc, apex pages are not screen-reader friendly anyway... This is an interesting plugin for firefox that shows how your page would be read by a screen reader:
    http://www.standards-schmandards.com/projects/fangs/
    fac586 wrote:
    You can use an "execute javascript" dynamic action type to do it.Yes, you can. But should you?I don't know. As I mentioned above, I don't like the idea. However, as I also mentioned above, I don't know anything about the OP constraints or requirements.

  • Custom Action to change selected column's Background color for a table in CEWP

    I have a OOTB CEWP. When I insert a table to this, I would like to see a context menu that would give me an option to change the selected cell's/row's/table's properties like cell padding/cell spacing/background color etc.
    How can this be achieved using SP2013 ribbon's custom actions. It would be great if we could add all these properties on a separate contextual tab when row/cell/table is selected.
    Rajasekar A.C

    Hi,
    If the table in Content Editor Web Part, we don’t need to use SharePoint Ribbon to achieve it.
    We can insert some input button and use jQuery to change the table tr/td background color.
    The code like this:
    <style type="text/css">
    .highlight {
    background-color: red;
    </style>
    <script src="http://code.jquery.com/jquery-1.11.1.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    $(function () {
    $("#TableID tr").click(function () {
    $(this).toggleClass("highlight");
    </script>
    Thanks,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Dennis Guo
    TechNet Community Support

  • Action on Change of a variable possible? Fe. in combination of checkbox widget.

    Hello,
    I'm using the checkbox wizard with 35 items from wich the user has to select max. 7 items. The checkbox wizard is a great tool that keeps the choices in user variables.
    Is it possible that  for every (de)selection a choice a counter keeps track of the number of choices and perfoms an action when the status of 7 is reached? Or is there an alternative?
    Lucas

    I have been blogging about the checkboxes widgets, you don't tell the version you are using? Because it has been replaced totally by the Checkboxes Learning interaction in CP8 and its latest version allows also to control what is displayed by changing the associated variables.
    However it remains a static widget, which means that it cannot trigger an action, because it doesn't have events: Events and (advanced) Actions - Captivate blog
    Even if it was an interactive widget, it wouldn't have helped. You will need an interactive object like a button to trigger an advanced (or shared action) that will count the number of variables that have a value different from 'null' Where is Null? - Captivate blog. 
    It will never be possible to trigger an action when the counter reaches 7, because the action will only be executed when the interactive object is clicked.
    Alternative: at this moment I only see to create the radio buttons yourself (use shape buttons) and each button can trigger an advanced/shared (use shared if you are on CP8!) action that will increment a counter and store the choice in a user variable, then (second decision in a conditional action) checks if the counter has reached the value of 7 to give a warning that the allowed number of choices has been reached and eventually disables all the shape buttons. I mention a shared action, because you'll need 32 instances of that action.

  • Dynamic Action on change automatically submit

    Hi,
    I have a tabular form (manually handled) with a text item that can be changed (Apex 4.0.2.00.07).
    Each time the user changes the value of the text item, the changes automatically will be submitted.
    Therefore I defined a dynamic action:
    event:onchange
    selection type: region
    with javascriptcode: apex.submit({request:'SAVE'});
    When I leave changed text item with tab-key everything works fine.
    But when I leave changed text item through a button Click only the submit of dynamic action is performed and the button functionality is ignored.
    The button click initiates the onchange event at the changed text item and then ignores everything after this event.
    The enduser will not be able to understand the behavior of the application.
    I have less experience in Java and JavaScript.
    Is it possible to get the information if and which button was clicked, so I can decide at javascriptcode of the dynamic action what is to do?
    Thanks,
    Brigitte

    Region static id shouldn be in bracketsYou missed the '#' informt of the region id.
    why my original PL/SQL process did not work
    FOR i IN 1 .. apex_application.g_f08.COUNTThis works only when the application array has values and that happens only when the page is submitted.When you submit the dynamic action , it isn't.
    This script combined with script to detect changes makes apex page running very slowIf you use that PLSQL code(assuming it works as expected) , then its going to take a server request every-time you change a field in the tabular form and loop though all the array values(if they would be submitted before) and recalculate and compare the checksums . Isn't that going to be very inefficient.
    As for that JS code, it only runs at the client side. You can do all the server side checks on submit, when the user expects some delay due to processing.

  • Dynamic action on "Change" of Radio group value

    Hi,
    I'm using Apex 4.1 on XE 11G.
    If I create a simple dynamic action which shows/hides a field on the change of an item of type select list this works great.
    So for example if the value of the select list is 1 then show another field and otherwise hide this other field.
    If I change the type of the first field ( the select list ) to a radio group the dynamic action stops working. It looks like the value of the radio group does not get changed when I click another value in the radio group.
    I'm somehow able to bypass this by using a dynamic action which fires when the radio group is clicked and then evaluatie it's value via JS, but that's not really the ideal solution.
    Is there some basic difference in radio groups and select lists when it comes to storing values and/or dynamic actions which are based on the change event on that item ?
    Regards
    Bas
    Edited by: Bas de Klerk on 31-mei-2012 6:42

    Take a look at the Radio group item in HTML DOM using FF/Firebug or IE/DevTools, and you will see the difference.
    If you have neither of the 2 debug tools , time you get one.
    Regards,

  • Folder action to change the label of the folder

    Hi all
    I would like to use Automator/Folder Actions to set the Label of the folder to show that it contains a file that was created or modified as follows:
    Red if in the last three days,
    Orange if over three days but less than seven; and
    Yellow if over seven days but less than fourteen
    Oh, and clear the folder label if the contents of the folder are over fourteen days old.
    Is it possible to do using Automator and folder actions?
    Thanks
    Jai
    iMac G5; iBook G3; PB165c; PB170; Mac IIcx; Mac SE/30; Mac SE; Mac Plus; Newton 130; 2gen iPod 10G     Mac OS X (10.4.7)   MacUser since 1984... and waiting for a tablet (like the Nokia 770 with MacOSX)

    In Automator-No
    The trigger for folder actions to run is the act of adding a file/folder to the folder which has the action applied. If you don't add anything, they won't do anything.
    You could probably get close to what you want using Smart Folders. It won't be color-coded or perfect though because modifying a file doesn't always reflect on the modification date of the folder. And parent folders are not affected by changes made in sub-folders.

  • Actions Save changed location

    We use actions to save multiple sizes and various formats of graphics files different locations on a network file server. Over the weekend the server was rebooted. This morning when we tried to use the actions we have been using since July the actions were unable to run, reporting that the destination folder could not be found. When looking at the distination specified in the action, the folder specified in the action displays as a different folder than was original set and was being used on Friday.
    Renaming the destination folder the action is currently looking for (which is different from what it should be) in the finder causes the actions destination folder to change to the new name, regardless of if Photoshop is running during the name change or not.
    These actions were saved onto a different share on the server and when I reload the actions from a disk file that has not changed since July when the actions were first implemented, the actions still point to the incorrect location.
    Has anyone else experienced this or have any ideas on how to fix the problem short of completely re-doing the actions?
    This happens both in Photoshop CS4 and CS5.
    Phil

    Something like this could work – remove the suffix and try inserting the correct path manually for the variable myPath in the line
    myDocument.exportDocument(new File(myPath+"/"+myDocName+suffix+".jpg"), ExportType.SAVEFORWEB, webOptions);
    , save the file from ExtendScript Toolkit into the Presets/Scripts-folder as a jsx and, if it works, you could use that in the Action if need be.
    // save for web as jpg with suffix added to name;
    // 2011, use iat at your own risk;
    #target photoshop
    if (app.documents.length > 0) {
    // the suffix;
    var suffix = "-t";
    // get document-path and -title thanks to xbytor;
    var myDocument = app.activeDocument;
    if (myDocument.name.indexOf(".") != -1) {var myDocName = myDocument.name.match(/(.*)\.[^\.]+$/)[1]}
    else {var myDocName = myDocument.name};
    try {var myPath = myDocument.path}
    catch (e) {var myPath = "~/Desktop"};
    // save for web options;
    var webOptions = new ExportOptionsSaveForWeb();
    webOptions.format = SaveDocumentType.JPEG;
    webOptions.includeProfile = true;
    webOptions.interlaced = 0;
    webOptions.optimized = true;
    webOptions.quality = 60;
    // save;
    myDocument.exportDocument(new File(myPath+"/"+myDocName+suffix+".jpg"), ExportType.SAVEFORWEB, webOptions);

  • Redo actions in change management

    Hi,
    We have configured the Change Management in Solution Manager.In the "actions"if we Pass Request for testing(ie. Import to QA) and if the Import Fails b'cause of some reasons(rfc Issues,Authorization issue...etc) how can i redo the same action "Pass for Testing"?.Also is there any way to delete the change requests/ Corrections which we created for the testing Purpose.
    Regards,
    Sam

    Hi Cheriyan Sam,
    You can reset the status to In-Developement again using the Action Reset to In-Development and then start the import into QA, Hope i have answered to your first query.
    Deletion of Change request or a correction will not take place, but you can do archiving of the old messages using SARA transaction using the archiving object CRM_SERORD.
    regards
    Naveen

  • Hitting portlet action and changing page

    I have a button in my header, from which I need to invoke a specific action on a specific portlet, then change to its page. I'm successfully invoking the action, but how can I then change to the page containing that portlet?

    This can also be done using backing context in pageflow action.
    BookBackingContext bbc = BookBackingContext.getBookBackingContext(getRequest());
    bbc.setUpPageChangeEvent(dest_page_label);
    Seenu.

  • [Action Script] changer une valeur _alpha progressivement ?

    Bonjour,
    Je souhaiterais en cliquant sur un clip qui fait office de
    bouton, qu'un
    autre clip nommé clip2 puisse voir sa valeur _alpha se
    changer mais
    progressivement et lentement tant que ma souris reste sur le
    clip réactif.
    Je sais la faire se changer d'un seul coup dans le style :
    on(rollover) {
    _root.clip2._alpha=5;
    Mais comment faire par exemple pour que cela se fasse en
    douceur genre de
    _alpha=100 à _alpha=5 et lentement et en ActionScript,
    sans que j'ai donc à
    effectuer une interpolation sur une timeline.
    J'ai essayé avec une boucle mais ça ne donne rien.
    Merci !

    Bonjour,
    Merci pour votre réponse :-)
    J'ai en effet testé la fonction d'export en .fla qui "résoud" le problème,
    mais rajoute une étape de plus dans ma production.
    Le Document natif In Design ne comporte bien qu'une seule page, ducoup
    je m'étais effectivement posé la question de lecture de différentes pages par le Flash Player…
    au vu des nouvelles fonctionnalités (FlipBook) — en veillant bien à cocher page active au cas ou.
    Mon document In Design n'est pas compliqué en soit, il s'agit juste d'un Tableau avec des données chiffrées,
    c'est ce que je n'arrive pas à comprendre car tout fonctionnait bien "avant". J'ai fait tout de même fait un test en cochant Export HTML pour voir le rendu et là tout est correct cependant le Swf n'est pas "imbriqué" comme dans ma composition...
    Peut-être y'a -il d'autres réglages que je ne saurai trouver ?
    Merci encore pour votre aide.
    Cordialement,
    Bertrand

Maybe you are looking for