Call a workflow of the controller extended

Hello
I want to call a workflow from an extended controller, I wrote the following code:
If (return".equals (event)) {" "}
OAApplicationModule am = pageContext.getApplicationModule (webBean);
processReturn (pageContext, webBean, am);
String srNo = "";
String sql = "BEGIN xx_sr_notf_pkg.invoke_wf (: 1); END; « ;
String status = null;
OracleCallableStatement cs =
(OracleCallableStatement) am.getOADBTransaction ().createCallableStatement(sql,1);

but it seems that the second line (processReturn (pageContext, webBean, am)) does not run...

Any suggestions?

Thank you

Now, how is it possible to capture the value of the ID of request to iProcurement line, or better yet the record of > my controller po_requisition_lines_all extended (xxCheckoutDistsCO)?

In your page so check all VO has "Row ID request" as its attribute. Then you can get it by using
vo.getCurrentRow () .getAttribute ("Attribute_name");

Or

Check seeded co, you can find a code that allows to get the "row ID request'

-Anand

Tags: Oracle Applications

Similar Questions

  • Impossible to throw the Exception to the controller extended.

    Hi all

    I extend a controller in iProcurement. After calling super.processFormRequest, I want to throw the Exception of my custom code.

    Here is the code I wrote. Everything works fine except... to display the error at the top of the page.


    package xxtnt.oracle.apps.icx.por.req.webui;

    Import oracle.apps.icx.por.req.webui.CheckoutSummaryCO;
    Import oracle.apps.fnd.framework.webui.beans.message.OAMessageLovInputBean;
    Import oracle.apps.fnd.framework.server.OADBTransaction;
    Import oracle.apps.fnd.framework.webui.beans.OAWebBean;
    Import oracle.apps.fnd.framework.OAApplicationModule;
    Import oracle.apps.fnd.framework.webui.OAPageContext;
    Import oracle.apps.ap.oie.webui.NavigationUtility;
    Import oracle.jdbc.driver.OracleCallableStatement;
    Import oracle.apps.fnd.framework.OAViewObject;
    import com.sun.java.util.collections.ArrayList;
    Import oracle.apps.fnd.framework.OAException;
    import java.sql.SQLException;
    import java.sql.Connection;
    Import oracle.jbo.RowSet;
    Import oracle.jbo.Row;
    import java.sql.Types;

    public class xxtntCheckoutSummaryCO extends CheckoutSummaryCO
    {
    private String clarityProjectId = new String("999999999");
    private String productCode = new String("");
    private String listOfProdCodes = new String("");
    private String isClause = new String ("is");
    private int noProdCodeCount = 0;
    private int exceptionCount = 0;
    private ArrayList peerException = new ArrayList();

    ' Public Sub processRequest (pageContext OAPageContext, OAWebBean webBean)
    {
    super.processRequest (pageContext, webBean);
    }

    ' Public Sub processFormRequest (pageContext OAPageContext, OAWebBean webBean)
    {
    super.processFormRequest (pageContext, webBean);
    pageContext.writeDiagnostics (this, "In custom controller to process form request", 6);
    String s = pageContext.getParameter ("event");
    pageContext.writeDiagnostics (this, "event is:" + s, 6);
    If ((NavigationUtility.isNextClicked (pageContext)) |) ("save".equals (s)) | ("goto".equals (s)) | ("submit".equals (s)))
    {
    pageContext.writeDiagnostics (Thi, "Next/Save/Submit button..", 6);
    OAMessageLovInputBean dffMessageBean = (OAMessageLovInputBean) webBean.findChildRecursive ("ReqHeaderDFF3");
    if(dffMessageBean!=null)
    {
    pageContext.writeDiagnostics (this, ' dffMessageBean is not Null", 6");
    String msg = (String) dffMessageBean.getValue (pageContext);
    if(MSG!=null)
    {
    pageContext.writeDiagnostics (this, "value of FDF is:" + msg, 6);
    clarityProjectId = msg;
    OAApplicationModule am = pageContext.getRootApplicationModule ();
    OAViewObject reqLinesVO = (OAViewObject) am.findViewObject ("PoRequisitionLinesVO");
    if(reqLinesVO!=null)
    {
    rowCount int = reqLinesVO.getFetchedRowCount ();
    pageContext.writeDiagnostics (this, "line lines Total" + rowCount, 6);
    All lines rSet = reqLinesVO.getRowSet ();
    for (int i = 0; i < rowCount; i ++)
    {
    Line linesRow = rSet.getRowAtRangeIndex (i);
    if(linesRow!=null)
    {
    String reqLineId = linesRow.getAttribute("RequisitionLineId").toString ();
    pageContext.writeDiagnostics (this, "The RequisitionLineId is:" + reqLineId, 6);
    lineNumber int = Integer.parseInt (linesRow.getAttribute("LineNum").toString ());
    VR;
    {
    OADBTransaction tr = am.getOADBTransaction ();
    Connection con = tr.getJdbcConnection ();
    OCs OracleCallableStatement = null;
    String stmt = new String("");
    stmt = "BEGIN LFIN_CA_CLARITY_TRX_EXT_OP. GET_PRODUCT_CODE(:1,:2,:3,:4,:5,:6); END; « ;
    Co = (OracleCallableStatement) con.prepareCall (stmt);
    ocs.setString(1,clarityProjectId);
    ocs.setString (2, "999999");
    ocs.registerOutParameter(3,Types.VARCHAR,0,255);
    ocs.registerOutParameter(4,Types.VARCHAR,0,255);
    ocs.setString(5,reqLineId);
    ocs.setString(6,"IPR");
    pageContext.writeDiagnostics (this, "before you run the prod code is" + productCode, 6);
    OCS. Execute();
    productCode = ocs.getString (3) m:System.NET.SocketAddress.ToString ();
    listOfProdCodes = ocs.getString (4) m:System.NET.SocketAddress.ToString ();
    }
    catch (SQLException e)
    {
    pageContext.writeDiagnostics (this, "Exception when calling the package of prod Code/Code" + e.getMessage (), 6);
    }
    pageContext.writeDiagnostics (Thi, "prod package after call Code is:" + productCode, 6);
    If (listOfProdCodes.length () > 4)
    {
    isClause = 'y ';
    pageContext.writeDiagnostics (Thi, "isClause =" + isClause, 6);
    }
    pageContext.writeDiagnostics (this, "after the list run Codes Prod is" + listOfProdCodes, 6);
    If (ProductCode.Equals ("zzxxxxxzz") & & (listOfProdCodes.equals ("zzxxxxxzz")))
    {
    noProdCodeCount = noProdCodeCount + 1;
    }
    Another yew (productCode.equals ("zzxxxxxzz") & & (! listOfProdCodes.equals ("zzxxxxxzz")))
    {
    peerException.add (new OAException ("Line"
    + lineNumber
    +" - "
    +"Product code is invalid. The product code valid for project.
    + clarityProjectId
    + isClause
    + listOfProdCodes
    +"\n"));
    pageContext.writeDiagnostics (, "Sunrise should prod valid error codes", 6);
    exceptionCount = exceptionCount + 1;
    }
    on the other
    {
    pageContext.writeDiagnostics (this,"ProdLine is equal to the Prod Code... The success of the validation. FRO... Line. "+ lineNumber, 6);
    pageContext.writeDiagnostics (this, "" == > Unexpected < == "")
    +"Line number"+ lineNumber
    'Product code' + productCode
    + "List of product codes '+ listOfProdCodes
    (6);
    }
    } / / closing line! = null
    } / / Closed loop
    } / / closing if Vo! = null
    if(noProdCodeCount>0)
    {
    peerException.add (new OAException ("no product code has been defined for the clarity project ID" + clarityProjectId));
    exceptionCount = exceptionCount + 1;
    }
    } / / closing projectid clarity! = null
    pageContext.writeDiagnostics (this, "number of Exception is:" + exceptionCount, 6);
    if(exceptionCount>0)
    OAException.raiseBundledOAException (peerException);
    } //Closing
    }
    }
    }

    Page: / oracle/apps/icx/por/req/webui/CheckoutSummaryPG

    I commented all the code and just try to throw the exception using the throw new OAException ("Test Exception msg");
    After super.processFormRequest, yet his watch no any which exception in page.

    Help please..!

    Thank you
    Ganga Ram

    Hello

    Use the following syntax

    pageContext.putDialogMessage (message);
    pageContext.forwardImmediatelyToCurrentPage (null, true, null);

    Thank you
    Rakesh

  • Unrecognized field \"networkName\' when calling Cluster workflow create the VCO.

    Hello

    I use BDE 1.1 on vsphere 5.5. I was sent BDE VCO Plugin version 0.5.0.70. When I try run create a workflow of cluster based Hadoop of VCO, it fails with the error below. Can anyone help?

    Content the form of string: {"code": "BDD.} BAD_REST_CALL', 'message': "" has no REST API: could not read JSON data: unknown field \"networkName\" (class com.vmware.bdd.apitypes.ClusterCreate), not marked as ignorable\n to [Source: org.apache.catalina.connector.CoyoteInputStream@7e542721; line: 1, column: 578] (through the reference string: com.vmware.bdd.apitypes.ClusterCreate[\"networkName\"] ");" {"" nested exception is org.codehaus.jackson.map.exc.UnrecognizedPropertyException: unrecognized field \"networkName\" (class com.vmware.bdd.apitypes.ClusterCreate), not marked as ignorable\n to [Source: org.apache.catalina.connector.CoyoteInputStream@7e542721; line: 1, column: 578] (through the reference string: com.vmware.bdd.apitypes.ClusterCreate[\"networkName\"] ")"}

    Thank you and best regards,

    Nanga

    Hi dvnagesh,

    Assume your msg is for BDE 1.0: "networkName": 'nw1 '.

    The equivalent in BDE 1.1 should be: 'networkConfig': {'MGT_NETWORK': ['nw1']}

    -bxd

  • Model of card mother T7500 and configuration of the controller RAID LSI 1068e

    Hi, I just bought a T7500 workstation I would get around mid-December. Because of current prices for HARD drive storage, I decided to go with the 500 GB basic disk up to HEALING of Thailand. Thus, I am limited to basic integrated RAID controller. Because I am not familiar with the RAID configuration, etc. I wanted to read more before I dive in. The starting point would definitely find what was right for the Precision T7500 motherboard. Surprise! I can't find information anywhere. Even Dell people (3 different sales and support representatives) have not managed to tell me it's the Intel 5520 chipset (it looks that they believe that it is the motherboard model...). Well, I'm stuck. I would appreciate if someone could provide me with the model of motherboard and Special Edition, all information on the capabilities of the controller integrated RAID (LSI 1068e) would help me determine what drives should I plan to buy. In addition, one thing that is not clear to me what I inferred from the configuration on the website Wizard is the issue around disks > 2 TB. Of after I read it, I was not able to determine whether the problem was related to the simple readers > 2 TB or if it was related to the management of a storage space > 2 TB (which could be composed of several readers less than 2 TB). What I have in mind (remember that I do not have the machine right now) is to 4 X 1 TB drives in a RAID 0 + 1 (which I'm not sure that the integrated controller supports) configuration that will result in the storage of 2 GB mirrored. The operating system is Win 7 64 bit. Thanks in advance for any info that will help me to prepare my setup (buy hard drives, if I can find cheap ones) and find information on the configuration of the RAID. MrBricole

    I'm sure the T7500 uses an Intel Server Board (since this chipset is located on the Intel site under its motherboards, Dell is essentially correct, even if they didn't know why), but it doesn't matter in the context of your question, because the '' integrated '' RAID controller is not actually on the Board.  It's a card (called "integrated" only because it has a slot on this machine).  Because the functionality of the RAID controller is not on the Board of Directors, Board info will not help you.  Everything you need to know about your Council and the entire system, you can get the T7500 manual.  SAS 6/iR (LSI 1068e) RAID controller information can be found here:

    NOTE from the ADMIN: Broken link has been removed from this post by Dell >

    The SAS 6/iR will not support more than 2 TB of drives, or it will support more than 2 TB of virtual disks.

    It will also only supports RAID 0 OR RAID 1 OR both, but not together (not levels no RAID nested as RAID 10 or 0 + 1).

    So with four 1 TB drives, you can easily do two RAID 1 (called integrated mirror in the controller BIOS CTRL-C)... or you can do two 2-drive RAID 0 (Stripe called integrated in the controller BIOS CTRL-C)... or you can run mode non-RAID, with four individual discs in the operating system.  With this controller, those are your only options with four 1 TB drives.

    If you want / need more features RAID (nested RAID, 2 TB of the VFD above, on board levels, cache, etc.), you must upgrade to the PERC 6 / i.

    Do not buy office records class... Make sure you get enterprise-class drives.  If you decide at some point to go with PERC, not only enterprise class disks will be fundamentally necessary, but certified records would be strongly recommended for stability and performance.

  • Error 11 GR 2: call a workflow bounded with method call as default activity

    Hi all
    We migrated multiple applications to the JDev 11 g R2.
    There are 2 applications that contain a defined workflow where we hear by calling method default activity.
    We need to invoke specific actions before you open the page.
    They run well with 11 GR 1 material.
    But with * 11 G R2 *, I can't directly call this workflow with the following URL:
    http://127.0.0.1:7101/MyAPP/faces/ADF.task-flow?ADF.tfId=my-flow-def & ADF.tfDoc=/Web-INF/flows/My-Flow-def.Xml
    Message:
    * < SecurityUtils > < invokeURLAllowed > ADFc: cannot directly call the workflow "/ WEB-INF/flux/my-flux-def.xml #my - flow - def' with the help of the URL"
    (original message: < SecurityUtils > < invokeURLAllowed > ADFc: cannot directly call the workflow ' / WEB-INF/flux/my-flux-def.xml #my - flow - def' using the URL.)
    Any idea?

    Thanks for your help

    Hello

    Take a look at the flow of task properties, in PatchSet1, a new "invokeURLAllowed" feature is added which prevents the workflow stubborn URL accessible for safety reasons. You can turn off this feature on and outside

    Frank

    PS. : I am having this bounded task flows that you call from a URL, which is usually necessary to have a viewActivity as the default activity

  • Fixing/invocation of workflow during the action of the certificate

    Hi all

    I'm new to IOM. This Q may be simple, but it would be great if I get a reply. How to call a workflow when the examiner submits to the certification exam. The workflow must be triggered to action to "CERTIFY" in the presentation of examination certificate.

    Thanks in advance
    Inbaa.

    Also the certification report is getting generated only if the user has at least one account of resource are associated with him. Otherwise the certification report is not get generated. (I want to say report contains 0 records).

    For what resource do it?

    If the resource is not provisioned to the user until it will generate and what he shall certify?
    APMK, it will not show any folder there.

    You certify to access. If you have created resource prepared processes and the resource is not related to the user, then it will not show anything because it doesn't have someone to certify... right?

  • Extended the controller does not

    Hello

    I extended the controller attempted to call a pl/sql package and tried to insert data into a custom table. I have attached the controller through customization at site level. and moved the .class file to $JAVA_TOP. The page shows no error. I added a field on a page and try to save the data in a custom field.
    When I try to save the page it shows me a message that have been saved successfully! but the data are not are filled with custom table.


    Code central:

    package oracle.apps.ar.creditmgt.application.webui;

    import java.sql.Connection;
    import java.sql.Types;
    Import oracle.apps.ar.creditmgt.application.webui.OCMAddFinDataCO;
    Import oracle.apps.fnd.common.VersionInfo;
    Import oracle.apps.fnd.framework.webui.OAControllerImpl;
    Import oracle.apps.fnd.framework.webui.OAPageContext;
    Import oracle.apps.fnd.framework.webui.beans.OAWebBean;
    Import oracle.apps.fnd.framework.OAApplicationModule;
    Import oracle.apps.fnd.framework.OAException;
    Import oracle.apps.fnd.framework.OAViewObject;
    Import oracle.apps.fnd.framework.webui.beans.layout.OAQueryBean;
    Import oracle.jbo.Row;
    Import oracle.jbo.domain.Number;
    Import oracle.jdbc.driver.OracleCallableStatement;
    Import oracle.sql.CHAR;

    SerializableAttribute public class MANOCMAddFinDataCO extends OCMAddFinDataCO {}
    public MANOCMAddFinDataCO() {}
    }

    ' public void processRequest (OAPageContext oapagecontext, OAWebBean oawebbean)
    {
    super.processRequest (oapagecontext, oawebbean);

    OAViewObject oaviewobject3 = (OAViewObject) oapagecontext.getApplicationModule (oawebbean) .findViewObject ("CaseFoldersVO");
    If (oaviewobject3! = null)
    {
    Line row5 = oaviewobject3.first ();
    If (row5! = null)
    {
    Number of pCaseFolderId = (Number) row5.getAttribute ("CaseFolderId");
    oapagecontext.putTransactionValue ("CasefolderID", pCaseFolderId);
    }
    }
    OAViewObject oaviewobject = (OAViewObject) oapagecontext.getApplicationModule (oawebbean) .findViewObject ("creditAppFinancialDataVO");
    If (oaviewobject! = null)
    {
    Row1 row = oaviewobject.first ();
    If (row1! = null) {}
    Number of pFinDataId = (Number) row1.getAttribute ("FinancialDataId");
    oapagecontext.putTransactionValue ("FinDataID", pFinDataId);
    }
    }
    }

    ' Public Sub processFormData (OAPageContext oapagecontext, OAWebBean oawebbean)
    {
    super.processFormData (oapagecontext, oawebbean);
    }


    ' Public Sub processFormRequest (pageContext OAPageContext, OAWebBean webBean)
    {
    super.processFormRequest (pageContext, webBean);
    OAApplicationModule am = pageContext.getApplicationModule (webBean);
    OAQueryBean queryBean = (OAQueryBean) webBean.findChildRecursive ("OCMBtnLayOutRN");

    Apply chain = queryBean.getGoButtonName ();

    If (pageContext.getParameter ("Apply")! = null)
    {
    Integer pcaseFolderId = (Integer) pageContext.getTransactionValue("CasefolderID");
    Integer pfinDataId = (Integer) pageContext.getTransactionValue("FinDataID");
    String pSubDebt = pageContext.getParameter ("SubordinatedDebt");

    Connection Conn = pageContext.getApplicationModule (webBean) .getOADBTransaction () .getJdbcConnection ();
    Try
    {
    OracleCallableStatement cs = (OracleCallableStatement) conn.prepareCall ("start OCM_FIN_DATA_PKG. Insert_Fin_Data (: 1,: 2: 3:4); end; ») ;

    cs.setInt (1, pfinDataId);
    cs.setInt (2, pcaseFolderId);
    cs.setString (3, pSubDebt);
    cs.registerOutParameter(4,Types.CHAR);

    DSI Execute();

    Output = cs.getCHAR CHAR (4);

    DSI Close();
    If (outP.equals('S'))
    {
    throw new OAException ("Success");
    }
    else {}
    throw new OAException ("Failed to Insert");
    }
    }
    catch (System.Exception Exception)
    {
    throw new OAException ("connection error");
    }
    }
    }
    }

    Package:

    CREATE OR REPLACE
    OCM_FIN_DATA_PKG PACKAGE BODY
    AS

    PROCEDURE Insert_Fin_Data
    (
    p_finacial_id NUMBER,
    p_casefolder_id NUMBER,
    p_SubDebt NUMBER,
    x_status OUT VARCHAR2)
    IS

    BEGIN
    FND_FILE. PUT_LINE (FND_FILE. JOURNAL,' before insert: ' | p_finacial_id |'; Casefolder id :'|| p_casefolder_id |'; Subordinate debt :'|| p_SubDebt);
    INSERT
    IN MAN_OCM_FIN_DATA
    (
    Financial_data_id,
    Casefolder_Id,
    Subordinated_Debt
    )
    VALUES
    (
    p_finacial_id,
    p_casefolder_id,
    p_SubDebt
    );
    commit;
    x_status: = s ';
    FND_FILE. PUT_LINE
    (
    FND_FILE. NEWSPAPER, "inserted successfully.
    )
    ;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    x_status: = 'E ';
    NULL;
    FND_FILE. PUT_LINE
    (
    FND_FILE. NEWSPAPER, "no data for p_finacial_id = ' | ' p_finacial_id |'; Casefolder id :'|| p_casefolder_id |'; Subordinate debt :'|| p_SubDebt
    )
    ;
    WHILE OTHERS THEN
    x_status: = 'E ';
    FND_FILE. PUT_LINE
    (
    FND_FILE. JOURNAL,' error related to the p_SubDebt - ' | p_finacial_id |'; Casefolder id :'|| p_casefolder_id |'; Subordinate debt :'|| p_SubDebt | ' ERR'. SQLERRM
    )
    ;
    END Insert_Fin_Data;
    END MAN_OCM_FIN_DATA_PKG;
    /
    display errors;


    Please tell me if there is an error in what I did. Please tell me why the data are not met in the custom table!

    I tried to run an anonymous block, and he succeeded!

    DECLARE
    x_sts VARCHAR2 (1);
    a NUMBER: = 11111;
    b NUMBER: = 22222;
    c NUMBER: = 33333;
    BEGIN
    MAN_OCM_FIN_DATA_PKG.insert_fin_data (p_finacial_id = > a, p_casefolder_id = > b, p_SubDebt = > c, x_status = > x_sts);
    dbms_output.put_line ('Status :'|| x_sts);
    EXCEPTION
    WHILE OTHERS THEN
    dbms_output.put_line (SQLERRM);
    END;.


    Please advice on how to move forward. I'm not able to debug as I only download pages stocked in my jdevloper.
    Please help about this

    Thank you
    Prakash

    Prakash

    Send me your code will check and update.

    Thank you
    AJ

  • currency of the row has been changed after cancel create and return to the call of workflow

    JDev 11... 2
    I have two workflow set up very similar to the task of Steve Muench and you will receive. I have master / detail in two tables on a navigation page and a different workflow that create/change for the master and detail (separately). When I create a new master, everything works well except that when I cancel and return to the appellant task, I get the "currency line has changed since the user interface has been made." The cancel task-flow-return has end transcation = rollback and restore savepoint = true and Cancel button immediately a = true. Looks like the controller looking for the newly created folder that has been rolledback. Given that this seems to be a model common vey, what is the best way to not show the warning?

    Thanks a lot for the pointers.

    Hello

    the usecase of yours is the standard demo I show for the workflow and I never had this problem. One reason might be that you keep the scope of the task flow DC to share instead of isolated, in which case restoring impact on the flow of both. If you want to keep shared DC then check that you return to method activity that is re - running the battery for the parent workflow

    Frank

  • How to set the parameter for the button programmatically via the controller

    Hello

    I created a button in the advanced table (seeded page) as a column using customization called 'Submit', I pulled this button via PR in the extended controller action.

    Now I want to get the value of SuccessionPlanId (one of the column of this advanced table) when I press the button 'Submit' in the controller.

    If I can be able to get this means value of SuccessionPlanId I will then cross this value to the stored procedure, callable statement.

    So suggest me how do it in the controller.

    or tell me how to add the parameters programmatically to the button.

    Thanks in advance,

    SAN

    Hello

    package difference

    import

    oracle.apps.per.selfservice.successionmgmt.server.PerSuccPlanSearchVORowImpl . instead of

    oracle.apps.per.selfservice.successionplan.server.PerSuccPlanSearchVORowImpl;

    Thank you
    Pratap

  • How to call other functions within the ScriptableFunction class

    I am trying to create an extension of javascript class which will record audio, but the problem is that I can't call other methods in the class.

    clear explanation about my problem:

    It's my Scriptable class

    public final class OCNUtilsNamespace extends Scriptable
    {
        VoiceRecord vr;
    
        public OCNUtilsNamespace()
        {
            this.vr = new VoiceRecord();
        }
        public Object getField(String name) throws Exception
        {
            else if(name.equals("VoiceRecorder")){
                return this.vr;
            }
    
            else if (name.equals("stopRecording"))
            {
                this.vr.stopRecording();
                return new String("Stopped Recording");
            }
            else if (name.equals("startRecording"))
            {
                this.vr.startRecording();
                return new String("Started Recording");
            }
            return super.getField(name);
        }
    }
    

    and here's my ScriptableFunction class:

    public class VoiceRecord extends ScriptableFunction {
    
        String status = "start";
        public Object invoke(Object obj, Object[] args) throws Exception{
            if(status.equals("start"))
                return new String("Started Recording");
            if(status.equals("stop"))
                return new String("Stopped Recording");
            return new String("nothing");
        }
    
        public void stopRecording(){
            status = "stop";
            return;
        }
        public void startRecording(){
            status = "start";
            return;
        }
    }
    

    in my javascript every time I call

    alert(OCN.OCNUtils.VoiceRecorder());
    

    I get the response as "recording started"

    but whenever I tried to call

    alert(OCN.OCNUtils.startRecording());
    

    I don't get all respose and the script will stop working at that time here.

    Why is happening like that?

    I'm doing something wrong?

    I did not understand this concept of scriptablefunction anyone please explain what is happening?

    have to apply Runnble to the future because I have to record the sound of the microphone

    I suggest that you simply pass an argument of your javascript in your extension like this:

    public final class OCNUtilsNamespace extends Scriptable
    {
        VoiceRecord vr;
    
        public OCNUtilsNamespace()
        {
            this.vr = new VoiceRecord();
        }
        public Object getField(String name) throws Exception
        {
            if(name.equals("VoiceRecorder")){
                return this.vr;
            }
            return super.getField(name);
        }
    }
    

    and on your class that extends a ScriptableFunction,.

    public Object invoke(Object obj, Object[] args) throws Exception{
    
                   String param = args[0].toString(); // Cast a parameter from your js to a string
    
            if(param.equals("start"))
                return startRecording();
            if(status.equals("stop"))
                return stopRecording();
            return new String("nothing");
        }
    
        public String stopRecording(){
            status = "stop";
            return status;
        }
        public String startRecording(){
            status = "start";
            return status;
        }
    

    Finally, call your extension via javascript like this:

    alert(OCN.OCNUtils.VoiceRecord("start")); // Call the startRecording() on your VoiceRecord class
    alert(OCN.OCNUtils.VoiceRecord("stop")); // Call the stopRecording() on your VoiceRecord class
    

    Hope this helps

  • Old famous problem - AP LAP1142N cannot join the controller - 4402, please participate, we will make a good guide!

    Hello people,

    I'm sorry for bringing this debate again. I would not dare to ask this question, if I find someone is clear cut suggestion/solution or an overview giving a detailed step by step procedure. Just people suggest jumping through hoops as much as the reset of the AP or conversion to stand-alone mode and then back to LWAPP.

    Therefore, I have so many questions and hope that we can make a good guide that covers all possible problems.

    (1) AP originally ran a stand-alone image.  I started in so-called ROMMON or AP mode (ESC is the right key to start in this mode)

    I found a recovery image in its flash - c1140-rcvk9w8-mx. I did start it AP with him using the 'set' command and I see that it start to boot using this recovery image. That is the question. All the parameters of the AP matter? For example, when I run the command "set" of the PA, I see the following:

    AP: the value

    ?=

    DEFAULT_ROUTER = 10.0.0.1

    Default_router = 10.9.99.1

    ENABLE_BREAK = yes

    IP_ADDR = 10.0.0.1

    IP_AddR = 10.9.99.9

    MANUAL_BOOT = no

    NETMASK = 255.255.255.224

    NEW_IMAGE = yes

    PWR_INJECTOR_DETECT = 0016.c7fa. B394

    RELOAD_REASON = 9

    ROM_PERSISTENT_UTC = 1014941470

    TERMLINES = 0

    subnet mask = 255.255.255.0

    (2) how do something like "write erase" or even to recover the enable password while being in AP mode? Do I really need to do? What I see then makes me believe there is something with the AP (including SSH) configuration that prevents a join AP WLC.

    (3) the access point is turned on, connected to the switchport on the same VLAN L2 where WLC management interface. Then it starts and gets an IP address from the DHCP server located on another switch.

    * 00:00:08.695 Mar 1: % CAPWAP-5-CHANGED: CAPWAP changed state of DISCOVERY

    * 00:00:08.705 Mar 1: % CDP_PD-2-POWER_LOW: all disabled radios - AC_ADAPTOR (0000.0000.0000)

    * 00:00:09.629 Mar 1: % LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0, changed State to

    * 00:00:17.534 Mar 1: % ADDRESS_ASSIGN-6-DHCP: Interface GigabitEthernet0 assigned address DHCP 192.168.1.122, mask 255.255.255.0, hostname AP2

    Here's the question, why I see this on the console (pay attention to the line "transport input ssh")? It has nothing to do with an error for DTLS?

    * 12:44:21.034 Apr 12: % CAPWAP-5-CHANGED: CAPWAP changed state of DISCOVERY

    * 12:44:31.000 Apr 12: % CAPWAP-5-DTLSREQSEND: DTLS connection request sent peer_ip: 192.168.1.141 peer_port: 5246

    * 12 Apr 12:44:55.000: DTLS_CLIENT_ERROR:... /DTLS/dtls_connection_db.c:1924 retransmission count Max reached!

    * 12:44:55.000 Apr 12: % DTLS-3-HANDSHAKE_RETRANSMIT: Max retransmit count for 192.168.1.141 is reached.

    entry ssh transport

    ^

    Invalid entry % detected at ' ^' marker.

    (4) what I need to connect the PA-Manager controller interface to the network, or I can count on the AP the WLC find through its management interface. I've never worked with the 4400 series controllers. It all started with 5500 and they do not have the ap interface - manager.

    Cisco Guide says: "the management interface is also used for communications between access points and WLC layer two", so I assume that this is enough. Moreover, I can ping the AP of the WLC when connected to WLC via SSH and its management interface.

    (5) and finally, what is the problem with the discovery? That's what I see on the controller debugging capwap packages:

    Debugging (cisco Controller) > * spamReceiveTask: 12:53:52.253 Apr 12: <  start="" of="" capwap="" packet ="">>

    * spamReceiveTask: 12:53:52.253 Apr 12: control of CAPWAP mesg 192.168.1.122 Recd, Port 57046

    * spamReceiveTask: 12:53:52.253 Apr 12: 4, HLEN, Radio ID 0, WBID 1

    * spamReceiveTask: 12:53:52.253 Apr 12: Type of Msg: CAPWAP_DISCOVERY_REQUEST

    * spamReceiveTask: 12:53:52.253 Apr 12: Msg length: 29

    * spamReceiveTask: 12:53:52.253 Apr 12: Msg SeqNum: 0

    * spamReceiveTask: 12:53:52.253 Apr 12:

    * spamReceiveTask: 12:53:52.253 Apr 12: Type: CAPWAP_MSGELE_DISCOVERY_TYPE, length 1

    * spamReceiveTask: 12:53:52.253 Apr 12: Type of discovery: CAPWAP_DISCOVERY_TYPE_UNKNOWN

    * spamReceiveTask: 12:53:52.253 Apr 12:

    * spamReceiveTask: 12:53:52.253 Apr 12: Type: CAPWAP_MSGELE_WTP_FRAME_TUNNEL, length 1

    * spamReceiveTask: 12:53:52.253 Apr 12: the Tunnel Mode of frame WTP: NATIVE_FRAME_TUNNEL_MODE

    * spamReceiveTask: 12:53:52.253 Apr 12:

    * spamReceiveTask: 12:53:52.253 Apr 12: Type: CAPWAP_MSGELE_WTP_MAC_TYPE, length 1

    * spamReceiveTask: 12:53:52.253 Apr 12: WTP Mac Type: SPLIT_MAC

    * spamReceiveTask: 12:53:52.253 Apr 12:

    * spamReceiveTask: 12:53:52.253 Apr 12: Type: CAPWAP_MSGELE_VENDOR_SPECIFIC_PAYLOAD, length 10

    * spamReceiveTask: 12:53:52.253 Apr 12: identifier of the seller: 0 x 00409600

    * spamReceiveTask: 12:53:52.254 Apr 12:

    Discovery and how are we? L2 or L3?

    What about the rest of this thread is all over the place...:

    Can you confirm that the Interface of management and the Manager AP are both in the same vlan, same subnet and are configured with the same Port number?

    All these cases to 1 FPS and which port to connect has concerned me divide you the ports or something...

    The first provided newspapers imply that the AP could not reach at the AP Manager (but that the discovery of the Management Interface was very good)

    Newspapers second condition means that the AP never discovered a WLC at all (no attempt to join)...

    But then again, as Leo referenced, the area of Canada that I guess is a no - n... so maybe that was your problem original throughout and the 3600 join just because it is not compatible.

  • The controller throws an OAException, but the error message does not appear

    I made a controller to add validation business customized to a specific region of a page of Iprocurement. The controller throws an exception, but the error message does not appear on the page.

    Why when the exception is thrown, the system do not stop the processing of the page and displays the error message?

    I do not know the controller is reached because the page through JDeveloper debugging.

    -PageLayout

    -stackLayout

    -subTabLayout <-my controller is located in this region

    SerializableAttribute public class AccountsDistsValidationCO extends

    {oracle.apps.fnd.framework.webui.OAControllerImpl}

    ' Public Sub processFormRequest (pageContext OAPageContext, OAWebBean webBean)

    {

    super.processFormRequest (pageContext, webBean);

    throw new OAException ("something just happned");

    }

    }

    I should to use the following to solve my problem

    pageContext.putDialogMessage (message);

    pageContext.forwardImmediatelyToCurrentPage (null, true, null);

    Reference:

    OAException.ERROR is not throwing the error

  • Re-start a workflow in the return of the child TF

    Hello

    I use Jdev 12.1.2.0.0

    I have a workflow that calls another workflow. In the child workflow, I have a return activity that returns control to the movement of parent task.

    I need to restart the workflow as soon as default with the return of the child, the parent TF. The workflow share the data controls.

    Could you help me to achieve this?

    Thank you

    Mozakkir

    The activity return returns a string which ID flow of the target of the navigation in the parent task. If you return for example the string "start_again" in the child workflow, you can add a rule of wild-card navigation to the parent and add a navigation of this wild card the default activity rule and the name "start_again". When your child task flow end the return of workflow is executed and "start_again" is passed as the next navigation to the parent workflow. The Joker takes this navigation and the default activity is executed.

    Timo

  • Related workflow in the dialog box / popup window and Session Timeout

    Hi team.

    Using JDeveloper 11.1.2.4.

    We have several use cases that have linked the workflow shown in dialogues.  Dialogues are defined in the workflow.  The dialogues show very well related workflows.  However, if we have a session timeout, we are witnessing the login page that appears inside the window of dialogue instead of the home page.  Any suggestions out there?

    I have the text on a command button, invoking the action of dialogue BTF.

    useWindow = "true" windowModalityType = "applicationModal.

    Thank you

    BradW

    Hello.  Digging into the issue, we had a requirement to force the user to the logon page when the session expires.  However, the Service of Dialogue rich ADF fires and wants to ask us if we want to save the changes or continue leaving the popup.  To work around this problem, we made a JS call, follow these steps:

    AdfAgent.AGENT.removeBubbleEventListener(AdfPage.PAGE.getDomWindow(),"beforeunload", AdfDhtmlRichDialogService._beforeUnloadHandler);
    

    So, in summary, we had created a PagePhaseListener to inject some JS in every page to make a timer based client-side redirect.  However, the Service of RichDialogue ADF complain if there are changes in the pop-up window.  To work around this problem, the timer called the removeBubbleEventListener.

    It works, I think it might be a bit fragile between versions.

    BradW

  • Business Catalyst: Can I access the CRM extended through the API BC database?

    Hello!

    I'm trying to integrate our Business Catalyst with Salesforce account so that Business Catalyst handles all of our Web site and email marketing while Salesforce manages our sales data. I am trying to use a program called Podbox (that uses the API to maintain databases of synchronization), but can only the limited amount of lack of access, coordinated and none of my custom fields of BC. Does anyone know of a workaround for that all of my custom fields are visible via the API? Or are they available through the API and it would be a problem with Podbox? I tried to search in the documentation, but couldn't find much on the extended CRM database.

    Thanks for any help!

    ~ Rhyne

    Hello

    The extended CRM database API end points that you are looking for is not available in British Colombia at this point.

Maybe you are looking for