Express VI: Dynamicly difine terminals

Hi,
I designed a block using express VI, in which the terminals will be defined at run time due to some parameters definition. To do that, I designed a scripting VI to replace the Source VI with an empty template VI at the beginning when one click to edit the block, then dynamicly define the terminals according to some parameters.
The problem is, if the block already had some controllers or indicators connected, after the modification, the terminals will be disordered.
The ideal result is: After one modify the block, only these deleted terminals will disconnect to previouse controller/indicator, other will keep connect to right ones.
Thanks a lot.

We need to see your code to give you help.  There could be several things wrong.
Also, it is unclear from your description what you mean by "run time."  Most scripting operations do not work in the LabVIEW run-time engine since they require a recompile of the code after running.  This would definitely be true of changing connector pane connections.  It sounds like you mean in-development use of an Express VI.  But posting your code will solve this issue.
Please save your code as a source distribution, use a Zip utility (e.g. 7-Zip) to compress it to a single archive, and post.
This account is no longer active. Contact ShadesOfGray for current posts and information.

Similar Messages

  • Xquery expression in Dynamic Routing

    Hi All,
    I need a help.My requirement is as follows.
    1) I Have 2 nos of Proxy and Multiple Business Service.
    2) First Proxy calling 2nd Proxy and passing the BusinessService Name in user-define Header(only One Header) using Transport Header.
    3)2nd Proxy calls the required Business Service using Dynamic routing.
    The problem i am getting is when i am using the xpath expression of the header value($inbound/ctx:transport/ctx:request/tp:headers/tp:user-header/@value) in the Dynamic Routing expression
    (<ctx:route>
    <ctx:service isProxy="false">
    {$inbound/ctx:transport/ctx:request/tp:headers/tp:user-header/@value}
    </ctx:service>
    </ctx:route>) , I am getting some exception.
    But if i use Assign node before Dynamic Routing and mention the same xpath of header value to a variable and the variable in the Dynamic Routing expression,I am able to invoke business Service sucessfully.
    But my requirement is not to use any Assign Node.
    Does any one has any idea what would be the correct syntax of the expression in Dynamic Routing.
    Thanks in Advance ..
    Thanks
    Deba

    Well, interesting try. Oracle has suggested to keep a mapping (in a XML or in database) between logical and physical values of destinations, you are trying to route, in OSB itself and to query it at runtime to get the actual value of destination. Please refer -
    http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/userguide/modelingmessageflow.html#wp1081507
    What error do you get when you directly use the X-Path in Dynamic Routing expression?
    Regards,
    Anuj

  • Function module expression for dynamic value for Cost center in BRF

    Hello Experts,
    We are in SRM 7.0 and our business object is shopping cart using BRF.
    Right now we have Cost Center Approver and its evaluation id ()zev_sc_**_*) has expression zc_sc_*_** that checks whether overallvalue >= 5000. It initiates cost center approver only if value is greater than or equal to 5000. But this is static expression. We want it in a dynamic way so that we don't have to modify this value frequently. Therefore we have set approach to use an expression of Function Module BAdI as expression. We have a new z table which contains value field zval. Now I want to know how or what should be the process so that this FM knows the corresponding value from a z table that user might select in the SC.How it should be linked to this. I am using /SAPSRM/WF_BRF_0EXP000 function module. Please advise where should the code be written ? Any method ? And what should be the exporting and importing parameters for this ?
    Right now I can see EV_VALUE, EV_TYPE, EV_CURRENCY etc as exporting paramters. Looking for your suggestions experts.
    Thank you.
    Best regards.

    Dear abhijeet,
    just follow the steps.
    i) I believe you have created the event as Zev_***  with implememt Class     0EVENT.
    ii) copy the std fm /SAPSRM/WF_BRF_0EXP000 to z custom fm
    iii)  since you want to have an  expression as function module procurement type create expression  with                                                                               
    expression type  0CF001
                                                                                    result type B ( boolean)
                                                                                    Buffering as event-controlled buffering
    and very important procurement type as function module.
    iv) immediatly you may find written as AccessFM where pass your custom z function module.
    v) finally link this expression to your event.
    In the custom function module  the exporting parameter EV_VALUE is solely responsible for identifieng the approval based upon the approval criteria. If the field EV_VALUE = 'X' this notify that the approval is required  for current process level, otherwise if it is initial then it will skip the current level and continue with the next level.
    whatever your coding should be written in FM.
    just look into below code
      DATA LO_WF_BRF_EVENT       TYPE REF TO /SAPSRM/CL_WF_BRF_EVENT.
      DATA LO_CONTEXT_PROVIDER   TYPE REF TO /SAPSRM/IF_WF_CONTEXT_PROVIDER.
      DATA: LV_HEADER LIKE BBP_PDS_SC_HEADER_D.
      DATA: LT_ITEM TYPE STANDARD TABLE OF BBP_PDS_SC_ITEM_D.
      LO_WF_BRF_EVENT ?= IO_EVENT.
      LO_CONTEXT_PROVIDER = LO_WF_BRF_EVENT->GET_CONTEXT_PROVIDER( ).
      CALL METHOD LO_CONTEXT_PROVIDER->GET_DOCUMENT
        IMPORTING
          EV_DOCUMENT_GUID = LV_DOCUMENT_GUID
          EV_DOCUMENT_TYPE = LV_DOCUMENT_TYPE.
    pass this guid in the below function module in order to get the SC details.
    GET SC DETAILS
      CALL FUNCTION 'BBP_PD_SC_GETDETAIL'
        EXPORTING
          I_GUID    = LV_DOCUMENT_GUID
        IMPORTING
          E_HEADER  = LV_HEADER
        TABLES
          E_ITEM    = LT_ITEM
    After that loop the internal  table LT__ITEM   and you decide based upon your approval criteria for each line item level wheather the gross price of  line item is exceed 5000k or not.
    you should decide the value for field EV_VALUE within the loop so that each line item will be verified for approval.
    Pls contribute if this helpfull.
    regards
    sahil purushan

  • About route expression in Dynamic route to service

    Hi all,
    in the "Dynamic route to service" action:
    <route xmlns="http://www.bea.com/wli/sb/context">
    <service isProxy="true">{ $proxyToBeInvoked }</service>
    </route>
    I use a variable named 'proxyToBeInvoked' to build dynamically what service shoud be called.
    Here an example of ''proxyToBeInvoked" variable assignment:
    fn:concat('EventBus-', $eventType, '/providers/', $provider, '/resource/', $providerEventType, '-', $provider, '-TransformIntoIPEvent')
    I've noticed that if ''proxyToBeInvoked" points to non-existent proxy no error is raised by ALSB and I can realize that something goes wrong only having a look at log files!
    Do you know a way to test if variable ''proxyToBeInvoked" points to existent service or a way to add to the <route> expression some extra flag in order to enforce that the related service exists ?
    Best regards
    ferp

    Hello,
    I'm surprised you're having trouble with this one. In ALSB 2.5 and 2.6, I get back a fault when this occurs. My proxy that contains dynamic routing does not have an error handler on the route node, only on the proxy level.
    I'm using exactly the same xml syntax as you posted, so it doesn't appear to be a difference in flag settings.
    This is the fault that I get back:
    <fault xmlns="http://www.bea.com/wli/sb/context">
    <errorCode>BEA-382000</errorCode>
    <reason>Error preparing message for dispatch</reason>
    <location>
    <node>ProxyName RouteNodeName</node>
    <path>request-pipeline</path>
    </location>
    </fault>
    Hope that helps,
    Meghan

  • Are you ever required to wire the dynamic event terminals through an event case?

    I remember some time ago, I ran into an issue while using an event case where my program was not functioning properly until, on a whim, I wired the dynamic event through that event case... now the reason I'm asking this in a general sense is because I don't remember what particular code I had this issue with and I could have been failing to update a shift register or something.
    In code I'm currently writing, I'm simply passing the dynamic event wire in a shift reg.  I was just wondering if there's any difference between wiring it through the event cases or simply passing it to the output shift register (without passing through the event cases)...
    any info appreciated!
    Thx
    -pat

    You do not have to wire it through. You don't need a shift register for references since the value will be the same for each iteration. In fact using a shift register is probably what caused issues. You probably updated it with the default value somewhere.
    =====================
    LabVIEW 2012

  • The build specifications does not support VIs with dynamic dispatch terminals

    Why?
    Will it be supported in the near future ?

    pacome wrote:
    I wanted to build a shared DLL.
    The problem occurs when an input Control is a dynamic dispatch terminal.
    "Now that's a horse of a different color!" (Caby, Wizard of Oz, Emerald City Scene).
    Yes the DLL spec never knew about dynamic dispatching.
    Your best option is to wrap the LVOOP stuff up in wrappers and expose the wrappers.
    I'm curious if others have ideas as well.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How to use string as an expression in SSRS reports

    Hello all,
    I have created a SSRS report in which I have used a tablix and a single dataset (ds_test)
    Now the dataset use t-sql and  is calling a table in which has data as shown below:
    What I am trying to do is to use this as an expression inside the cell of the tablix. But when I run the report It give me:
    But It should show the result as "True", I know it is taking this as a string but is there any way so that we can use this as an expression in the report
    NOTE: We cannot use this directly in report , because this is generated dynamically and should always present in DB tables only
    Thanks in advance
    Pankaj Kumar Yadav-

    So your table has a varchar column with 'iif(1=1,True,False)'  in one of the records ?
    yes
    Pankaj Kumar Yadav-
    You wont be able to pass a value from db like this and use this as an expression inside SSRS.
    If you're using SQL 2012 you can exec this expression using dynamic sql and then show return value as is in a SSRS report.
    SSRS is a presentation tool with limited scripts and it cant do any query processing against database. that part have to be implemented using t-sql query on backend (dataset)
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Dynamic Initialization of PL/SQL collection ...

    Hi,
    I trying to initialize table type using execute immediate but get the following error:
    DECLARE
         TYPE SCHEMA_LIST IS TABLE OF ALL_USERS.USERNAME%TYPE;
         L_SCHEMAS SCHEMA_LIST;
    BEGIN
    EXECUTE IMMEDIATE ' BEGIN :b1 := SCHEMA_LIST ('''||FN_GET_CONFIGVALUE ('PRAM1')||'''); END; ' USING OUT L_SCHEMAS;
    FOR L_IDX IN L_SCHEMAS.FIRST..L_SCHEMAS.LAST LOOP
    DBMS_OUTPUT.PUT_LINE
                   L_SCHEMAS(L_IDX)
    END LOOP;
    END;
    ERROR at line 7:
    ORA-06550: line 7, column 138:
    PLS-00457: expressions have to be of SQL types
    ORA-06550: line 7, column 9:
    PL/SQL: Statement ignored
    The function FN_GET_CONFIGVALUE ('PRAM1') which takes one input parameter would return a comma seperated list which I would then initialize to the table type.
    Any Idea ?
    Thanks !
    Pat

    Patza,
    It seems one cannot initialize( i.e. "USING" and "RETURNING" ) index-table, record and boolean-type expressions in dynamic SQL, only true PL/SQL expressions can be used. Since you are trying to initialize a table type, this is where the problem lies. If I may suggest, perhaps accepting the output in some alternative way (i.e. variables or somesuch) might fix the problem.
    Kindest regards,
    Stefan
    Message was edited by:
    Stefan Bexkens

  • Dynamic Filters possible ?

    Hi there,
    My Boss wants to Switch to Power View from Reporting Services, but he wants to know if everything you could do in SSRS is available in Power View first.
    One of the things i noticed immediately is that i couldn't define the filter values for the Months dynamically (is this Really True ?)
    What i want is something in the form i used in SSRS Parameters as Default Value:
    cstr(year(dateadd(
    "m", 0, now()))) +
    "-"+ right(
    "0"+ cstr(month(dateadd("m",
    0, now()))), 2)
     --- For the current Year-Month
    Is there a way to do this in Power View ? any Way ???
    Thanks a lot in advance!

    Hi gbobj,
    Power View is quite limited in comparison to SSRS. If you require very tight control over the look, feel, and behavior of your reports and dashboards
    then it's probably best to stay with SSRS. Where Power View shines is in flexible data analysis and allowing attractive data visualisations to be created very quickly.
    It may be that you can identify some of your simpler reports/dashboards that would benefit from being recreated in Power View without losing important
    functionality. However, for your more complex ones you may want to hold off on using Power View for them unless your end-users are willing to lose some of the functionality that they have in the SSRS versions.
    With regards to the dynamic selection of the year and month, you could try a similar approach to the one outlined in my first reply in
    this thread, but the approach is dependent on when the data model was last refreshed and isn't as elegant or powerful as using an expression to dynamically set the default value for an SSRS parameter behind the scenes.
    Regards,
    Michael
    Please remember to mark a post that answers your question as an answer...If a post doesn't answer your question but you've found it helpful, please remember to vote it as helpful :)
    Website: nimblelearn.com, Blog:
    nimblelearn.com/blog, Twitter:
    @nimblelearn

  • Why can't I use Get LV Class Default Value in a dynamic VI?

    I am attempting to override a VI that uses "Get LV Class Default Value" and getting an error that I don't understand.  My parent class, "ANT Message Class", has two children - "ANT Command Class" and "ANT Response Class".  The children share a lot of data and functionality, including the factory pattern that the parent class' "Load Message Class" VI implements (see image).  I would like to override this VI with a Command version and a Response version, which would simply call the Message version with their respective classes overriding the dynamic input and output terminals.  However, I am getting the error "Front Panel Terminal 'ANT Message Class Out': Run-time type not propagated from dynamic input to dynamic output."
    Not sure how to get around this one.  Any ideas?
    Thanks,
    -Jamie 
    Solved!
    Go to Solution.
    Attachments:
    Get LV Class Default Value in dynamic VI.png ‏179 KB

    The To More Specific node is dealing with compile-type inference. In this case, you are loading a default instance from disk and then attempting to cast to the base Message class. However the type you are casting to is going to a dynamic output - this gives the compiler no assurances that the input class at run-time on the dynamic input will be the same as the output type; only that it will be a type at the top of the hierarchy. Dyanmic dispatch inputs/outputs must be the same type to guarantee some form of type safety.
    You need the Preserve node there so that you can guarantee the class at both dynamic dispatch terminals will be the same type.
    However this is probably not the best mechanism for a factory method. Factory methods should ideally be static; their job is to provide an instance of the right type (e.g loaded by path as per your example) and you don't need an instance of a class to do that. The only reason I can think of to over-ride said functionailty in a dynamic dispatch method is to provide some form of custom construction for the creation of the type. If all you are creating is an instance with nothing but the default private data then there is no reason to over-ride in the child classes.
    EDIT: Another post collision. nathand is on the money with this one.

  • Regular Expression as page item

    Hello,
    I´m doing a page item validation using Regular Expressions, but my Regular Expression is Dynamic. I have another page item called VL_REGEXP where I set a value of regular expression.
    But, when I write VL_REGEXP as validation expression, it doesn´t test the condition. It only tests when I put the value of the regular expression.
    So, what would I do to pass this Dynamic Regular Expression for validation?
    Example of my settings:
    -- It doesn´t work
    Type of validation:
    Item / Column in expression 1 matches Regular Expression in Expression 2
    Expression 1
    P12_CD_ACCOUNT
    Expression 2
    P12_VL_REGEXP   -- this is what i need!
    -- It works
    Type of validation:
    Item / Column in expression 1 matches Regular Expression in Expression 2
    Expression 1
    P12_CD_ACCOUNT
    Expression 2
    ^(\d\d\.\d\d\d\.\d)+$
    thanks
    Bsalvador

    Not sure if the required substitution processing is supported in the validation expression, but if it is you need to reference the page item using the static text substitution syntax:
    Type of validation:
    Item / Column in expression 1 matches Regular Expression in Expression 2
    Expression 1
    P12_CD_ACCOUNT
    Expression 2
    &P12_VL_REGEXP.

  • Pre-Populating Text fields from a Data drop down list using SQL Server

    I'm currently trying to update some of our internal forms which are word based or a basic PDF form you fill in by yourself.
    I'm connecting to our SQL server as there are databases stored there for an internal bit of software that hold information
    I can use to fill in parts the form.
    I have a data drop down list that is dynamically linked to the SQL databass and allows you to select a Project Number from that database, what
    I want to do after this is selected is to automatically populate some text fields with the Project name, Account handler and other fields held in the
    database.
    I've had a look online to see if there is a solution but haven't really found anythig that is similar (although I am new to LC so may have seen it
    and not realised) and my Java is non existant.
    Has anyone tried this and able to point me in the right directions?
    I'm using LiveCycle ES2 version 9.0.0.2 from Creative Suit 5.5 on Windows 7
    Cheers

    Hi,
    Actually this error does not cause any harm except a presentation inconvenience. In my multi-select prompt I am using variable expression with dynamic repository variable. Dashboard results are correct. Just variable's value does not appear on page (error Error Codes: G689FFB3:SDKE4UTF
    Expression: @{biServer.variables['CUR_CAL_PER_MONTH_NAME']}). Pushing "GO" button on the prompt fixing the error but it's actually second execution of the dashboard.
    Any ideas ??

  • How to initialize a Prompt drop-down list using a Repository Variable.

    Hi,
    the aim is to fill a drop-down list of a Year prompt only with year values that can provide data.
    This Show list SQL statement works:
    SELECT Time."Year" FROM "AnalysisCatalog"
    WHERE Time."Year" <= 2007
    Using the maxYear Repository Variable does not work:
    SELECT Time."Year" FROM "AnalysisCatalog"
    WHERE Time."Year" <= @{biServer.variables[’maxYear’]}
    Error Codes: G689FFB3:SDKE4UTF
    Expression: biServer.variables[’maxYear’]
    How can I achive the result without hardcoding the Year 2007?
    Mny thx Thomas

    Hi,
    Actually this error does not cause any harm except a presentation inconvenience. In my multi-select prompt I am using variable expression with dynamic repository variable. Dashboard results are correct. Just variable's value does not appear on page (error Error Codes: G689FFB3:SDKE4UTF
    Expression: @{biServer.variables['CUR_CAL_PER_MONTH_NAME']}). Pushing "GO" button on the prompt fixing the error but it's actually second execution of the dashboard.
    Any ideas ??

  • Problem with register event callback in use of instrument control

    now, i use the register event callback to register a value change of a boolean control on the front panel, and wire the cluster's ref of the instrument control parameters to the user parameter input, then create the callback vi. In the callback vi, i select the pump-control subvi, and pass the user parameter to the subvi. The problem is that,  when i press the boolean control, the instrument (here is pump) can act, but immediately, the code crashes.
    I use labview 8.6
    Attachments:
    callback vi.png ‏8 KB
    register event callback.png ‏8 KB

    You would wire the event registration wire that comes out of the Register for Events node into an event structure.  You will need to right click on the event structure and check off "Show Dynamic Event Terminals" and it into that.  Then you can create a new Event Case that uses the dynamic event.  You can place your subVI in that event in whatever way you want.  (Just drop the subVI in or do a Call by Reference there, or whatever.)  Look in the Example Finder for "Dynamically Register for Events.vi".

  • Application Computation to populate Application Item

    Hi all
    (Version 4.0.2).
    I'm trying to populate an application item using an application computation (On new instance / SQL Query returning Single Value). In principal this works - only at a later point than I would expect:
    I've got a page with charts which use the application item (userid) in the where clause. However, when I enter the page, the charts claim 'no data' - only after submitting the page (via a button) the item population seem to happen, because after this, I get the expected data.
    Do I have a wrong concept expecting the app-items to be populated when the user creates a new session and be readily available when entering any page?
    If so, what is best practice to achieve the desired behavior?
    Many thanks
    Tino

    Hi Tino,
    As the following book excerpt from "Easy HTML-DB Oracle Application Express: Create Dynamic Web Pages with OAE" by Michael Cunningham & Kent Crotty says:
    "On New Instance is an application level computation and should be created as such. It can be a little confusing since this computation point is available when creating a computation at the page level. However, do not use the On New Instance display point on application pages. These should be defined as an Application Computation in Shared Components. When an On New Instance computation is created at the application level, it will be executed during login when the session is created in HTML DB. A good use of this type of computation would be to read a cookie from the user’s browser to set some application level items."
    You can populate the item on page load by configuring the source section in the item attributes or by means of a dynamic action on the event "Page Load.", for example.
    Regards,
    Sergio

Maybe you are looking for

  • Shared Variable Deployment not accessible in Build Specificat​ion

    Hi everyone, I have a large project developed in LV 8.6.1 from which I executed numerous applications. I converted the project in LV 11 sp1f1, everything works well in code, everything is saved. I wanted to build executable without cod change for LV

  • How can I open .cgm files in Firefox

    I am trying to use Boeing toolbox remote using Firefox, the drawings are in .cgm format and Firefox can't open and display them. Is there an add on or some other way I can get this to work?

  • Party wise Purchase order

    Hi Sap Guru, How i can  see Party wise Purcahse Order ?? Thx Neha

  • PO text pops up during goods receipt (MIGO).

    Hi, Does anybody know or it is possible to pop up a message during MIGO (goodsreceipt) with a messege text which has been entered by the buying department in the PO? Best Regards, Any suggestions? Eric. Message was edited by:         eric van zundert

  • Inbox viewing configuration

    I pressed, poked or clicked something the other day and my Inbox viewing format changed. I now have a list of all the messages in my Inbox and I have to click on the Unread new messages to view it in another window. How can I change my inbox back to