Information passing from sub vi to parent vi ... and updating concurrently

I have a feeling this is an easy one, but I wasn't sure if there was a work around besides a global.
I want the index in the Sub VI to update the numeric indicator in the parent concurrently... or at the same time as the index is changing.
And if I HAVE to use globals for this scenario... does the OOP in 8.2 solve problem like this without globals?
Attachments:
Parent Child Problems.jpg ‏96 KB

Am i using references as intended in this case?
I attached a jpeg of my code, all those VIs down stream of the initial bundle by name all use one or all of those references. I have many many FP controls that I would like to update, but at the same time I didnt want wires and local variables all over the place.  Once in the VIs I use property nodes to set visibility, values, etc, using the references.  It really cleaned up my code, and the flow is much easier to follow then before when it was a vast series of stacked sequences.
I was just curious if Im on the right track with this. Are there memory issues with references as there are with local variables? ie. does it duplicate the data for a reference the way it does with a variable? 
My only concerns was the fact that i had a rather large cluster being sent through... that made me question if I was doing things right.
Message Edited by MJBrehm on 09-12-2006 09:10 AM
Attachments:
References.jpg ‏82 KB

Similar Messages

  • I was updated my Iphone 4s from computer(ITunes).ITunes get error and update failed.(When Iphone is preparing.).And now ı can't use my IPhone.At the screen there is a USB cable and up of the screen there is ITunes' logo.PLEASE HELP!

    I was updated my Iphone 4s from computer(ITunes).ITunes get error and update failed.(When Iphone is preparing.).And now ı can't use my IPhone.At the screen there is a USB cable and up of the screen there is ITunes' logo.PLEASE HELP!

    Read what i say. Put iPhone in DFU mode. Connect with USB cable and restore.
    Read:
    http://www.apple.com/support/iphone/assistant/restore/

  • HT201210 Hi, the App Store icon has been removed from my iPad even after synching and updating. Any suggestions on how to get it back to be able to update / purchase apps?

    Hi, the App Store icon has been removed from my iPad even after synching and updating. Any suggestions on how to get it back to be able to update / purchase apps?

    If you do not have, or remember, the passcode for Restrictions, the only option available to you is to reset the device to factory settings via itunes.

  • How to pass from method to arguments to main and get the day of the week

    Hi
    Need some help, this code below doesnt fit the requirement.
    For this program, i need to: take in day, month,year of a date as int argument, return the day of the week for the date entered in App()
    In Main: call the App() to get the day of the week to display when user enter the date in dd/mm/yyyy
    StringTokenizer is required for this program.
    - How can the arguments pass back to main by returning of month & day of the week?
    - Program cant take in int and return as string
    - Date cant display day of the week
    Code
    import java.util.*;
    public class App2 {
        private int day;
        private int month;
        private int year;
             private int inputDay;
                private int inputMonth;
                private int inputYear;
        public static String App2(String day2, String month2, String year2) { // this is wrong should pass int in
              String date = day2 + month2 + year2;
             DateFormat df = new SimpleDateFormat("dd/MM/yyyy");  
              try
              Date today = df.parse(date);               
              System.out.println("Today = " + df.format(today));
              catch(ParseException e)
              if(month2.equals("01") || month2.equals("1")){month2 = "January";}              
              else if(month2.equals("02") || month2.equals("2")){month2 = "February";}              
              else if(month2.equals("03") || month2.equals("3")){month2 = "March";}              
              else if(month2.equals("04") || month2.equals("4")){month2 = "April";}              
              else if(month2.equals("05") || month2.equals("5")){month2 = "May";}              
              else if(month2.equals("06") || month2.equals("6")){month2 = "June";}              
              else if(month2.equals("07") || month2.equals("7")){month2 = "July";}              
              else if(month2.equals("08") || month2.equals("8")){month2 = "August";}              
              else if(month2.equals("09") || month2.equals("9")){month2 = "September";}              
              else if(month2.equals("10")){month2 = "October";}              
              else if(month2.equals("11")){month2 = "November";}              
              else if(month2.equals("12")){month2 = "December";}
              return month2;
        public static void main (String [ ] args){
             Scanner sc = new Scanner(System.in);
                System.out.print("Enter the date in dd/mm/yyyy: ");
                String date = sc.nextLine();
                StringTokenizer st = new StringTokenizer(date, "/");
                String day = st.nextToken();
                String month = st.nextToken();
                String year = st.nextToken();
                App2(day, month, year);
                String test = App2(day, month, year);
                     System.out.print(test);
    }Program output: 29 Aug 2010 is a Sunday

    Note: This thread was originally posted in the [Java Programming|http://forums.sun.com/forum.jspa?forumID=31] forum, but moved to this forum for closer topic alignment.

  • Return values from a popup to calling form and refresh page?

    Hi,
    Following thread Re: Popup report window from a PL/SQL proc.? I'm trying to pass the record values(checkbox + record values) to the parent windows (the retruned value is always a unique record). I was able to set the variables values with a procedure ( I vierfied in session state), but I'm unable to pass these values to the parent form and then refreshing the page. I tried the following thread without success : Refresh from Popup page
    Any hint would be appreciated.
    Thanks

    Andy,
    My page has the following query for the report region (PL/sql function):
    DECLARE
    v_string VARCHAR2(2000);
    vc VARCHAR2(2):=chr(39);
    BEGIN
    v_string:= 'SELECT '||vc||'<img src="/i//edit_big2.gif" onClick="f_payment_clrRow(this)"></img>'||vc||' Clr, '||
    ' APEX_ITEM.SELECT_LIST_FROM_QUERY(1,NULL,'||vc||'SELECT TRX_DESCRIPTION, TRX_ID FROM WTL_V_TRX_PAYMENTS WHERE TRX_EFFECT='''||V_Effect||''' '||vc||',''onchange=f_payment_trx_paymode(this); '',''NO'') Description,'||
    ' APEX_ITEM.SELECT_LIST_FROM_QUERY(2,NULL,'||vc||'SELECT DESCRIPTION, ID_VALUE FROM GEN_PR_TYPES_ENTITY '||vc||',null,''NO'') Bank,'||
    ' APEX_ITEM.TEXT(3,NULL,10,10,''ondblclick=f_callMyPopup(this);'') Document,'||
    ' APEX_ITEM.TEXT(4,NULL,10,15) Account,'||
    ' APEX_ITEM.SELECT_LIST_FROM_QUERY(5,NULL,'||vc||'SELECT ID_VALUE, ID_VALUE FROM WTL_V_TRX_CURRENCY'||vc||',''onchange=f_payment_currency_rate(this);'',''NO'') Currency,'||
    ' APEX_ITEM.TEXT(6,NULL,15,20,''onblur=f_payment_trx_amount(this); style="text-align:right;" '') Amount, '||
    ' APEX_ITEM.TEXT(7,NULL, 5, 8,''onblur=f_payment_trx_amount(this); style="text-align:right;" '') Rate, '||
    ' APEX_ITEM.TEXT(8,NULL,15,20,''readonly style="text-align:right;" '') Trx_Amount, '||
    ' APEX_ITEM.HIDDEN (9,NULL), '||
    ' APEX_ITEM.HIDDEN (10,NULL) '||
    ' from dual';
    return v_string;
    As u can see, the 3rd item uses the ondblclick to call the js function f_callMyPopup.
    My js function in the header of the page is below:
    <script>
    function f_open_lov2(page, request)
    { var url;
    url = 'f?p='+$x('pFlowId').value+':'+page+':'+$x('pInstance').value+':'+request;
    w = open(url,"winLov","Scrollbars=1,resizable=1,width=500,height=600");
    if (w.opener == null)
    w.opener = self;
    w.focus();
    function f_callMyPopup(x)
    var f01;
    var p = x.parentNode;
    while (p.tagName != "TR")
    { p = p.parentNode;}
    var inputs = p.getElementsByTagName("INPUT");
    var zz;
    for (zz = 0; zz < inputs.length; zz++)
    {if (inputs[zz].name = 'f01')
    {f01 = inputs[zz].id;}
    f_open_lov2(17,97);// I sent 97 as an example.
    </script>
    and the js in the custom popup page (17) has the following function which is executed when the user selects one of the rows using a button.
    <script>
    function f_return_value(cstring)
    opener.document.getElementById("f03").value = cstring;
    close();
    </script>
    When f_return_value is executed, the selected value is pasted in the first row of the parent page.
    Sorry , i don't know what do you mean when you say to pass the id to the custom popup page.
    Thanks again,
    Fernando
    Edited by: fnovilloes on 16/09/2009 12:01 PM
    Edited by: fnovilloes on 16/09/2009 03:56 PM
    Edited by: fnovilloes on 16/09/2009 03:59 PM

  • I just recently upgraded my itouch from 4.1 to ios5, and updated to itunes 10.5. when isynced my music files,ebooks and other apps, all is working except when im trying to sync my video files. it says, canot be synced as cannot be played on this ipod.help

    i just recently upgraded my itouch from 4.1 to ios 5, and updated to itunes 10.5. but when i synced my music files,ebooks and other apps, all is working except when im trying to sync my video files. it says, canot be synced as cannot be played on this ipod. but those are the same files that i have when i was using the old 4.1 version and its syncing just fine.. the itunes advanced tab "create iphone or ipod version" is not working either so i cant convert it to be xferred and synced. what can i do to have my video files synced?

    i had the same problem but i just got a new video converter and made it convert videos to ipod/iphone format and then put them into itunes. i would suggest GOM encoder as the encoder can convert them and then once they're finished converting, put them automatically into your itunes for you. from there you can just sync them to your ipod.

  • How to pass the value from Sub report to main report

    I have un report(mainreport) within a subreport(subreport).
    With reporting services, how to pass the value from Sub report to main report?
    thanks

    Hi Alebet,
    With reporting services to pass values from sub report in to main report is not supported directly.
    But there are some workarounds through which you can get this .
    There are two ways to get this.
    1- Put your sub report query into some table. i mean to say through the subreport query get some temporary table.
    2- Using this temporary tables data write some Scala function in the data base.
    3- Now in your main report query return this scala function as a column.
    4- Extract the column value where ever you want in your main report which is getting calculated from the subreport query. so you will be getting the values returned from the subreport in the main report.
    This will definitely work fine as i have done some report in this way.
    Another way of doing is that
    1- prepare another data set with the same query as in sub report in the data tab.
    2- then refer this 2nd dataset in your main report .
    But better way will be the top one.
    Anyway please let me know if you get the solution.
    Thanks
    Mahasweta

  • How to pass the value from sub report to sub report

    how i want get one value from sub report to sub report..
    can i do this one...
    how can get the value.
    i know main report to sub report
    i tried that way but
    value is  0.00 is comming
    Any reasons.

    Hi Try this.
    Create a formula like this in subreport1 (from the report where you want to pass your value)
    Whileprintingrecrods;
    Shared Numbervar x :={subreport1Value};
    Then go to 2nd sub report and Create a formula like this
    Whileprintingrecrods;
    Shared Numbervar x ;
    Note :Your sub report1 should execute before sub report2 .That means sub report1 should be in the above section of sub report2

  • Problem in Passing the value from child window to Parent window.

    Hi Frenz,
    I have a requirement like this. i have to pass a value from child window to parent window to one test field. That text field is not a normal text field.
    It was created like the following as SQL query.
    select
    ''LNo,
    apex_item.text(25,'',0,15,
    'style="width:100px;" onblur="javascript:showUpsell(this.value);" onkeypress="javascript:validateKeyPress(event,this.value,this.id);" onkeyup="javascript:this.value=this.value.toUpperCase();" id="P37_ITEMNO"') ItemNo
    Now i want to pass a value to the Item no from child window.
    i wrote the java script like this,
    opener.document.forms[0].f25.value="100";
    It was not working..Any suggestions for that..
    Thanks in advance

    Dear Baaju,
    How do you redirect your control from Child to Parent window.
    If you use a button to do this, then you can set this value in the branching of page.
    Rana

  • How to pass a data from child window to parent window

    Hi,
    I have a jsp page with two hidden fields and a button, On clicking the button a popup will come out. There are two combobox in the popup and a search button. After putting a value in the comboboxes,if I click the search button, I need the datas of the combobox to pass to the parent's hidden fields then I need to do a data base search with that values of hidden fields and display the result in the parent page.
    I could I solve this problem, Please help, Its urgent.
    Thanks and Regards
    Rajib Sharma

    I think that you can use the JavaScipt as follow to pass a data from child window to parent window
    <HEAD>
    <script>
    function passData(){
    opener.form1.test1.value=form2.test2.value; //pass the value of test2 to the parent's test1
    window.close();
    </script>
    </HEAD>
    <BODY>
    <form name=form2>
    <input name=test2 type=text>
    <input type=button onclick="passData()" value=CLOSE>
    </form>
    </BODY>

  • Problem: Passing the business data from Child DC to Parent DC

    HI Dear All,
    I    developed two DC,s Parent and Child DC,i am able to pass the data from Parent DC to CHild DC,when i am trying to pass the data from Child DC to Parent DC i am unable to map the context attributes. Is it possible to pass the data from Child DC to Parent DC.
    Thanks in advance,

    What I wrote earlier:
    Yes you can acheive it by doing a flip. ie, in this case the present Parent DC will become Child DC and present Child DC will become Parent DC. Now you can share the context atrributes in reverse way (ie, you can access the context attributes of current Parent DC in current Child DC).
    Sorry Parameshwari. As Anand suggested, It will give an error called Cycle in component usage definitions, if you are doing the procedure what I suggested.
    In that case only you can do only one thing , you should maintain the requried context attribute in child DC and you can use it in parent DC.
    Child DC using Parent DC's context attribute is not possible.
    Regards,
    Jithin

  • Scripting a layer style for each layer to make a depth pass from focus stacking information.

    I'm trying to generate a depth pass from rack focus. Basically where I've gotten to right now is importing the rack focus footage each frame from as an individual layer. Then running Auto Blend Layers and letting photoshop do it's magic to mask out each layer's out of focus information. This basically gives me a bunch of layers that tell me exactly where the camera's focus was at each frame in the shot. What I need to do now is Add a color overlay (maybe in the form of a layer style) that starts at 100% black and goes to 100% white stepping through each layer.
    Right now I have this, which is so very far away.
    try {
        var docName = app.activeDocument.name;  // save the app.activeDocument name before duplicate.
        var layerCount = app.documents[docName].layers.length; //figure out how many layers
        var colorStep = 255/layerCount; //figure out how big the step of grey is between each layer.
            for (i = 1; i <= layerCount; i++){
                my_layer = [docName].layer(i);
                my_layer.applyStyle (solidFill) //add the color overly layer style
                //color the overlay using the colorStep information and layer number
    What I want is an end result that looks like this.

    The only focus stacking I have done is with macro photography. Below is a script that adds the layer effects but the results with my macro samples did not turn out looking good. Maybe you will have better luck with the type of photography you are doing.
    function ftn1(r,g,b) {
        var desc = new ActionDescriptor();
            var ref = new ActionReference();
            ref.putProperty( charIDToTypeID('Prpr'), charIDToTypeID('Lefx') );
            ref.putEnumerated( charIDToTypeID('Lyr '), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
        desc.putReference( charIDToTypeID('null'), ref );
            var effectsDesc = new ActionDescriptor();
            //effectsDesc.putUnitDouble( charIDToTypeID('Scl '), charIDToTypeID('#Prc'), 333.333333 );
                var colorfillDesc = new ActionDescriptor();
                colorfillDesc.putBoolean( charIDToTypeID('enab'), true );
                colorfillDesc.putEnumerated( charIDToTypeID('Md  '), charIDToTypeID('BlnM'), charIDToTypeID('Nrml') );
                colorfillDesc.putUnitDouble( charIDToTypeID('Opct'), charIDToTypeID('#Prc'), 100.000000 );
                    var rgbcDesc = new ActionDescriptor();
                    rgbcDesc.putDouble( charIDToTypeID('Rd  '), r );
                    rgbcDesc.putDouble( charIDToTypeID('Grn '), g );
                    rgbcDesc.putDouble( charIDToTypeID('Bl  '), b );
                colorfillDesc.putObject( charIDToTypeID('Clr '), charIDToTypeID('RGBC'), rgbcDesc );
            effectsDesc.putObject( charIDToTypeID('SoFi'), charIDToTypeID('SoFi'), colorfillDesc );
        desc.putObject( charIDToTypeID('T   '), charIDToTypeID('Lefx'), effectsDesc );
        executeAction( charIDToTypeID('setd'), desc, DialogModes.NO );
    try {
        // var docName = app.activeDocument.name;  // save the app.activeDocument name before duplicate.
        // var layerCount = app.documents[docName].layers.length; //figure out how many layers
        var docRef = app.activeDocument;
        var layerCount = docRef.artLayers.length;
        var colorStep = 255/layerCount; //figure out how big the step of grey is between each layer.
        var color = 255;
        for (i = 0; i <= layerCount; i++){
            docRef.activeLayer = docRef.artLayers[i];
            ftn1( color, color, color);
            color=color-colorStep;
    }catch(e){}

  • Is there a way with NI7.0 to pass a sub-vi filename to a hi-level vi from a client PC

    I have NI7.0 running on Windows 2000 and would like to use a high-level VI to open and close various sub-VIs. Is there a way to pass the sub-VI filename from a client PC? I'm using VI server and remote panels for user/client access. The client PC has browser access over the Internet, but only has a runtime engine installed.

    If your main VI is the remote panel and the subVIs exist on the server, I think the simplest thing to do is to have your main VI list which subVIs are installed. I think what you're attempting is similar to the shipping example called Plug In Example. In this, two subVIs are in a sub folder called Plugins. They get displayed in the listbox called Transforms from which a user can pick which one to run.

  • Bubbling exceptions up from sub packages

    Hi.  We run 2012 std.  We r trying 2 get our heads around the options we would have customizing capture of exceptions that bubble up (if that is possible) to our master pkg from sub pkgs.  This question is independent of ssis's sys logging.
    My recollection is that ssis tells us a lot (maybe too much repetition) about exceptions.  Our goal is to customize how we deal with exceptions at lower levels in the master pkg itself (perhaps in the .net service that calls the mstr if that can be
    bubbled up) so that we aren't incorporating the same custom logging at every level of the ssis call "tree/structure".
    We capture some exceptions already in vars by incorporating try catch blocks in our c# scripts.  But haven't addressed yet how those might be bubbled up.  It is hoped that whatever we do with these can mimic what we do with exceptions thrown by
    other ssis components where there is no c# code to catch the exception.
    Can the community get us started?

    this is what I'm concluding from what I see and what the community has said thus far:
    If our goal is a tool that can answer most inquiries about what our etl has done,
    1)   forget about dbo.sysssislogs .  It doesn't record exceptions.  Traceability may be present but at what cost?  It is susceptible to different approaches used by different programmers working on different pkgs.  Its
    not a question of if but rather when it will be truncated and thus be out of sync with supporting custom log tables.  It is probably going to behave differently from release to release of ssiis.
    2)  keep that flat file ssis log around.  I'm not sure what its formal name is but we often append a datestamp to a file name we give it when running pkgs from the command line.  As much of a challenge as it is to read that
    file, it seems more informative and friendly to me than dbo.sysssislog.  And kills two birds with one stone in the event that custom logging cant make a connection to the db where custom logging takes place.
    3)   get serious about ssis component naming conventions.   How informative is "For Each Loop" when trying to make heads or tails of what a log is trying to tell you.
    4)  don't allow parallel processing (neither in cf not df) until ssis gets better at the whole var locking unlocking race condition thing.  Handle locking yourself.  Incorporate multiple pkgs if both parallel processing and
    useful logging r important.
    5)  bake record counts, start times and end times into your logging solution.  Reject counts as well if applicable.         
    6) use pre, post and error handlers to do the logging with a std toolbox item if possible thus leaving pkgs more readable.  Record parent child component traceability info that is exposed in these handlers thru system vars.  Supplement latter with exceptions
    caught in c# scripts.  Use views and indexes for the dashboards that will need to look at this stuff from different perspectives and permissions after the fact.  Prepare for repetition where errors bubbled up thru parent ssis components.
    7)  get an answer on guids when ssis components r copied from place to place.  If a new guid isn't created, find a way (I think there is a tool for this), to generate a new guid for the new component.  I think a component guid column
    would be germane to a custom logging tool.  Similarly watch out for changing a component's guid once logging has begun. 

  • How get runing total but opening balance pass from form through parameter

    Sir I have tow table in accbal have opening balance and in voudetail have daily transaction I need ledger report with opening balance
    My report get opening balance from accbal and get befor given date balance from voudetail
    Such as
    For opening balance
    Selelect case when dr>cr then dr-cr
    When cr>dr then cr-dr
    End opbal from accbal
    For get balance form daily transaction
    Select case when sum(debit)-sum(credit)> sum(credit)-sum(debit) then
    sum(debit)-sum(credit)
    when sum(credit)-sum(debit)>sum(debit)-sum(credit) then
    sum(credit)-sum(debit)
    end trbalance from voudetail
    where date <givendate
    cal acute both balance in variable
    total =opbal+trbal
    and send this total in report as opening balance on top of report and add this amount asper condition in amount report amount is debit and totalbal is debit then
    placeholdercolumn=totalbal+reportdebit
    or credit then
    placeholdercolumn=totalbal-reportdebit
    sir I need this type of calculation in report
    or
    if you give me idea n query is best for me I calculate with over function and use report only for output
    please sir give me idea urgent
    thank
    aamir

    Meilan (guest) wrote:
    : I wrote a Report called by a Form and pass a parameter from the
    : Form to the Report, successfully! But I imported a Graphic in
    : the Report, and the Graphic could not get the parameter...(the
    : parameter in the Report and Graphic should both pass from the
    : Form).
    : I call the Report by " Run_Product( REPORTS, :V_PRTNAME,
    : SYNCHRONOUS, RUNTIME, FILESYSTEM, pl_id,NULL); " in the Form.
    : and I imported the image from file for the Graphic in the
    Report.
    : Thanks for your help!
    Meilan,
    This forum is for Headstart related questions and experiences
    only. Please go to metalink.oracle.com to get more information on
    your problem.
    Regards,
    Ton
    null

Maybe you are looking for

  • How do I keep multiple tabs from loading all at once when I open Firefox?

    How do I prevent multiple tabs from loading every time I access Firefox? These are open tabs, but I do not want them to open simultaneously every time I want to open a new tab. Then I have to minimize each one in order to access other applications on

  • How can I fix my shaky transitions and picture movements??? PLEASE HELP!

    A very bizarre thing has happened to my project. I made a documentary so my project consists mainly of still images that either zoom in or zoom out and between every picture there is a cross dissolve transition. What's weird is that once I exported i

  • ASP Page to query report

    Hi there, So a long time ago we had a developer who set up an asp page that loads through some of our applications.  The asp page points to a specific report, depending on where it is called from within our application and also the parameters for tha

  • Problems installing an SSD on new MBP- shows up unformatted with only 8MB

    Hi all... hoping you can help.... I just received my new 2.66ghz 15"MBP today as well as an Intel X-25 160GB SSD. I booted the computer with the stock drive to ensure everything was working fine as shipped... perfect. I downloaded and installed all r

  • Minimum value in sales order

    Dear All, CAN U PLZ TELL WHERE IS THE SETTING TO MAINTAIN MINIMUM ORDER IN A SALES ORDER. Regards, Pankaj