Request.Params

Dear all.

I am a developer asp.net c#. I started the self-training. Please someone can you me question.

In Asp.net, we use Request.Params to get the value in the next page for example.

Page.aspx? ID = 5

strSQL = "" select * from Table where id = "+ Request.Params ["id"];"

These 2 lines how to convert in jdeveloper by program.

Thank you.

You can read relatives from a url, but this does not often as ADF not his VISA the url parameters. Parameters are passed via favorite or beans or are put in a range of memory.
I recommend that you look at http://download.oracle.com/otn_hosted_doc/jdeveloper/11gdemos/insiderBinding1/BindingsPart1.html and http://download.oracle.com/otn_hosted_doc/jdeveloper/11gdemos/adfinsider-binding-internals-2/adfinsider-binding-internals-2.html followed by http://download.oracle.com/otn_hosted_doc/jdeveloper/11gdemos/taskflow-overview-p1/taskflow-overview-p1.html and http://download.oracle.com/otn_hosted_doc/jdeveloper/11gdemos/taskflow-overview-p2/taskflow-overview-p2.html
This should give you an understanding of how are are the navigation and setting suspended

Timo

Tags: Java

Similar Questions

  • Manually set HTTPService.request params

    Hello

    I want to manually set the parameters to an HTTPService object so that I can have something like this

    If (x)
    {
    HTTPService.request.param1 = x;
    }
    on the other
    {
    HTTPService.request.param2 = x;
    }
    HTTPService.send ();

    I can't make this work. I guess it's something simple, but I couldn't find any answer to this problem of googleing.

    Thank you

    Cosmin

    Object in Flex class is dynamic, it's that you can add any new properties to it at run time, and send() method takes an object as a parameter to the parameters of the request:

    var params = new Object();
    If (x)
    {
    params.param1 = x;
    }
    on the other
    {
    params.param2 = x;
    }

    HTTPService.send (params)

  • How to get AFExecuteThisScript to return the value of Net.HTTP.request (asynchronous)?

    I have an Acrobat only plugin, developed in 2005 VS.  Originally with Acrobat 7 SDK, now updated to use Acrobat 9 SDK.  The ultimate goal of this feature is to open a PDF file from a web server Agile: If a user string, a URL is created, a request sent to the URL, then pay back the answer.  The answer can be either the PDF itself or a string path to the PDF file.  I thought it would be easier to use the version of PDF path to simply open the new PDF of the http:// address.

    I created a folder level javascript with a call to Net.HTTP.request confidence.  I have a script that works when invoked from a menu item added by the folder level javascript file.  But when you use this same command in my C++ with AFExecuteThisScript code, I can't get the HTTP response to finish pending in the code for the result.

    The Net.HTTP.request and the asynchronous callbacks confuse me, so maybe that's my big problem.  I could not Net.HTTP.request to return a value in a service simple javascript right now, I'm trying to use a "global" variable in the JavaScript folder level and two calls.  The first call "sets" the global variable, the other "becomes" it.  But this seems to be the issue.  When I have my code debugging or stop execution, the part of the response of the Net.HTTP.request is never called.  But when I left to go beyond this step with error recovery, the answer appears later.

    So how kick off of the Net.HTTP.request and be notified when it's over?  either in JavaScript or VC ++?

    Any help is appreciated.  Even if the best option is to stream the file from the web server to a local file and then open the (this is the option that I take in another tool that runs outside of Acrobat).

    Here's the code.

    Javascript controls at the level of the files (urls truncated for the post)

    var THE_PATH = '';
    
    function setTHE_PATH ( gURL ) {
        console.println('setTHE_PATH Begin');
        var params =
        {
            cVerb: 'GET',
            cURL: gURL,
            oHandler: 
                {
                    response: function( msg, uri, e)
                    {
                        console.println('response method: Setting Path');
                        THE_PATH = SOAP.stringFromStream( msg );
                        console.println('<<' + THE_PATH + '>>');
                    }
                }
        };
        console.println('URL: ' + params.cURL + '\n  oHandler: ' + params.oHandler );
        console.println('Path: ' + THE_PATH );
        var netResult = trustedNetHTTPrequest(params);
        console.println('setTHE_PATH End');
        return THE_PATH;
    };
    
    trustedNetHTTPrequest = app.trustedFunction( 
        function ( params ) {
            console.println('trustedNetHTTPrequest begin');
            app.beginPriv();
            var netResult = Net.HTTP.request( params );
            app.endPriv();
            console.println('trustedNetHTTPrequest end');
            return netResult;
        }
    );
    

    Added MenuItems with JavaScript at the folder level

    app.addMenuItem( { 
        cName: "mysetTHE_PATH", 
        cUser: "set THE_PATH", cParent: "Tools", 
        cExec: "setTHE_PATH('http://......&getURL=true');",
        nPos: 0 
    } );    
    
    app.addMenuItem( { 
        cName: "mygetTHE_PATH", 
        cUser: "get THE_PATH", cParent: "Tools", 
        cExec: "console.println( THE_PATH );",
        nPos: 0 
    } );   
    

    Here's the JavaScript Console output when you run these two commands:

    setTHE_PATH Begin
    URL: http://......&getURL=true
      oHandler: [object Object]
    Path: 
    trustedNetHTTPrequest begin
    trustedNetHTTPrequest end
    setTHE_PATH End
    response method: Setting Path
    <<https://......DesiredFilename.pdf>>
    

    Here is the function in the plugin C++, with additional measures to prove AFExecuteThisScript works here

    sprintf(jsScript, "testVal='%s';event.value = testVal;", strURL.c_str() );
    AFExecuteThisScript( aPdDoc, jsScript, &pReturnValue );
    // After this, pReturnValue is the passed-in URL, as expected.
    sprintf(jsScript, "setTHE_PATH('%s');event.value = 'Step 1 Worked!!';", strURL.c_str() );
    AFExecuteThisScript( aPdDoc, jsScript, &pReturnValue );
    // After this, pReturnValue is 'Step 1 Worked!!', as expected.
    sprintf(jsScript, "event.value = THE_PATH;", strURL.c_str() );
    AFExecuteThisScript( aPdDoc, jsScript, &pReturnValue );
    // After this, pReturnValue is NULL
    

    This is the JavaScript Console output when you run the commands using the plugin (mode debugger, to wait after step 1)

    setTHE_PATH Begin
    URL: http://......&getURL=true
      oHandler: [object Object]
    Path: 
    trustedNetHTTPrequest begin
    trustedNetHTTPrequest end
    setTHE_PATH End
    

    Note that he never gets to the part of the "method of response.

    Thank you!

    Tim James

    You need not limit yourself to the plugin API. The requests HTTP from C/C++ is a fairly common condition, just observe the restrictions in my answer.

  • PDF http request

    Hello

    I'm working on Acrobat Pro

    My goal is to Send a HTTP request by my PDF file

    I took a classic example:

    I put the javascript code in programs /Acrobat/.../javascript/


    AJAX = {function (cURL)}

    var params =

    {

    cVerb: 'GET ',.

    cURL: cURL,.

    oHandler:

    {

    answer: {function (msg, uri, e, h)

    var stream = msg;

    string var = "";

    String = SOAP.stringFromStream (stream);

    App.Alert (String);

    }

    }

    };

    Net.HTTP.request (params);

    }

    app.addMenuItem ({cName: "Go PHP", cParent: "File"})

    cExec: ' ajax ("http://localhost/myPage.php" ' ");", "

    cEnable: «event.rc = (event.target!» (= null); »,

    NPO: 0

    });

    but when I go to 'File/Go PHP' Acrobat says that it is an error internal


    What is the problem?

    Thank you

    Wrap your ajax() function in a block of confidence so it does not run as part of the event target (i.e. the open document):

    AJAX = {app.trustedFunction (function (fURL)}

    app.beginPriv ();

    var params = {cVerb: 'GET', cURL: fURL, oHandler: {}}

    answer: function(msg,uri,e,h) {}

    var stream = msg;

    string var = "";

    String = SOAP.stringFromStream (stream);

    App.Alert (String) ;}}} ;

    Net.HTTP.request (params);

    app.endPriv ();

    });

    app.addMenuItem({)

    cName: "Go PHP", cParent: "file."

    cExec: 'ajax ("http://localhost/myPage.php");',

    cEnable: «event.rc = (event.target!» (= null); »,

    ({NPOS: 0});

  • Waveform WebGraph Interaction

    My goal is to create a graph of waveform with the following criteria.

    1. Click/double click on the chart to draw the cursor at the nearest location.
    2. Draw a rectangle to zoom.
    3. Indicate a way to zoom out.

    With the code below, I can double click to draw the cursor to the closest place and draw a rectangle to zoom.  However, I can't figure out how to zoom out.

    What I am doing wrong?

    (Measurement Studio 8.5 & Visual Studio 2008)

    Imports NationalInstruments
    Imports NationalInstruments.UI
    Imports System.Drawing

    Partial Public Class PlotData
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
    If not IsPostBack then ' generate initial random signals
    myGraph.PlotY (GenerateData (1000))
    End If
    End Sub

    Protected Sub myGraph_PlotAreaClick (ByVal sender As Object, ByVal e As NationalInstruments.UI.ClickEventArgs) Handles myGraph.PlotAreaClick
    Dim plotX As Double, foot As Double

    InverseMap (myGraph, provable, e.Y, plotX, foot)
    myGraph.Cursors (0). MoveCursor (plotX, foot)

    "To display the click coordinates and plot
    cursor_lbl. Text = "X:" & "Y:" & provable, e.Y & "pX:" & plotX & "pY:" & foot
    End Sub

    Private Shared Function GenerateData(ByVal dataLength As Integer) As Double()

    Sun data (dataLength) As Double
    Dim rnd As New Random()

    For i As Integer = 0 To dataLength - 1
    Data = Tower. NextDouble() * Math.Sin ((i / 3.15))
    Next

    Return data
    End Function

    Private static void InverseMap(ByVal graph As NationalInstruments.UI.WebForms.WaveformGraph, ByVal xClick As Integer, ByVal yClick As Integer, ByRef xPlot As Double, ByRef yPlot As Double)
    Dim ACE Double, Double xMin xMax
    Dim yMin As Double, yMax As Double
    Dim plotLeft As Double, plotRight As Double
    Dim plotTop As Double, plotBottom As Double

    xMin = graphics. XAxes (0). Range.Minimum
    xMax = graphics. XAxes (0). Range.Maximum
    yMin = graphics. YAxes (0). Range.Minimum
    yMax = graphics. YAxes (0). Range.Maximum

    With the chart. PlotAreaBounds
    plotLeft =. Left
    plotRight =. Right
    plotTop =. Back to top
    plotBottom =. Bottom
    Ends with

    xPlot = ((xMax-xMin) * ((xClick-plotLeft) / (plotRight - plotLeft))) + xMin
    yPlot = ((yMax-yMin) * ((plotBottom-yClick) / (plotBottom - plotTop))) + yMin

    End Sub
    End Class


    InteractionMode = "ZoomX, ZoomY, PlotAreaClick" >

    Hi Steven,

    The solution that I can think of is to use a special key (i.e. Control) as well as with a mouse click to zoom out. It will take some work on your part.

    The plot are click event does not provide any information on if there is a press of a key. To do this, you manually from the client-side information on the side go server you had pressed the button control key while you click. This can be done using a HTML hidden field.

    How to pass the CTRL button information from the client to the server?

    (1) adds a hidden field (say with the attributes id and name the value "ControlKeyPressed") inside the form that is rendered by default in the .aspx file.

    (2) at the end of the form, write the key down and key events on the document.

    (3) in the javascript event handlers, when you press the control key, the value of the hidden field as 'Y', in all other cases, the hidden field value is set to 'n'.

    The .aspx code would look like,




    onplotareaclick = "WaveformGraph1_PlotAreaClick" >













    Now, when there is a PlotAreaClick event triggered on the server (here meaning the c# /VB code), the server manages the parameters that the client had sent. You can access the parameters as follows,

    Dim str As String = Context.Request.Params ["ControlKeyPressed"] as string

    Now, your PlotAreaClick handler would look like,

    protected void WaveformGraph1_PlotAreaClick (object sender, e ClickEventArgs)
    {
    If (IsPlotAreaClick())
    {
    //--------------------------------------------------------------------------------------
    Important note:
    You will need to keep a stack to remember the beaches of x / axes there before setting the new ranges.
    Keep the battery in a session variable or a variable application or make the battery a static variable.
    First, push the current x / go to the battery.
    //--------------------------------------------------------------------------------------

    Then, complete the tasks that you intend to do.
    The new range computed value x / there axes.

    WaveformGraph1.XAxes [0]. Range = new range (0, 1); It's your new calculated range.
    WaveformGraph1.YAxes [0]. Range = new range (0, 1); It's your new calculated range.
    }
    on the other
    {
    Pop the stack item and assign the range x / there axes.

    WaveformGraph1.XAxes [0]. Range = new range (0, 10); Here, you use the skip value of battery.
    WaveformGraph1.YAxes [0]. Range = new range (0, 10); Here, you use the skip value of battery.
    }
    }

    Private Boolean IsPlotAreaClick()
    {
    Dim str As String = Context.Request.Params ["ControlKeyPressed"] as string

    If the value of the parameter is 'Y', then it means that the action was a zoom out, not a ground area click.

    If (str == 'Y')
    Returns false;
    otherwise returns true;
    }

    I hope this helps.

  • Getting google access_token

    I had problems with the way to access the Google APIs, I was able to connect to Google, which otaining the authorization code.
    However, the way Exchange code for the access token and refresh for the tokens that the problem, Google docs, only they provide an example of Javascript, but I dug and here is what I got:

    QUrl postUrl = QUrl("https://accounts.google.com/o/oauth2/token");
        QNetworkRequest request(postUrl);
        request.setHeader(QNetworkRequest::ContentTypeHeader, "application/x-www-form-urlencoded");
        QUrl params;
    // the auth code has been saved as code to declared QSettings settings
         params.addQueryItem("code=", settings->value("key").value().append(" "));
            params.addQueryItem("client_id=", "");
            params.addQueryItem("client_secret=", " ");
            params.addQueryItem("redirect_uri=", "urn:ietf:wg:oauth:2.0:oob&");
            params.addQueryItem("grant_type=", "authorization_code");
    
            QNetworkReply* reply = m_networkmanager::post(request, params.encodedQuery());
               bool ok = connect(reply, SIGNAL(finished()), this, SLOT(checkReply()));
               Q_ASSERT(ok);
               Q_UNUSED(ok);
    

    the answer I get is 'Bad Request'.

    Please what am I doing wrong?.
    How I put it right?.

    OAuth2 is complicated and poorly documented. You're doing C++? I have a class C++ OAuth2 library I wrote for my support application that manages Google OAuth by encapsulating the functioinal but clumsy OAuthQt library. All sites don't OAuth2 slightly differently and my library has been designed to be extensible to any variation that I needed in the future. Currently it handles only Google and Bitly, but I intend to develop many popular services and eventually publish under a Creative Commons license. I'm not willing to share the source code, but if you do things in C++ (or could do this way), I'd build you libraries arm and i86 and supply you with the header files you would use.

    I am very careful when writing to my class for the Google libraries and Bitly classes both have the syntax of fully functional Builder so you can create and configure the OAuth with a single statement. Because I'm not ready to release this publicly I do have documentation so you should discuss with me to understand.

    I must warn you that, even with a powerful helper like mine, OAuth2 class is quite complicated.

  • What is this java.lang.NumberFormatException: null

    Mr President.

    I'm trying to run a report with a button on a page jsff

    My button code is

    <af:button text="button 1" id="b1" destination="/printreportservlet?employeeId#{bindings.EmployeeId.inputValue}"/>
    

    My servlet code is

    package view;
    
    
    import java.io.IOException;
    import java.io.PrintWriter;
    
    
    import javax.servlet.*;
    import javax.servlet.annotation.WebServlet;
    import javax.servlet.http.*;
    import java.io.IOException;
    import java.io.InputStream;
    
    
    import java.sql.Connection;
    import java.sql.PreparedStatement;
    import java.sql.SQLException;
    
    
    import java.util.HashMap;
    import java.util.Locale;
    import java.util.Map;
    
    
    import javax.servlet.ServletConfig;
    import javax.servlet.ServletException;
    import javax.servlet.annotation.WebServlet;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    
    
    
    
    import model.AppModuleImpl;
    
    
    import net.sf.jasperreports.engine.JasperCompileManager;
    import net.sf.jasperreports.engine.JasperExportManager;
    import net.sf.jasperreports.engine.JasperFillManager;
    import net.sf.jasperreports.engine.JasperPrint;
    import net.sf.jasperreports.engine.JasperReport;
    import net.sf.jasperreports.engine.design.JasperDesign;
    import net.sf.jasperreports.engine.xml.JRXmlLoader;
    
    
    import oracle.jbo.client.Configuration;
    
    
    @WebServlet(name = "PrintReportServlet", urlPatterns = { "/printreportservlet" })
    public class PrintReport1Servlet extends HttpServlet {
        private static final String CONTENT_TYPE = "text/html; charset=UTF-8";
    
    
        public void init(ServletConfig config) throws ServletException {
            super.init(config);
        }
        
        /**
                 * @return
                 */
                protected Connection getConnection() {
         
         
        //            System.out.println("getConnection--");
         
         
                    PreparedStatement st = null;
                    String amDef = "sa.gov.rgr.model.module.AppModuleAM";
                    String config = "AppModuleAMLocal";
                    AppModuleImpl am = (AppModuleImpl ) Configuration.createRootApplicationModule(amDef, config);
         
         
                    st = am.getDBTransaction().createPreparedStatement("select 1 from dual", 0);
                    Connection conn = null;
         
         
                    try {
                        conn = st.getConnection();
                        return conn;
                    } catch (SQLException e) {
                    }
         
         
                    return null;
                }
        /**
             * @param request
             * @param response
             * @throws ServletException
             * @throws IOException
             */    
    
    
        public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
            response.setContentType(CONTENT_TYPE);
            PrintWriter out = response.getWriter();
            out.println("<html>");
            out.println("<head><title>PrintReportServlet</title></head>");
            out.println("<body>");
            out.println("<p>The servlet has received a GET. This is the reply.</p>");
            out.println("</body></html>");
            out.close();
            
            String var0 = "";
                    try {
                        var0 = request.getParameter("employeeId");
                       
                    } catch (Exception e) {
                        e.printStackTrace();
                    }
                   
                    response.setContentType(CONTENT_TYPE);
                   
                    Map parameters = new HashMap();
                    parameters.put("format", "pdf");
                    parameters.put("WEBDIR", getServletContext().getRealPath("/"));
                    parameters.put("REPORT_LOCALE", new Locale("ar"));
             
             
                    parameters.put("employeeId", new Long(var0));
                    Connection conn = null;
                    InputStream is = null;
                    try
                    {
                      conn = getConnection();
                      is = getServletContext().getResourceAsStream("/WEB-INF/reports/Report.jrxml");
             
             
                      response.setContentType("application/pdf");
                      response.addHeader("Content-Disposition", "attachment; filename=report.pdf");
                       
                      JasperDesign jasperDesign = JRXmlLoader.load(is);
                      JasperReport jasperReport = JasperCompileManager.compileReport(jasperDesign);
             
             
                      JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, parameters, conn);
             
             
                      JasperExportManager.exportReportToPdfStream(jasperPrint, response.getOutputStream());
                       
             
                      conn.close();
                    }
                    catch (Exception e) {
                      e.printStackTrace();
                    } finally {
                      closeConnection(conn);
                      try {
                          if(is !=null){
                              is.close();
                          }
                         
                         
                      } catch (Exception localException1)
                      {
                      }
                    }
                   
                }
        
        /**
             * @param conn
             */
            protected static void closeConnection(Connection conn) {
                try {
                    if(conn !=null){
                        conn.close();
                    }
                   
                } catch (Exception ex) {
                    //  System.out.println("Developer Msg : Exception in printReport1Servlet.closeConnection()");
                }
            }
        
    }
    

    The code of my report is

    <?xml version="1.0" encoding="UTF-8"?>
    <jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="Report" language="groovy" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="1100e657-82b6-466e-b6eb-58efd82952cb">
      <property name="ireport.zoom" value="1.0"/>
      <property name="ireport.x" value="0"/>
      <property name="ireport.y" value="0"/>
      <parameter name="employeeId" class="java.lang.String">
      <defaultValueExpression><![CDATA[]]></defaultValueExpression>
      </parameter>
      <queryString>
      <![CDATA[select * from employees
    WHERE EMPLOYEE_ID=to_number($P{employeeId})]]>
      </queryString>
      <field name="EMPLOYEE_ID" class="java.lang.Long"/>
      <field name="FIRST_NAME" class="java.lang.String"/>
      <field name="LAST_NAME" class="java.lang.String"/>
      <field name="EMAIL" class="java.lang.String"/>
      <field name="PHONE_NUMBER" class="java.lang.String"/>
      <field name="HIRE_DATE" class="java.sql.Timestamp"/>
      <field name="JOB_ID" class="java.lang.String"/>
      <field name="SALARY" class="java.math.BigDecimal"/>
      <field name="COMMISSION_PCT" class="java.math.BigDecimal"/>
      <field name="MANAGER_ID" class="java.math.BigDecimal"/>
      <field name="DEPARTMENT_ID" class="java.math.BigDecimal"/>
      <background>
      <band splitType="Stretch"/>
      </background>
      <title>
      <band height="79" splitType="Stretch"/>
      </title>
      <pageHeader>
      <band height="35" splitType="Stretch"/>
      </pageHeader>
      <columnHeader>
      <band height="61" splitType="Stretch">
      <staticText>
      <reportElement x="229" y="2" width="100" height="20" uuid="225ce4a1-d66e-4b64-bcb8-f35994d570ec"/>
      <text><![CDATA[EMPLOYEE_ID]]></text>
      </staticText>
      </band>
      </columnHeader>
      <detail>
      <band height="125" splitType="Stretch">
      <textField>
      <reportElement x="229" y="55" width="100" height="20" uuid="a8cd9d36-884a-4edf-8052-314b484e00c4"/>
      <textFieldExpression><![CDATA[$F{EMPLOYEE_ID}]]></textFieldExpression>
      </textField>
      </band>
      </detail>
      <columnFooter>
      <band height="45" splitType="Stretch"/>
      </columnFooter>
      <pageFooter>
      <band height="54" splitType="Stretch"/>
      </pageFooter>
      <summary>
      <band height="42" splitType="Stretch"/>
      </summary>
    </jasperReport>
    

    And my page jsff code is

    <?xml version='1.0' encoding='UTF-8'?>
    <ui:composition xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
                    xmlns:f="http://java.sun.com/jsf/core">
      
      <af:button text="button 1" id="b1" destination="/printreportservlet?employeeId#{bindings.EmployeeId.inputValue}"/>
      <af:table value="#{bindings.EmployeesView1.collectionModel}" var="row" rows="#{bindings.EmployeesView1.rangeSize}"
                emptyText="#{bindings.EmployeesView1.viewable ? 'No data to display.' : 'Access Denied.'}"
                rowBandingInterval="0" selectedRowKeys="#{bindings.EmployeesView1.collectionModel.selectedRow}"
                selectionListener="#{bindings.EmployeesView1.collectionModel.makeCurrent}" rowSelection="single"
                fetchSize="#{bindings.EmployeesView1.rangeSize}" id="t1">
        <af:column headerText="#{bindings.EmployeesView1.hints.EmployeeId.label}" id="c1">
          <af:outputText value="#{row.EmployeeId}" shortDesc="#{bindings.EmployeesView1.hints.EmployeeId.tooltip}" id="ot1">
            <af:convertNumber groupingUsed="false" pattern="#{bindings.EmployeesView1.hints.EmployeeId.format}"/>
          </af:outputText>
        </af:column>
        <af:column headerText="#{bindings.EmployeesView1.hints.FirstName.label}" id="c2">
          <af:outputText value="#{row.FirstName}" shortDesc="#{bindings.EmployeesView1.hints.FirstName.tooltip}" id="ot2"/>
        </af:column>
        <af:column headerText="#{bindings.EmployeesView1.hints.LastName.label}" id="c3">
          <af:outputText value="#{row.LastName}" shortDesc="#{bindings.EmployeesView1.hints.LastName.tooltip}" id="ot3"/>
        </af:column>
        <af:column headerText="#{bindings.EmployeesView1.hints.Email.label}" id="c4">
          <af:outputText value="#{row.Email}" shortDesc="#{bindings.EmployeesView1.hints.Email.tooltip}" id="ot4"/>
        </af:column>
        <af:column headerText="#{bindings.EmployeesView1.hints.PhoneNumber.label}" id="c5">
          <af:outputText value="#{row.PhoneNumber}" shortDesc="#{bindings.EmployeesView1.hints.PhoneNumber.tooltip}"
                         id="ot5"/>
        </af:column>
        <af:column headerText="#{bindings.EmployeesView1.hints.HireDate.label}" id="c6">
          <af:outputText value="#{row.HireDate}" shortDesc="#{bindings.EmployeesView1.hints.HireDate.tooltip}" id="ot6">
            <af:convertDateTime pattern="#{bindings.EmployeesView1.hints.HireDate.format}"/>
          </af:outputText>
        </af:column>
        <af:column headerText="#{bindings.EmployeesView1.hints.JobId.label}" id="c7">
          <af:outputText value="#{row.JobId}" shortDesc="#{bindings.EmployeesView1.hints.JobId.tooltip}" id="ot7"/>
        </af:column>
        <af:column headerText="#{bindings.EmployeesView1.hints.Salary.label}" id="c8">
          <af:outputText value="#{row.Salary}" shortDesc="#{bindings.EmployeesView1.hints.Salary.tooltip}" id="ot8">
            <af:convertNumber groupingUsed="false" pattern="#{bindings.EmployeesView1.hints.Salary.format}"/>
          </af:outputText>
        </af:column>
        <af:column headerText="#{bindings.EmployeesView1.hints.CommissionPct.label}" id="c9">
          <af:outputText value="#{row.CommissionPct}" shortDesc="#{bindings.EmployeesView1.hints.CommissionPct.tooltip}"
                         id="ot9">
            <af:convertNumber groupingUsed="false" pattern="#{bindings.EmployeesView1.hints.CommissionPct.format}"/>
          </af:outputText>
        </af:column>
        <af:column headerText="#{bindings.EmployeesView1.hints.ManagerId.label}" id="c10">
          <af:outputText value="#{row.ManagerId}" shortDesc="#{bindings.EmployeesView1.hints.ManagerId.tooltip}" id="ot10">
            <af:convertNumber groupingUsed="false" pattern="#{bindings.EmployeesView1.hints.ManagerId.format}"/>
          </af:outputText>
        </af:column>
        <af:column headerText="#{bindings.EmployeesView1.hints.DepartmentId.label}" id="c11">
          <af:outputText value="#{row.DepartmentId}" shortDesc="#{bindings.EmployeesView1.hints.DepartmentId.tooltip}"
                         id="ot11">
            <af:convertNumber groupingUsed="false" pattern="#{bindings.EmployeesView1.hints.DepartmentId.format}"/>
          </af:outputText>
        </af:column>
      </af:table>
    </ui:composition>
    

    The complete error code is

    java.lang.NumberFormatException: null
      at java.lang.Long.parseLong(Long.java:404)
      at java.lang.Long.<init>(Long.java:702)
      at view.PrintReport1Servlet.doGet(PrintReport1Servlet.java:113)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:844)
      Truncated. see log file for complete stacktrace
    > 
    <Mar 27, 2015 10:03:46 AM PKT> <Notice> <Diagnostics> <BEA-320068> <Watch "UncheckedException" in module "Module-FMWDFW" with severity "Notice" on server "DefaultServer" has triggered at Mar 27, 2015 10:03:46 AM PKT. Notification details: 
    WatchRuleType: Log 
    WatchRule: (SEVERITY = 'Error') AND ((MSGID = 'WL-101020') OR (MSGID = 'WL-101017') OR (MSGID = 'WL-000802') OR (MSGID = 'BEA-101020') OR (MSGID = 'BEA-101017') OR (MSGID = 'BEA-000802')) 
    WatchData: DATE = Mar 27, 2015 10:03:46 AM PKT SERVER = DefaultServer MESSAGE = [ServletContext@1295794488[app:JasperServletTester module:JasperServletTester-ViewController-context-root path:null spec-version:3.0]] Servlet failed with an Exception
    java.lang.NumberFormatException: null
      at java.lang.Long.parseLong(Long.java:404)
      at java.lang.Long.<init>(Long.java:702)
      at view.PrintReport1Servlet.doGet(PrintReport1Servlet.java:113)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:844)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:280)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:254)
      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:136)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:346)
      at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:137)
      at java.security.AccessController.doPrivileged(Native Method)
      at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
      at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)
      at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:120)
      at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:217)
      at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:81)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:220)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3436)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3402)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
      at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
      at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2285)
      at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2201)
      at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
      at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1572)
      at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:255)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:311)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:263)
     SUBSYSTEM = HTTP USERID = <WLS Kernel> SEVERITY = Error THREAD = [ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)' MSGID = BEA-101020 MACHINE = TANVIR-PC TXID =  CONTEXTID = fd43f1ae-c573-4366-9924-18a1ab1a228f-0000008d TIMESTAMP = 1427432626062  
    WatchAlarmType: AutomaticReset 
    WatchAlarmResetPeriod: 30000 
    > 
    <oracle.dfw.impl.incident.DiagnosticsDataExtractorImpl> <DiagnosticsDataExtractorImpl> <createADRIncident> <incident 16 created with problem key "DFW-99998 [java.lang.NumberFormatException][oracle.security.jps.ee.http.JpsAbsFilter$1.run][JasperServletTester]"> 
    <oracle.adf.common> <AdfDiagnosticsJarsVersionDumpImpl> <executeDump> <Path of the jars version dump :C:\Users\TANVIR\AppData\Roaming\JDeveloper\system12.1.3.0.41.140521.1008\DefaultDomain\servers\DefaultServer\adr\diag\ofm\defaultdomain\defaultserver\incident\incdir_16/adf_DiagnosticsJarsVersionDump24_i16.txt> 
    

    For any help, I'll be very grateful

    Concerning

    Tender,

    As I mentioned in the other thread, the var0 comes null which causes this problem.

    Why var0 just null?

    You must change the property of destination as below:

    
    
    

    You must add "="

    See you soon

    AJ

  • Variables of access among the categories.

    I was hitting my head on my desk for a little while on this sort that any help would be awsome.


    What I try to do is to extract data from an XML file so that I can store settings for my FLV Player (flv, size, name of the video link, etc.) I can get the data from the XML file and it history in a dictionary but I'm unable to access the data in my main class. I know there must be something pretty simple, but I think I've been watching for a long time to see.

    Main.As

    package includes.action
    {
    Import fl.video.FLVPlayback;
    import flash.display. *;
    import flash.events. *;
    import flash.net.URLLoader;
    import flash.utils.Dictionary;
    Import includes.action.XMLData;

    SerializableAttribute public class Main extends Sprite
    {
    public var vidSrc:String = "mortgage";
    public var xmlPath:String = "includes/flash/videos.xml";
    public var items: XMLData;
    private var videoXML:Dictionary;


    Constructor
    public void Main (): void
    {
    vidSrc = vid;
    xmlPath = xmlP;

    this.getMovie ();
    }

    public void getMovie()
    {
    var vidoes:XMLData = new XMLData (xmlPath, vidSrc);

    videoXML is YouTube videos. VideoAttributes;

    trace ("VIDOEXML COUNT:" + videoXML.length);
    var link: String = vidoes.getVA("name");

    elements = vidoes.getVA("name");
    trace ("ELEMENTS:" + elements);
    trace ("HAND: LINK:" + link);

    }
    }
    }

    XMLData.as


    package includes.action
    {
    import flash.net.URLLoader;
    import flash.net.URLRequest;
    import flash.events. *;
    import flash.utils.Dictionary;
    Import includes.action.Main;

    public class XMLData
    {

    Public var
    public var VideoAttributes:Dictionary;

    Private var
    private var pXmlPath:String;
    private var pXmlVidSrc:String;
    private var sXMLData:String;

    private var xmlLoader:URLLoader;
    private var xmlData:XML;

    Constructor
    public void XMLData (xmlPath:String, xmlVidSrc:String)
    {

    this.pXmlPath = xmlPath;
    this.pXmlVidSrc = xmlVidSrc;

    this.xmlLoader = new URLLoader();
    this.xmlData = new XML();
    This. VideoAttributes = new Dictionary();

    xmlLoader.addEventListener (Event.COMPLETE, this.) LoadXML);
    xmlLoader.load (new URLRequest (this.pXmlPath));
    }

    public void getVA(param:String)
    {
    trace ("request:" + param + ":" + VideoAttributes [param]);
    return VideoAttributes [param];
    }

    public void LoadXML(e:Event) {}

    this.xmlData = new XML (e.target.data);
    this.sXMLData = this.xmlData.toString ();

    parseXML (this.xmlData);

    }

    public void parseXML(inputXML:XML):void
    {
    /*
    trace("===");
    trace (this.sXMLData);
    trace("===");
    */

    for (var i = 0; i < inputXML.videos.videoname.length (); i ++)
    {

    If (inputXML.videos.videoname [i] .@name is this.pXmlVidSrc)
    {
    the video tag attributes
    var InputAttributes:XMLList = inputXML.videos.videoname [i] .attributes ();

    child nodes of this tag
    var InputChildren:XMLList = inputXML.videos.videoname [i] .children ();

    collect the attributes of a table
    The fixed attribute name and value
    for each {(attr:XML var in InputAttributes)
    var elementname:String = attr.name ();
    This. VideoAttributes [elementname] = attr.valueOf () m:System.NET.SocketAddress.ToString ();

    }

    for (var x: int = 0; x < InputChildren.length (); x ++)
    {
    var childelement:String;
    var ChildrenAttributes:XMLList is InputChildren [x] .attributes ();.

    for each (var cattr:XML in ChildrenAttributes)
    {
    childElement = InputChildren [x] .name () + "-" + cattr.name ();
    This. VideoAttributes [childelement] = cattr.valueOf () m:System.NET.SocketAddress.ToString ();
    }
    }
    }
    }
    }
    }
    }

    Basically, with all my tracks, that's what I'll be back...

    Trace data
    VIDOEXML COUNTY: indefinite
    ELEMENTS: null
    LINK: MAIN: null
    We are in LoadXML
    No Name - no get: mortgage
    name - get: mortgage

    The trace elements and main: link should give me the name of the video, but as the yet his return NULL or undefined.

    You can access the data via videos, but wait for loading and parsing xml is over.  That is to say, send XMLData event and apply a listener to the videos.

  • Rest in Eloqua with param search request date

    Hi all

    I have a converted and updatedAt in eloqua fields. I want to search based on the setting of date with operators of comparison such as greater than or less than. I'm trying to use it, but I get a message DateRequirement as mentioned below.

    [{"type":"EndpointParameterError","parameter":"createdAt","requirement":{"type":"DateRequirement"},"value":"1444368581"}]

    Thanks in advance.

    Concerning

    Ramana Reddy

    We can apply for date based on eloqua by passage of the real date instead of seconds directly format.

    "search field_name = > ='2015-09-01"

    https:// API/REST/2.0/Data/contacts? Count = 25 & Search = createdAt % 3 c % 3D % 272015-09 - 01% 27 & Depth = full

  • Problems by signing a request of WebWorks BB10

    Hello

    I'm trying to sign a request for webworks (1.0.2.9) BB10 but I get an error message:

    [ERROR]   Error: The signature on the request of code signing did not check.  The probable cause of this problem is entered a wrong password CSK.

    The problem is that I can't determine the parameter to use to specify the password of KSB. There seems to be a single "-g" parameter and password seems to relate to the keystore password.

    When signing for tablet OS theres '-gp12 ' and '-gcsk ', but these settings are no longer valid.

    Thanks in advance.

    The problem lies in the fact that my keys and csk file passwords are different and bbwp expects that they are the same (that she is not made for the playbook). If I created new keys, I would use the same for both.

    In any case, I found a solution and it is to use the Pei parameter:

    bbwp c:\myapp\myarchive.zip g mykeystorepassword Pei params.json o c:\myapp\output

    The csk password is specified in the file params.json as well:

    {
    'blackberry-signatory': {}
    '- cskpass': 'mycskpassword '.
    }
    }

    Thank you all for your comments.

  • [JDev ADF] How 1) auto - submit search Query Panel when loading the page and 2) 'secretly' proceed to the query a param

    Hello

    in my page, there is a "query with table Panel" created from all the "named criteria | All the attributes of a"of a display object.

    The request of this display object has in its where clause 1 param required.

    When JDeveloper creates the "query with table Panel" it adds to the search also fields that the param required of the View object.

    The user doesn't have to choose the value of the param: I secretly turn the param to query and to hide the search field in the "query with table Panel".

    The query must always be performed with the param I secretly put (reading the value of a managed bean).

    You kindly help me?

    Thank you

    F.

    For this you must intercept the query and add your parameter. You can use the criteria to view "All searchable attributes" for this because this IC is to build implicit and you cannot change it. However, you can create your own CV and imitate the "all attributes searchable" vc. In the t create a new Victoria Cross and all all the attributes of the query itself. One you don't want to see you can hide (like the rohanwalia post).

    Then, you must use the technique described in this blog https://blogs.oracle.com/aramamoo/entry/interpret_af_query_s_queryevent but instead to display the context menu, you set the bean to your hidden setting viewcriteria line.

    Timo

  • Body section rest API request

    Hello

    I use this code to create a rest api to request my server rest api

    varPr = Host.createRequest("POST", "/track/all", null).execute();

    but I want to set some parameters of body to my application how can I do?

    The 3rd parameter of the createRequest() method is the body of the request (null in your example).

    Don't know which body your/track/all REST API, but here's a code example illustrating how to pass a string value when a workflow starts with a parameter of type string:

    var content = {
      "parameters": [
      {
        "type": "string",
        "scope": "local",
        "name": "param",
        "value": {
          "string": {
            "value": "some sample string value"
          }
        }
      }
      ]
    }
    
    var body = JSON.stringify(content);
    var request = host.createRequest("POST", "/workflows/76312d50-3dda-4f09-a6d7-322c652b10a4/executions", body);  // vCO REST API to start a workflow given its ID
    request.contentType = "application/json";
    var response = req.execute();
    
    System.log("response status -> " + response.statusCode);
    
  • Request a change in ownership

    Someone knows how to change the ownership of __Legacy.Workflow.User?

    definition of __Legacy.Workflow.User __Legacy.Workflow.ImpersonatingUser or both has no effect

    VCO using SDK for item request catalog.

    string attributes;

    attributes = 'TotalStorageSize, string' + storage;

    attributes += ", DNSServer, String," + domainController.

    attributes += ", DNSZone, String," + domain name;

    attributes += ", ServerDomain, String," + domainPrefix;

    attributes += ", ServerHostName, String," + hostname;

    attributes += ", ServerType, String," + serverType.

    attributes += ", isDMZ, String," + isDMZ;

    attributes += ", AdMachineCleanupDomain, String," + domainController.

    attributes += ", VirtualMachineCPUCount, String," + cpuCount;

    attributes += ", disks, string," + disks;

    attributes += ", VirtualMachineMemorySize, String," + memory;

    attributes += ", VirtualMachineNetwork0ProfileName, String," + vlan.

    attributes += ", __request_reason, String," + __request_reason;

    attributes += ", provisioningGroupId, String," + PRE_provisioningGroupId;

    attributes += ", item, vCACCAFE:CatalogItem, ' + dunes_blueprintURI;

    attributes += ", applicant, string," + applicant;

    WorkflowToken wfToken = new WorkflowToken();

    wfToken = vCO.ExecuteWorkflow ("33295b30-24e5-4938-be99-7168ac0ca05c", vCACAdminUser, vCACAdminPW, attributes);

    I am the creation of the workflow

    var jsRequestor = {name: "provider - __Legacy.Workflow.ImpersonatingUser ', value: applicant};

    Param.push (jsRequestor);

    var jsRequestor2 = {name: "provider - __Legacy.Workflow.User ', value: applicant};

    Param.push (jsRequestor2);

    Versions?

    Any chance you can simply call the workflow library vRA 'Request an article to catalogue on behalf of a user' providing the user and request data?  Would indeed that the user of the applicant and the owner (two different properties).  The user must be in business group and must have a right to demand of the service catalog.

    There are also examples of job change if you had to say... ask a service account or another user... and then change the property on the layout of the post.

  • How to fill out a customer request for a customer calls field

    Hello

    When you view a call, if we click on the icon 'Journal New Request', then the popup "New application" appears and you can choose a new request must be created.  When the request is displayed then it is empty.  Is it possible to get the customer when calling, filled on demand which is created?

    I had a peek in "InCallDetails.js" and can see that the NewRequest() function is:

    function NewRequest()
    {
    NAV. Focus();
    NAV. NewRequest (da.) CALL_NUMBER. (Value, 0);
    }

    Is it possible to change settings for customer reference result is transmitted and demand new picks it up?

    Thank you
    Ian

    Yes Mr. Hawkins, you can customize this feature a little to demand, many call field values you want:

    Custom_InCallDetails.js:

    function NewRequest()
    {
       nav.focus();
       // Customization. 2013.03.10. Transferring information from the Call to a New Request.
       // nav.NewRequest(da.CALL_NUMBER.value, 0);
       var Params = "REQUESTOR_REF=USER_REF,CLIENT_CO_REF=CLIENT_COMPANY_REF,LOCATION_REF,REQUEST_DESC=PROBLEM_DESC,REQUEST_DESC_HTML=PROBLEM_DESC_HTML,z_CR_MAIN_BUSINESS_SERVICE_REF=SERVICE_REF";
       nav.NewRequest(da.CALL_NUMBER.value, 0, Params);
    }
    

    It is even possible to copy objects of the call for a new application. Just tell me if you must.

    Regs, Gytis

  • Why #{param.testParam} stops after you have created a pageDefinition of work?

    Hello

    Environment:

    JDeveloper 11.1.1.7

    Installation program:

    I have a task flow with a simple view that takes a parameter of entry page, namely

    < - flow - the definition of task id = "simpleTaskFlow" >

    ...

    ...

    ...

    < view id = "View1" >

    /my/test/view/myView.jsff < page > < / print this page >

    < input-page-setting >

    < security > #{param.testParam} < / value >
    < value > #{pageFlowScope.testParam} < / / value >

    < / Entry-page-setting >

    < / view >

    ...

    ...

    ...

    < / task-flow-definition >

    My page fragment /my/test/view/myView.jsff simply attempt to af: outputText the input parameter:

    <? XML version = "1.0" encoding = "UTF - 8"? >

    " < = xmlns:jsp jsp:root ' http://Java.Sun.com/JSP/page "version ="2.1" "

    ' xmlns:af = ' http://xmlns.Oracle.com/ADF/faces/rich "> "

    < af:outputText value = "#{pageFlowScope.testParam}" id = "ot1" / > "

    < / jsp:root >


    Problem

    Everything is good UNTIL I generate a definition page for the page fragment, the entry page settings I put after it failed. I think it's a problem with #{param.testParam}.
    I can access via the page definition by using a parameter value is #{param.testParam}, for example

    ...

    ...

    < Parameters >

    < parameter id = "testParam" value = "#{param.testParam}" / >

    < / Parameter >

    ...

    ...

    then use #{bindings.testParam} in the fragment of my page instead

    But what I want to avoid, can someone advise on why is it so? And can I still get #{param.testParam} a view with a page definition?

    Concerning

    Hello

    This may have to do with partial data recovery, which essentially makes follow-up requests to retrieve data. However, a view in a stubborn workflow doesn't have to read the query parameters. Instead, the workflow should have an input parameter, passing this information in the pageflow bean

    Frank

Maybe you are looking for

  • How can I get my contacts to download on my iPad Air?

    How can I get my contacts to download on my iPad Air?

  • First Post, Skype webcam freeze.

    Hello everyone, I usually fix typing on Google but I can't find a way to get rid of this problem to Skype. I am running Windows 7 64-bit, with Skype. 6.16. I have two webcams, one built into my laptop and the external one, Logitech C270. Both worked

  • BT Stack is expired

    I recently replaced Vista on my Toshiba L300 with XP. I found all the XP drivers on this site and install them (with the exception of the ahci driver; "I couldn't work out how to install this after installing Windows).The BT Stack included drivers. A

  • Quick launch has LARGE icons

    Recently, I had to buy a new hard drive and reinstalled Windows XP on my laptop.  After having everything set up again, I noticed that in my Quick Launch bar icons are very big and so I don't see that one or two unless I want to use a lot of precious

  • HP Mini 110-1118CA: accidentally remove WLAN Driver

    Hello I did a manual clean programs that have been cluttering up space and processor speed. When I restarted my laptop, he said he didn't have networks internet availible and my WIFI has been disabled. Can I accidentally deleted the driver... How do