Setting the value of a table of ActiveX control

When controling a VI through ActiveX, how is possible to set the value of a table control?

With digital controls, I have a problem: I just use SetControlValue and it works well:

til SetControlValue ('y', 4) for example.

However, in trying to do the same thing with a table, the control's value becomes an empty array:

til SetControlValue ("arr', [3-4-5]") for example.

What is the right way to do it?

Hi Calvin,

Have you tried passing a string and convert it to an array entry?  You can also try to use a 'matrix' control, rather than a table, as they are handled a little differently.

Tags: NI Software

Similar Questions

  • How to set the value of a column in a table according to another column?

    Hello world!

    I use Apex 4.1.
    My question is how can I set the value of a column in a table according to another column?
    I have a table and when I insert the value in the column content, I want to change this value in the note column with the note, which is generated with pl/sql function (function of string returned if the typed value is in the range).

    I tried to use javascript as
     $('input[name=f02]').live('change', function(){
    if($(this).val()!='1'){
    $('input[name=f03]').val("test")}
    }); 
    for the development of the column note to test if the value typed in the content of the column is not 1, but this code assigns the value to all the lines and I need to set only the specified line.

    Can someone give me a hint in any way to do this if possible?

    Kind regards
    drama9346

    You will need create a process on your page type PLSQL and develop this process "we demand" of the page. In this process, you can run the PLSQL you need. That is to say to retrieve the note value as described in your PC:

    and when I insert the value in the column content, I want to change this value in the note column with the note, which is generated with pl/sql function (function of string returned if the typed value is in the range).

    In this process, you must provide a return value of the call, and you can do this by using htp.p. Example:

    DECLARE
       --putting x01 in a var to simplify
       l_test_var VARCHAR2(200) := apex_application.g_x01;
       l_return VARCHAR2(200);
    BEGIN
       -- a simplistic test
       IF LENGTH(l_test_var) BETWEEN 10 AND 20 THEN
          l_return := 'String is between 10 and 20';
       END IF;
    
       --this will write l_return to the buffer, and the ajax callback will receive this
       htp.p(l_return);
    END;
    

    And the code that I wrote above, which is javascript, would need to go where your current code is that binds to the onchange event. The result should be that, when a change is made to this element, an ajax request is made on the server. When the call is finished, it will be the value returned in the item you want.

  • Set the value of cluster control in secondary school

    Hello

    Is there a way to set the value of control from one cluster to a high school?

    I enclose my screw in LV8.0

    Charly

    If you have a reference to the VI being put into secondary (which there or it is not in the secondary, right?) you can use it to get a reference to the façade of the VI. This in turn will allow you to read an array of references to all the controls and indicators on the front of the Secondary VI. Cross this table by looking at the text property of the label: for each reference in the table until you find the one for the control of the cluster.

    Now, use the specific function to more class to convert reference generic control of the pole to a cluster reference. You can use it to get an array of all the controls within the cluster. Now, go through this table by looking at the text property of the label: for each reference in the table until you find the one for control quevous want to set and you are there...

    Mike...

  • dynamic action sets the value of the element, but not save to DB on submit

    I'm working on a page where the value of several to show only the page elements are defined using a dynamic Action.  They are set when the user selects a value in a list of selection (and is based on the value of the selection list).  Dynamic action is triggered on a list selection change event and then runs the real action "set the value.  The selection list displays the names of sales representative.  The three fields dynamically filled are the org structure (that is, their chain management).

    For the action to set the value, I use a defined Type of SQL statement:

    Select VP, DIR, MGR

    of SALES_ORG where SSR =: P20_SSR

    In the affected elements, I have fixed Type of selection to the 'item (s)"and the value of the Item (s) for 'P20_GVP, P20_DIR, P20_MGR.

    Dynamic action works fine for the display of the page (that is, when I select a sales representative in the selection list dynamic action properly updated only display value fields three).  This page is a form in which the user submits information relating to the rep.  When the page is sent, all fields are filled in a new record of DB with the exception of three that were populated dynamically above.  These fields get the values NULL.

    When the dynamic action updates the values in the three fields is - it does not set the value of session?  Why these fields don't are not taken into account in the submit other ideas > process Page?

    I use 5 APEX with Chrome on Mac (Yosemite).

    Thanks for the note.  I didn't only display the items could not be used in this way.  I think I'll take a different approach with the design; given that the org structure is in another table that I can simply refer to that by rep when necessary rather than saving the information uploaded to the page of the form.  The reason why I have not fill the screen only the points of loading the page is because I don't know what the values should be until the user selects a sales representative in the selection list.

    I'll change the design to one of the following:

    1) change the display only items of standard text field.  NOTE: if I make the text read-only field that causes other problems when loading (I get the message "violation of protection Session state").

    OR

    2) do not include org structure in the download folder and just refer to table org Rep when necessary.

    Thank you!

    Steve

  • How to set the value of adjecent record

    Hello

    For an interactive report, I wanted to know, how set the value for one of the value column taken recording (the visible record in the report) adjecent to the same column in the current record.    The reason behind this requirement is, the table contains cirtain ID which is populated based on cirtain condition.  And the same ID must be set to adjecent different records.  Since this is event based on human evaluation of the data, I can not run the UPDATE command in the background.

    To simplify the requirement, suppose, report IR on the employee.  Based on the user, click one of the dummy 'comlumn link', the value COMMISSION_PERCENT must be copied to the next record.  If I know EMPLOYEE_ID value of the next record, then update SQL will do the job.  But how?

    Thank you

    -Anand

    Hi Anand,

    Please check the sample application you gave, I created the same according to your requirement.

    Here are the steps that I did.

    1. edition your column that you use as a button.

    A class has been added to this button under link attributes

    class="uButton cpycomm" role="button"
    

    URL: javascript:void (0);

    2. edited Page attributes

    Under run when the Page loads

     $("a.cpycomm").click(function(){
        var $el = $(this);
        var nextemp = $el.closest("tr").next().find('td[headers="C725254625175515007"]').text();
        var comm = $el.closest("tr").find('td[headers="C725255480705515009"]').text();
        $("#P1_EMPNO").val(nextemp);
        $("#P1_COMM").val(comm);
    
        if (confirm('Copy Commission to next record ?')) {
           apex.submit('SAVE');
        }
      });
    

    3. a process page to update the commision has created.

    Kind regards

    Jitendra

  • HOW TO SET THE VALUE TO A PAGE OF AJAX ON DEMMAND PROCESS ELEMENT?

    Hi, I have a javascript that calls an ajax on demmand process , and I need a the ajax process variable value is updated about my page: P2_CONTENT:

    • Here's my javascript call:

    doprint() function

    {

    Apex. Server.Process ("GENTICKET", {pageItems: "#P2_PARAM1"}, {async: false});

    }

    • and here is My ajax on demmand process (GENTICKET):

    BEGIN

    declare

    CONT varchar2 (1000); -the return value is less than this length, I have already checked in my table-

    Start

    Here, I call a DB procedure that fills my data. I verifyed and works nice!

    pro_generate (:P2_PARAM1);


    Here, I select the data obtained in the previous step

    Select tic_text

    in cont

    of t_reim

    WHERE f_type =:P2_PARAM1 ;



    Here, I need to set the value to display in my page field


    APEX_UTIL. SET_SESSION_STATE ('P2_CONTENT', CONT);  -< < < < < that doesn't work. I tried: P2_CONTENT: = cont; but does not


    end;

    END;


    Thanks in advance for the help.

    You can do all this declaratively by using dynamic actions, to try jQuery is like trying to swim before you can float.

    You can influence the value returned from JavaScript with this PL/SQL:

    HTP. PRN (cont);

    Then include a function of success (as described in the previous link) to run code like:

    success: function {(pData)

    $s ('P2_CONTENT', pData);

    }

  • How to set the value of a * APPLICATION * with apex.server.process?

    If I have a page named point P1_MY_PAGE_ITEM, I could put its value in the session by doing this:

    $s('P1_MY_PAGE_ITEM', 'I Like Pie!');
    
    apex.server.process(   'dummy'
                           , { pageItems: "#P1_MY_PAGE_ITEM" }
                           , { dataType: "text",
                             async: false,
                               complete: function( ajaxResponse )
                                     {
                                          var ignoredReturn = ajaxResponse.responseText;
                                     }
                             });

    Which works very well. If you check the session, the P1_MY_PAGE_ITEM will now have the value: I like pie!

    However, if I have an Application element (not a page element!) named MY_APP_ITEM, how could I do the same thing? How can I use apex.server.process to set the value of MY_APP_ITEM in the session? I wouldn't be able to use "pageItems" because MY_APP_ITEM is not a page element, it is a part of the application.

    What is the correct syntax to do this?

    Thank you

    -Joe

    Hey Joe,

    Returning to that thread you made a couple of months ago, the answer is here:

    Post adjustment Application items in the apex.server.process for a * process application *.

    Defining a point of application is as easy as providing the name of the application element to p_arg_names Bay and set a corresponding value in the p_arg_values table.

    For example, in an application with article SOME_ITEM of the application, I can put the value as follows:

    (function(){
    var arrNames = [], arrValues = [];
    arrNames.push("SOME_ITEM");
    arrValues.push('some value');
    apex.server.process(   'dummy'
                         , { p_arg_names: arrNames, p_arg_values: arrValues }
                         , { dataType: "text"
                           });
    })()
    

    Any required application process. Should the item be free that you set it from the browser.

  • Assign the value of a table to a text field

    Hello

    I need assign value from a table to a text field, but the coordinates in the table are obtained from the concatenation of two values (determined according to the choice of two groups of radiobutton)

    How can I do?

    I get the correct text assigned to the "ADDRESS" text box directly and this work:

    DATATABLE_TEXT. RawValue = TABLE_1.A_2.B_3.rawValue;

    But, if I call the sentence by concatenating the values A_2 coordenate + '. ' + B_3, with the result of

    the selecction of radiobutton and does not work.

    I tried with this code:

    Formulari1.PAGE_1.OPTIONS_A::click - (JavaScript, client)

    COORDINATES.rawValue = "A_" + OPTIONS_A.rawValue + ".." B_"+ OPTIONS_B.rawValue;

    Formulari1.PAGE_1.OPTIONS_B::click - (JavaScript, client)

    COORDINATES.rawValue = "A_" + OPTIONS_A.rawValue + ".." B_"+ OPTIONS_B.rawValue;

    Formulari1.PAGE_1.button::click - (JavaScript, client)

    / / - This sentence works ok.

    DATATABLE_TEXT.rawValue = TABLE_1.A_2.B_2.rawValue;

    / / - this sentence does not work -

    COORDINATES.rawValue = "A_2.B_2";

    DATATABLE_TEXT. RawValue = TABLE_1. (COORDINATES. The value) .rawValue;

    -This sentence doesn't work-

    COORDINATES.rawValue = "A_2.B_2";

    DATATABLE_TEXT. RawValue = TABLE_1. (COORDINATES.rawValue) .rawValue;

    -----------------------------------------------------------------------

    the objects are:

    names grups and boxes option of option buttons:

    OPTIONS_A

    A_1

    A_2

    A_3

    OPTIONS_B

    B_1

    B_2

    B_3

    names of tables and rows/columns:

    TABLE_1

    HEADER_ROW

    A_1

    HEADER_COL

    B_1

    B_2

    B_3

    A_2

    HEADER_COL

    B_1

    B_2

    B_3

    A_3

    HEADER_COL

    B_1

    B_2

    B_3

    text fields named:

    CONTACT INFORMATION

    DATATABLE_TEXT

    button named gall:

    button

    ------------------------------------------------

    a captured image:

    table2.jpg

    You must use the function "resolveNode" to reference objects correctly.

    In the script executed by the button, place the following text:

    selectedRow var = TABLE_1.resolveNode("Page1.OPTIONS_A").rawValue;

    var selectedColumn = TABLE_1.resolveNode("Page1.OPTIONS_B").rawValue;

    txtTableValue.rawValue = TABLE_1.resolveNode(selectedRow_+_"."_+_selectedColumn).rawValue;

    The only other thing you need to do to set the value of your binding radio button A_1, A_2, etc. for each of the option buttons.

  • I'm trying to set the value for a textfield to an another textfield instance in a repeating subform

    Hi all

    I try to set the value of a textfield in a repeating subform/table row to another textfield in a subform that is repeated with the corrosponding instance number.

    The user has entered a list of key activities in the first part: - KeyActivityRow is the repeating subform.

    xfa.resolveNode ("form1. #subform. KeyActivities.Row1.Table2.KeyActivityRow.Cell2')

    -KeyActivityRow is the repeating subform-

    Who fills the corresponding occurrence of: -.

    xfa.resolveNode ("form1. #subform. ActivityTable.HeaderRow.Table1.HeaderRow.Cell1')

    -ActivityTable is the repeating subform-

    Kevin

    In the event of form1 calculate. #subform. ActivityTable.HeaderRow.Table1.HeaderR OE. Cell1 enter this script in any language: JavaScript:

    this.rawValue = xfa.resolveNode ("form1. #subform. KeyActivities.Row1.Table2.KeyActivityRow ["+ ctivityTable.index +"]. Cell2") .rawValue

    Kyle

  • How I set the value of a dynamic text field row

    I have a repeated line form that contains a button and several text fields.  There is a text field (input field) above with some information I want to place in the table and several buttons that I want to read the value of and defined on the table.  Excuse me there are several questions I have and I use pseudocode to describe.

    Top shape resembles

    InputField

    | ButtonX1 | ButtonY1 | DescriptionX1 (read the text only field)

    ...

    | ButtonXn | ButtonY1 | DescriptionXn

    OutputRow looks like

    | ButtonOutput | OutputField1 | OutputField2 | OutputField3 |

    So, I want to do

    ButtonX1.click

    {

    OutputTable.OutputRow.addInstance (true) //this works - everything I have questions on

    OutputTable.OutputRow.OutputField1.rawValue = DescriptionX1.rawValue

    /*

    Question 1

    How should I address the location of each table to set a value

    Question 2

    How can I get the value of the description field in the same row as button and table

    I would like to say something to the effect of the OutputTable.OutputRow [?]. OutputField1.rawValue = this.parent.DescriptionX

    */

    OutputTable.OutputRow.OutputField2 = InputField.rawValue

    /*

    Same question as above - how can I specify a dynamic line - it's the syntax appropriate for obtaining the value of the input field?

    */

    OutputTable.OutputRow.OutputField3 is this. ButtonLabel

    /*

    Question 3

    How can I get the value of the label of the button to set the field

    There should be a lot of these buttons and buttons will be added - I'd rather set the value based on the label of the button to facilitate value - not requiring only not to change the code

    */

    Issue 4--unrelated to those at the top.

    Is it possible to build the first table

    | ButtonX | ButtonY | Description |

    from a XML file.  I've seen examples showing how to build if it's just data, but XML can be pushed into a form with the code to perform the above actions?

    Glad you figured it out... nothing wrong with doing it this way.

    Normally XML contains data and no default legends these xml files are bouond to the rawValue property. You can enable the dynamic linking and other properties of the object will be bindable (they appear as links) in the user interface. If you click on the link to legend an Assistant appears allowing you to bind the node in the XML file.

    Paul

  • How to set the value of a field from the LOV of another field.

    I'm trying to figure out how to set the value of a field (P_PROGRAM) to the value of another field of based lov (P_STATE).

    The P_PROGRAM field is a hidden field. The P_STATE field is a required field and is based on a list of values for the State Codes.

    When a user selects the State to P_STATE, the field of the P_PROGRAM should be set to this value, as well.

    I tried different ways to get there via a function call on the post for the calculation of the field P_STATE, defining the source P_PROGRAM to the value of the page item P_STATE put varialbles, creating a process before SENDING, and they all still come back as having a NULL value for P_PROGRAM, therefore impossible to create the file in the db as the PROGRAM is a mandatory field in the table.

    Can you please help? Thank you, Laura

    Laura,

    It is always helpful if you provide information about the Apex version you are using. The Apex 4 you can use Dynamic Actions to achieve this. In earlier versions is possible using processes to submit or javacsripts, as well.

    Heres how you do in 3.x with treatment to submit, to make it work in 4.0 as well.

    1 do the P_STATE ' select list submits the Page.
    2. Add a calculation on the point P_PROGRAM, or write to him assign a value based on a process. The treatment should be OnLoad after the header
    3. If the page does not have an unconditional branch that loops on itself, add a. NOTE: The direction must be the last branch (larger sequence number) and should have checked "Save Session State".

    This is what will happen
    a. when the State is selected Page will be submitted
    (b) it will take the unconditional branch to himself and save the value of P_STATE
    c. the calculation process / fills the value of the P_PROGRAM element when the page reloads

    Kind regards

  • is there a better way to set the value?

    It is a very simple application. Here's what I'm trying to accomplish:

    I click on the 'new order' button on page 1, and it takes me 10 page. In the meantime a new empty order is created. order_id is stored in the application element.

    Page 10, I click on 'choose the customer', and takes me to page 11, where I have a list of customers (a report), and by opting for a client (link column), p10_customer_id is defined, and the application navigates back to page 10.

    On page 10, there is a process of page that fires whenever the page is displayed (if order_id is not null), and update the orders table by setting the value of the item p10_customer_id the customer_id.

    What I want is simple: create a command, set the customer_id (and possibly settle the customer_id again if the user wants to change).

    It works now, but I don't like that the customer_id is updated each time this page is rendered. Simply put the customer_id of page 11 only, when the user selects a customer in the list.

    But I have not found a way to do it.

    Also, it would be good to create all of the order, the customer id, order items all in one transaction and post them right at the end, but I did see a way to not make any changes on a page when I navigate to another page. Because now, if something unexpected occurs, for example the user does not complete the order (navigates away, or closes the browser), the orders table will be almost completely empty, unused lines

    I use Oracle10g XE and Apex 3.1.2

    Thank you
    Gabor

    Hi Gee2,

    Have you checked how the collections of the apex? In my opinion, you can create an application of the cleaning by using this technique.
    There is a demand to make orders, created by default when you install APEX. Check the app.

    I hope this helps.
    Kind regards

    --
    Paulo Vale
    http://Apex-notes.blogspot.com

  • How to set the value of a variable in automator?

    I'm totally new to automator I found a post that I try to reuse

    to Re: copy multiple files from TextEdit in one Word file

    I want to open a series of html files in a folder and convert in a TextEdit rtf file.

    However, I am unable to automator find out how set the value of a variable such that it appears in this post

    I looked at every command in library without a lot of fortune

    Any help?

    Thank you

    Dan

    Its in Utilities.

    In Automator, use the search box:

  • Set the value of the parameter in the call sequence by programming

    Is there a way to set the value of the parameters of a call sequence with a vi with the context of the sequence in the order which is called? Cases not the same subseqence with a vi in the mainsequence maybe?

    In your VI, I think you should be able to set the value of Step.TS.SData.ActualArgs.paranumber.Expr to the value of the setting that you want. (This property is visible in the Variables pane, only if you have configured the Options of Station to display hidden properties). Note that the purpose of the step should refer to the sequence of your call step.  Also, remember that the property represents an expression, so if you want to pass the value 33, you must enclose the value in quotes ("33").

    Jeff

  • Set the size of fixed table

    Hello. I am developing a VI to a FPGA target and I'm trying to make sure who is using the VI can specify the size of an array of input when they instantiate (such as by the presence of an entry to the VI who said "maximum table size" or something). So far, it seems that the only way to do something like this is to go into the VI himself and manually set the size of table for each entry in the table for the VI (open the VI, do a right-click on each input array, select 'Set the size Dimension', choose 'fixed', set number of items). I would like to have a point where I can set the size of all tables at once (as in my case, they are all the same size) and let the person using the VI set it to the right size for which application they use it for (to be clear, let's say I have two uses for this VI and in one case (, I have a table of entry of size 100 and other use of size 1000, I would like to be able to put these in some way rather than do it through the dialog box). Thank you.

    It's a little more work, but it could be a case of good use for a memory block on the FPGA.  Make it bigger you wait, you need, and then store the actual number of items somewhere.  This will allow you to vary the amount of data without consuming large amounts of FPGA resources on an oversized table.

Maybe you are looking for

  • IOS has sharply reduced motion

    I use IOS on Iphone 4S 9.3.1 and sometimes get this error. I turn on the proposal to reduce, but the unit automatically goes into motion mode reduce. I try rebootting and it is gone, but rebootting is very troublesome. I think it's a bug on IOS 9. An

  • Why do I need iTunes game when I music Apple

    I have a Mac, the iPhone, the iPod (by car) and and iPad. Since a long time I have I tunes game to get the same songs on all devices. Now, I also have music from Apple. Why should I continue with the Match most of the songs are available in the cloud

  • Step by step single run through a sequence TestStand using the API

    Anyone know if it is possible to break a sequence of execution and then simple step during various stages of a sequence using the API TestStand? Pause and resume running no problem, but step by step once execution is broken turns out to be illusory.

  • Glass replacement for Tablet acra1-820

    Any body know where I can get a new screen for my Tablet a1-820

  • HP Pavilion t775.uk Windows 7 upgrade

    Hello world I upgraded my PC to Windows 7, but I don't know if all the drivers for the motherboard, especially the audio drivers are included in the installation of Windows 7.  With Windows XP, there is an audio program that identified the plugs at t