Value from CFC using cfscript

I've got a function in a CFC that inserts a parent value into
an Oracle table (see below). I want to extend the function to
return the new parent ID so that I can use it to insert the child
values. I'm using <cfscript> to execute the function which
works fine with the data insert, but I can't quite work out how to
output the new parent ID value in <cfscript>. Any help
appreciated.
Thanks in advance
Roy.
<cffunction name="insertApp" hint="Insert Applications"
returntype="query">
<cftry>
<!--- Insert Values --->
<cfquery name="qryAppInsert" username='#this.uid#'
password='#this.pwd#' datasource='#this.source#'>
INSERT INTO
impsapp.tblAPPLICATIONS
VALUES
(#this.ID#, '#this.dType#',
TO_DATE('#this.cDate#','dd-mon-yyyy'))
</cfquery>
<!--- Select current Value form DUAL --->
<cfquery name="qryNewSeq" username='#this.uid#'
password='#this.pwd#' datasource='#this.source#'>
SELECT impsapp.Test_SEQ.currval x FROM dual
</cfquery>
<cfcatch type="any">
<cfreturn "Error in Function insertApp">
</cfcatch>
</cftry>
<!--- Return Query --->
<cfreturn qryNewSeq>
</cffunction>
<cfscript>
// create componet object
comTest = createObject("component", "cfc.Test");
// Set the properties from Form
comTest.uid = '#myUser#';
comTest.pwd = '#myPasswd#';
comTest.source = '#myDS#';
comTest.holder= #Form.eID#;
comTest.appType = '#Form.pType#';
comTest.recDate = '#DateFormat("#Form.dateReq#",
"dd/mmm/yyyy")#';
//Call insert finction
apply_Card.insertApplications();
//I need to be able to output and use the value x from the
qryNewSeq above
</cfscript>

YourQuery = comTest.insertApp();
Your function might be too complicated. If this.id is the
same as test_seq.currval, why bother with the second query?

Similar Messages

  • Values from Structure used in Form to be transferred to a Business Object

    Hello,
    I have defined a structure (zcsks) in the workflow container. This structure is used in two forms (Change and Approve).
    With the approval (button pressed on approve form) the data entered in the structure zcsks has to be transferred to the business object ZBUS0012 in the workflow container, so that the business object method CREATE can be executed automatically.
    The values for the structure ZCSKS is already transferred from the form to the workflow container automatically.
    My question now is how I can transfer values from ZCSKS to ZBUS0012 and execute its method CREATE automatically ?
    Thank you in advance!

    Hello,
    "Value of expression '&_WI_OBJECT_ID.COSTCENTER&' cannot be used as the target of an assignment"
    This is because you are trying to assign a value to an attribute of the main object of a workflow (_WI_OBJECT_ID).
    That won't work. I thought you meant you had an object in the workflow container and wanted to
    instantiate that.
    When the workflow is created the main object is already instantiated so you can't change it.
    regards
    Rick Bakker
    Hanabi Technology

  • Getting null values from nodes using DOMParser

    Hi
    I'm having problems retrieving the values from an XML doc.
    I'm using the DOMParser, but instead of retrieving the values
    from the nodes, I just get null.
    Code fragment :
    DOMParser parser = new DOMParser();
    parser.parse(url);
    XMLDocument doc = parser.getDocument();
    NodeList nl = doc.getElementsByTagName("*");
    Node n;
    iNode = nl.getLength();
    for (int i=0; i<iNode; i++)
    n = nl.item(i);
    String szNodeName = n.getNodeName();
    System.out.print(szNodeName+ " (" );
    System.out.print(n.getNodeValue()+")");
    System.out.println();
    The result is
    course (null)
    Name (null)
    All the node names are correct, but the node values are NOT
    displayed.
    Any idea ?
    Rodrigo
    null

    According to the DOM Level 1 spec, the "value" of an ELEMENT node
    is null and the getNodeValue() method will always return null for
    an ELEMENT type node. You have to get the TEXT children of an
    element and then use the getNodeValue() method in the text nodes.
    Oracle XML Team
    Rodrigo Loureiro (guest) wrote:
    : Hi
    : I'm having problems retrieving the values from an XML doc.
    : I'm using the DOMParser, but instead of retrieving the values
    : from the nodes, I just get null.
    : Code fragment :
    : DOMParser parser = new DOMParser();
    : parser.parse(url);
    : XMLDocument doc = parser.getDocument();
    : NodeList nl = doc.getElementsByTagName("*");
    : Node n;
    : iNode = nl.getLength();
    : for (int i=0; i<iNode; i++)
    : n = nl.item(i);
    : String szNodeName = n.getNodeName();
    : System.out.print(szNodeName+ " (" );
    : System.out.print(n.getNodeValue()+")");
    : System.out.println();
    : The result is
    : course (null)
    : Name (null)
    : All the node names are correct, but the node values are NOT
    : displayed.
    : Any idea ?
    : Rodrigo
    Oracle XML Team
    http://technet.oracle.com
    Oracle Technology Network
    null

  • Query multiple occurances of min value from table using group by

    Hello all,
    I am using Oracle 10.2 on Windows 2003
    I am attempting to select the min value from a table, and if there are multiple occurances of a min value, to list all not just one row. For example, the following query
    with test1 as(
    select to_date('2009-11-01','YYYY-MM-DD') t_date, 't_1' t_name, '1' t_value from dual
    union all select to_date('2009-12-01','YYYY-MM-DD') t_date, 't_1' t_name, '2' t_value from dual
    union all select to_date('2010-01-01','YYYY-MM-DD') t_date, 't_1' t_name, '1' t_value from dual
    union all select to_date('2010-02-01','YYYY-MM-DD') t_date, 't_1' t_name, '3' t_value from dual
    union all select to_date('2010-03-01','YYYY-MM-DD') t_date, 't_1' t_name, '4' t_value from dual
    union all select to_date('2010-04-01','YYYY-MM-DD') t_date, 't_1' t_name, '5' t_value from dual
    union all select to_date('2010-05-01','YYYY-MM-DD') t_date, 't_1' t_name, '6' t_value from dual
    union all select to_date('2010-06-01','YYYY-MM-DD') t_date, 't_1' t_name, '1' t_value from dual
    union all select to_date('2010-07-01','YYYY-MM-DD') t_date, 't_1' t_name, '1' t_value from dual
    select trunc(t_date,'YYYY') t_date, min(t_value) min_value
    from test1
    group by trunc(t_date,'YYYY') gives the following results
    t_date         min_value
    01-JAN-09    1
    01-JAN-10    1so I looked at the forums and tried the following query
    with test1 as(
    select to_date('2009-11-01','YYYY-MM-DD') t_date, 't_1' t_name, '1' t_value from dual
    union all select to_date('2009-12-01','YYYY-MM-DD') t_date, 't_1' t_name, '2' t_value from dual
    union all select to_date('2010-01-01','YYYY-MM-DD') t_date, 't_1' t_name, '1' t_value from dual
    union all select to_date('2010-02-01','YYYY-MM-DD') t_date, 't_1' t_name, '3' t_value from dual
    union all select to_date('2010-03-01','YYYY-MM-DD') t_date, 't_1' t_name, '4' t_value from dual
    union all select to_date('2010-04-01','YYYY-MM-DD') t_date, 't_1' t_name, '5' t_value from dual
    union all select to_date('2010-05-01','YYYY-MM-DD') t_date, 't_1' t_name, '6' t_value from dual
    union all select to_date('2010-06-01','YYYY-MM-DD') t_date, 't_1' t_name, '1' t_value from dual
    union all select to_date('2010-07-01','YYYY-MM-DD') t_date, 't_1' t_name, '1' t_value from dual
    select t_date,min_value
    from (select t_date,min(t_value) min_value,
    rank() over (order by min(t_value) ASC) RN
    from test1 group by t_date)
    where rn=1I get the desired results with this query, which are
    t_date           min_value
    01-NOV-09     1
    01-JAN-10      1
    01-JUN-10      1
    01-JUL-10       1the problem is, when I change the values in the test1 table to the following
    with test1 as(
    select to_date('2009-11-01','YYYY-MM-DD') t_date, 't_1' t_name, '123' t_value from dual
    union all select to_date('2009-12-01','YYYY-MM-DD') t_date, 't_1' t_name, '2' t_value from dual
    union all select to_date('2010-01-01','YYYY-MM-DD') t_date, 't_1' t_name, '21' t_value from dual
    union all select to_date('2010-02-01','YYYY-MM-DD') t_date, 't_1' t_name, '13' t_value from dual
    union all select to_date('2010-03-01','YYYY-MM-DD') t_date, 't_1' t_name, '24' t_value from dual
    union all select to_date('2010-04-01','YYYY-MM-DD') t_date, 't_1' t_name, '15' t_value from dual
    union all select to_date('2010-05-01','YYYY-MM-DD') t_date, 't_1' t_name, '26' t_value from dual
    union all select to_date('2010-06-01','YYYY-MM-DD') t_date, 't_1' t_name, '100' t_value from dual
    union all select to_date('2010-07-01','YYYY-MM-DD') t_date, 't_1' t_name, '2' t_value from dual
    select t_date,min_value
    from (select t_date,min(t_value) min_value,
    rank() over (order by min(t_value) ASC) RN
    from test1 group by t_date)
    where rn=1i get the following results
    t_date          min_value
    01-JUN-10     100I expected to get the results
    t_date         min_value
    01-DEC-09     2
    01-JUL-10      2any help would be appreciated
    Cheers

    Because t_value is character.
    You should To_NUMBER(t_value)
    with test1 as(
    select to_date('2009-11-01','YYYY-MM-DD') t_date, 't_1' t_name, '123' t_value from dual
    union all select to_date('2009-12-01','YYYY-MM-DD') t_date, 't_1' t_name, '2' t_value from dual
    union all select to_date('2010-01-01','YYYY-MM-DD') t_date, 't_1' t_name, '21' t_value from dual
    union all select to_date('2010-02-01','YYYY-MM-DD') t_date, 't_1' t_name, '13' t_value from dual
    union all select to_date('2010-03-01','YYYY-MM-DD') t_date, 't_1' t_name, '24' t_value from dual
    union all select to_date('2010-04-01','YYYY-MM-DD') t_date, 't_1' t_name, '15' t_value from dual
    union all select to_date('2010-05-01','YYYY-MM-DD') t_date, 't_1' t_name, '26' t_value from dual
    union all select to_date('2010-06-01','YYYY-MM-DD') t_date, 't_1' t_name, '100' t_value from dual
    union all select to_date('2010-07-01','YYYY-MM-DD') t_date, 't_1' t_name, '2' t_value from dual
    select t_date,min_value
    from (select t_date,min(t_value) min_value,
    rank() over (order by min(To_NUMBER(t_value)) ASC) RN
    from test1 group by t_date)
    where rn=1

  • How to get ProxyEnable value from registry using Windows

    Hi,
    I have developed a webservice which check for a new version of software. Webservice works fine if the user does not use a proxy otherwise it raises an error "connection timeout....".
    I have found a lot of examples how to read a proxy from windows registry. It works fine. I have a problem with getting value for ProxyEnable. ProxyEnable is REG_DWORD type and I always get null.
    Best regards,
    Primoz

    Hi,
    I have found the solution. I put the solution into my blog. You can read more about that at http://javanus.com/blogs/?p=73.
    I hope this will help someone.
    Regards,
    Primoz

  • Invalid object name for Next value from sequence  using sqlserver 2012

    Select SequenceName.nextVal into lint from dual ;
    Invalid object name error message is coming when using sqlserver 2012
    Please help

    Hello,
    Create the sequence and a stored procedure which returns the sequence as follows:
    CREATE SEQUENCE mySequence_tinyint AS tinyint
    GO
    CREATE PROCEDURE Central_CreateSequence
       @NextID BIGINT OUTPUT
    AS
    BEGIN
       SET NOCOUNT ON;
       SELECT @NextID = NEXT VALUE FOR mySequence_tinyint;
    END
    GO
    In PowerBuilder, run this script:
    long ll = -10
    DECLARE proc PROCEDURE FOR Central_CreateSequence @NextID = :ll OUTPUT;      
    EXECUTE proc;
    FETCH proc INTO :ll;
    CLOSE proc;
    IF SQLCA.SQLcode <> 0 THEN
    MessageBox("error", SQLCA.sqlerrtext)
    END IF
    MessageBox("", ll)
    I know there can be other ways to return the next value of the sequence...
    HTH
    Jacob

  • Fetch value from USER_SEQUENCES using JSTL tag

    <sql:query var="seq_range">
    select MAX_VALUE, MIN_VALUE from USER_SEQUENCES
    where SEQUENCE_NAME = 'HTS_SEQ_ID_GRC11'
    </sql:query>
    <c:out value="***${seq_range.rows[0].MAX_VALUE}"/>
    But it is showing null....
    Is there is any other tag to get vlue from sequences

    I assume that you simply want the Form Id to happen at the begining.
    The key here is to use the varStatus to track your way during the iteration, so look up varStatus as part of the forEach for the details about how this works.
    <c:forEach items="${list}" var="bean" varStatus="status">
        <c:if test="${status.index == 0}">
            <p>Form Id: ${bean.id}</p>
        </c:if>
        <p>Transaction: ${bean.transaction} Date: ${bean.date}</p>
    <c:/forEach>

  • Get Field Values from Table using Java api

    I am using the example java code "RetrieveLimitedRecords" that can be found at :
    https://help.sap.com/javadocs/MDM71/current/API/index.html
    The code give the expected result and retrieves the record count for the main table
    Now I want to get the values of the fields for one record
    I added the lines:
    Record[] records = recordResultSet.getRecords() ;
    FieldId[] fields = records[0].getFields();
    System.out.println ("Field Length = "+fields.length);
    and the output is::
    Field Length = 0
    How can I get the fields of the record and read their values?
    Thanks
    Nicolas

    Assuming you want every field, the equivalent of "SELECT *" in SQL, you can use the RepositorySchema object to get a TableSchema, and with that get all FieldIds for the table.
    If your RepositorySchema variable is rs it would be something along the lines of:
    TableSchema mainTableSchema = rs.getTableSchema(mainTableId);
    ResultDefinition rd = new ResultDefinition(mainTableId);
    rd.setSelectFields(mainTableSchema.getFieldIds());
    Hope this helps,
    Greg

  • Passing values from applet using POST method to PHP page

    Hello there ;)
    I realy need a help here.. I`ve been working all day on sending mail from applet. I didn`t succeed bcs of the security restrictions.
    So I decided just to pass arguments into PHP page, which process them and send e-mail to me.
    So here is the problem.. I need to send String variables througth POST into my php page. Now I`m using GET method, but I need more than 4000 characters.
    My actual solution is:
      URL url = new URL("http://127.0.0.1/index.php?name=" + name + "&message=" + message);
    this.getAppletContext().showDocument(url,"_self");I really need to rewrite it into POST. Would you be so kind and write few lines example [applet + php code]? I`ve already searched, googled, etc.. Pls don`t copy links to other forums here, probably I`ve read it.
    Thanx in advance to all :)

    hi!
    i`ve got some news about my applet.. so take this applet code:
    public class Apletik extends JApplet {
        public void init() { }
        public void start()
        try
          String aLine; // only if reading response
          String  parametersAsString = "msg=ahoj&to=world";
          byte[] parameterAsBytes = parametersAsString.getBytes();
          // send parameters to server
          URL url = this.getCodeBase();
          url = new URL(url + "spracuj.php");
          URLConnection con = url.openConnection();
          con.setDoOutput(true);
          con.setDoInput(true); // only if reading response
          con.setUseCaches(false);
          con.setRequestProperty("Content=length", String.valueOf(parameterAsBytes.length));
          OutputStream oStream = con.getOutputStream();
          oStream.write(parameterAsBytes);
          oStream.flush();
          String line="";
          BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));
          while ((aLine = in.readLine()) != null)
           JOptionPane.showMessageDialog(null, aLine);      
           if(aLine.equals("")) break;
          in.close();      
          oStream.close();
        catch (Exception ex)
          JOptionPane.showMessageDialog(null, ex.toString());
    }here is code of spracuj.php which is on server:
    <?php
      if(isset($_POST['msg']))
        echo('hurray!');
    ?>it has only 1 problem.. when i test it on my localhost, everything seems to be all right. but when i post it to my server, i got IOException HTTP 400 error code :( where is the problem? please help me, i`m so close :D thanx

  • How to use return value from TestComplete ( using COM) as a variable in the conditional statement (e.g. while loop) in TestStand

    Hi,
    I have setup a COM interface for TestStand(TS) to run certain scripts in TestComplete (TC).  Normally, when TestComplete finishes executing the script, it returns a 0 or 1 to denote pass/fail in the TestStand step (e.g String value test step).  This worked fine.
    However, now I need TestComplete to return a vaule( e.g 32) to TS, and TS need to evalue this value in a while statement. So if TC return value is 32, I'd have some statement in TS ike :                                                                                                 
    While (return value != 30)
    Do something..
    Thanks,
    Solved!
    Go to Solution.

    There are a hundred ways to implement what you are asking.  The hard part is deciding which one would be the best for you.
    What adapter are you using to communicate with TestComplete?  ActiveX?  Is TestComplete running asynchronously (in parallel)?  If so then how is the data getting back to TestStand?
    So here are some options:
    1. You can use the While Step type.  It's in the Flow Control folder in your Step Types pallette.  Look in your examples under UsingFlowControlSteps.seq in the SequenceFlow
    2. You can loop on a step and have the termination for the loop be (return value == 30).  Look in the Step Properties under Looping.  Also in the TestStand help
    3. You could do Post Actions based on a condition and have it jump to another step.  Read about it in the TestStand Reference Manual.
    4. You could use a GoTo step.  I don't really recommend this one.  It makes code hard to maintain.  Also an example in SequenceFlow called gotobeep.seq.
    Hopefully this gets you thinking.  Let me know if you have specific questions about any of these methods.
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • How to save the value from JTextFormattedField using TAB key in lostFocus

    Can you, please help me with this problem:
    I want to have saved new value in JTextFormattedField after I use TAB kye.
    I tried with focusLost, then setting setFocusTraversalKeys etc.
    It looks simple, but !?
    Thanks

    I also tried the JFormattedTextField for the IPAddress Object which I created but it would't work that well I have a bad experience with these TextFields it showed me the formate 0.0.0.0 but when I entered the text in it, it jumps of after tow digits in each column

  • Retrieve value from element using extract gives ORA-19011: Character string

    hi, new to this..i'm trying to do in oracle 11.2.0.1.0, need to store all jobid in a table..
    DROP TABLE sox_xmltable_mytest;
    CREATE TABLE sox_xmltable_mytest as
    SELECT '<?xml version="1.0"?><ROWSET>'|| extract(OBJECT_VALUE, '/ArrayOfJobClass/JobClass/Tasks/TaskClass/JobId').getClobval() ||'</ROWSET>' as JOBID FROM sox_xmltable;
    drop TABLE sox_xmltable_tab;
    CREATE TABLE sox_xmltable_tab (
    poDoc XMLType NOT NULL
    insert into sox_xmltable_tab
    SELECT XMLType(JOBID)
    FROM sox_xmltable_mytest;
    commit;
    ***sample query is ok
    SQL> set pages 0 long 100000000
    SQL> SELECT e.poDoc.extract('/ROWSET/JobId').getClobval()
    2 FROM sox_xmltable_tab e;
    <JobId>3deed63a-05a9-4018-8e17-455282c6af83</JobId><JobId>534c7b37-c6d3-454c-962
    4-3901887a6163</JobId><JobId>534c7b37-c6d3-454c-9624-3901887a6163</JobId><JobId>
    534c7b37-c6d3-454c-9624-3901887a6163</JobId><JobId>534c7b37-c6d3-454c-9624-39018
    87a6163</JobId><JobId>821c6b33-6d4a-43e0-aa24-13475da72fd6</JobId><JobId>821c6b3
    3-6d4a-43e0-aa24-13475da72fd6</JobId><JobId>821c6b33-6d4a-43e0-aa24-13475da72fd6
    </JobId><JobId>821c6b33-6d4a-43e0-aa24-13475da72fd6</JobId><JobId>6c33838b-2966-
    4428-a4f6-422a186433f0</JobId><JobId>a70719c2-9d54-49f2-9555-1cf60404468d</JobId
    <JobId>4efb985b-0a4b-456c-9b4a-fe9876073208</JobId><JobId>19beaecc-22ac-450d-bccf-2d4ff30bcc80</JobId><JobId>1c33002d-dfd0-4533-99c4-4310a887d528</JobId><JobId
    1c33002d-dfd0-4533-99c4-4310a887d528</JobId><JobId>1c33002d-dfd0-4533-99c4-4310a887d528</JobId><JobId>1c33002d-dfd0-4533-99c4-4310a887d528</JobId>
    ***error when i tried to get jobid
    SQL> SELECT e.poDoc.extract('/ROWSET/JobId/text()').getStringval() as ID
    2 FROM sox_xmltable_tab e;
    SELECT e.poDoc.extract('/ROWSET/JobId/text()').getStringval() as ID
    ERROR at line 1:
    ORA-19011: Character string buffer too small
    ORA-06512: at "SYS.XMLTYPE", line 169

    user503699 wrote:
    This should work for youProbably not.
    If I'm not mistaken OP wants each JobId in a separate row.
    @OP :
    In XMLTable, the main XQuery expression returns a sequence of nodes that will each represent a separate relational row in the final resultset.
    If you need JobId in separate rows, then you have to tell the XQuery to return a sequence of JobId.
    BTW, you don't have to use multiple intermediate tables either, just query from your base table :
    SELECT x.JobId
    FROM sox_xmltable t
       , XMLTable('/ArrayOfJobClass/JobClass/Tasks/TaskClass/JobId'
           passing t.object_value
           columns JobId varchar2(100) path '.'
         ) x
    ;

  • How to Retrieve the Selected Values from selectOrderShuttle using ADF 11g

    Hi Every One,
    Does anyone has idea how to retrieve the selected Items using shuttle and Order of the items using 'SelectOrderShuttle' component ?
    Thanks

    shuttle's valuechangeevent would fire when you shuttle items back and forth.
        public void selectOrderShuttle1_valueChangeListener(ValueChangeEvent valueChangeEvent) {
            ArrayList list = new ArrayList(Arrays.asList(valueChangeEvent.getNewValue()));
            if (list != null){
                for (int i=0; i<list.size(); i++) {
                    int l = list.size()-1;
                    val = list.get(l).toString(); //returns , delimited string
                    if (val != null){
                        val = val.replaceAll("[\\[\\]]", "");
                        StringTokenizer st = new StringTokenizer (val, ",");
                        int nto = st.countTokens ();
                        for (int j = 0; j < nto; j++)
                            String token = st.nextToken ();                     
                ..........

  • How to pick max value from a column of a table using cursor and iteration

    Hello Everybody
    I have a table loan_detail
    and a column in it loan_amount
    now i want to pick values from this table using cursor and then by using iteration i want to pick max value from it using that cursor
    here is my table
    LOAN_AMOUNT
    100
    200
    300
    400
    500
    5600
    700i was able to do it using simple loop concepts but when i was trying to do this by using cursor i was not able to do it .
    Regards
    Peeyush

    SQL> SELECT MAX(sal) Highest_Sal,MIN(sal) Lowest_Sal FROM emp;
    HIGHEST_SAL LOWEST_SAL
           5000        800
    SQL> set serverout on
    SQL> DECLARE
      2    TYPE tmp_tbl IS TABLE OF NUMBER INDEX BY BINARY_INTEGER;
      3    sal_tbl tmp_tbl;
      4    CURSOR emp_sal IS
      5      SELECT sal FROM emp;
      6    counter INTEGER := 1;
      7  BEGIN
      8    FOR i IN emp_sal LOOP
      9      sal_tbl(i.sal) := counter;
    10      counter := counter + 1;
    11    END LOOP;
    12    DBMS_OUTPUT.put_line('Lowest SAL:' || sal_tbl.FIRST);
    13    DBMS_OUTPUT.put_line('Highest SAL:' || sal_tbl.LAST);
    14  END;
    15  /
    Lowest SAL:800
    Highest SAL:5000
    PL/SQL procedure successfully completed.
    SQL> Even smaller
    SQL> DECLARE
      2    TYPE tmp_tbl IS TABLE OF NUMBER INDEX BY BINARY_INTEGER;
      3    sal_tbl tmp_tbl;
      4    CURSOR emp_sal IS
      5      SELECT sal FROM emp;
      6    counter INTEGER := 1;
      7  BEGIN
      8    FOR i IN emp_sal LOOP
      9      sal_tbl(i.sal) := 1;
    10    END LOOP;
    11    DBMS_OUTPUT.put_line('Lowest SAL:' || sal_tbl.FIRST);
    12    DBMS_OUTPUT.put_line('Highest SAL:' || sal_tbl.LAST);
    13  END;
    14  /
    Lowest SAL:800
    Highest SAL:5000
    PL/SQL procedure successfully completed.
    SQL> Edited by: Saubhik on Jan 5, 2011 4:41 PM

  • Getting the attribute value from a table from page def using el expression.

    Hi,
    Am using Jdeveloper 11.1.2.0.0 and have a requirement as follows for which a sample is been created. Requirement is as follows..
    1. Have a Taskflow that has a readonly table Employee.
    2. On clicking of a button called "route" checks if the selected row , Manager id attribute value = 200 then navigate to first page else if manager id attribute value is 200 then navigate to second page.
    Through the page def , if it has form , then we can access the attributes like #{data.view_FirstPageDef.ManagerId} . In case of acquiring the same attribute value from table using page def ? is what am unable to get..
    Have achieved the routing concept using the Router activity on Taskflow. But am unable to get the selected row attribute value of a table from the employee page def.. Can someone suggest on the same...
    Thanks and Regards,
    Vinitha G

    On the router, right click its icon in the task flow and create a page definition. Then in the page def file, add an iterator based on the same View Object from the table in the first page, then add a value attribute mapped to managerId in the View Object iterator. Finally in the router you can write EL expressions along the lines of #{bindings.ManagerId.inputValue = 200} or #{bindings.ManagerId.inputValue != 200}.
    CM.

Maybe you are looking for

  • My nano SIM works in my Nokia mobile phone but "No SIM" when in my iPad mini

    I've been around the support loop a few times with varying levels of success, here is my story. Basically I expect to only occasionally require mobile data services so would like to move my nano SIM from my Nokia mobile phone to the iPad mini as and

  • 647 Movement type

    Hi gurus We use 641 mvmt type for PGI and a manually we process the Goods receipt by delivery using 901 mvmt type which is a copy of 101 but there no SLED check in the 901 mvmt type. But we are trying to make some changes to 647 mvmt type which is a

  • About Servlet packages

    Hi, I've downloaded and installed jswdk-1.0.1.But I don't know how to specify the classpath variable to make my servlet program to run.Also I don't knpw where to save my servlet file.(while running it always says like package javax.servlet.*,javax.se

  • Subfolders disappear in the Folders panel

    Periodically after working in LR5 for a while the subfolders in the Folders panel disappear. The main parent folder (my external drive) is shown with the picture count but all the subfolders are gone. When I right click on a photo and "Go to photo in

  • IBM MS-9121 BIOS Compatibility

    I have a system spare from some breed of IBM server or workstation. Its based on the MSI MS-9121 dual xeon motherboard and I was wondering if anyone knew of any problems loading a MSI bios onto it.