Can I share a value returned by a function of report?

I have two functions of report:

1 counts all occurrences of courses that correspond to a given school year.

2. get a total number of courses

I also need to count occurrences of courses that do not correspond to a given school year. How can I subtract the value of the first report of second report function?

Is there a better way to do it?

As always, try to do as much as you can on the side of the data base.

For example, in Microsoft SQL Server, you could do the following:

SELECT

schoolID, courseID, additionalFields,

CASE WHEN CourseYear = school year THEN 1 0 OTHERWISE END AS CourseYearMatch,

CASE WHEN CourseYear <> CourseYearMismatch AS END school year THEN 1 ELSE 0

TABLENAME

Then, in the report designer, you can use simple calculated fields to adding these two fields to create the desired counties.

See you soon

Eddie

Tags: ColdFusion

Similar Questions

  • Can I use data value references with a functional overall?

    Can I use data value references with a functional global?  I am trying, but it causes problems:  I run the attached VI with "new DVR" selected.  Then I run it again with "return array" and I get the error 1556: "The reference is invalid. This error might occur because the reference has been deleted."  It seems to have forgotten the DVR, but I thought it should be stored in the shift register.
    
    Another odd thing:  In my VI, if I try to connect the wire shown in "something strange", then the type changes (from U16 array to DBL), i.e. it doesn't recognize the type referenced by the DVR.
    
    I want to pass a very large 4-dimensional array between parallel loops with a functional global.  To avoid memory problems, I want to use a DVR and in-place element structures.  If that's not allowed in Labview, I will try passing it through a user event or notifier.  Any problems with those alternatives?
    
    Thanks.
    

    I received a response from an engineer applications OR on this subject, and it seems that it is perhaps a problem with Labview.  They are working on it, so I'll go ahead and close this discussion.

    Thanks for the help,

    Allan

  • The value returned by the function to load is not of type digital errors after migration to Coldfusion 11

    I'm currently testing our website with CF11. He is currently working with CF8 however after the migration to a new server running CF11 I met the following error.

    The value returned by the function of load is not numeric.

    The error occurred in

    D:/applications/CFusion/CustomTags/NEC/COM/objects/address.cfc: line 263
    Called from D:/apps/CFusion/CustomTags/NEC/com/objects/contact. CFC: line 331

    Called from D:/applications/CFusion/CustomTags/NEC/COM/objects/user.cfc: line 510

    Called from D:/applications/CFusion/CustomTags/NEC/COM/objects/user.cfc: line 1675

    Called from D:/website/NECPhase2/action. Validate.cfm: line 54

    261: < cfif isNumeric (get.idCountry) >

    262: < cfset rc = this.objCountry.setID (get.idCountry) >

    263: < cfset rc = this.objCountry.load () >

    264: < / cfif >

    265: < cfset this.sPostcode = get.sPostcode >

    Were there any changes between CF8 and CF11 which can cause this error?

    Does anyone have any ideas?

    The problem is in the charge function.  There is a real return at the end of the function.  The returntype of the function is set to digital.  True is not digital, it will trigger an error.

  • The value returned by the function is not of type query

    I couldn't understand why I got this error.  I put the default var query.  Help, please.  If qLocal files then fine back, but when the archives qLocal is empty throw errors.  I set a default value.

    < name cffunction = "getName" access = "public" returnType = out of the "query" = "false".
    Hint = "this method returns a query." >
    < cfargument name = "id_fk" required = "no" default = "0" >
    < cfargument name = "id2_fk" required = "no" default = "0" >

    < cfset var qQuery = "" > "".

    < name cfquery = "qLocal" datasource = "#db #" >
    SELECT *.
    FROM tbl
    WHERE id = < cfqueryPARAM value = "#id_fk #" CFSQLType = "CF_SQL_INTEGER" > AND id2 = < cfqueryPARAM value = "#id_fk2 #" CFSQLType = "CF_SQL_INTEGER" >
    < / cfquery >


    < cfif qLocal.recordcount >
    < cfquery name = "qQuery" datasource = "db" >

    SELECT *.

    FOR tbl2

    WHERE tbl2id = < cfqueryPARAM value = "#qLocal.id #" CFSQLType = "CF_SQL_INTEGER" >

    < / cfquery >

    < / cfif >

    < cfreturn qQuery >
    < / cffunction >

    The query named qQuery only runs if the qLocal returned entries. You initialized qQuery as a variable, which is not a query object. If you initialize qQuery as a query object using the QueryNew (columnlist) that should work.

  • getting NaN for a value returned by a function

    Hello, I am writing for the reason given above. I'm trying to get two values of a function gives me the hypotnuse of a triangle, like this:

    var hyp1:Number = getHypotenuseLength(theRotation,a);

    var hyp2:Number = getHypotenuseLength ((90-theRotation), b);

    Here's the function:

    public void getHypotenuseLength(theRotation:Number,_segment:Number):Number {}

    var radians = deg2rad (theRotation);

    Return segment/Math.cos (radians);

    }

    values, the 'theRotation', 'a' and 'b', all referred to a certain number, but "hype1" and "hype2" return NaN. If anyone has an idea why please let me know. The function is correct I would say.

    You must use the function trace to see what values are being processed in the getHypotenuseLength function.

  • How can I get multiple results returned from a function

    IDBASKET IDSTAGE DTSTAGE
    ---------- ---------- ---------
    3 1 24 JANUARY 03
    3 5 25 JANUARY 03
    4 1 13 FEBRUARY 03
    4 5 13 FEBRUARY 03
    5 3 21 FEBRUARY 03


    I have entry is a unique number of the IDBASKET in this table and this feature works very well that if she has an IDSTAGE by idbasket. (idbasket #5)
    But how do I return a result for an IDBASKET when there several IDSTAGE? (idbasket #3 & 4)
    Thank you very much
    CARPET


    SQL > CREATE or REPLACE FUNCTION status_desc_sf
    2 (NUMBER Code_P)
    3 RETURN VARCHAR2
    4 EAST
    5 lv_output_txt VARCHAR2 (30);
    6 BEGIN
    7. If Code_P = 1 THEN lv_output_txt: = "Command" submitted
    8 ELSIF Code_P = 2 THEN lv_output_txt: = "Accepted, sent to the navigation";
    9 ELSIF Code_P = 3 THEN lv_output_txt: = 'out of stock ';
    10 ELSIF Code_P = 4 THEN lv_output_txt: = "Cancelled";
    11 ELSIF Code_P = 5 THEN lv_output_txt: = "shipped";
    12 lv_output_txt ELSE: not = 'no information ';
    13 END IF;
    14 lv_output_txt of RETURN;
    15 END;
    16.

    I think that your function works as expected, not necessary as you like it is running.
    See the example:

    SQL> create table t11(c1 int, c2 int)
      2  /
    
    Table created.
    
    SQL> insert into t11(c1,c2) values(1,1);
    
    1 row created.
    
    SQL> insert into t11(c1,c2) values(1,2);
    
    1 row created.
    
    SQL> insert into t11(c1,c2) values(2,2);
    
    1 row created.
    
    SQL> create or replace function func2(p_code number)
      2  return varchar2
      3  is
      4  v_output varchar2(64);
      5  begin
      6  if p_code = 1 then
      7     v_output := 'Submitted';
      8  elsif p_code = 2 then
      9     v_output := 'Accepted';
     10  end if;
     11  return v_output;
     12  end func2;
     13  /
    
    Function created.
    
    SQL> /
    
            C1 test
    ---------- ------------------------------
             1 Submitted
             1 Accepted
             2 Accepted
    

    If you have run the function in a manner similar to mine, it will work for all ranks. Your design of the table shows that keep you track of each State of your order, so you have more than one State of each basket. If you want to view only the last State of each basket, please take a look at this example:

    SQL> alter table t11 add c3 date
      2  /
    
    Table altered.
    
    SQL> update t11 set c3 = sysdate - 1 where c1 = 1 and c2 = 1
      2  /
    
    1 row updated.
    
    SQL> update t11 set c3 = sysdate  where c1 = 1 and c2 = 2
      2  /
    
    1 row updated.
    
    SQL> update t11 set c3 = sysdate  where c1 = 2
      2  /
    
    1 row updated.
    
    SQL> select * from t11
      2  /
    
            C1         C2 C3
    ---------- ---------- ---------
             1          1 15-JUN-09
             1          2 16-JUN-09
             2          2 16-JUN-09
    
    SQL> ed
    Wrote file afiedt.buf
    
      1  select t11.c1, func2(t11.c2) "test"
      2  from t11, (select c1, max(c3) c3 from t11 group by c1) a
      3* where t11.c1 = a.c1 and t11.c3 = a.c3
    SQL> /
    
            C1 test
    ---------- ------------------------------
             1 Accepted
             2 Accepted
    

    With greetings
    Krystian Zieja

  • Value returned by the function

    SQL * more: Release 10.2.0.1.0 - Production on Sun 17 may at 11:41:10 2009

    Copyright (c) 1982, 2005, Oracle. All rights reserved.


    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64 bit Production
    With partitioning, OLAP and Data Mining options

    SQL > create table testdata
    () 2
    facid number 3.
    4 data varchar2 (10));

    Table created.

    SQL > insert into testdata (facid, data) values ('10 ', 'Data');

    1 line of creation.

    SQL > insert into testdata (facid, data) values ('20', 'Qdata');

    1 line of creation.

    SQL > select * from testdata;

    FACID DATA
    ---------- ----------
    10 data
    20 Qdata


    SQL > create or replace function testdata_fn (v_facid number)
    2 back tank
    3 is
    4
    number of tempid 5;
    6
    7. start
    8
    9. Select facid in tempid testdata where facid = v_facid;
    10
    11. IF tempid is null then
    12 DBMS_OUTPUT. PUT_LINE ('TEMPID' | tempid);
    13 back 'n';
    14 on the other
    15 return "Y";
    16 end if;
    17
    18 end testdata_fn;
    19.

    The function is created.



    SQL > select distinct testdata_fn (10) of testdata.

    TESTDATA_FN (10)
    --------------------------------------------------------------------------------
    THERE

    SQL > SELECT distinct testdata_fn (38) FROM testdata;

    TESTDATA_FN (38)
    --------------------------------------------------------------------------------


    SQL >


    I was expecting a "n" If there is no corresponding data.

    Is this possible in a single query? I will join this query for an existing query.

    Please give your comments.

    you need an exception for this handler:

     ....
     exception when no_data_found then
      return 'N'
     end testdata_fn;
    
  • RETURN type of function table

    Hello

    I read conflicting information about the return type that has a table function must or may use.

    First, I am a student of a book that says:

    Function in pipeline returns the data types:

    The main constraint for the pipeline functions, it is the return type must be a collection type autonomous which can be used in SQL - i.e. a VARRAY or table nested.

    and then in the next sentence...

    More precisely a pipeline function can return the following:

    A stand-alone nested table or VARRAY, defined at the schema level.

    A nested table or VARRAY that has been declared in a package type.

    This seems to go against the first quoted sentence.

    Now, before reading the above text I had done just my own test to see if a packed type would work because I thought I had read somewhere that it would not, and he does not (the test code and this output is at the end of this question). When I arrived in the text above, after my test, so I was naturally confused.

    So, I'm going to PL/SQL reference that says:

    RETURN data type

    The data type of the value returned by a function table in pipeline must be a type collection defined either at the level of schema or within a package (therefore, it cannot be a type of associative array).

    I tried to call a function that returns a collection of VARRAY type packaged in both SQL and PL/SQL (of course below is SQL all in any case) and no work.

    Now I'm wondering what is a TABLE function must use a schema type and a function table in pipeline can use a packaged type?  I see that I created and called a function table but examples of Oracle see the creation and use of a function table in pipeline.

    Edit: I should add that I read the following sentence in the SF book on p609 in * table functions: "this type of nested table must be defined as an element of level diagram, because the SQL engine must be able to resolve a reference to a collection of this kind."

    So that it begins to resemble table functions should return a schema type and pipelined table functions, perhaps because that they don't in fact return a collection, rather they return (RowSource) content, can use the schema types or types of packages. Is this correct?

    Can someone clarify this for me please?

    Thank you in advance,

    J

    CREATE OR REPLACE PACKAGE PKGP28M

    VAT-type is varray (5) number;

    END;

    /

    DISPLAY ERRORS

    create or replace type VAT is varray (5) number;

    /

    display errors

    create or replace function tabfunc1 return pkgp28m.vat as

    numtab pkgp28m.vat:=pkgp28m.vat();

    Start

    numtab.extend (5);

    because loop me in 1.5

    numtab (i): = trunc (dbms_random. Value (1.5));

    end loop;

    Return numtab;

    end;

    /

    display errors

    create or replace function tabfunc2 as return VAT

    numtab vat:=vat().

    Start

    numtab.extend (5);

    because loop me in 1.5

    numtab (i): = trunc (dbms_random. Value (1.5));

    end loop;

    Return numtab;

    end;

    /

    display errors

    exec dbms_output.put_line (' call tabfunc1 (returns the packaged type) :');)

    Select * from table (tabfunc1)

    /

    exec dbms_output.put_line (' call tabfunc2 (returns the type of schema) :');)

    Select * from table (tabfunc2)

    /

    declare

    RC sys_refcursor;

    number of v;

    Start

    dbms_output.put_line (' in anonymous block1 - open rc to select in the table (tabfunc1) (returns the packaged type) :');)

    Open rc to select table column_value (tabfunc1);

    loop

    extract the rc in v;

    When the output rc % notfound;

    dbms_output.put_line (' > ' | to_char (v));

    end loop;

    close the rc;

    end;

    /

    declare

    RC sys_refcursor;

    number of v;

    Start

    dbms_output.put_line (' in anonymous block2 - open rc to select in the table (tabfunc2) (returns the type of schema) :');)

    Open rc to select table column_value (tabfunc2);

    loop

    extract the rc in v;

    When the output rc % notfound;

    dbms_output.put_line (' > ' | to_char (v));

    end loop;

    close the rc;

    end;

    /

    Scott@ORCL > @C:\Users\J\Documents\SQL\test29.sql

    Package created.

    No errors.

    Type of creation.

    No errors.

    The function is created.

    No errors.

    The function is created.

    No errors.

    the call of tabfunc1 (returns the packaged type):

    PL/SQL procedure successfully completed.

    Select * from table (tabfunc1)

    *

    ERROR on line 1:

    ORA-00902: invalid data type

    the call of tabfunc2 (returns the type of schema):

    PL/SQL procedure successfully completed.

    COLUMN_VALUE

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

    1

    4

    1

    1

    3

    In anonymous block1 - open rc to select in the table (tabfunc1) (returns the packaged type):

    declare

    *

    ERROR on line 1:

    ORA-00902: invalid data type

    ORA-06512: at line 6

    In anonymous block2 - open rc to select in the table (tabfunc2) (returns the type of schema):

    > 1

    > 2

    > 4

    > 2

    > 3

    PL/SQL procedure successfully completed.

    Post edited by: Jason_942375

    But the compilation of the PIPELINED WILL CREATE the schematic function types automatically. And the TABLE function, applied to the PIPELINED function, use these types of hidden patterns.

  • catch the collection returned by the function in a SQL statement

    I have a select like query: (I need all the values returned by the function in the select list)

    Select t1.col1, t2.col2, (by selecting t.a, t.b., t.c in fn (t2.col3) t)
    Of
    T1, t2
    where t1.col1 = t2.col2;



    My function is like:

    FN (T2.col3) returns an array in format of the object



    Here, I was able to select only one value from the table returned by the funcation both. If I select all of the values as above, she gave too much error vales.
    Please someone help me in this

    user13044793 wrote:
    I have a select like query: (I need all the values returned by the function in the select list)

    Select t1.col1, t2.col2, (by selecting t.a, t.b., t.c in fn (t2.col3) t)
    Of
    T1, t2
    where t1.col1 = t2.col2;

    No specific reason for this? It adds additional complexity to the projection of SQL, and there are additional costs of failover for the motor of PL/SQL (per line) of context. Overall - not your typical approach and one that should have sound justification.

    With regard to the basic method - the SQL multiset() function should be used to create a collection. Here is an example of the approach:

    SQL> create or replace type TFoo as object(
      2          id      number,
      3          bar     varchar2(5)
      4  );
      5  /
    
    Type created.
    
    SQL>
    SQL> create or replace type TFooSet as table of TFoo;
      2  /
    
    Type created.
    
    SQL>
    SQL> create or replace function GetSomeFoo( n number ) return TFooSet is
      2          foo     TFooSet;
      3  begin
      4          foo := new TFooSet();
      5          foo.Extend( 5 );
      6
      7          for i in 1..5
      8          loop
      9                  foo(i) := new TFoo( n+i-1, to_char(i-1,'0000') );
     10          end loop;
     11
     12          return( foo );
     13  end;
     14  /
    
    Function created.
    
    SQL>
    SQL> select
      2          object_id,
      3          object_name,
      4          cast(
      5                  multiset( select * from table(GetSomeFoo(object_id)) ) as TFooSet
      6          )       as FOO
      7  from       all_objects
      8  where      owner = 'SYS'
      9  and        rownum <= 5;
    
     OBJECT_ID OBJECT_NAME                    FOO(ID, BAR)
    ---------- ------------------------------ --------------------------------------------------
         27538 /1000e8d1_LinkedHashMapValueIt TFOOSET(TFOO(27538, ' 0000'), TFOO(27539, ' 0001')
                                              , TFOO(27540, ' 0002'), TFOO(27541, ' 0003'), TFOO
                                              (27542, ' 0004'))
    
         28544 /1005bd30_LnkdConstant         TFOOSET(TFOO(28544, ' 0000'), TFOO(28545, ' 0001')
                                              , TFOO(28546, ' 0002'), TFOO(28547, ' 0003'), TFOO
                                              (28548, ' 0004'))
    
         11718 /10076b23_OraCustomDatumClosur TFOOSET(TFOO(11718, ' 0000'), TFOO(11719, ' 0001')
                                              , TFOO(11720, ' 0002'), TFOO(11721, ' 0003'), TFOO
                                              (11722, ' 0004'))
    
         30094 /100c1606_StandardMidiFileRead TFOOSET(TFOO(30094, ' 0000'), TFOO(30095, ' 0001')
                                              , TFOO(30096, ' 0002'), TFOO(30097, ' 0003'), TFOO
                                              (30098, ' 0004'))
    
        684122 /1023e902_OraCharsetUTFE       TFOOSET(TFOO(684122, ' 0000'), TFOO(684123, ' 0001
                                              '), TFOO(684124, ' 0002'), TFOO(684125, ' 0003'),
                                              TFOO(684126, ' 0004'))
    
    SQL>
    SQL> with dataset as(
      2          select
      3                  object_id,
      4                  object_name,
      5                  cast(
      6                          multiset( select * from table(GetSomeFoo(object_id)) ) as TFooSet
      7                  )                as FOO
      8          from    all_objects
      9          where   owner = 'SYS'
     10          and     rownum <= 5
     11  )
     12  select
     13          d.object_id,
     14          d.object_name,
     15          f.id,
     16          f.bar
     17  from   dataset d,
     18          table(d.foo) f
     19  /
    
     OBJECT_ID OBJECT_NAME                            ID BAR
    ---------- ------------------------------ ---------- ---------------
           217 DUAL                                  217  0000
           217 DUAL                                  218  0001
           217 DUAL                                  219  0002
           217 DUAL                                  220  0003
           217 DUAL                                  221  0004
           268 SYSTEM_PRIVILEGE_MAP                  268  0000
           268 SYSTEM_PRIVILEGE_MAP                  269  0001
           268 SYSTEM_PRIVILEGE_MAP                  270  0002
           268 SYSTEM_PRIVILEGE_MAP                  271  0003
           268 SYSTEM_PRIVILEGE_MAP                  272  0004
           271 TABLE_PRIVILEGE_MAP                   271  0000
           271 TABLE_PRIVILEGE_MAP                   272  0001
           271 TABLE_PRIVILEGE_MAP                   273  0002
           271 TABLE_PRIVILEGE_MAP                   274  0003
           271 TABLE_PRIVILEGE_MAP                   275  0004
           274 STMT_AUDIT_OPTION_MAP                 274  0000
           274 STMT_AUDIT_OPTION_MAP                 275  0001
           274 STMT_AUDIT_OPTION_MAP                 276  0002
           274 STMT_AUDIT_OPTION_MAP                 277  0003
           274 STMT_AUDIT_OPTION_MAP                 278  0004
           815 RE$NV_LIST                            815  0000
           815 RE$NV_LIST                            816  0001
           815 RE$NV_LIST                            817  0002
           815 RE$NV_LIST                            818  0003
           815 RE$NV_LIST                            819  0004
    
    25 rows selected.
    
    SQL>
    
  • I would like to summarize the values returned by a formula similar to the 'search', but for ranges or entire columns

    Thus,.

    I have three values in column K - 'A', 'B', 'C '. Column I is numeric values.

    I am trying to create a formula that selects all rows in the K column with a specfic value (in this case 'A' 'B' or 'C'), then grab the corresponding value (on the same line) of column I, then add up all the results for a total.

    IF rows in column K returns 'A', THEN take the VALUE of corresponding column I, and THEN SUM all the values returned.

    Or something like that.

    You can try something like this:

    The formula in B2, filled to the bottom, is:

    SUMIF (table 1::K, A2, table 1::L)

    SG

  • Bug report: lv2010. Incompatible value returned by sub - vi

    LV2010 WIndows XP

    I have a vi that always writes to a variable via a local variable.

    In the next section of the sequence, the variable may be written if this case, it is incorporated in is true.

    In lv2009 when I called this vi he also returns the result to expect.

    In lv2010 if I call vi in slow-mo debugging it always returns the correct value

    If lance in real-time execution speed, it returns 0 if the case of writing embedded is NOT running.

    The value of the indicator on the front of the Sub vi is always correct, even if the value returned to the caller vi is not.

    If I change the vi to write in the variable for each case, the returned value is consistent.

    It is worrying that I now need to check each vi to see if I have integrated unique business written variable

    Appellant vi are run as re-entrant with multiple instances running - but all, but we the vi are idle.

    I have not checked if this is relevant, that is to say also is it a calling not renetrant

    My vi is complicated I need to see if I can reproduce it with a simpler version.

    Michael


  • DML with values returned of dml another inside the WITH clause

    Hello community, I want to use the ELECTION of an insert or update values to other insertion within a single transaction without staging of values returned. Here's what I mean. In some other dbs, I can do it like this

    WITH moved_rows AS)

    DELETE FROM products

    "WHERE purchased_date > = ' 2010-10-01' AND purchased_date < ' 2010-11-01"

    RETURN *.

    )

    INSERT INTO products_log

    SELECT product_id, product_date, sysdate, user moved_rows;

    I know the return value must be assigned to a local variable before they can be used within other dml, but I'm curious to know if the approach described above is supported in Oracle. Note that outside dml returns all columns (*) of the table products and then I took and chose the values I want to be inserted in the log table.

    Hello community, I want to use the ELECTION of an insert or update values to other insertion within a single transaction without staging of values returned. Here's what I mean. In some other dbs, I can do it like this

    WITH moved_rows AS)

    DELETE FROM products

    WHERE purchased_date > = "2010-10-01' AND purchased_date<>

    RETURN *.

    )

    INSERT INTO products_log

    SELECT product_id, product_date, sysdate, user moved_rows;

    I know the return value must be assigned to a local variable before they can be used within other dml, but I'm curious to know if the approach described above is supported in Oracle. Note that outside dml returns all columns (*) of the table products and then I took and chose the values I want to be inserted in the log table.

    Non - "approach above" don't is NOT supported in Oracle.

    For operations from multiple tables, you must use SET of treatment to prevent other sessions modify data during your transaction.

    Jarkko #8 post shows the steps involved.

  • How to navigate to the next page based on the value returned by the method call inside the action attribute of the command key.

    How to navigate to the next page based on the value returned by the method call inside the action attribute of the command key.

    I use JDeveloper 12.1.2.0.0

    < af:button id = "tt_b2".

    rendered = "#{attrs.nextRendered} '"

    partialSubmit = 'true '.

    action = "#{attrs.backingBean.nextAction} '"

    Text = "next".

    Disabled = "#{attrs.nextDisabled}" / >

    private static final String NEXT_NAVIGATION_ACTION = "controllerContext.currentViewPort.taskFlowContext.trainModel.getNext";

    public String nextAction() {}

    If (validate()) {}

    updateModel();

    Return NEXT_NAVIGATION_ACTION;

    }

    Returns a null value.

    }

    Use case is made for model train, which is being implemented based on this blog: http://javacollectibles.blogspot.co.UK/2014/10/ADF-train-template.html

    We define a generic action following in the model, but the action must be called under certain conditions, based on the question of whether all validation controls had been passed on no.

    You can do this in two ways:

    1 returnValue = (String) ADFUtils.invokeEL("#{controllerContext.currentViewPort.taskFlowContext.trainModel.getNext}");

    return returnValue;

    2.

    public String getNextTrainStop() {}

    String nextStopAction = null;

    ControllerContext controllerContext = ControllerContext.getInstance ();

    ViewPortContext currentViewPortCtx = controllerContext.getCurrentViewPort ();

    TaskFlowContext taskFlowCtx = currentViewPortCtx.getTaskFlowContext ();

    TaskFlowTrainModel taskFlowTrainModel = taskFlowCtx.getTaskFlowTrainModel ();

    TaskFlowTrainStopModel currentStop = taskFlowTrainModel.getCurrentStop ();

    Terminus of TaskFlowTrainStopModel = taskFlowTrainModel.getNextStop (currentStop);

    nextStopAction = nextStop.getOutcome ();

    _logger.fine ("train, next stop:"+ nextStopAction ");

    Return nextStopAction;

    }

  • How can we calll a package of Pro * C function, which returns a ROWTYPE?

    Hi all

    I did research on it, but have not met another example - maybe you can't do?

    We have a function in a PL/SQL package on our database, which returns a value of type % ROWTYPE. We call it successfully from within our application (Oracle Forms), but we must also be able to call from a Pro * C program. Has anyone else done this successfully?

    We use the Oracle 11 g, Pro * C 10.1.0.5.0 exit.

    We have a function in a PL/SQL package on our database, which returns a value of type % ROWTYPE. We call it successfully from within our application (Oracle Forms), but we must also be able to call from a Pro * C program.

    I guess you can do the following:

    -call the function from an embedded PL/SQL block

    -copy each of the Records of individual host variables attributes

    EXEC SQL EXECUTE
    DECLARE
      my_rec  my_table%rowtype;
    BEGIN
      my_rec := my_pkg.fun();
    
      :attr1 := my_rec.col1;
      :attr2 := my_rec.col2;
    END;
    END-EXEC;
    
  • Can declaratively set the value of some attributes depend on an attribute in a row of VO?

    Hi, experts.

    In jdev 11.1.2.3,.

    Can declaratively set the value of some attributes depend on an attribute in a row of VO?

    For example, there is a VO (id, salt boolean, integer status, entire IsValid), how to set status=-1,IsValid=-1 when salt is checked (selected)?

    I tried:

    Method A:

    1 set the status depends on saltand the default attribute value:

    If (salt is true)

    Returns - 1

    on the other

    {

    If (salt is false)

    Returns 0

    on the other

    Returns a null value

    }

    2. set IsValid dependent statusand attributes by default as: status.

    3. set all of these three attributes can be changed to always.

    If the parameter above may work, then apparently it's much simpler to write Java code.

    Unfortunately, he is unable to work the way you want.

    There is some complex another declaratively to do:

    Method B:

    1. create a selVO (id, booleanValue1 boolean, integer numberValue1, string stringValue1) with static values:

    (1, false, 0, "" false for salt: not selected ' ");

    (2, true,-1, "" the true value of salt: selected ' ");

    2. put selVO as Data Source list for the list of the salt value and return values from the list:

    Salt-> booleanValue1,

    Status-> numberValue1,

    IsValid-> numberValue1.

    But this alternative way has a few weaks a fortiori more complex:

    Advice from the interface user of salt can not defined by default list Type "CheckBox".

    Cannot, therefore, method A feasible?


    Thank you!

    BAO

    Hello Bao,

    You can write THE Expression value of Field2

    #{bindings. Field1.inputValue == 'Y '? 1:-1}

    (Auto submit True on Field1

    Field1 Field2 on partial trigger)

    Also, you can write logic in VORowimpl Set accessor methods.

    Thank you

    Jeet

Maybe you are looking for

  • I can't install mSATA SSD?

    Hi, I wanted to know if I have the option to install an mSATA SSD drive in one of the following: (not preinstalled, but on my own) HP Envy 15z-Q300 (L6E56AAR) HP Envy 15z-Q100 (L6E55AAR) I see the models above on EBay and more here on the site of HP:

  • Need WIFI driver

    PCI\VEN8086 & DEV_0084 & SUBSYS_13158086 & REV_00 is the hardware ID. Please sugggest link for driver wifi

  • Cannot read some burned DVD SD-R2212

    HelloCannot read some burned a DVD with my cd/DVD-ROM sd-r2212.I have found no information on this drive (Dvdr-R or Dvd - R +) Where is the problem? Do I need a new driver? Thank you

  • E5 - 474G Force USB charging port

    I just bought Aspire E5 - 474G laptop. It is said in the brochure that she has turned off of the features of USB charging port, but she did not mention which took port support the feature. Also, I can't find a manual to the user appropriate (either o

  • Big Brother 5.0 on Windows 2008R2

    Hello I just installed the Big Brother 5.0 on Windows server 2008 R2. I have experience using the server on Solaris, but Windows is new to me. I installed IIS, that was required, and has successfully installed the server. However, when I try to navig