Add element in to bundle/unbundle Functions

In the Bundle/Unbundle functions, Add Element is adding the same element.no use of adding same (again need to Select Item).based on the Cluster order if labVIEW adds next element it is usefull.

 I typically just resize the bundle node.

Similar Messages

  • Bundle and Unbundle functions not dragable

    In the Bundle and Unbundle Functions ones the input cluster wire is connected the function automatically bundle/unbundle the all the element.
    we cant select the elements ,there is no drable option.
    but in the document shows the dragable option.

    AristosQueue: I verified in the LabVIEW 6.1 the Bundle function not dragable once the input is connected.
    as shown in the figure both bundle and unbundle shold acts same.

  • Add element in dropdown list dynamically

    Hi All,
    I am facing a problem in adding item in a dropdown list dynamically.
    When i get dropdown list through IgetElementById get null.
    var list = document.getElementById("targetgroupname");
    here list comes as null. Now I've to fill this list. I am using below code -
    for(var j=0;j< com.length;j++){
    iist.options[j]= new Option(com[j],com[j]);
    But it is not working. My list is not getting filled with these values.
    I doubt due to var list -> null it does not allow to add element.
    But I am not getting any clue, how to initialize it.
    Please suggest, I am new to javascript.
    Thanks & Regards,
    Sneha.

    Hi,
    Thanks for the reply, yes the select box has that id - targetgroupname.
    actually there are 2 dropdown lists, Based on the selection of first dropdown list another list shd be filled.
    So I've written a script at "onchange" of first dropdown list. It works fine when a value gets changed at first dropdown list.
    In some cases I've to display a preselected value at first list ( which comes from previous page as parameter), in that cases there will be no onchange on first list, so I've called the script function manually after creating the first list,like below :
    <SCRIPT> checkSource();</SCRIPT>
    and in this case it does not work & I get a null when i try to read the 2nd list.
    But I am not sure why it is happening.. may be it is not loaded /created on page when i am calling it.
    If yes, what shd I do ?
    Thanks for your time.
    Regards,
    Sneha

  • Is there a way you can add elements dynamically to an existing array??

    hey guys... i need to add elements to an array dynamically... how do i do that?
    for example... in one of my functions i do..
         for each(var item:Object in fileList){
              fileListArr.push(item);
    and in a later function i need to add one more element to my fileListArr...
    so i tried doing
    fileListArr[indexNum].push({
         key:videoKey
    so i need to have an array which resembles something like this...
    Before adding elements...
    fileListArr:
         [0]:  name:test1
                Size:12K
                caption:testing caption
                number:1
         [1]:  name:test2
                Size:12K
                caption:testing caption
                number:2
    after adding key to array
    fileListArr:
         [0]:  name:test1
                Size:12K
                caption:testing caption
                number:1
                key:xyxyyy11y1yy1y1y2y2u33n
         [1]:  name:test2
                Size:12K
                caption:testing caption
                number:2
                key:iiduudjmenri112jj2n4n3m2j1j21
    any ideas?

    hmm interesting... so i made the changes... i changed the array to arraylist and the code i have is as follows... but i still get an error... the error says ... "ReferenceError: Error #1056: Cannot create property key on flash.net.FileReference."
    public var videoReference:VideoHandler;
    public var fileRef:FileReferenceList = new FileReferenceList();
    [Bindable] public var fileListArr:ArrayList = new ArrayList();
    [Bindable] public var fileNames:ArrayCollection = new ArrayCollection();
    public function selectionHandler(event:Event):void{
         fileRef.removeEventListener(Event.SELECT, selectionHandler);
         var numSelected:int = event.target.fileList.length;
         var fileList:Array = event.target.fileList;
         for each(var item:Object in fileList){
              fileListArr.addItem(item);
              fileNames.addItem({
                   num: fileNames.length + 1,
                   name: item.name,
                   size: formatFileSize(item.size),
                   status: ""
         var newListLength:Number = fileListArr.length;
         if(fileCounter > 0){
              loopList(fileCounter);
         else
              loopList(0);
    public function loopList(value:int):void{
         //trace("looplist -->");
         if(value < fileListArr.length){
              _numCurrentUpload = value;
              file = new FileReference();
              file = FileReference(fileListArr.getItemAt(value));
              file.addEventListener(Event.COMPLETE, loadVideo);
              file.addEventListener(ProgressEvent.PROGRESS, fileProgress);
              file.load();
    public function setUploadKey(event:ResultEvent):void{
         if(event.result.ThereWasAnError){
              Alert.show(event.result.ErrorMessages[0]);
         }else{
              videoKey = event.result.UploadKey;
              if(fileCounter >= fileListArr.length){
                   trace("in if");
                   fileCounter = 0;
                   uploadLoopList(fileCounter);
              }else{
                   trace("in else");
                   //fileListArr[fileCounter - 1]['videoKey'] = videoKey;
    -----> get an error here --->fileListArr.getItemAt(fileCounter - 1).key = videoKey;
                   //fileListArr[fileCounter - 1] = [{key: videoKey}];
                   loopList(fileCounter);

  • Records Management - automaticaly add element to record

    Hello,
    I try to add an element to a record using the bapi "bapi_record_addelement", but I get an error-message that the number of poid-parameters is not equal to those in the registry information.
    My ABAP-Code is the following:
    *& Report  Z_RECORD_ADDELEMENT
    REPORT  Z_RECORD_ADDELEMENT.
    *{   INSERT         I50K900139                                        1
    data:
    wa_ELEMENT_SP_POID     type      BAPIPROPTB,
    wa_ELEMENT_PROPERTIES  type      BAPIPROPTB,
    wa_ELEMENT_VISIBILITY  type      BAPIPROPTB,
    element_sp_poid type standard table of BAPIPROPTB,
    element_properties type standard table of BAPIPROPTB,
    wa_insertion_by_modelid type BAPISRMREC_MODELIDINS,
    return like BAPIRET2.
    * Fill SP POID table
    start-of-selection.
    CLEAR element_sp_poid.
    wa_element_sp_poid-NAME  = 'DOC_ID'.
    wa_element_sp_poid-VALUE = '03F65C4630552864E1000000AC15C293'.
    APPEND wa_element_sp_poid TO element_sp_poid.
    wa_element_sp_poid-NAME  = 'VARIANT'.
    wa_element_sp_poid-VALUE = '0'.
    APPEND wa_element_sp_poid TO element_sp_poid.
    wa_element_sp_poid-NAME  = 'VERSION'.
    wa_element_sp_poid-VALUE = '2'.
    APPEND wa_element_sp_poid TO element_sp_poid.
    wa_insertion_by_modelid-MODEL_ID = 'D7F85C462E55770CE1000000AC15C293'.
    wa_insertion_by_modelid-PARENT_NODE_ID = '3'.
    ** add element
    CALL FUNCTION 'BAPI_RECORD_ADDELEMENT'
            EXPORTING
              objectid = 'E1A55C462F0C790CE1000000AC15C293'
              DocumentClass = 'ZRMSR04'
              sps_id = 'Z_RM_MIETAKT'
              anchor = 'Schriftverkehr'
              description = 'Testdokument eingefügt mit ABAP'
             IMPORTING
              return        = return.
    write: return-message,
           return-type.
    *}   INSERT
    I hope someone can help me because I am trying for one week.
    hootzter

    Hey...
    Good information.
    I get an error in trying to add element to record, van you help me out.
    The error reads the following:
    Source: CL_SRM_GENERIC_SP0============CP , CL_SRM_GENERIC_SP0============CM002 ,       102
    General error: Could not connect to repository.
    This is the code Iam using
    *& Report  ZTESTPRG
    REPORT  ZTESTPRG.
    Definition of local data types for DOC_ID
      types: begin of ty_doc_id,
                docclass type bapisrmdoc-docclass,
                objectid type bapisrmdoc-guid,
             end of ty_doc_id.
    Structure of the correct Document-ID
      data: ls_doc_id type ty_doc_id,
            lt_sp_poid type standard table of bapiproptb,
            ls_sp_poid type bapiproptb,
            ls_return like bapiret2,
            ls_insertion_by_anchor type bapisrmrec_anchorins.
        clear: lt_sp_poid, ls_doc_id, ls_doc_id.
        ls_doc_id-docclass = 'ZSNG09'.                    
      Document Class des einzufügenden Dokumentes
        ls_doc_id-objectid = '466E6A24DED600A100000000AC10A015'.     
       Objektid des einzufügenden Dokumentes
        clear: ls_sp_poid. " clear weg und ls_sp_poid clearen
        ls_sp_poid-name  = 'DOC_ID'.
        ls_sp_poid-value = ls_doc_id.                    
       Document Class und Objektid als Struktur des Dokumentes
        append ls_sp_poid to lt_sp_poid.
        clear: ls_doc_id.
        ls_sp_poid-name  = 'VARIANT'.
        ls_sp_poid-value = '0'.
        append ls_sp_poid to lt_sp_poid.
        clear: ls_doc_id.
        ls_sp_poid-name  = 'VERSION'.
        ls_sp_poid-value = '0'.
        append ls_sp_poid to lt_sp_poid.
        clear: ls_insertion_by_anchor.
        ls_insertion_by_anchor-parent_node_id = '5'.
        call function 'BAPI_RECORD_ADDELEMENT'
          exporting
            objectid        = '466E9223F887013A00000000AC10A015'     
           Objectid der Akte
            documentclass   = 'ZSNG08'                    
           Document Class der Akte
            sps_id          = 'ZSCMG_SPS_NUCLEAR_PROCEDURE'               
           Einzufügende Elementart
            anchor          = 'NP02'                    
           Im Aktenmodell hinterlegt beim Modellknoten
            description     = 'Test Document'     
           Beschreibung des Dokumentes in der Akte
            element_type    = 'I'                         
           Instanz
          importing
            return          = ls_return
          tables
            element_sp_poid = lt_sp_poid.
            write: ls_return-message,
                   ls_return-type.

  • Dynamicall add element in Drop Down

    There is one for in which drop down list is present. I want to add element dynamicall into drop down list when certain event is occur

    trigger a Java script function at the end of the event which will
    add date into the combobox.

  • Layout - not recognize the element when i call the function write_form

    Hi experts,
    I got a layout(se71) that not recognize the element that i add in the MAIN window when i call the layout from a program.
    what could it be?
    i add the element in se71.
    any help will be appreciated.
    Michal.

    Hi!
    the write form that u are calling should be as below....
    CALL FUNCTION 'WRITE_FORM'
       EXPORTING
          element                  = 'ELEMENT'
          window                   = 'MAIN'
        EXCEPTIONS
          element                  = 1
          function                 = 2
          type                     = 3
          unopened                 = 4
          unstarted                = 5
          window                   = 6
          bad_pageformat_for_print = 7
         spool_error              = 8
          codepage                 = 9
          OTHERS                   = 10.
      IF sy-subrc <> 0.
        MESSAGE 'MAIN window not called properly'(006) TYPE 'E'.
      ENDIF.                               " IF SY-SUBRC NE 0
    in the layout see if the code there with data element is proper as...
    /E  ELEMENT
       &var&
    Also this write_form FUNCTION MODULE should be called  b/w OPEN_FORM and CLOSE_FORM Function Modules.
    Regards

  • LV OOP when using accessor methods (subVIs) or bundle/unbundle operation?

    Hello
    When should I use the (private) accessor methods (subVIs) and when the bundle/unbundle operation to access the class data? What is the reason that the bundle/unbundle operation is introduced to LabVIEW OOP? I need some rules for a coding guideline.
    Thanks
    Solved!
    Go to Solution.

    Thanks for your hints. I wanted to understand the differences between a private vi access and the unbundle operation like in the picture.
    I found some more explanations on the website: http://www.ni.com/white-paper/3574/en
    -> "Creating "read" and "write" methods for every data value in a class is a process acknowledged to be cumbersome. LabVIEW 8.5 introduced the ability to create accessor VIs from a wizard dialog, and LV2009 added further options to that dialog.
    We were concerned about the performance overhead of making a subVI call instead of just unbundling the data. We found that our current compiler overhead for the subVI call is negligible (measured between 6 and 10 microseconds on average PC). A bundle/unbundle operation directly on the caller VI versus in a subVI is nearly the same amount of time. We do have an issue with data copies for unbundled elements because much of LabVIEW's inplaceness algorithm does not operate across subVI boundaries. As a workaround, you may also choose to avoid accessor methods in favor of methods that actually do the work in the subVI to avoid returning elements from the subVI, thus avoiding data copies. This choice is frequently better OO design anyway as it avoids exposing a class' private implementation as part of its public API. In future versions, we expect that inlining of subVIs will become possible, which will remove the overhead entirely.  
    We feel in the long term it is better to improve the editor experience and the compiler efficiency for these VIs rather than introducing public/protected/community data."

  • Accessing container element in the User Defined Function

    Hi All,
    I am accessing a container element in the user defined function.
    But it is not working. Actually i want to split a message(1800 records) into a batch of 200.
    But it goes in a infinite loop.
    Please can you tell me where i am wrong.
    Smita
    The code is :
    public void SplitMsg(String[] a,ResultList result,Container container){
    Object container1;
    String counter;
    int i,j=0;
    container1 = container.getParameter("value");
    if( container1 == null){
    counter  =  "0";
    else {     
         counter = container.toString();
         j = Integer.valueOf(counter).intValue();
    for ( i = j ; i <= j + 199 ; i++){
         if ( i  >= a.length){
              container.setParameter("value","9999999");
              break;
         result.addValue(a<i>);
         j += 200;
         counter = Integer.toString(j);
         container.setParameter("value", counter);

    Here is another way to accomplish what you wanted.
    For the target mapping, use this sequence for mapping
    Source element -> removeContext -> Your User-defined Function -> Target Element
    When defining User-Defined Function, select "Cache Queue" option.
    Since you are using removeContext before calling the UserDefined function, your input to the user defined function will be a String array without ResultList.CC.
    Now manipulate the array the way you want it, and build the ResultList result.
    After every 200 records, use method
    void addContextChange().
    This will insert the ResultList.CC at the appropriate places.
    Use Display Queue in the Mapping Editor to see the debug values.

  • How can i add one wave in in our Function generator example?

    how can i add one anotehr wave in our function generator example. i want to use superposition and add one more wave to our first wave in function generator and see the result.thanks

    Hi hood1,
    2 options:
    1) You can add many waveforms by combining them into one Array.
    2) Use the Waveforms tools, that give you many option for adding waveforms. one after the seconed or adding the Y array of a waveform to other Y array of second wave form, and so on...
    Hope it Helps...

  • How to add elements into Object[][] type of list, in runtime?

    I have Object list, ie.
        final Object[][] data = {
            {"January",   new Integer(150) },
            {"February",  new Integer(500) },
            {"March",     new Integer(54)  },
            {"April",     new Integer(-50) }
        };How can I dynamicly add new elements in it, at the runtime?
    Thank you in advance!

    Do I have to remove 'final' for that, and then add
    elements?
    No. you can't change an array's size.
    You can do this
    Object[][] arr = new Object[numRows][numCols];But once you've created it, its size can't change.*
    I don't know what you're doing, though, and what actual data you're putting in, but Object[][] holding rows of [String, Integer] is almost certainly a poor data structure. Think about creating a class the represents one "row" here and then create a 1D array of that class.
    * Okay, you can kinda sorta effectively "change" the size of second and subsequent dimensions, since a multidimensional array is an array of arrays. I wouldn't recommend it though: int[][] arr = new int[3][2]; // a 3 x 2 rectangular array of int--it's  an array of array of int, with 3 "rows", each of which is an array of int with 2 elements.
    arr[0] = new int[10]; // now it's a jagged array whose first row has 10 elments instead of 2Here we haven't changed an array's size, just replaced one of its elements, which is also an array, with a new, larger array.

  • Installation issue with Elements/Premiere 12 bundle

    I haven't been able to install the Elements/Premiere 12 bundle I recently purchased at a Best Buy Store.   The installation screen says invalid serial number when I entered the serial number on the back of the box.   I also tried using the included redemption code to request a serial number, and got an invalid redemption code response.
    Using Windows 8.1, Dell XPS 8700, and turned off the Anti Virus during installation.

    there's no serial number/redemption code on the outside of any adobe product boxes (except some older products had a number under a sticker so you could determine, before purchase, if there had been tampering).
    http://helpx.adobe.com/x-productkb/global/find-serial-number.html

  • In .java add elements to .jsp

    Hello!
    I'm just beginning and can't understand one thing:
    When I create JSPDynPage, system create JSP and JAVA file - it's clear. Then I add elements to form in JSP, for example, Layout.
    Can I add, for example, row into that Layout in .java file?
        .JSP:
    <hbj:form>
             <hbj:formLayout
                 id="myLayout"
                 width="100%">
                 <hbj:formLayoutRow
                         id="Row1">
                         <hbj:formLayoutCell
                                 id="Cell11"
                                 align="LEFT"
                                 width="100%">                
                                 <hbj:textView
                                     id="welcome_message"
                                     text="May the force be with you unknown user"
                                     design="HEADER1" />
                           </hbj:formLayoutCell>
                   </hbj:formLayoutRow>                      
               </hbj:formLayout>            
        </hbj:form>
    .JAVA:
    public void doProcessBeforeOutput() throws PageException {
             this.setJspName("myjsp.jsp");
          Form Reg_Form = null;
          FormLayout RF_All  = new FormLayout();
          Tray Left_Tray1 = new Tray("TrayRules1");
           Reg_Form = (Form)this.getForm();
           RF_All = (FormLayout) this.getComponentByName("myLayout");
           for (int i = 1; i <= 3; i++ ) {     RF_All.addRow(); }
           Left_Tray1.setTitle("Sample Title");
           Left_Tray1.setWidth("100%");
           TextView Left_Tray1_text = new TextView("Left_Tray1_text");
           Left_Tray1_text.setText("Sample Text");
           Left_Tray1_text.setEncode(false);
           Left_Tray1_text.setWrapping(true);
           Left_Tray1.addComponent(Left_Tray1_text);
           RF_All.addComponent(2,1, Left_Tray1);
           Reg_Form.addComponent(RF_All);
    That code don't display Tray in page...

    Paul,
    I suggest you  not to add the your business logic in that auto generated file.
    Instead you can have seperate java file or any Bean.
    Since you are writing the logic for layout you can add the code in the jsp file
    itself.
    If you are using HTMLB Then keep the auto generated code in the jsp otherwise remove the code and keep the file as jsp meaning you use the html, javascript,
    jsp code in the .jsp file itself.
    you can add the java code in the jsp
    <% String strName = "SAP"; %>
    <sc ript>
    al ert("<%=strName%>");
    </sc ript>
    Ram

  • What is an element,when we call a function write_from?

    what is an element,when we cal a function write_from what to assign for ELEMENT  and WINDOW...?
    Edited by: Alvaro Tejada Galindo on Feb 20, 2008 4:37 PM

    Hi shekar,
    The main reason of specifying the Function module Write_Form is to make the values visible in the particular window of the form.
    For Ref, see the Below Function Module:
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
        ELEMENT = 'HEADER'
        WINDOW =  'MAIN'
    EXCEPTIONS
        ELEMENT = 1.
    In the above example, I need to declare a element in the Main window. So I have passed 'MAIN' in window and 'HEADER' in element.
    REASON OF SPECIFYING:
    Suppose you want to display the values the internal table say suppose it_itab. If you specify this in the sap script like &it_itab-f1& or &wa_itab-f1& without using write_form wont work.
    So this will be specified as,
    SE38:
    Loop at it_itab into wa_itab.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
        ELEMENT = 'HEADER'
        WINDOW =  'MAIN'
    EXCEPTIONS
        ELEMENT = 1.
    endloop.
    Inside Script:
    Inside the Main window:
    /E     HEADER
          &wa_itab-f1&
    what happens is after the loop statement as soon as it encounters the write_form, it searches for the element 'HEADER' in the Main window and values become visible in the form.
    If u need any more details, please tell.
    <REMOVED BY MODERATOR>
    Thanks,
    karthik
    Edited by: Alvaro Tejada Galindo on Feb 20, 2008 4:36 PM

  • Can we add the standard includes inside a function exit.

    Hi,
    Can we add the standard includes inside a function exit.
    I want to add 4 to 5 standard includes. If iam adding it it says report or program already exists.
    Can anyone tell me is it possible or we can modify the only the data which is coming to that function module .
    Please help me on this.
    Thanks,
    Rose.

    hi santhosh,
      The data needed for those includes are also exist in the funtion module exit. I want to add those includes and in one include just i want to add some 10 to 15 lines of code. Is it possible.
    If i include all those includes inside the function exit it says report or program name already exists. When i double clicked on the error it takes me to a line in 1 include which has function-pool statement.
    How can i eradicate this error.
    Can u please help me on this.

Maybe you are looking for

  • Premiere Elements 12

    New installation yesterday Premiere Elements 12, created a instant movie, today I cannot open the project. Error message "unknown error occured while opening project" what is the problem?

  • Script to resize all tables in a document

    I'm using Framemaker 11, and have tons of tables that need to be resized so that they fit within the text frame. Does anyone know of a script or a fast way to resize all the tables in a document at once?

  • After Restoring/Backup of File System XI Java Instances are not up!

    Hello all, We are facing problem in restoring the SAP XI System, after taking backup of the system the <b>java instances</b> in SAP XI System are not starting again. ABAP connections are fine. Can anyone provide suggestions/solutions in order to rest

  • Nvidia Open GL driver error when Photoshop CC is open

    New PC, bought predominantly for Photoshop use. Downloaded trial of Photoshop CC and it keeps closing with this message - "Nvidia Open GL Driver detected a problem with the display driver and is unable to continue. Tha application must close. Error C

  • IPhoto update only partiatially downloads

    I am trying to update my iPhoto 9.1 (475) to iPhoto 9.2.1. After starting the download, it stopped at 68% partially downloaded. Now whenever I try the download again it only shows what's below and doesn't download any more. It then shows this error m