Not able to get the data from variables contained in more than 1 mxml file

I have got 5 Bindable Public integer variables in total in 5 mxml files (Pages). Each variable is assigned it's value in a Public function in each of the mxml files.
What I need to do is add up the values of the 5 variables. The way I approached this was to create a public function add5Variable in my main mxml file (Page1) as shown below.
[Bindable]
public var varTotal:int = 0;
public  
varTotal = (variableP1 +
Page2.variableP2 + Page3.variableP3 + Page4.variableP4 + Page5.variableP5);
return(varTotal);
I have got a TextInput field on Page5 where I display the varTotal. The function add5Variable is called when moving from Page to Page.
The results I am getting is that the varTotal will always be the value of variableP1. When I tried some debugging in Flex Builder it showed me that the other 4 variables had a value of 0.
Why is this the case and do you have any suggestions on how I can get the correct total for varTotal?
Thanks
function add5Variable():int {

The code below looks correct. Is that the expected behavior of your app?
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
<![CDATA[
public var ValueP2:Number = 0;
private var grossValue:Number = 0;
private var totalValue:Number = 0;
private var finalTotalP2:int = 0;
public function test():void {
if (Number(TextInput2.text) == 1 || Number(TextInput2.text) == 2)
ValueP2 = 1;
totalValue = grossValue + ValueP2;
else if (Number(TextInput2.text) == 3 || Number(TextInput2.text) == 4) {
ValueP2 = 5;
totalValue = grossValue + ValueP2;
else if (Number(TextInput2.text) == 5 || Number(TextInput2.text) == 6) {
ValueP2 = 9;
totalValue = grossValue + ValueP2;
trace("totalValue "+totalValue);
finalValueP2(totalValue);
public function finalValueP2(tVP2:int):int {
var tallyP2:int = 0;
if (tVP2 < 3)tallyP2 = 1;
if (tVP2 >= 3 && tVP2 <5)tallyP2 = 2;
if (tVP2 >= 5 && tVP2 <10)tallyP2 = 3;
finalTotalP2 = tallyP2 * 7;
trace("finalTotalP2 " +finalTotalP2);
return(finalTotalP2);
]]>
</mx:Script>
<mx:TextInput id="TextInput2" enter="test()"/>
</mx:Application>

Similar Messages

  • The problem here is i am not able to get the data from the list

    hi all,
    i have the following code
    EnrichedProductCatalogue enrichedProductCatalogue1 = new EnrichedProductCatalogue();
    enrichedProductCatalogue1.setAssetCount(2);
    enrichedProductCatalogue1.setBlockingProduct("Weekend Freebee");
    enrichedProductCatalogue1.setBlockingReason("Compatability");
    ArrayList<String> availableActionsList = new ArrayList<String>();
    availableActionsList.add(EnrichedProductConstants.ADD.toString());
    availableActionsList.add(EnrichedProductConstants.REMOVE.toString());
    enrichedProductCatalogue1.setAvailaibleActions((ArrayList<String>)availableActionsList);
    BundleProduct bundleProduct = null;
    Product product = new Product();
    product = new Product();
    product.setProductName("International");
    product.setProductClassName("International");
    ArrayList<UiCategory> uiCategory = new ArrayList<UiCategory>();
    UiCategory uiCategory1 = new UiCategory();
    uiCategory1.setCategoryName("Simply");
    UiCategory uiCategory2 = new UiCategory();
    uiCategory2.setCategoryName("Freebees");
    uiCategory.add(uiCategory1);
    uiCategory.add(uiCategory2);
    product.setUiCategory(uiCategory);
    bundleProduct = new BundleProduct();
    bundleProduct.setCommercialProduct(product);
    enrichedProductCatalogue1.setBundleProduct(bundleProduct);
    listOfEnrichProducts.add(enrichedProductCatalogue1);
    listOfEnrichProducts.add(enrichedProductCatalogue1);
    here i have an list called listOfEnrichProducts.
    here i am adding two objects of enrichedProductCatalogue.
    which contains a object called BundleProduct.
    which has a reference for Product class.
    here this product class has a list which contains objects of another class called UiCategory.
    the problem here is i am not able to get the data from the list which contains UiCategory objects .
    the following is the UI
    <af:table var="row" rowBandingInterval="0" id="t1"
    value="#{pageFlowScope.sample1}"
    binding="#{pageFlowScope.sampleManagedBean.dataTable}"
    partialTriggers="apimethods ::apimethods">
    <af:column sortable="false" headerText="ProductName" id="c2">
    <af:outputText value="#{row.bundleProduct.commercialProduct.productName}" id="ot15"/>
    </af:column>
    <af:column sortable="false" headerText="ProductClass" id="c12">
    <af:outputText value="#{row.bundleProduct.commercialProduct.productClassName}" id="ot19"/>
    </af:column>
    <!--
    <af:column sortable="false" headerText="UICategoryName" id="c32">
    <af:forEach var="item" items="#{row.bundleProduct.commercialProduct.uiCategory}" >
    <af:outputText value="#{item.categoryName}" id="ot119"/>
    </af:forEach>
    </af:column>
    -->
    <af:column sortable="false" headerText="AssetCount" id="c22">
    <af:outputText value="#{row.assetCount}" id="ot1"/>
    </af:column>
    <af:column sortable="false" headerText="blockingReason" id="c3">
    <af:outputText value="#{row.blockingReason}" id="ot2"/>
    </af:column>
    <af:column sortable="false" headerText="blockingProduct" id="c4">
    <af:outputText value="#{row.blockingProduct}" id="ot3"/>
    </af:column>
    <!--<af:column sortable="false" headerText="availaibleActions" id="c1">
    <af:commandButton text="#{row.availaibleActions}" id="cb1"
    actionListener="#{pageFlowScope.sampleManagedBean.callAction}"
    partialSubmit="true">
    <af:setPropertyListener from="#{row.availaibleActions}"
    to="#{pageFlowScope.avalibleaction}" type="action"/>
    </af:commandButton>
    </af:column>-->
    </af:table>
    Can anyone pls give some solution ...

    Hi Frank,
    value="#{pageFlowScope.sample1}"
    here sample is
    Map<String, Object> flowScope1 =
    ADFContext.getCurrent().getPageFlowScope();
    flowScope.put("sample1", listOfEnrichProducts);
    this is not the problem . i am able to get all the values except the following .
    ArrayList<UiCategory> uiCategory = new ArrayList<UiCategory>();
    UiCategory uiCategory1 = new UiCategory();
    uiCategory1.setCategoryName("Simply");
    UiCategory uiCategory2 = new UiCategory();
    uiCategory2.setCategoryName("Freebees");
    uiCategory.add(uiCategory1);
    uiCategory.add(uiCategory2);
    product.setUiCategory(uiCategory);

  • Not able to get the data from 2LIS_04_P_ARBPL

    Hi all,
    I am not able to get data for info object 0Calday in PP Cube.
    So I checked as per the data flow
    So from Datasource 2LIS_04_P_ARBPL its not getting data for that particular object
    I check in RSA3 its showing " 0 records extracted"
    So I have checked in LBWE to check from which tables its getting data.
    So there I found its getting data from 3 tables AFKO, AFPO and  AFVG.
    When I am checking the tables data am able to open AFKO and AFPO but
    for AFVG its saying "No active table available".
    and the infoobject 0calday is mapped with Posting date of AFVG table only.
    Can anyone tell me what is the procedure to see the data in that particular table and structrure.
    Regards
    Sankar

    Hi,
    please search for the term 'filling of setup table'.
    Siggi

  • Not able to get the data from synchronous Webservice To BPEL process

    Hi All,
    My requirement is : Third party has some webservice.They are pushing data to that Webservice(Wsdl).
    Third part WSDL example : http://ipaddress:port/name/Service.svc?wsdl ( This is just example format of their WSDL)
    After that I need to get that data into my BPEL process and update my system.
    When I built My Snchronous BPEL process I imported third party WSDL(http://ipaddress:port/name/Service.svc?wsdl) through 'import WSDL' in dialog.After that I automatically got the (request and response schema elements) parameters from that WSDL.I gave input and output of the BPEL process from those elements.
    I pasted that third party URL iin SOAPUI and I got their operations and schemas.Based on that I had choosen the elements for 'input' and 'output' of the BPEL processes.I am also getting the schema structures in 'Assign' or 'Transform' activity.
    I built the whole process.
    I have the Process.
    Now Client is pushing data to their WSDL(http://ipaddress:port/name/Service.svc?wsdl) as it is their data pushing interface.But that data is not coming to my BPEL process and instance is not being created in EM console.
    As I have imported their WSDL into my BPEL process,I need to get the data.But I am not getting the data.
    Is there any problem in MY BPEL process?
    (or)
    DO I need to use 'Webservice' Adapter in 'Exposed Services' Swimlane in Composite Editor to have the third party URL, so that they Can push the data to that WSDL in turn that data comes into my BPEL process?
    Can anybody help me this case?
    once again my requirement is :
    Client pushes the data through their WSDL url -----> I need to get that data into MY BPEL process --> I have my own WSDl to take that details into my system.

    I will explain the requirement in small paragraph:
    There are two applications.One is our application(X) and another one is third party application(Y).
    I need to update in my application(X) based on data coming from application(Y).
    I am using SOA as a middle tier to have communication between Y and X.
    (Ex: if they send some info like event type 'event1' from Y ,I need to update that 'event1' data in my X application)
    The work at third party application is :
    According their info,They will push data from their end to their WSDL( http://ipaddress:port/name/Service.svc?wsdl ).
    They are telling they can only send the data to their WSDL( http://ipaddress:port/name/Service.svc?wsdl ).
    They will not consume our BPEL process(I think they might be wrong at this point of time).They have one WSDL to send or push the data from their end.
    The work at from our side(SOA & X application)
    From that point ,our BPEL process has to receive that data and update that data into my application(X).
    I hope You understand my requirement.
    Can you guide me through how to achieve this task as they are telling they have to use their WSDL to push the data?
    (or)
    Do I need to take 'Webservice' adapter into Exposed Services Swimlane in Jdeveloper to have their webservice(third party WSDL),If it is So Can you tell me the details how to take 'input' and 'output' for BPEL process?
    (or)
    Can YOu suggest me to talk to them to consume my BPEL process directly?
    Thanks
    Edited by: 899283 on Aug 17, 2012 4:55 AM

  • I recently restored my iPhone 4s from back-up after being reset. An app that I had turned off in back-up did not show up in my recent resoration. I forgot to turn that app back on. Would there be any way I would be able to get the data from that app?

    I recently restored my iPhone 4s from back-up after being reset. An app that I had turned off in back-up did not show up in my recent resoration. I forgot to turn the app back on. Would there be any way I would be able to get the data from that app onto my phone? Is it possible to put an old back-up on my phone?

    LukaPetranovic wrote:
    Hello anita4323.
    I hope this will help you with your problem:
    Back up and restore your iPhone, iPad, or iPod touch using iCloud or iTunes - Apple Support
    You can restore your backup whenever you want from iTunes or iCloud, depending where you made it.
    Let us know if you succeeded or need any further help.
    I believe you are missing the point. The OP has already restored from back up, but failed to include a specific app in the back up and is trying to recover data for it, which in this case is not possible.

  • Problem Using HTTP Dispatcher -- Could Not able to get the data in JSP

    Hi, I am using HTTP Dispatcher to send my events to particular URL which is a JSP page. I am trying to populate the received event through URL and populate to a oracle data base. But could not able to get the data in Oracle database.
    Code is :
    <h1>JSP Page</h1>
    <%
    long type = 0;
    String tagId = null;
    String timeStr = "0";
    String deviceName = "";
    // Get Event Parameters
    // Available Parameters: id, siteName, deviceName, data, time, type, subtype, sourceName, correlationId
    try
    type = Long.parseLong(request.getParameter("type")); // Get type
    tagId = request.getParameter("id"); // Get tagId
    timeStr = request.getParameter("time"); // Get time
              deviceName = request.getParameter("deviceName");
    catch (Exception e)
    out.println( "Error: "+e.getMessage() );
              // Write into DB.
              try {
              if ((tagId == null) || (type != 200) ){
                   // Do Nothing
                   //return;
              } else {
                   OracleDataSource ods = new OracleDataSource();
                   String URL = "jdbc:oracle:thin:@//3.235.173.16:1525/vislocal";     
                   ods.setURL(URL);
                   ods.setUser("cus");
                   ods.setPassword("cus");
                   Connection myConn = ods.getConnection();     
                   Statement stmt = myConn.createStatement();
                   String selectQuery =
                             "SELECT MAX(rfid_raw_reads_id) as max_id FROM "+
                        "cus.rfid_raw_reads ";
                   ResultSet rs = stmt.executeQuery(selectQuery);
                   String maxId = "1";
                   if (rs.next()) {
                        maxId = rs.getString(1);               
                   String selectMaxTagIDQuery =
                             "SELECT MAX(rfid_raw_reads_id) as max_id FROM "+
                        "cus.rfid_raw_reads WHERE tag_id = '" + tagId + "'" ;
                   stmt = myConn.createStatement();
                   rs = stmt.executeQuery(selectMaxTagIDQuery);
                   String maxTagId = "1";
                   if (rs.next()) {
                        maxTagId = rs.getString(1);               
                   long primaryKey = 1;
                   long tagKey = 1;
                   try {
                        primaryKey = Long.parseLong(maxId) + 1;
                        tagKey = Long.parseLong(maxTagId) + 1;
                   } catch (Exception e) {
                   long currentTime = System.currentTimeMillis();
                   long updateKey = (tagKey - 1);
                   String updateQuery = " UPDATE cus.rfid_raw_reads SET read_end_time = " + currentTime + " WHERE rfid_raw_reads_id = " + updateKey;
                   Statement updateStmt = myConn.createStatement();
                   updateStmt.execute(updateQuery);     
                   String query =
                        "INSERT INTO cus.rfid_raw_reads (rfid_raw_reads_id, tag_id,device_name,read_start_time) VALUES ("+ primaryKey + ",'" + tagId + "'," + deviceName + "'," + System.currentTimeMillis() + " )" ;
                   Statement insertStmt = myConn.createStatement();
                   insertStmt.execute(query);     
                   myConn.commit();
                   myConn.close();
              } catch (Exception e) {
    %>
    <p>For browser debug:
    <%
    out.println( "Type="+type+" ID="+tagId +" time="+timeStr );
    %>
    Kindly suggest where is the problem...
    Thanks and regards
    Mohammad Nasim Akhtar

    HI Prabhat,
    Thanx for your reply, I worked out and able to receive the data in oracle database, Actually there was some problem in insert Query. Now I have tested the same... and able to edit the same in the Database.....
    But I am facing a new problem, Http Dispatcher in SES console is displaying all the Events generated as well as event in Que but there is no events in the Event Send. I guess it is not able to send the events.....?????
    Event statical is showing like this
    Events Received: 0 (0.00/sec)
    Events Generated: 311 (0.19/sec)
    Events Sent: 2 (0.19/sec)
    Queued Events: 309 (0.19/sec)
    Kindly suggest where is the problem, Is it a JSP problem or OSES end problem.....
    Thanks and regards
    Nasim

  • Not able to get the data in COSB Table

    Hi Colleagues,
    I have created a Project and assign the WBS number to a Sales order and also have done all the settings in Result Analysis.
    But still not able to get the data in COSB table.
    Could you please suggest me the steps and process, Might be i have missed something..
    Thanks in Advance
    Regards
    Nitin

    Hi Ken,
    I have below mentioned requirement
    COSB will show value by object number and need to pass the object number to PRPS table to find the corresponding WBS element and then pass the WBS element to VBAP table to find the corresponding SO line item.
    Please let me know as Functional prospect what I have to do to bring this values in COSB table.
    Regards
    Nitin

  • Not able to get the data in PE51

    Dear Freinds,
                  I have copied similar to the standard in IN01 , in the Pe51> Windows i have kept under W1 all the wage types which comes under earnings and when i execute the payslip   i.e  in the simulation run and when i view the form i can see
    only the wage types but i dont find the correspnding amounts agains each wage type. Please could any one help me
    why iam not able to get the amount agains the wge type?
    regards
    divya.

    Hi,
    I think u might have done some mistakes while configuring PE51 in cumulation ID ..........
    First of all as Siki said check ur master data whether the WT has given in IT 0008 and corresponding amounts entered to the resp WT. if it is ok then check the pe51 config once........
    go to pe51 give ur form name and select cumulation IDs go to change mode and double click on Earnings and see whether the data is maintained in this manner or not .......
    Table = RT ,   ID = your WT code ,    MS = + (sign)   ,  Dsplit = * (sign),      rest all coulumn leave blank ........ save it and then again run the payrl in Live mode and see the Pay slip.........
    If any problem Pls let us know.... and see other gurus post also.
    Regards,
    Prashant

  • Not able to get the message from Queue using MQ adapter

    HI
    Using Mq adapter am able to put the message in a queue and am able to get the message if i select the schema type as opaque, but am not able to get the message if i specify any schema type and am getting timed out exception.
    Kindly help to proceed with this issue.

    Hi,
    Am also facing the same issue.
    I would be thankful if anyone can provide the solution

  • Not able to Delete the data from Memory card

    Hi all,
    I have bought a new nokia 3120 classic.it is working fine but recently i have received some data from my friend.
    Then suddenly the problem begins like.. when i take a photo.. i am getting error like the image is not in the format and i am not able to save that.And also, the main problem is I am unable to delete the data from my memory card.
    Every time after deleting i am getting the same data.
    Why this happening..is it because of VIRUS?? If so how to delete the virus from my memory card??
    When i contacted the nokia care people in bangalore they are saying that they can offer the service of formatting the memory card??
    Except that my Phone is working fine..the problem is with Memory card!!!
    Please help me...

    you can actually format your memory card first see if you have such option on your phone to format directly from the phone if that is not possible you can always use a card reader and reformat your card using your pc. just understand that all data from that memory card will be lost unless you do a back up of it. if you do a back up and restore the data to the memory card after reformat you might get the same issue so be careful as to what you will decide to do with the data from the card. once you format your card it should all be good unless the card is corrupted itself which can also happen. but first try with the reformat and see if it works out for you. 
    You know what I love about you the most, the fact that you are not me ! In love with technology and all that it can offer. Join me in discovery....

  • Not able to get the attributes from HttpSession

    hi all,
    i'm using session.setAttribute() in a jsp to put an attribute in the session and when i try to get that attribute in another jsp it's not giving the value. But the getAttribute() mehods is giving the value in the same jsp page where i used the setAttribute() method.
    pls help,
    regards chandu

    If you are using IE go to tool and then internet options and look under privacy for you cookie status(this will vary version).
    To use URL rewriting all you have to do is one of two things:
    www.url.com?parm=value&param2=value
    or if the value is a result of a java expression or is a java variable you can do
    www.url.com?parm=<%=variable%>&param2=<%=(variable +1)%>
    You get the values from url rewriting by using request.getParameter or getParameterValues(used when multiple values are getting passed).
    When data is retrieved using getParameter it always comes back as a string and you should trim them as well.
    HTH,
    J.Clancey

  • Not able to reload the data from DB using finder methods

    Hi all,
    <p>
    I am facing a weird problem while using finder methods.
    I am using weblogic 8.1 SP3 and entity beans are CMP with DB concurrency.DB is oracle
    </p>
    <h4>Problem Description</h4>
    <p>
    I am having one session bean which internally interacts with my entity beans,
    Now say my transaction is getting initiated in one of the session bean and I use some finder in it.
    </p>
    <p>
    To make the problem more clear lets say my entity bean is loanBean with loanId as primary key.
    Now say method A of session bean initiates the transaction and I use something like
    <br>
    LoanLocal loanLocal =loanLocalHome.findByLoanId(loanId);
    <br>
    <b>Note that I am not using findByPrimaryKey method</b>
    <br>
    now this method A calls some other method B on some session bean which is having Required as its transaction attribute.
    <br>
    But before the call of B some other thread or background process updates the DB for this loanId and commits,
    <br>
    now when I fire the same finder in method B I am still getting the old data, ie I am not getting the data which has been modified in DB and committed by some other thread, I still get the old data and when I tried to generate the SQL queries which weblogic is firing, I see
    it fires the SQL for every finder other that findByPrimaryKey.
    <br>
    <b>
    Now my problem is I am getting the old data only and I need the new updated data of DB. isolation-level of DB and beans is READCOMMITTED.
    Note:: I cant use new transaction to read the data.
    </b>
    <br>
    And I couldn't understand that when weblogic is firing query for every finder then why it should not refresh the data in its cache. Is there any way to disable this kind of caching and say that everytime when i use finder just go to DB and get me the last committed data.
    </p>
    <br>
    Any help in this regard would be very helpful to me.
    <br>
    Thanks and Regards
    <br>
    Manish Garg.
    </p>

    Hi,
    In my understanding, cache is not involved in this scenario. As you
    observed, the container fires sql every time when you invoke this finder.
    So, it should just give the result that it got from the DB. Is there a
    possibility that the DB is using repeatable_read or serializable for
    isolation level?
    You can debug further by doing couple of things -
    1. Instrument the code in the generated RDBMS java file for the entity bean
    (if you use -keepgenerated option for weblogic.ejbc, u can get the source of
    this file). This class will have the implementation for ejbFindByLoanId. You
    can just print the result set data after the query is fired.
    2. Try the same scenario without the ejb container. Like, write a jsp which
    will start a user tx and fire the query twice such that there is an update
    between the two queries. Note that, you need to use a TxDataSource to get
    the JDBC connection so that it will be tx aware.
    --Sathish
    <Manish Garg> wrote in message news:[email protected]...
    Hi all,
    <p>
    I am facing a weird problem while using finder methods.
    I am using weblogic 8.1 SP3 and entity beans are CMP with DB
    concurrency.DB is oracle
    </p>
    <h4>Problem Description</h4>
    <p>
    I am having one session bean which internally interacts with my entity
    beans,
    Now say my transaction is getting initiated in one of the session bean and
    I use some finder in it.
    </p>
    <p>
    To make the problem more clear lets say my entity bean is loanBean with
    loanId as primary key.
    Now say method A of session bean initiates the transaction and I use
    something like
    <br>
    LoanLocal loanLocal =loanLocalHome.findByLoanId(loanId);
    <br>
    <b>Note that I am not using findByPrimaryKey method</b>
    <br>
    now this method A calls some other method B on some session bean which is
    having Required as its transaction attribute.
    <br>
    But before the call of B some other thread or background process updates
    the DB for this loanId and commits,
    <br>
    now when I fire the same finder in method B I am still getting the old
    data, ie I am not getting the data which has been modified in DB and
    committed by some other thread, I still get the old data and when I tried
    to generate the SQL queries which weblogic is firing, I see
    it fires the SQL for every finder other that findByPrimaryKey.
    <br>
    <b>
    Now my problem is I am getting the old data only and I need the new
    updated data of DB. isolation-level of DB and beans is READCOMMITTED.
    Note:: I cant use new transaction to read the data.
    </b>
    <br>
    And I couldn't understand that when weblogic is firing query for every
    finder then why it should not refresh the data in its cache. Is there any
    way to disable this kind of caching and say that everytime when i use
    finder just go to DB and get me the last committed data.
    </p>
    <br>
    Any help in this regard would be very helpful to me.
    <br>
    Thanks and Regards
    <br>
    Manish Garg.
    </p>

  • Not able to get the data on the page

    hi,
    I tried brining the data on the JSP page. I am passing the parameters to a PL/SQL procedure. but I am not getting any data or error. can anyone helpme how to proceed further I am retreving the page parameters that are passed to the JSP page like this.
    <%
    PortletRenderRequest portletRequest = (PortletRenderRequest)request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
    RenderContext rc = portletRequest.getRenderContext();
    PortletDefinition pd = portletRequest.getPortletInstance().getPortletDefinition();
    %>
    I am getting the page parameters. but I am not able to get any result on the page.
    while I am using the same code to get the data on another JSP page I am getting the data except I am not retreving the page parameters.
    I am using the code like this to pass the parameters to the procedure.
    OracleConnection conn__OCI      = cpool.getProxyConnection(OracleOCIConnectionPool.PROXYTYPE_USER_NAME, proxUserProp);
                                  cstmt = conn__OCI.prepareCall ("begin test.test1( ?,?,?,?,? ); end;");
                                  cstmt.setString(2, cnumb);
                                  cstmt.setString(3, cperiod);
                                  cstmt.setInt(4, retStrC);
                                  cstmt.setString(5, retStr3);
                                  cstmt.registerOutParameter (4, Types.NUMERIC);
                                  cstmt.registerOutParameter (5, Types.VARCHAR);
                                  cstmt.registerOutParameter(1, OracleTypes.CURSOR);
                                  cstmt.execute();
                                  retStrC = cstmt.getInt (4);
                                  retStr3 = cstmt.getString (5);
                                  retStr = "<tr class=OraDataText><td>  " + retStrC + "</td></tr>";
                                  retStr = retStr + "<tr class=OraDataText><td>  " + retStr3 + "</td></tr>";
                                  if ( retStrC == -1 )                    { ALLretStr = ALLretStr + retStr; }
                                  else
                                       cursor = ((OracleCallableStatement)cstmt).getCursor(1);
                                       while (cursor.next ())
                                                 if (spacerLine >= 2)
                                                      ALLretStr = ALLretStr + "<tr><td colspan=5 height=1 <div id=ssubLine> <div id=ssubLinet></div> </div> </td></tr>";
                                                 ALLretStr = ALLretStr + "<tr class=smmjWipAltText><td ALIGN=LEFT>" + cursor.getString(1) + "</td><td ALIGN=CENTER>" + cursor.getInt(2) + "</td><td ALIGN=CENTER>" + cursor.getString(3) + "</td><td ALIGN=CENTER>" + cursor.getString(4) + "</td><td ALIGN=RIGHT>" + cursor.getString(5) + "</td></tr>";
                                                 spacerLine++;
                                  }

    Hi Frank,<br>
    <br>
    I am getting a blank page after hitting the submit button. can you help me finding a solution for this in the JSP page or tell me where the error is. <br>
    <br>
    <%@page contentType="text/html;charset=UTF-8" %><br>
    <%@page import="oracle.portal.provider.v2.render.*" %><br>
    <%@page import="oracle.portal.provider.v2.render.PortletRenderRequest" %><br>
    <%@page import="oracle.portal.provider.v2.PortletDefinition" %><br>
    <%@page import="oracle.portal.provider.v2.http.HttpCommonConstants" %><br>
    <%@page import="java.sql.*, javax.sql.*, java.util.*, oracle.jdbc.*, <br>
    oracle.jdbc.pool.*, oracle.jdbc.oci.*" %><br>
    <br>
    <%<br> PortletRenderRequest portletRequest = (PortletRenderRequest)request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);<br>
    RenderContext rc = portletRequest.getRenderContext();<br>
    PortletDefinition pd = portletRequest.getPortletInstance().getPortletDefinition();<br>
    %><br>
    <%! String tree_descrip;<br> String tree_descrip_long;<br>
    String curr_Scheme;<br>
    String overl_gif;<br>
    String curr_css_path;<br>
    // page param<br>
    String p_number_val= "1";<br>
    String p_period_val= "Day";<br>
    %><br>
    <%<br> String long_desc = "LONG";<br>
    String Descrip = "SHORT";<br>
    String treeDescrip= "%SUBMISS%OLDER%";<br>
    String curr_treeCateg = "SUB";<br>
    try<br>
    {<br>
    curr_Scheme = getInfo.getSchem.getSchem();<br>
    overl_gif = "/images/tested/"+curr_Scheme+ "images/prefreshdefault.gif";<br>
    curr_css_path = "/images/tested/" curr_Scheme "css/param_jsp.css";<br>
    tree_descrip = getInfo.getPortletTitle.getPortletTitle ( Descrip , treeDescrip , curr_treeCateg);<br>
    tree_descrip_long = getInfo.getPortletTitle.getPortletTitle ( long_desc , treeDescrip , curr_treeCateg);<br>
    }<br>
    catch(Exception e)<br>
    {<br>
    tree_descrip = "";<br>
    tree_descrip_long = "";<br>
    }<br>
    %> <br>
    <% // Get page param p_number_val try { p_number_val = request.getParameterValues("p_number")[0]; } catch(Exception e) { p_number_val = "1"; } <br>
    // Get page param p_period_val try { p_period_val = request.getParameterValues("p_period")[0]; } catch(Exception e) { p_period_val = "Day"; } %> <br>
    <HTML> <HEAD> <link href="<%= curr_css_path %>" rel="stylesheet" type="text/css" media='' screen=''/> <SCRIPT LANGUAGE="JavaScript1.1" SRC="/images/smmj_page_obj/Popup/overlib.js"></SCRIPT> </HEAD> <BODY>
    <TABLE WIDTH=100% summary="<%= tree_descrip %>" border="0" cellspacing="0" cellpadding="3" BGCOLOR="#FFFFFF" > <TR WIDTH="100%" height="6px"><td height="6px" COLSPAN="6" ></td></TR> <TR WIDTH="100%" > <td ALIGN="LEFT" nowrap ></td> <td ALIGN="LEFT" style="font-family:Verdana; font-size:8pt;font-weight:normal" nowrap class="smmjPort2HeadJS"> CYCLE NAME</td> <td ALIGN="CENTER" style="font-family:Verdana; font-size:8pt;font-weight:normal" nowrap class="smmjPort2HeadJS">ID</td> <td ALIGN="CENTER" style="font-family:Verdana; font-size:8pt;font-weight:normal" nowrap class="smmjPort2HeadJS">FIRM NAME</td> <td ALIGN="CENTER" style="font-family:Verdana; font-size:8pt;font-weight:normal" nowrap class="smmjPort2HeadJS">BILLING PERIOD</td> <td ALIGN="RIGHT" style="font-family:Verdana; font-size:8pt;font-weight:normal" nowrap class="smmjPort2HeadJS0">AGE</td> </TR> <%= getOlderSubs( p_number_val, p_period_val , "dev", portletRequest.getUser().getName(), "close_connect") %> </table> <TABLE><TR><TD> <%=p_number_val%>
    <%=p_period_val%> <br>
    <%=portletRequest.getUser().getName()%> </TD></TR> </TABLE> </BODY> </HTML> <br>
    <%!<br> private String getOlderSubs( String cnumb, String cperiod, String cstring, String userid, String cState) throws SQLException
    {<br>
    CallableStatement cstmt;<br>
    ResultSet cursor;<br>
    int spacerLine = 1;<br>
    int retStrC = 1;<br>
    String retStr = "f";<br>
    String retStr2 = "f";<br>
    String retStr3 = "f";<br>
    String retStr4 = "f";<br>
    String ALLretStr = " ";<br>
    String TempretStr = " ";<br>
    String userstring = getInfo.getPortlUser.getPortUsr("B", "1");<br>
    String pwstring = getInfo.getPortlUser.getPortUsr("B", "2");<br>
    String CNNstring = getInfo.getPortlUser.getPortUsr("B", "3");<br>
    String PROXY_user_name = "test$" + userid;<br>
    //String PROXY_user_name = "test1$roger" ;<br>
    String url= "jdbc:oracle:oci:@" + CNNstring;<br>
    Properties prop = new Properties();<br>
    try {<br>
    if ( userid.trim().toUpperCase().equals(getInfo.getCONN.chkPortal.trim().toUpperCase()) )<br>
    {<br>
    ALLretStr = "<tr><td>Default user: " + userid + "</td></tr>"; }<br>
    else<br>
    {<br>
    // Create an OracleOCIConnectionPool instance with default configuration
    OracleOCIConnectionPool cpool = new OracleOCIConnectionPool(userstring, pwstring , url, null);<br>
    Properties proxUserProp = new Properties();<br>
    proxUserProp.setProperty(OracleOCIConnectionPool.PROXY_USER_NAME, PROXY_user_name);<br>
    OracleConnection conn__OCI = cpool.getProxyConnection
    (OracleOCIConnectionPool.PROXYTYPE_USER_NAME, proxUserProp);<br>
    cstmt = conn__OCI.prepareCall ("begin PORT_CURSOR.s_submission_wip( ?,?,?,?,? ); end;");<br>
    cstmt.setString(2, cnumb);<br>
    cstmt.setString(3, cperiod);<br>
    cstmt.setInt(4, retStrC);<br>
    cstmt.setString(5, retStr3);<br>
    cstmt.registerOutParameter (4, Types.NUMERIC);<br>
    cstmt.registerOutParameter (5, Types.VARCHAR);<br>
    cstmt.registerOutParameter(1, OracleTypes.CURSOR);<br>
    cstmt.execute();<br>
    retStrC = cstmt.getInt (4);<br>
    retStr3 = cstmt.getString (5);<br>
    retStr = "<tr class=OraDataText><td> " + retStrC + "</td></tr>";<br>
    retStr = retStr + "<tr class=OraDataText><td> " + retStr3 + "</td></tr>";<br>
    if ( retStrC == -1 ) { ALLretStr = ALLretStr + retStr; }<br>
    else<br>
    {<br>
    cursor = ((OracleCallableStatement)cstmt).getCursor(1);<br>
    while (cursor.next ())<br>
    {<br>
    if (spacerLine >= 2)<br>
    {<br>
    ALLretStr = ALLretStr + "<tr><td ALIGN=LEFT nowrap ></td><td colspan=5 height=1 ></td></tr>";<br>
    }<br>
    ALLretStr = ALLretStr + "<tr WIDTH=100% class=smmjPort2Text >
    <td ALIGN=LEFT nowrap ></td><td ALIGN=LEFT> " + cursor.getString(1) + "</td><td ALIGN=CENTER>" + cursor.getInt(2) + "</td><td ALIGN=CENTER>" + cursor.getString(3) + "</td><td ALIGN=CENTER>" + cursor.getString(4) + "</td><td ALIGN=RIGHT>" + cursor.getString(5) + "</td></tr>";<br>spacerLine++;<br>
    }<br>
    }<br>
    if (cState != null )<br>
    { //return(retStr);<br>
    if (conn__OCI != null) conn__OCI.close();<br>
    if (cpool != null) cpool.close();<br>
    }}<br>
    return(TempretStr);<br>
    }<br>
    catch (SQLException e )<br>
    {<br>
    String retErrStr = retStr + " SQL Error: <PRE> " + e + " </PRE> \n";<br>
    return(retErrStr);<br>
    }<br>
    }<br>
    %><br>
    Regards,<br>
    Vijay.

  • Not able to get the value from type defined in other progarm

    Hi All,
    I have a create a type in one package spec(Globally), now i am using the same type in another package.Simply i am calling the first package and try to store the value in Type and use the same type in second package.
    But i am not able get the value
    Type declaration
    Declared in package Spec
    TYPE t_aa_derive_tbl_type IS TABLE OF xxxx%ROWTYPE;
       t_aa_derive t_aa_derive_tbl_type;
    Package 1
    Package1. PROCEDURE name(
    some parameters);
    is
    Cursor
    c1 is Select * from dual;
    begin
          OPEN c_aa_derive;
            FETCH c_aa_derive
            BULK COLLECT INTO t_aa_derive;
            CLOSE c_aa_derive;
         END get_aa_derive;
    In My second package
    I am calling
    Package1. PROCEDURE name(
    some parameters);
    and then i am trying to
    for i in 1 .. package1.t_aa_derive.COUNT
      LOOP
    end loop;
    I am not able entered the loop for some reason.
    Could some one guide me if anything i missed.
    Cheers,
    San

    I have a create a type in one package spec(Globally), now i am using the same type in another package.Simply i am calling the first package and try to store the value in Type and use the same type in second package.
    Why?
    1. Why aren't you just using SQL to do the work?
    2. Why don't you just open a CURSOR and pass that instead?
    BULK COLLECT INTO t_aa_derive; 
    3. Why aren't you using a LIMIT clause? Are you sure that only a very small number of rows will be queried?
    4. Why aren't you using a PIPELINED function instead of passing a collection?
    Using collections with potentially unlimited numbers of rows is not scalable. Also, using collections can be more difficult for 'data consumers' to work with than if you just use a CURSOR or PIPELINED function.
    Make sure you are using the proper architecture so that your code is both modular, scalable and easy to use.

  • Not able to delete the data from ODS

    Hi All,
    I have ODS which is having some requests . All the requests are being loaded with full update only. When I am trying to delete the requests from ODS,  out of 4 requests 2 requests have been deleted but rest of them are not at all deleting .
    As I am working in Quality system, So I don't have the access to delete request from Table level like RSODSACTREQ, RSICCONT etc...
    Can you give any clue to delete the remaining 2 requests.
    Thanks,

    Hi kavitha,
    Does the Request has data mart status.IF yes try to delete the request from the respective DSO's.
    and try to delete the request.
    are you deleting the Whole data from DSO ? - right click on the DSO and select deleted data from the context menu.
    Regards
    Prashanth K

Maybe you are looking for

  • How do I turn off the extra cursor on the lasso tool?

    I'm hoping somebody here knows a way to revert the icon for the lasso tool to its old self... or at least turn it into a simple cursor. The lasso tool in this new Photoshop version suddenly forces you to see a double image: both the original lasso an

  • Orange uk wifi app

    can not find this app for blackberry anywere please help .

  • UCCX 7.0 historical report for afterhours callcenter

    We have a UCCX7.0 deployment with a CallCenter that closes at 6:00 PM and open the next day at 7:00AM. Customer wants to get a report of how many calls are they getting after business hours. I know I can get this report in a daily base but is any way

  • Lightroom 4.3 corrupts my RAW images stored on local SSD harddisk

    Using Lightroom 4.3 with Camera RAW 7.3 on latest MacBook Pro with 256 GB SSD harddisk, 8 GB internal memory bought 2 months ago. Hardware shows no other problems or malfunctioning, no issues with RAM or otherwise. Started Lightroom 4.3 did an import

  • About infopackage and dtp

    hi guys:    I created two infopackages(a ,b) (different select condition)for one datasource,    also created two dso(A,B) and load data from this datasource by DTP.    how can dso(A) only load data from infopackage(a),and dso(B) only load data from i