passing multiple parameters to a portlet

Hi all

I created a form of portlet a taskflow using the WSRP producer connection I add this portlet in the JSF page a new application.
1. is it possible to create a portlet that accepts multiple parameters?
2. is it possible to map a portlet from method to method in the new application.
3. is there an implicit event that can be passed when all parameters are passed to the portlet.

What is my requirement:-I send some 4-5 (String) parameters of the new application for the purposes of the portlet.
What would be the sequence in which would be called the setters of this parameters in the Portlet application?

can you please me if this is possible and how to do it. A tutorial would be useful.

Kind regards
ND

Your question is associated with WebCenter and you must request this in the forum {forum: id = 354}.

Anyway, you can pass several parameters to a portlet. Set the parameters as parameters to the corresponding defined TaskFlow. When the taskflow is wrapped as a portlet producer by the JSF Portlet Bridge all taskflow parameters to expose as a separate navigation portlet settings. If you consume the portlet to a page, then the portlet parameters will be bound to variables PageDef and you can use these variables to pass values of parameter to the portlet. If you need to re - send the new parameter values when running, just set the corresponding pageDef variables and update the tag by PPR. Don't forget to mark the binding region of the portlet in the PageDef as RefreshIfNeeded, otherwise it will not get the new values and is not refreshed.

Read the next article in the documentation on the use of the navigation settings to link contextual portlets:
http://download.Oracle.com/docs/CD/E14571_01/WebCenter.1111/e10148/jpsdg_pages.htm#CHDJABHD

If you have additional questions, please ask them in the WebCenter forums.

Dimitar

Tags: Java

Similar Questions

  • Accessing content BI in OBIEE11g and him passing multiple parameters

    Hello

    I have just testted accessing OBIEE11.1.1.6 BI content and passing multiple parameters following the link:

    http://www.rittmanmead.com/2012/07/navigating-to-BI-content-in-obiee11g-and-passing-multiple-parameters/

    I added two js in UserScripts.js more


    USERSCRIPT.customPortalPageNav = {function (arg_array)}
    var str = "parent. PortalPageNav (1 ";
    for {(args in arg_array)
    var arg_name = args;
    var value = arg_array [arg_name];
    "" Str += "," ' + value + ' "';
    }
    (STR +=») ';
    eval (STR);
    };

    USERSCRIPT.customPortalNav.publish = {parameters: []}
    "new USERSCRIPT.parameter("1","Dashboard","/shared/FOLDERNAME/_portal/DASHBOARDNAME"),
    New USERSCRIPT.parameter ("2", "Page", "insert your Page"),
    new USERSCRIPT.parameter ("3", "Table", "insert a table"),
    new USERSCRIPT.parameter ("4", "Column", "insert a column"),
    new USERSCRIPT.parameter ("5", "Value", "Insert Value")]};

    and restart the presentation Service.

    but in the column properties > Interaction > value primary Interaction > links of Action > add > new > call browser Script

    I can not found customPortalPageNav in the menu.

    Anyone know what stage can cause?

    Thank you!

    Hi Leo,

    Correct function name. Change of customPortalNav to customPortalPageNav

    USERSCRIPT.customPortalNav.publish = {parameters: []}

    USERSCRIPT.customPortalPageNav.publish = {parameters: []}

    Kind regards
    DpKa

  • Passing multiple parameters to a treelist using a link

    Hello

    I was wondering if I could pass several parameters via a list of tree binding.

    I have the following SQL query to my tree:

    Select 'TREE_ID_SK' id,
    "TREE_PARENT_ID" the nest,
    Name of "TREE_NAME."
    ? p = & APP_ID.:80: & SESSION. : NO::P80_TREE_ID_SK :'|| "" Link TREE_ID_SK "
    null a1,
    null A2
    of ' #OWNER # '. " TREE_LIST ".

    I want to spend the TREE_NAME in the link. Is this possible?

    Thanks in advance,
    ca84

    Hi ca84,

    Yes, it is possible to pass several parameters via your link tree. You must update your link to something similar to the following, to pass the TREE_NAME value to an existing page item, would simply say P80_TREE_NAME:

    Select 'TREE_ID_SK' id,
    "TREE_PARENT_ID" the nest,
    Name of "TREE_NAME."
    ? p = & APP_ID.: 80: & SESSION. : NO::P80_TREE_ID_SKP80_TREE_NAME:'|| "" TREE_ID_SK "| «, » || "" TREE_NAME " link,.
    null a1,
    null A2
    of ' #OWNER # '. " TREE_LIST ".

    I hope this helps.
    Kind regards
    Hilary

  • Passing two parameters to work

    Hello

    How to pass multiple parameters to a function? In the example below, the user selects a radio button, fills a TextInput, and clicks a button to submit the two parameters to a function. How to say function that the event contains two parameters, is to say the value of the option button and that of the TextInput?

    < mx:RadioButton id = "png" label = "png" / >
    < mx:RadioButton id = "png8" label = "png8" / >
    < mx:HBox >
    < mx:Text >
    < mx:text > enter the size of the image < / mx:text >
    < / mx:Text >
    < mx:TextInput width = "30" id = 'size' text = "1024" > < / mx:TextInput >
    < / mx:HBox >

    < mx:Button label = "Snapshot" click = "clickHandler (event)" / > "

    Thank you

    Manolo

    Hello

    So if I understand you, you have a function to do something when the button is clicked.  You will need to acquire the values on the radio and textinput, so the button click handler would look like;

    private void clickHandler(event:MouseEvent):void {}

    Then you would have to acquire the values of two controls

    var radio: RadioButton;

    decide option button is selected and then store a reference to it in the variable radio (cos I don't ' know what data you want her)

    If {(png.selected)

    Radio = png;

    } else {}

    Radio = png8;

    }

    Then pass two parameters to a function have you that accepts two parameters.

    myFunc (textField.text, radio);

    }

    Your function to accept these should look like

    function (text: String, radioSelected:RadioButton): void {}

    }

    There's a few ways to do that is one.  This help, or the I understood you?

    Andrew

  • a problem in passing multiple values in the loop settings for

    Hi all

    I am facing a problem in passing multiple values in the loop settings for.


    EX:

    CREATE or REPLACE PROCEDURE (pr_id OUT NUMBER) HAVE


    tab type is table of NUMBER;

    TEMP_TAB TAB;

    BEGIN

    Select the COLLECT LOOSE pr temp_tab pr_id;

    I'm in 1.TEMP_TAB. loop of COUNTING

    PR_ID: = temp_tab (i);

    end loop;

    END TEST;

    OUTPUT:-

    pr_id = 234578


    in the example above, I'm only a value as an out parameter. but I send you PR_ID of the loop.
    why I don't get all the values that the parameters.please offer a solution for me.

    Thank you my friend.

    More clarification, let's look at your code...

    -- create a procedure and have a single numeric out variable
    CREATE OR REPLACE PROCEDURE TEST ( pr_id OUT NUMBER ) AS
      -- declare a type as an array of numbers
      type tab is table of NUMBER;
      -- declare a varianble of that array type
      TEMP_TAB TAB;
    BEGIN
      -- query all the values from the table into the array
      select pr_id BULK COLLECT INTO temp_tab from pr;
      -- loop through each value in the array
      for i in 1..TEMP_TAB.COUNT loop
        -- set the value of the single OUT parameter, OVERWRITING any previous value it has
        PR_ID := temp_tab(i);
        -- loop around to the next value
      end loop;
      -- end the procedure with the final value of PR_ID
    END TEST;
    
  • I have my old laptop work, admin access, and I need to pass the parameters of language from German to English, especially the menus. Can you please indicate.

    I have my old laptop work, admin access, and I need to pass the parameters of language from German to English, especially the menus. Can you please indicate.

    A.I have changed the time zone.

    But I can't understand how to move to the menus in ENGLISH and the keyboard settings. They are in German. Need urgent help

    The system is running on Windows XP Professional

    Thank you for your help in advance.

    (Yes the multi language pack is somewhere on the laptop... where I'm not sure)

    Hello

    1. - you want to say that you have an administrator access on this computer?

    2. What is the operating system default language when the laptop was purchased?

    If the default language is German so it is not possible to change it to English.

    Reference: to change the language used for menus and dialog boxes

  • How to pass the parameters in the http post method?

    Hello

    I want to download the mp3 file on server and I need to pass two parameters with the post method.

    Here is my code for this.

                          String userid="id_user=8379";
                  String filename="trackName=sample.mp3";
                  String params=userid+"&"+filename;            
    
                            httpcon=(HttpConnection)Connector.open("http://api.upload.com/gStorage/uploadSong?output=json",Connector.READ_WRITE);
                httpcon.setRequestMethod(HttpConnection.POST);
                httpcon.setRequestProperty("Content-type","application/x-www-form-urlencoded");
                httpcon.setRequestProperty("Content-type","audio/mpeg3");
                os=httpcon.openOutputStream();
                os.write(params.getBytes("UTF-8"));
                fc=(FileConnection)Connector.open("file:///E:/sample.mp3",Connector.READ_WRITE);
                fileis=fc.openInputStream();
                bos=new ByteArrayOutputStream();
                byte[] data=new byte[50000];
                int ch;
                while ((ch=fileis.read(data,0,data.length))!=-1) {
                    bos.write(data,0,ch);
                }
                os.write(bos.toByteArray());
                os.close();
                System.out.println("Response code From server"+httpcon.getResponseCode());
                if(httpcon.getResponseCode()!=HttpConnection.HTTP_OK)
                {
                    System.out.println("Failed to upload bytes");
                }
                else
                {
                    //is=httpcon.openInputStream();
                    DataInputStream dis=httpcon.openDataInputStream();
                    int ch1;
                    StringBuffer buffer1=new StringBuffer();
                    while ((ch1=dis.read())!=-1) {
                        buffer1.append((char)ch1);
                    }
                    System.out.println("Response From Server"+buffer1.toString());
                }
            } i am getting response code ok but fail to upload file.
    

    may I passing the parameter in the wrong way?

    thankx.

    Hello

    Nitin I currently do a midlet project.

    So I used multipart post method.

    I just read this article. http://MindTouch.firmstep.com/AchieveForms/Design_Guide/Integration_Actions/types/HTTP_POST#top

    package com.http.main;
    
    import java.io.ByteArrayOutputStream;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.util.Enumeration;
    import java.util.Hashtable;
    
    import javax.microedition.io.Connector;
    import javax.microedition.io.HttpConnection;
    
    import com.sun.midp.io.BufferedConnectionAdapter;
    
    public class HttpMultipartRequest
    {
        static final String BOUNDARY = "----------V2ymHFg03ehbqgZCaKO6jy";
    
        byte[] postBytes = null;
        String url = null;
    
        public HttpMultipartRequest(String url, Hashtable params, String fileField, String fileName, String fileType, byte[] fileBytes) throws Exception
        {
            this.url = url;
    
            String boundary = getBoundaryString();
    
            String boundaryMessage = getBoundaryMessage(boundary, params, fileField, fileName, fileType);
    
            String endBoundary = "\r\n--" + boundary + "--\r\n";
    
            ByteArrayOutputStream bos = new ByteArrayOutputStream();
    
            bos.write(boundaryMessage.getBytes());
    
            bos.write(fileBytes);
    
            bos.write(endBoundary.getBytes());
    
            this.postBytes = bos.toByteArray();
    
            bos.close();
        }
    
        String getBoundaryString()
        {
            return BOUNDARY;
        }
    
        String getBoundaryMessage(String boundary, Hashtable params, String fileField, String fileName, String fileType)
        {
            StringBuffer res = new StringBuffer("--").append(boundary).append("\r\n");
    
            Enumeration keys = params.keys();
    
            while(keys.hasMoreElements())
            {
                String key = (String)keys.nextElement();
                String value = (String)params.get(key);
    
                res.append("Content-Disposition: form-data; name=\"").append(key).append("\"\r\n")
                    .append("\r\n").append(value).append("\r\n")
                    .append("--").append(boundary).append("\r\n");
                System.out.println("****In while Loop:-****"+res);
            }
            res.append("Content-Disposition: form-data; name=\"").append(fileField).append("\"; filename=\"").append(fileName).append("\"\r\n")
                .append("Content-Type: ").append(fileType).append("\r\n\r\n");
            return res.toString();
        }
    
        public byte[] send() throws Exception
        {
            HttpConnection hc = null;
    
            InputStream is = null;
    
            ByteArrayOutputStream bos = new ByteArrayOutputStream();
    
            byte[] res = null;
    
            try
            {
                hc = (HttpConnection) Connector.open(url);
    
                hc.setRequestProperty("Content-Type", "multipart/form-data; boundary=" + getBoundaryString());
                hc.setRequestProperty("Content-Length",postBytes+"");
    
                hc.setRequestMethod(HttpConnection.POST);
    
                OutputStream dout = hc.openOutputStream();
    
                dout.write(postBytes);
                dout.close();
    
                int ch;
    
                is = hc.openInputStream();
                StringBuffer buffer=new StringBuffer();
    
                while ((ch = is.read()) != -1)
                {
                    bos.write(ch);
                    buffer.append((char)ch);
                }
                res = bos.toByteArray();
                System.out.println(buffer.toString());
            }
            catch(Exception e)
            {
                e.printStackTrace();
            }
            finally
            {
                try
                {
                    if(bos != null)
                        bos.close();
    
                    if(is != null)
                        is.close();
    
                    if(hc != null)
                        hc.close();
                }
                catch(Exception e2)
                {
                    e2.printStackTrace();
                }
            }
            return res;
        }
    }
    

    and use it in this way

    public void getBytes()
        {
            ByteArrayOutputStream bos=null;
            try
            {
                bos=new ByteArrayOutputStream();
                InputStream fis=getClass().getResourceAsStream("/super.mp3");
                int ch;
                byte[] data=new byte[120];
                while((ch=fis.read(data,0,data.length))!=-1)
                {
                    bos.write(data,0,data.length);
                }
                Hashtable params=new Hashtable();
                //params.put("id_user","8474");
                params.put("id_user","8379");
                params.put("file1","audio.mp3");
                HttpMultipartRequest httpreq=new HttpMultipartRequest("http://api.upload.com/gStorage/uploadSong?", params,"file1","xpressMusic.mp3","audio/mpeg",bos.toByteArray());
                httpreq.send();
                bos.close();
                fis.close();
            }
            catch (Exception e) {
                System.out.println("Exception"+e);
            }
    

    Here, the key is contenttype, contentLength.you can get the info on it from the link above.

    thankx.

  • Run the query with multiple parameters

    Dear

    Motion code below for the data is of per_all_people_f, who works for only one setting, when I pass 2 parameters, then is to take the last of them fail times two, could you pls advice how it both join in where clause.

    ================================================================================

    --------------------------------control file ----------------------------------

    ================================================================================

    ' Public Sub processFormRequest (pageContext OAPageContext, OAWebBean webBean)

    {

    super.processFormRequest (pageContext, webBean);

    Am = (OAApplicationModule) pageContext.getApplicationModule (webBean) OAApplicationModule;

    OAApplicationModule am = pageContext.getRootApplicationModule ();

    String model = pageContext.getParameter ("ALL");

    String pempno = pageContext.getParameter ("paramEmpNo");

    String phiredt = pageContext.getParameter ("paramHireDate");

    System.out.println ("control controller exucution");

    If (pageContext.getParameter ("GetData")! = null)

    {

    System.out.println ("controller exucution");

    Boolean ExecuteQuery = BooleanUtils.getBoolean (false);

    [Serializable] parameters = {pempno, phiredt, model, executeQuery};

    Class [] paramTypes = {String.class, String.class, String.class, Boolean.class};

    am.invokeMethod ("initSummary", parameters, paramTypes);

    OAAdvancedTableBean = table

    (OAAdvancedTableBean) webBean.findChildRecursive ("ResultsTable");

    When a user of handling started looking, we always need to run

    the query, so we move on 'false' to queryData().

    table.queryData (pageContext, false);

    }

    }

    ================================================================================

    -Request module file-

    ================================================================================

    public void initSummary (string model,

    String ParmEmpNum,

    String ParmHireDt,

    String created,

    String showMyOrders,

    Boolean ExecuteQuery)

    {

    xxEmployeeVOImpl vo = getxxEmployeeVO1();

    If (vo is nothing)

    {

    Tokens [] MessageToken = {new MessageToken ("parameter", "xxEmployeeVO")};

    throw new OAException ("AK", "FWK_TBX_OBJECT_NOT_FOUND", chips);

    }

    vo.initQuery (model, ParmEmpNum, ParmHireDt, executeQuery);

    System.out.println ("calling vo...");

    }

    ================================================================================

    -xxEmployeeVOImpl-

    ================================================================================

    public void initQuery (String, String ParamEmpNum, String ParmHireDt, Boolean executeQuery model)

    {

    StringBuffer whereClause = new StringBuffer (100);

    Whole CheckWhere;

    Vector of parameters = new Vector (3);

    setWhereClause (null);

    setWhereClauseParams (null);

    Integer bindCount = 0;

    String WhereClause = null;

    If ((ParamEmpNum! = null) & & (!("".)) Equals (ParamEmpNum.Trim ()))

    {

    setWhereClause (null);

    setWhereClauseParams (null);

    setWhereClause ("EMPLOYEE_NUMBER =:" + CheckWhere);

    setWhereClauseParam(0,ParamEmpNum);

    System.out.println ("request" + this.getQuery ());

    System.out.println ("ParamEmpNum" + ParamEmpNum);

    CheckWhere = CheckWhere ++;

    }

    If ((ParmHireDt! = null) & & (!("".)) Equals (ParmHireDt.Trim ()))

    {

    CheckWhere = CheckWhere ++;

    If (CheckWhere > 1)

    {

    setWhereClause (null);

    setWhereClauseParams (null);

    setWhereClause ("AND START_DATE =:" + CheckWhere);

    setWhereClauseParam(0,ParmHireDt);

    System.out.println ("request" + this.getQuery ());

    }

    on the other

    {

    {setWhereClause (null);

    setWhereClauseParams (null);

    setWhereClause ("START_DATE =:"+ CheckWhere ");

    setWhereClauseParam(0,ParmHireDt);

    System.out.println ("request" + this.getQuery ()) ;}

    }

    System.out.println ("ParamEmpNum" + ParmHireDt);

    }

    System.out.println ("request" + this.getQuery ());

    executeQuery();

    Try this:

    public void initQuery(String dummy,String ParamEmpNum,String ParmHireDt, Boolean executeQuery)
    {
      System.out.println("ParamEmpNum: "+ ParamEmpNum);
      System.out.println("ParmHireDt : "+ ParmHireDt);
    
      setWhereClause(null);
      setWhereClauseParams(null);
    
      String WhereClause = null;
    
      int bindCount = 0;
      HashMap paramMap = new HashMap();
    
      if  ( (ParamEmpNum != null) && (!("".equals(ParamEmpNum.trim())))  )
      {
      paramMap.put(bindCount,ParamEmpNum);
      WhereClause = "EMPLOYEE_NUMBER = :"+ (++bindCount) + " AND ";
      }
      if  ( (ParmHireDt != null) && (!("".equals(ParmHireDt.trim())))  )
      {
      paramMap.put(bindCount,ParmHireDt);
      WhereClause = WhereClause + ("START_DATE = :"+ (++bindCount) + " AND ");
      }
      if(bindCount > 0)
      {
      // Remove the AND at the end
      WhereClause = WhereClause.substring(0, WhereClause.length()-5);
    
      setWhereClause(WhereClause);
      for(int i = 0; i < bindCount; i ++) {
      setWhereClauseParam(i,paramMap.get(i));
      }
      }
    
      System.out.println("Query "+ this.getQuery());
      executeQuery();
    }
    

    You may need to change the START_DATE whereclause as below:

    WhereClause = WhereClause + ("START_DATE = TO_DATE (:" + (++ bindCount) + ', "MON-DD-YYYY" ") AND" ' ");

    Note:-need to specify the correct format.

    See you soon

    AJ

  • I want to pass multiple values method AM controller

    Hi all

    Can someone tell me please how to pass multiple values of AM method to the controller.

    Thank you

    You can make use of the ArrayList

    In CO

    OAApplicationModlue am = pageContext.getApplicationModule(webBean);
    ArrayList values = (ArrayList) am.invokeMethod("PassArray");
    

    In AM

    public ArrayList PassArray
    {
    ArrayList values = new ArrayList();
    values.add("value")
    values.trimToSize();
    return values;
    }
    

    Thank you
    AJ

  • PASS URL parameters

    Hi all
    I checked the GO url with a filter feature - works great, if I try to add more number of parameters, it does not work. BI takes a single parameter value. I tried with 10 filter value in the URL GO. For this, I have passes the parameters to
    .. Saw.dll? GO & Path = < ReortPath > & Action = Browse & P0 = 10 & P1 = eq & P2 = Col1 & value = P3 & P4 = Col2 & P5 = value...

    is there a any restriction on the number of parameters to OBI?

    Hi, the syntax of URL go that you guys were talking about is old. I don't know when OBIEE has published this new syntax, but it is quite flexible in terms of number of parameters to pass HTML controls.

    New syntax is something like that

    http://saw.dll? «Go & Path = / shared //& Action = Navigate & Options = fdr & Col1 = "" & val1 ='' & op1 = eq...»
    You can replace %20 for spaces

    I found more information on this new syntax at this site:

    http://sureshotstrategies.WordPress.com/2008/12/13/integrating-Oracle-OBIEE-content-using-go-URL-syntax-2/

    Good luck
    SAI

    Published by: Sai Kumar Reddiboyina, on September 20, 2009 13:33

  • Passing multiple arguments to a CFC

    Currently, I connect to Coldfusion with a RemoteObject and pass a single argument. Is it possible to pass multiple arguments? Just add a comma separated by the argument list in the parens competence does not seem to work.

    "" < mx:Application xmlns:mx = ' http://www.adobe.com/2006/mxml ' layout = "absolute" creationComplete = "initApp (event)" >

    -Block of Script.

    private void initApp(e:Event):void {}
    chartmth_RO.qMonthlyUsage (200804);
    }
    ----
    < mx:RemoteObject id = "chartmth_RO" showBusyCursor = "true" destination = "ColdFusion" source = "usagecenter_local.cfc.charts_usage_mth" >
    < name mx:method = "qMonthlyUsage" result = "get_Result (event)" / >
    < / mx:RemoteObject >

    Once more I am kicking. You can pass multiple arguments in a CFC using a comma separate list the key is to encapsulate each string between apostrophes. So let's say I want to pass the arguments saleschart, fiscal year 2008, 300. The inside of my call parens jurisdiction would look like ('saleschart', 'exercice2008', 300).

    I love it when an answer is revealed, but I hate when it seems so simple.

  • A url that refers to an application process pass several parameters?

    Hello

    I have a page in an application that uses pl/sql to generate a list of links.

    The purpose of each link is to call another pl/sql procedure which in turn opens / runs an external report on the application of the APEX (or a call to the server to Oralce apps generate direct or pull clob is stored in the database). If the URL call the pl/sql procedure directly, I lose session state and doesn't remember who the user is. To maintain session state made URL refers to an APPLICATION_PROCESS. I would like to pass a number of parameters, but may only move one, using javascript to pass the value to a hidden element that is accessible in the procedure called by the APPLICATION_PROCESS.

    Can I pass several parameters?
    My URL:
    https:// < Server > / pls/apex/f? p = V('APP_ID'):0:V('APP_SESSION'):APPLICATION_PROCESS = MY_PROCESS:NO:P1NAME:P1VALUE

    I was able to pass all parameters P1VALUE and using a special character delimiter he break up once again in the javascript code, but would rather not.

    Thanks for any help,
    Jock

    Did you mean something like this?

    https:///pls/apex/f? p = V('APP_ID'):0:V('APP_SESSION'):APPLICATION_PROCESS = MY_PROCESS:NO:P1NAME, P2NAME, P3NAME:P1VALUE, P2VALUE, P3VALUE

    Best regards, Kostya Proskudin

  • How to pass several parameters in 10 g reports

    Hello
    I'm calling the oracle 10grel2 report and I uses run_Report_object and web_show to display the output. I could able to generate the report with a parameter but I tried several settings but its display of the
    report without data headers. If I turn the settings directly from the url out of the projection, what may be wrong with my code. Pls find the line that I put multiple parameters. A report on the parameter works very well. Report running and output pdf with only titles without data


    SET_REPORT_OBJECT_PROPERTY (REPID, REPORT_OTHER, 'pdate =' |: D T.TXTBEDATE |') EDATE =' | : D T.TXTEDATE: ' paramform = no ");"

    Rgds
    Marie Louise

    Hello

    Add a space before the name edate parameter:

    SET_REPORT_OBJECT_PROPERTY (REPID, REPORT_OTHER, 'pdate =' |: D T.TXTBEDATE |' edate ='|: D T.TXTEDATE: ' paramform = no "");

    Concerning

  • Problem AJAX (problems of passing two parameters to an application process)

    Hello

    I need to pass two parameters to a procedure of application via an AJAX request.

    All are my events show below, as you can see that the second p_arg_values does not contain any value. Its as if this get.add('TEMPORARY_ITEM_2',pThis2.value); line is ignored. What changes can I make to do this work?


    P2_QUERY_GROUP (the HTML Form element attributes)
    OnChange = "get_query_select_list_xml (This, 'P2_QUERY', 'P2_PRODUCT_GROUP')" "
    function get_query_select_list_xml(pThis,pSelect,pThis2){ 
        var l_Return = null;
        var l_Select = html_GetElement(pSelect);
        var get = new htmldb_Get(null,html_GetElement('pFlowId').value,
                  'APPLICATION_PROCESS=Query_Select_XML',0);
        get.add('TEMPORARY_ITEM',pThis.value);
        get.add('TEMPORARY_ITEM_2',pThis2.value);
        gReturn = get.get('XML');
        if(gReturn && l_Select){
            var l_Count = gReturn.getElementsByTagName("option").length;
            l_Select.length = 0;
            for(var i=0;i<l_Count;i++){
                var l_Opt_Xml = gReturn.getElementsByTagName("option");
    appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
    l_Opt_Xml.firstChild.nodeValue)
    }
    }
    get = null;
    }

    Query_Select_XML (Application Process)
    declare
    l_counter number;
    l_o_name varchar2(2000);
    begin
    owa_util.mime_header('text/xml', FALSE );
    htp.p('Cache-Control: no-cache');
    htp.p('Pragma: no-cache');
    owa_util.http_header_close;
    htp.prn('<select>');
    for rec in (select QUERY, ID
    from     TECH_DB_VIDEO_QUERY
    WHERE instr(QUERY_GROUPS,addzero(:TEMPORARY_ITEM))>0
    AND instr(PRODUCT_GROUPS,addzero(:TEMPORARY_ITEM_2))>0
    ORDER BY QUERY)
    loop
    htp.prn('<option value="' || rec.id || '">' || rec.query || '</option>');
    end loop;
    htp.prn('</select>');
    end;


    FIREBUG Output

    Post
    p_arg_names     TEMPORARY_ITEM
    p_arg_names     TEMPORARY_ITEM_2
    p_arg_values     16
    p_arg_values     
    p_flow_id     107
    p_flow_step_id     0
    p_instance     3349916470781784
    p_request     APPLICATION_PROCESS=Query_Select_XML

    Response
    <select></select>

    Regards
    Adam

    Adam:

    The second 'get.add' should be

    get.add('TEMPORARY_ITEM_2', $x(pThis2).value);
    

    CITY

  • Pass the parameters to the callback SequenceFilePostStep

    I have to call a sous-suite with several parameters in case of RunTimeError one of my steps in the main sequence. I would replace the SequenceFilePostStepRuntimeError callback for this.

    The recall starts ok but no parameter not passed. I don't see a way to explicitly set the parameters of the callback call (as we have for calls to subsequence) so I just created parameters of the same name, in the MainSequence and the SequenceFilePostStepRuntimeError.

    I saw this post , but it does not describe how to pass parameters to a callback.

    Please see attached the sequence. The SequenceFilePostStep callback is used for demonstration purposes.

    Hello

    One way that you can try.

    Instead of having Parameters.Message use a local variable. Replace your Parameters.Message Locals.Message in two clips (MainSequence and SequenceFilePostStep).

    In the SequenceFilePostStep the Locals.Message a "Allow the spread of the appellant" (select right mouse click and variable of Locals.Message, you should see two options)

    In the MainSequence put the Locals.Message to "spread of subsequence.

    Make sure that change you the MessagePopup to use local variables > message and Locals.Message with your message in your approach to expression.

    Now when you run your MainSequence you should see your message in the dialog box.

    I hope this helps.

    Concerning

    Ray Farmer

Maybe you are looking for

  • HP Deskjet F4435: Question of scanning

    I can copy with my scanner/printer and I can print. But I can't scan pictures in my computer. And I can't understand why.

  • Still 2 WT10 - touch screen does not work

    Sometimes the touch screen does not work or malfunctioning, as does replacing the system and continues. When it crashes I have to suspend the Tablet and wait a bit, sometimes I have to play several times to select what I want. Anyone know what it cou

  • my iphone 4 does not appear in my "peripheral" on my apple account!

    After scoring in the appleid.apple.com Web site, when I search for my devices under the "Devices" option, my iPhone4 does not appear. It is connected to iCloud and "Find my iPhone" is also enabled/activated.

  • disabled trackpad?

    I accidentally pushed a key combination and briefly saw this image of a stop on a finger sircle.  AND now my trackpad is not working.  (No cursor) When I plug a mouse (Logitech Wireless), the cursor is visible remains in its original position (Center

  • Computer name: computer The WOW is a good computer for senior citizens

    The WOW computer; My father a question on this computer. He lives in an AJ. Mag. AARP, it's a reliable computer? What are the differences between this computer and other computers? This computer would be a good computer for seniors? Want to hear your