Using ChnCalculate with a variable

The channel of LIN/LIN_Error has 3000 values inside. I want to add a correction value to each of the 3000 values inside.

If I use a constant, it works well. For example:

Call ChnCalculate ("Ch(""LIN/LIN_Error"") = (2 + Ch (" "LIN/LIN_Error" "" "))") adds 2 to each value.

However if I try with a variable it does not work.

Dim Corr

GlobalDim "Corr".

Corr = 2
Call ChnCalculate ("Ch(""LIN/LIN_Error"") = (Corr + Ch (" "LIN/LIN_Error" "" "))")

Hi Frank,.

The problem is your first line.  By running 'Dim Corr' in the VBScript code, you force this variable name to refer to the variable in VBScript and not the variable global tiara - light color in the SCRIPT Panel does not reflect what is confusing.  If you remove the statement Dim Corr, and then the VBScript code will correctly reference the global variable.  Another way to put it is that your VBScript never affects the global variable to Corr 2.  The command correctly done ChnCalculate() refers to the global variable of Corr, but it is always set to 0.

However, for this task, I'd recommend the ChnLinScale() function, which is simpler, will run faster, accepts regular VBScript variables and ignore so all this imbroglio.

Dim Corr
Corr = 20
Call ChnLinScale ("LIN/LIN_Error", "LIN/LIN_Error", 1, Corr)

Brad Turpin

Tiara Product Support Engineer

National Instruments

Tags: NI Software

Similar Questions

  • How to use the command the reel with Bind Variables

    For the next REEL, I want the GEN_DATE to be entered by the user at the time of execution of the SQL Script. Is this possible in the command of the COIL.


    the colsep value,-separate the columns with a comma
    set pagesize 1000 - get rid of disturbing - between pages
    set position-the title of column Print
    Set trimspool on - remove the spaces to the right. eliminating spaces until eol
    set linesize 700 - line size should be the sum of the column width
    coil spool_results.csv
    SELECT *.
    OF GUI_SITE_JOURNAL
    WHERE GENDATE_ BETWEEN ' 2012-11-01 00:00:00:00000' AND ' 2012 - 11 - 02 00:00:00:00000'* ORDER BY GEN_DATE;
    spool off;

    The reason is to give the opportunity to the user so that he can enter any beach without changing the code of the script.

    Can someone help me please.

    Published by: user10903866 on February 18, 2013 19:44

    Hello

    user10903866 wrote:
    For the next REEL, I want the GEN_DATE to be entered by the user at the time of execution of the SQL Script. Is this possible in the command of the COIL.

    Do you want user input in the command of the COIL, or want you she in the query?

    the colsep value,-separate the columns with a comma
    set pagesize 1000 - get rid of disturbing - between pages
    set position-the title of column Print
    Set trimspool on - remove the spaces to the right. eliminating spaces until eol
    set linesize 700 - line size should be the sum of the column width
    coil spool_results.csv
    SELECT *.
    OF GUI_SITE_JOURNAL
    WHERE GENDATE_ BETWEEN ' 2012-11-01 00:00:00:00000' AND ' 2012 - 11 - 02 00:00:00:00000'* ORDER BY GEN_DATE;

    What are the data type gen_date of the oif?
    If it is a string, it is a big mistake. Information about the dates in the DATE columns belongs.
    If it's a DATE, so don't try to compare strings, such as "2012-11-01 00:00:00:00000'."

    spool off;

    The reason is to give the opportunity to the user so that he can enter any beach without changing the code of the script.

    Can someone help me please.

    One way to do that is with substitution variables:

    ...
    SET     VERIFY  OFF
    
    ACCEPT  start_gen_date     PROMPT "Starting date (e.g., 2013-02-18 23:00:00.00000): "
    ACCEPT  end_gen_date     PROMPT "Ending date   (e.g., 2013-02-18 23:59:59.99999): "
    
    SPOOL  spool_results.csv
    
    SELECT    *
    FROM        gui_site_journal
    WHERE        gen_date  BETWEEN '&start_gen_date'
                    AND     '&end_gen_date'
    ORDER BY  gen_date;
    
    SPOOL  OFF
    

    There are security considerations. Variables substitution to the devious users the power to issue a SQL, such as DROP TABLE command. Users with SQL * Plus access already have this power, anyway.

  • Adjust the data in the database with the variables

    Hello

    For my internship, I have an assignment to read and set a database with the variables. This SQL server 2005 database contains variables of a controller. These are read and write variables. The assignment is to display the read variables and the user can adjust the variables of Scripture. The first part was "easy" because the forum contained a lot of examples of this. The second part is more difficult because the forum contains absolutely no example of this. Can I use LabVIEW 2010 and 2011, and also I downloaded the 30 day trial of the database connection tool. If it's useful, I can recommend my company to buy this package. Playback vi makes use of a UDL (Microsoft data link) connection.

    So you guys my question is: is it possible to adjust the specific variables in a database using LabVIEW? And maybe you can give me a little advice on this topic...

    Thanks in advance!

    Roy

    In SQL, the specific data are always selected with the keyword WHERE. In VI to update there is a link for options, you can for example add a constant 'WHERE id = 1457 and measure > 0.54 ".

    You can ofc. also build this chain through controls, settings and other means.

    If you prefer, you can use the Execute Query (under Advanced tab I think) to which you can send the complete query example "TestTable Update set name ="Zeus"where id > 14 and id.<>

    /Y

  • With a variable number of input ports on a Subvi

    How can I have a Subvi with a variable number of input ports that can be changed in the other VI that uses the Subvi?

    You can't actually do what you trying to do, how LabVIEW is implemented does not screw created by the user with arbitrary entries.  And to be honest, there is probably a better way to do whatever it is you want to do.

    If you really really want to do that, but... you can come kind of close.

    1. create a new VI

    2. change its connector to the one with the inputs and outputs pane more possible (terminals 8-6-6-8, 28)

    3 create controls/indicators for any desired input/output of not scaling can connect the (i.e. the error in / error, son of reference, etc.)

    4. hang them until the connector pane

    5 count how many entries are left and create a control for each entry and their son all

    6 drop your VI on the block diagram of the VI one another as a Subvi

    7. Note that when you mouseover, it looks like a Pincushion

    8. right click the VI and uncheck the "display as icon".

    9. you can now "slide down" at the bottom of the VI

    The terminals in the section "slide down" are as a package by name or node property that you can click on them to reallocate them to what it is not already selected.  The default is to make all the entries in alphabetical order, then all the outputs in alphabetical order.  If you rename the terminals that allows you to make appear in the order that you prefer is up to you.

    As all terminals, for the best that you can do to detect if they are wired is to define a default value that should never be used.  If she is floating points, you can use 'NaN' or 'Inf '.  If this is a cluster that you did, add an item more boolean which is true in the default values for this entry VI.

    Then just wire up all the identical terminals together in a table, filter the items which appear to be unwired and make all your treatment on the rest.

  • Level security line with session variables, not recommended?

    Hello

    We are on the point of implement security level line in our project of BI using OBIEE, and the solution that we found more convenient to our requirement was to use session with blocks of initialization variables.

    The problem is that this method is listed as "not recommended" in the Oracle documentation.

    Administration of alternative security options - 11g Release 1 (11.1.1)

    (This appendix describes alternative security administration options included for backward compatibility with improved systems and are not considered a best practice.)

    The Session Variables management

    Session system variables get their values of initialization blocks and are used to authenticate Oracle Business Intelligence users against external sources such as LDAP servers or database tables. Each active session of BI server generates session variables and initializes them. Each instance of session variable can be initialized to a different value. For more information on the use of variables and blocks of Oracle Business Intelligence session initialization, see 'Use of Variables in Oracle's BI repository' in Oracle Fusion Middleware metadata repository Builder of Guide for Oracle Business Intelligence Enterprise Edition.

    How confused... What is the best practice then?

    Thank you for your help.

    Joao Moreira

    authentication / authorizing the part is dealing with weblogic and then initialized the variable USER and you can use it for any initblocks for safety.

    Block of init to authenticate / variable session and authorization are different, I guess that you mix the two.

  • Please help with these variables

    Thanks LucD and RvdNieuwendijk for helping me with the first part of my script, now I'm stuck again.  In most cases, the script works fine, the commented sections (1-3) are what I want to do in the script.  Even if I had two beautiful solutions for my first problem, which was to record the name of the virtual machine and a custom attribute named "assignee" to a variable, I went with the response as provided LucD.  Now, here's my problem.

    I want to save the new variables and then turn around and create a virtual machine with the same name as the variable $_. Name and then complete the custom attribute "assignee" with the variable recorded for the assignee.  What I've done so far was to save the $_.name in a text file, which will then create a virtual machine with the same name as that deleted line 10

    Line 11, I chose to use Stop-VM because the virtual machine will get deleted, so no need to a gradual stop.

    For line 9, I did that just to make me see the name on the screen, which will be removed

    Given that the new variables will have to name the virtual computer, the 10 online list will help me to keep track of all those and then deploy.

    I'll change the script to get data warehouses that have a certain amount of disk space, and I will choose random data warehouses and hosts ESXi Get-random, I'm just trying to get the core of the script works now.

    Sorry, I'm getting long-winded, all I want now is to save the new variables of lines 4-6 in a big variable, or arrray or something and then I want to create a virtual machine with the same name VM and the custom attribute filled with what "assignee".  Thanks for any help.

    # 1. Get the name of the virtual machine and the assignee of the virtual machines to deploy and save those as a variable
    # 2. Remove the existing VM with the same name
    # 3. Use saved data to deploy a new virtual machine with the same name and the assignee who has been registered
    1. $AllVMs = @)
    2 get-file TestDeploy | Get - VM | {foreach}
    3. $assignee = Get-Annotation-entity $_ - CustomAttribute "Assignee" - ErrorAction SilentlyContinue
    4 new-Variable - force - ErrorAction SilentlyContinue-name $_. Name - value (New-Object PSObject-property @ {}
    5 VM = $_.name
    6. the assignee = $assignee. Value
    7. })
    8. $AllVMs += $_. Name
    9 write $_. Name
    10. $AllVMs | Out-file c:\psresults\NewDeploy.txt
    11 if ($_.powerstate - eq "receptor") {stop-VM - VM $_}
    12 if ($_.powerstate - eq "Receptor") {Start-Sleep-3 seconds}
    13 remove-VM - VM $_ - DeletePermanently
    14.}
    15. (type c:\psresults\NewDeploy.txt). Foreach {new-VM-model (Get-"TemplateName") - name $_-location (Get-folder 'TestDeploy')'}
    16 - data store (data center, Get Data Center |) Get - Datastore 'Datastore') Spec - OSCustomizationSpec - VMHost (Get-VMHost 'MyHost')
    17.}

    I found the problem, the script was pouring out the complete variable instead of just the value.

    The line should be like this

      $AllVMs += (Get-Variable -Name $_.Name | Select -ExpandProperty Value)
    

    I've updated the two script above.

  • problem with bind variables in the SQL query view object

    Hi all

    I use JDev 11.1.2.4.0.

    I have a problem with bind variables in the SQL query view object.

    This is my original SQL

    SELECT sum(t.TIME) , t.legertype_id
    FROM LEDGER t
    WHERE t.nctuser_id = '20022' 
          AND to_char(t.insertdate,'YYYYMMDD') in ('20130930','20130929')
    group by t.legertype_id
    

    In my view .xml object query tab, I am writing this

    SELECT sum(t.TIME) , t.legertype_id
    FROM LEDGER t
    WHERE   t.nctuser_id = '20022'
        AND to_char(t.insertdate,'YYYYMMDD') in :dddd
    group by t.legertype_id
    

    Davis here is a variable of Type liaison: String, updatable and necessary.

    I try to deal with Davis as ('20130930 ', ' 20130929') hoping the view object, run as my original SQL.

    But failed. The view object retrieves 0 line after that I run.

    Why?

    Thank you! ('2original SQL0130930', '20130929') ('20130930 ', ' 20130929')

    A variable binding cannot be used as this is why you must use years table. Check decompilation binary ADF: using oracle.jbo.domain.Array with ViewCriteria to see a solution.

    Timo

  • Problem with bind variable and as operator usage

    Hi all

    I use JDeveloper Version - 11.1.2.4.39.64.36.1 .


    While implementing the search functionality in the hierarchical Viewer, I created a link in the underlying t variable, created to find, due east of the request-


    SELECT XxamAnkitObjects.ID,

    XxamAnkitObjects.OBJECT_NAME,

    XxamAnkitObjects.OBJECT_TYPE,

    XxamAnkitObjects.PARENT,

    XxamAnkitObjects.PARENT_ID,

    XxamAnkitObjects.PARENT_TYPE

    OF XXAM_ANKIT_OBJECTS XxamAnkitObjects

    WHERE object_name like ' %: o_name ".

    What I'm trying to accomplish here, it is that the input provided by the user in the search box must match with the object_name in the table.

    During execution, I met the following error (from newspapers WLS)-

    < QueryCollection > < buildResultSet > [598] java.sql.SQLException: try to set a parameter name that does not intervene in the SQL: o_name

    at oracle.jdbc.driver.OraclePreparedStatement.setNullAtName(OraclePreparedStatement.java:5384)

    at oracle.jdbc.driver.OraclePreparedStatementWrapper.setNullAtName(OraclePreparedStatementWrapper.java:1451)

    The following query has been generated during the operation of a research-

    < ViewObjectImpl > < buildQuery > [593] SELECT XxamAnkitObjects.ID, XxamAnkitObjects.OBJECT_NAME, XxamAnkitObjects.OBJECT_TYPE, XxamAnkitObjects.PARENT, XxamAnkitObjects.PARENT_ID, XxamAnkitObjects.PARENT_TYPE XXAM_ANKIT_OBJECTS XxamAnkitObjects WHERE object_name like ' %: o_name ".

    < ViewObjectImpl > < bindParametersForCollection > [594] params for ViewObject Bind: [model.vo.ObjectNameSearch] AppModule.ObjectNameSearch1

    Advice kindly the way ahead.

    Best regards

    Ankit Gupta

    The problem is that you used quotes around the variable binding. Try

    SELECT XxamAnkitObjects.ID,
           XxamAnkitObjects.OBJECT_NAME,
           XxamAnkitObjects.OBJECT_TYPE,
           XxamAnkitObjects.PARENT,
           XxamAnkitObjects.PARENT_ID,
           XxamAnkitObjects.PARENT_TYPE
    FROM XXAM_ANKIT_OBJECTS XxamAnkitObjects
    WHERE object_name like '%' || :o_name || '%'
    

    A note: this type of query will do a full table scan, as the searches with wildcards to the left cannot use a regular index. If you have multiple lines, this will impact on the research persormance hughe!

    Timo

  • why we use the symbol $ java variable?

    his_$ account_tota, $ b... can u give an explanation for this variable. What is the symbol of $ use? Why we use the symbol $ java variable...
    I need a clear and simple explanation for example...: P

    No real reason, you can do it if you want. But you don't have to - I certainly didn't, and I rarely see code it does.

    You should take the time to find a way to find information. For example, I just typed 'java variable dollar' in google and ended up with this as the first shot:

    http://docs.Oracle.com/javase/tutorial/Java/nutsandbolts/variables.html

    I quote:

    "In addition, the character dollar sign, by convention, is never used at all."

  • How to fill out the "to:" line with a variable email address?

    I'm new to coding and am not sure how to ask my question. I have a link in an 'Email' symbol that I would like to have the window open to a 'mailto', but there are several instances of that symbol on the timeline, each using a different email address. If the [symbol]. Email.Click code reads as follows:

    Window.Open ('mailto:'+ sym.getVariable = ("emailWindow"), "_self")

    and the line in the Stage.creationComplete code that is supposed to call the variable code reads:

    sym.getSymbol("Details_David").$("Email").html ("[email protected]" "").setVariable("emailWindow","[email protected]");

    With this code, the browser opens a window of mailto, but the ' to: ' line readings, "indefinite".

    Either in the [symbol]. Email code. Click, I have:

    Window.Open('mailto:"emailWindow"',"_self")

    without the "emailWindow" as the variable name, the "to:" line to the mailto line reads, "emailWindow".

    How to fill out the "to:" line with a variable email address?

    Otherwise, it works better:

    1)

    replace

    sym.getSymbol("Details_David").$("Email").html ("[email protected]").setVariable("emailWindow", "mailto:[email protected]");

    with

    sym.getSymbol("Details_David").$("Email").html ("[email protected]");

  • Insert with bind variables

    I will execute bind_test.sql with the following parameters to sql-plus. The script runs without error. However, it does not insert a row in the table.


    bind_test. 20100912 1 1001 SQL;


    bind_test. SQL
    ----------------------------------------------------------
    Set serveroutput on

    declare

    X VARCHAR2 (31);
    NUMBER OF Y;
    NUMBER OF Z;

    Start

    dbms_output. Enable (10000);
    X: = "& 1";
    Y: = & 2;
    Z: = & 3;

    Insert in the test
    values (TO_DATE (X, 'YYYYMMDD'), Y, Z, null, null, null);


    commit;


    dbms_output.put_line ('var1 = "|") X | "var2 =" | THERE | "var3 = ' |" (Z);

    end;
    /

    ----------------------------------
    Output:
    10 old: X: = "& 1";
    10 new: X: = '20100912';
    old 11: Y: = & 2;
    11 new: Y: = 1;
    12 old: Z: = & 3;
    12 News: Z: = 1001;
    var1 = 20100912 var2 = 1 var3 = 1001

    PL/SQL procedure successfully completed.
    ---------------------------------------

    Select * from test;

    no selected line


    Why it is not insert a line? What could be the reason?

    Thanks in advance.
    Amit

    user5922214 wrote:

    I have a big script with multiple INSERT and DELETE statements. I have been asked by DBA to use bind variables rather than direct assignment parameter values in which the condition.

    Impossible.

    Use of variable bind from a client means:
    (1) customer create a unique SQL cursor with bind variable, for example INSERT INTO FOOTABLE VALUES (: 1,: 2: 3)
    (2) customer from a loop of data read
    2.1) reading the customer data (from file, network, device, whatever)
    customer liaison variables 2.2) cursor (assigning values to 1 to 3 SQL cursor variables)
    2.3) client running the cursor
    line insertions 2.4) database
    loop repetitions of 2.5) client for all data
    (3) customer closed the SQL cursor

    This can be done using a SQL script - as a SQL script is not a loop where a single insertion cursor is used. It's a unique script with 100 or 1000 of SQL insert statements. Where each insert statement will result in a cursor SQL must be created.

    SQL * also does not support the approach of customer liaison above variable. It is a command line interface very PRIMITIVE and unsuitable for running scripts from loading/data entry.

    In your case - the right approach would be to have the data into a CSV file, and then load this file using SQL * Loader... where this software will use customer approach above (in fact he still does better because it uses in bulk link and link not row as described above).

  • Problems with resetting Variables

    Hello

    I created a series of 5 questions with two possible answers - correct and incorrect. I created a variable for each, RunCorrect and RunIncorrect, and they have defined with a value of 0. In addition, I created a 3rd variable called EarnedShield. When the user clicks on the correct option, RunCorrect is assigned to 1 with an expression of RunCorrect = RunCorrect + 1, and EarnedShield is assigned to 1. If they click the wrong option, RunIncorrect is ranked 1. On the next screen, if RunCorrect is greater than or equal to 1, a badge is displayed. If RunIncorrect is equal to 1, then a "Sorry" message is displayed, and if EarnedCorrect is equal to 1, then a "Congratulations" message. When the user click on the next button, RunIncorrect and EarnedShield are assigned 0 'reset '.  It allows me to display a pictogram for each correct answer and no insignia for an incorrect answer.

    It works perfectly the first time through the series of questions. However, I have users need to be able to try again after that that they went through all 5 questions. Knowing that I have to reset the variables, I created a tip Action of "reset" to 0 with RunCorrect assigner assign with 0, set RunIncorrect to 0 and assign the shield won with 0. This is triggered when the user clicks the retry button.

    However, the variable does not re.

    Below is the breakthrough action that I am using "reset" of the variable - executed when the click on the retry button. PS, I also tried to run this action advances (less the slide jumping) on the entrance to the first slide of the series in question. No luck.

    Advanced ActionHelp.jpg

    Any help would be appreciated.

    I use the 6.0.1.240 version.

    Thank you

    Susan

    I suggest you look at if you have provided a way to hide the success and failure of messages after the first run through. You should use advanced conditional Actions to show or hide these messages.  Maybe you don't have not debugged correctly to the logic in these actions.

  • Add up the scores in the text box with a variable

    Hello

    I create a quiz form that does not use the quiz slides (5,5) standard Adobe Captivate. I get the learner to mark themselves and enter the score into a text entry in a TextAreaWithVariable area. The scores are then displayed on the last page in the corresponding text box TextAreaWithVariable.

    I wish that Captivate to add up the scores on the last page. I've read somewhere that you use Actions in advance, so when the student enters the page it triggers the calculation by using the action of the Expression. The problem is that when you configure the action, it does not recognize the three TextAreaWithVariables on the page. They are all appointed, but the action does not pick up them.

    Could you get it someone please let me know where I am going wrong here.

    Thank you very much

    Nick

    Hi Nick,

    I've been blogging on the use of the text with Variables by Jim box:

    Extended features

    In the article referenced to in this post, you will find explanations in detail the advanced actions that I used.

    But I'm a little afraid that I need additional information:

    • you have a text box, with its variable partner on one page and this variable gets its value (20) by the user
    • How many of these slides you?
    • but then, you talk of multiple partitions that you want to summarize in a total variable to be displayed on another TextArea widget to the last slide.

    How you trigger the advanced actions to calculate the sum? I suggest that use you the action on enter each slide after the first question slide to temporary sum. Try to explain:

    1. Score of the first slide in question entered by the user and stored in the variable v_quest1
    2. Entering the second question slide create this advanced standard action triggered by action on enter on this slide
      • Expression v_sum = v_sum + v_quest1
      • Continue
    3. Entering the third question slide create a similar action with the score stored in v_quest2
      • Expression v_sum = v_sum + v_quest2
      • Continue
    4. When you enter the slide of score you the last of this breakthrough of similar actions to trigger and the final result will be in v_sum

    If you do not need to keep the individual from each question scores, you can even re - use only a single variable v_quest that would be associated with all widgets except on the slide to score and you can reuse the action advanced on each slide without having to edit.

    Lilybiri

  • Speed up production using a template. Variables? "Edit mode" highlighting?

    I have a proposal standard format that I use, and it contains, I have a lot of reusable content mixed with custom items written for the particular project. I was wondering, what kind of workflow support is there for the optimization of the production of a custom proposal for a paper like this?

    I think I would be able to highlight sort content so that he calls clearly (like a yellow reflection on it) when I'm editing (so as to mark the points that need to customize and they separate visually the reusable content is not), but this climax gets auto-filtrés in the export as PDF, or after running some sort of command to remove all in preparation for sending of this.

    Also, is it possible to put in place the chips varibale I can drop in key areas (like where the name of the client is used) and just put their value in some central localtion? This seems less inclined to pips and more quickly than with a search and replace.

    Are there other clever ways to treat this type of workflow scenario?

    jaymcdonald wrote:

    I have a proposal standard format that I use, and it contains, I have a lot of reusable content mixed with custom items written for the particular project. I was wondering, what kind of workflow support is there for the optimization of the production of a custom proposal for a paper like this?

    I think I would be able to highlight sort content so that he calls clearly (like a yellow reflection on it) when I'm editing (so as to mark the points that need to customize and they separate visually the reusable content is not), but this climax gets auto-filtrés in the export as PDF, or after running some sort of command to remove all in preparation for sending of this.

    Also, is it possible to put in place the chips varibale I can drop in key areas (like where the name of the client is used) and just put their value in some central localtion? This seems less inclined to pips and more quickly than with a search and replace.

    Are there other clever ways to treat this type of workflow scenario?

    Consider using conditional text to meet the needs of different mat. You can mark it with a highlight that will not print color. You can create sets of conditions that you can switch from the visible to the invisible.

    In addition, you could watch using the fusion of data with a data file which retains the boilerplate different pieces in different fields (for example spreadsheet columns) and drag the fields in place for the merger. You will perhaps according to the length of the document, select the preference of intelligent redistribution of text allow the automatic creation of the new page.

    You can use these two together and with text variables. You can load text from one document to the other variables.

    Google search for terms such as "InDesign data merge tutorial", "InDesign text variables Tutorial", "Conditional text in InDesign tutorial," without the quotes for more details.

    HTH

    Kind regards

    Peter

    _______________________

    Peter gold

    Know-how ProServices

  • Collection with bind variable

    Hi all
    It could be more a matter of sql pl but I am trying to create a collection in the apex where the query uses a connection variable. I can't get this application to work.

    It works

    p_query = > 'select je_batch_id in the gl_je_batches where default_period_name = "MAY-10" ',

    but I can't make it work with a variable binding.

    p_query = > ' select je_batch_id in the gl_je_batches where default_period_name =: P14_EPSB_ARGYLL_PERIODS: ',

    any help would be greatly appreciated.
    Thank you

    Hello

    Try

    APEX_COLLECTION.CREATE_COLLECTION_FROM_QUERY_B(
     p_collection_name => 'MY_COLLECTION',
     p_query => 'select je_batch_id from gl_je_batches where default_period_name = v(''P14_EPSB_ARGYLL_PERIODS'')'
    );
    

    BR, Jari

Maybe you are looking for