Set attribute value using plugins

Hi Experts,
I am facing error when setting the value of attribute in the event "OnInvestigationStartedEvent". Any suggestion to fix the issue
code:
            Session ses = onInvestigationStartedEvent.getSessionContext().getInterviewSession().getRuleSession();
            Attribute start = ses.getGlobalEntityInstance().getEntity().getAttribute("test_start_time");
            Date start_date = new Date();
            start.setValue(ses.getGlobalEntityInstance(), start_date);
Error:
25750 [http-apr-8080-exec-9] INFO com.oracle.determinations.engine.Session  - User setting attribute test_start_time, entity global, instance name global, session 1 to value 7/21/13 2:17 PM
25752 [http-apr-8080-exec-9] ERROR com.oracle.determinations.web.platform.templatingengine.ErrorRenderer  - A unauthorised change to the Rule Session has been detected.
com.oracle.determinations.interview.engine.exceptions.CorruptSessionException: A unauthorised change to the Rule Session has been detected.
  at com.oracle.determinations.interview.engine.data.local.RuleSessionManager.checkSessionIntegrity(RuleSessionManager.java:760)
  at com.oracle.determinations.interview.engine.data.local.RuleSessionManager.getRuleSession(RuleSessionManager.java:144)
  at com.oracle.determinations.interview.engine.local.LocalInterviewSession.getRuleSession(LocalInterviewSession.java:203)
  at com.oracle.determinations.interview.engine.data.model.InterviewEntityInstanceIdentifier.findEntityInstance(InterviewEntityInstanceIdentifier.java:73)
  at com.oracle.determinations.interview.engine.local.AttributeGoal.getNextScreen(AttributeGoal.java:112)
  at com.oracle.determinations.interview.engine.local.LocalInterviewSession.getNextScreen(LocalInterviewSession.java:222)
  at com.oracle.determinations.web.platform.controller.actions.InvestigateAction.getResource(InvestigateAction.java:65)
  at com.oracle.determinations.web.platform.servlet.WebDeterminationsServlet.doGet(WebDeterminationsServlet.java:112)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
  at com.oracle.determinations.web.platform.util.CharsetFilter.doFilter(CharsetFilter.java:46)
  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
  at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
  at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
  at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1008)
  at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
  at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1852)
  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
  at java.lang.Thread.run(Unknown Source)
Thanks,
Vinay

Vinay,
When working in an Interview Engine event handler, you need to use Interview Engine objects to set values. Have a look at the example "Use the OnInterviewSessionCreatedEvent to pre-seed data into a newly created session" in the "Oracle Policy Automation Developer's Guide"
Your code should look something like:
// get the globalInstance from a new InterviewUserData;
InterviewUserData data = new InterviewUserData();
InterviewEntityInstance globalInstance = data.getGlobalInstance();
// set the test_start_time
Date start_date = new Date();
globalInstance.setValue("test_start_time", start_date );
// submit the data to the Interview session.
TransactionResult result = session.submit(data);
Hope this helps.
Cheers
Frank

Similar Messages

  • Need to add row and set attribute value on pageload

    Guys,
    On my page based on the pageflowscope variable value, i need to add a row for master and one row for detail viewobject and set attribute values. (Some of the attribute are LOV and Checkboxes as well)
    I am using following code to create records.....records are being added but i am not able to set the attributes
    OperationBinding ob;
    ob = ADFUtil.findOperationBinding("Create");
    ob.execute();
    ob = ADFUtil.findOperationBinding("CreateInsert3");
    ob.execute();
    I am using following code to set the attributes value
    DCIteratorBinding dc1 = ADFUtil.getBindingIterator("firstiterator");
    DCIteratorBinding dc = ADFUtil.getBindingIterator("seconditerator");
    row1=dc1.getCurrentRow();
    row=dc.getCurrentRow();
    row.setAttribute("activest","A");
    row1.setAttribute("type","dc14");
    Anything i am doing wrong here or any suggestion to try is greatly appreciated....

    Vinod,
    Yes commit button is there and yes its also has entry in pagedef...
    When I open the same page on edit mode and i can edit regular record and save them
    Problem is that when i open the page on new mode and try to add rows on page load..... and setting values as described above.... save button somehow doesn't work...
    seems like after i add the rows on the fly, i need to refresh the binding?
    any help is greatly appreciated....
    thank you guys

  • How do I retain a PDF form widget's design when setting its value using Javacript in Acrobat?

    I've been experimenting with interactive PDF forms in InDesign and JS in Acrobat. I think I've encountered something that might be a bug: widget design is overriden when using Javascript to set the field's value in Acrobat. Here's what a checkbox, for example, should look like when checked:
    However performing:
    var f = this.getField("Checkbox");
    f.value = "Yes";
    in the JS Console results in the widget's appearance defaulting to acrobat's:
    I've tried every single widget property documented in Acrobat's Javascript API Reference to no avail. Initially, checking/unchecking using the mouse works fine. Once the value has been set using JS, Acrobat's default black check character is used for all subsequent toggling, including when using the mouse...
    How does InDesign export interactive PDFs with custom icons for widgets? Is there any way to enforce the use of those icons using JS in Acrobat Pro? What's the difference between selecting a checkbox or a radio button using the mouse and setting its value using JS?

    I thought it might be the case, too, but all widgets have the same properties both before and after setting the value with JS. I did this check using all documented properties in Acrobat JS Reference in an attempt to figure out what might be going on.
    By the way, I don't think Indesign necessarily uses glyphs for the checked state of widgets, although in this case a glyph is used (albeit with different stroke and fill colours for the glyph, acrobat doesn't allow setting these properties AFAIK). With Indesign CS6 it seems you can practically use any Indesign tool to design the widget's On and Off states. So I'm thinking that maybe Indesign exports these with button-like properties where there are no restrictions on appearance (I think there is an "icon" property/object for buttons or something like that). However Acrobat treats them as checkboxes, so if that is the case it is more of a hack. Is there a way to probe an object's various properties other than using JS or the properties pop-up dialog?

  • OAI and Workflow - Setting Attributes to use in Notifications

    Does anyone know how I go about getting at attributes in a message that goes through the Workflow Adapter?
    What I am trying to do is to create a notification, which is more meaningful by adding some of the details I've passed through in the PARAMETER_LIST attributes of the Workflow message.
    Any ideas?
    Ian

    Kavitha,
    I've managed to do it, but using a simpler method (I think).
    In iStudio
    My Common View contains the attributes as follows:-
    EMPLOYEE_NUMBER (String)
    START_DATE (Date)
    LAST_NAME (String) and
    FIRST_NAME (String)
    My subscribing Workflow Event maps these Common View values into the PARAMETER_LIST array in the Workflow message. The mappings are as follows:-
    PARAMETER_LIST[v1].NAME=SetConstant (EMPLOYEE_NUMBER, "EMPLOYEE_NUMBER")
    PARAMETER_LIST[v1].VALUE=CopyFields (EMPLOYEE_NUMBER)
    PARAMETER_LIST[v2].NAME=SetConstant (START_DATE, "START_DATE")
    PARAMETER_LIST[v2].VALUE=CopyFields (START_DATE)
    PARAMETER_LIST[v3].NAME=SetConstant (LAST_NAME, "LAST_NAME")
    PARAMETER_LIST[v3].VALUE=CopyFields (LAST_NAME)
    PARAMETER_LIST[v4].NAME=SetConstant (FIRST_NAME, "FIRST_NAME")
    PARAMETER_LIST[v4].VALUE=CopyFields (FIRST_NAME)
    I also created the publishing Workflow Event. To get the values out of the PARAMETER_LIST array, I simply used the 'TrueConditionalCopy' transformation. For example,
    EMPLOYEE_NUMBER=TrueConditionalCopy (PARAMETER_LIST[v1].NAME, PARAMETER_LIST[v1].VALUE, "EMPLOYEE_NUMBER")
    In Workflow Builder
    I created 4 additional ATTRIBUTES in the Workflow:-
    EMPLOYEE_NUMBER_ATT (Type - Text)
    START_DATE_ATT (Type - Text)
    LAST_NAME_ATT (Type - Text) and
    FIRST_NAME_ATT (Type - Text)
    I then created my MESSAGE (Called 'Approve Update Employee'). I added 4 new MESSAGE ATTRIBUTES to this message:-
    EMPLOYEE_NUMBER (Type - Text, Default Type - Item Attribute, Value - EMPLOYEE_NUMBER_ATT)
    START_DATE (Type - Text, Default Type - Item Attribute, Value - START_DATE_ATT)
    LAST_NAME (Type - Text, Default Type - Item Attribute, Value - LAST_NAME_ATT)
    FIRST_NAME (Type - Text, Default Type - Item Attribute, Value - FIRST_NAME_ATT)
    In the Message Body I used the '&EMPLOYEE_NUMBER' notation to bring back the values into the message when the Workflow runs. For example, "This message has been created to tell you that Employee &EMPLOYEE_NUMBER has changed some details. Details are First Name is &FIRST_NAME, Last Name is &LAST_NAME and their start date is &START_DATE. Please Approve or Reject this change by using the buttons below."
    In the Workflow Diagram
    After the START node (Subscribe Maintain_Employees.Update_Employees) I added a series (4 in all) of "Get Event Property" Standard Workflow functions (GETEVENTPROPERTY) in order to find out the values from my parameter list.
    As an example, here is the one I did to get the Employee Number.
    In the 'Node Attributes' tag (when you double-click on the "Get Event Property") set the values as follows:-
    Name = Event, Type = Item Attribute, Value = OAI Message
    Name = Property, Type = Constant, Value = Event Parameter
    Name = Event Parameter, Type = Constant, Value = EMPLOYEE_NUMBER
    Name = Item Attribute, Type = Constant, Value = EMPLOYEE_NUMBER_ATT
    (Note that the 'Event Parameter' is the name you set it to when you did the SetConstant mapping i.e. EMPLOYEE_NUMBER. The 'Item Attribute' is the target ATTRIBUTE that the result of calling the GETEVENTPROPERTY will be put.)
    I finished off the Workflow by creating a NOTIFICATION called 'Update Employee Notification' which uses the 'Approve Update Employee' message, and added the Result Type of 'Approval'.
    If the message is APPROVED, then the workflow calls the Publish Event (END node type), if REJECTED then the Workflow goes to an END node (and not processed any further).
    My Workflow looks like this.
    START (Subscribe Maintain_Employees.Update_Employees)
    GETEVENTPROPERTY (to get EMPLOYEE_NUMBER_ATT value)
    GETEVENTPROPERTY (to get START_DATE_ATT value)
    GETEVENTPROPERTY (to get LAST_NAME_ATT value)
    GETEVENTPROPERTY (to get FIRST_NAME_ATT value)
    Update Employee Notification --> REJECTED --> END
    APPROVED
    END (Publish Maintain_Employees.Update_Employee)
    I'm not sure whether this is a good approach or not. The biggest upside is that I didn't have to do any additional coding. I only used standard OAI and Workflow functionality.
    Thanks again for your help.
    Ian

  • Trying to set attribute value based on user selection of another attribute

    I am trying to set an attribute value based on the user's selection of another attribute using JSP EditCurrentRecord. When the user chooses the AreaId from the combo box I want to look up the value of the RgnID, preferrably without the user seeing this field at all. Below is my code which does not work. When I run it I get Error Message: null. Any suggestions are appreciated!!
    <jsp:useBean id="RowEditor" class="oracle.jbo.html.databeans.EditCurrentRecord" scope="request">
    <%
    RowEditor.initialize(pageContext, "MyProject2_package1_SRSecurityModule.UsrAreaWhView");
    RowEditor.setTargetUrl("UsrAreaWhView_SubmitInsertForm.jsp");
    RowEditor.createNewRow();
    RowEditor.setDisplayAttributes("OracleId, RgnId, RegionKey, AreaId");
    RowEditor.useEditField("OracleId");
    RowEditor.getFieldRenderer("OracleId").setPromptText("Oracle ID");
    RowEditor.useEditField("AreaId");
    RowEditor.useComboBox("AreaId","AreaWhView","Area","AreaKey");
    RowEditor.getFieldRenderer("AreaId").setPromptText("Area");
    RowEditor.useEditField("RgnId");
    RowEditor.getFieldRenderer("RgnId").setPromptText("Region");
    RowEditor.getRowSet().getViewObject().getCurrentRow().setAttribute("RgnId",RowEditor.getRowSet().getViewObject().getCurrentRow().getAttribute("RegionKey"));
    RowEditor.setReleaseApplicationResources(true);
    RowEditor.render();
    %>
    </jsp:useBean>

    ok, sorry everyone for making it confusing; this is what I am
    trying to acheieve;
    I would like the user to populate my database with thier
    username AND userID. I have a dropdown box with thier username
    dynamicly populated already, what I am trying to achieve, is a way
    of when the user selects thier username either another dropdown or
    a hidden field is automatically populated with the appropiate
    userID (to match thier username). Now I could just have two
    dropdowns and they select both, but i'd rather avoid the
    possibility of mismatches, and that is why I would like it to be
    automatic and based on thier username selection...
    Does that make sense....?

  • Is it possible to get and Set attribute value in OVD through JNDI or Java

    Hi,
    I have a requirement to read an OVD Attribute value from a Jsp Page and set the Attribute value in OVD.
    Is it possible to achieve it through JAVA/JNDI code, Any pointers or code snipplet are welcome.
    Thanks
    Ak

    Use JNDI with LDAP provider or another LDAP java library, plenty of examples on google

  • Parsing attribute value using dbms_xslprocessor

    Hi,
    We have a xmltype column which has the following structure :
    <?xml version="1.0" encoding="utf-16"?>
    <myFields xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xml:lang="en-us" xmlns="http://schemas.microsoft.com/office/infopath/2003/myXSD/2009-05-06T14:08:30">
    <PayToTheOrderOf>TESTING</PayToTheOrderOf>
    <AllocationList>
    <Allocation d3p1:LineNum="0" xmlns:d3p1="http://schemas.microsoft.com/office/infopath/2003/myXSD/2009-05-06T14:08:30">
    <d3p1:Name>ANNE PETER</d3p1:Name>
    <d3p1:StreetAddress2>600 N WEST ST</d3p1:StreetAddress2>
    <d3p1:City>BALTIMORE</d3p1:City>
    <d3p1:State>MD</d3p1:State>
    </Allocation>
    <Allocation d3p1:LineNum="1" xmlns:d3p1="http://schemas.microsoft.com/office/infopath/2003/myXSD/2009-05-06T14:08:30">
    <d3p1:Name>DAVID GREY</d3p1:Name>
    <d3p1:StreetAddress2>EAST AVE</d3p1:StreetAddress2>
    <d3p1:City>4</d3p1:City>
    <d3p1:State>MD</d3p1:State>
    </Allocation>
    </myFields>"
    Can anyone tell me how to parse the attribute value from the tag, "Allocation". Example: I would like to get the value from "LineNum" attribute. I would like to use dbms_xslprocessor in pl/sql.
    Thanks in advance.

    DECLARE
    l_return xmltype;
    l_num VARCHAR2 (10);
    l_namespace1 VARCHAR2(200) := 'xmlns="http://schemas.microsoft.com/office/infopath/2003/myXSD/2009-05-06T14:08:30"';
    l_namespace2 VARCHAR2(200) := 'xmlns:d3p1="http://schemas.microsoft.com/office/infopath/2003/myXSD/2009-05-06T14:08:30"';
    l_parser dbms_xmlparser.parser;
    l_doc dbms_xmldom.domdocument;
    l_nl dbms_xmldom.domnodelist;
    l_n dbms_xmldom.domnode;
    BEGIN
    SELECT xmltype('<?xml version="1.0" encoding="utf-16"?>
    <myFields xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xml:lang="en-us" xmlns="http://schemas.microsoft.com/office/infopath/2003/myXSD/2009-05-06T14:08:30">
         <PayToTheOrderOf>TESTING</PayToTheOrderOf>
         <AllocationList>
              <Allocation d3p1:LineNum="0" xmlns:d3p1="http://schemas.microsoft.com/office/infopath/2003/myXSD/2009-05-06T14:08:30">
                   <d3p1:Name>ANNE PETER</d3p1:Name>
                   <d3p1:StreetAddress2>600 N WEST ST</d3p1:StreetAddress2>
                   <d3p1:City>BALTIMORE</d3p1:City>
                   <d3p1:State>MD</d3p1:State>
              </Allocation>
              <Allocation d3p1:LineNum="1" xmlns:d3p1="http://schemas.microsoft.com/office/infopath/2003/myXSD/2009-05-06T14:08:30">
                   <d3p1:Name>DAVID GREY</d3p1:Name>
                   <d3p1:StreetAddress2>EAST AVE</d3p1:StreetAddress2>
                   <d3p1:City>4</d3p1:City>
                   <d3p1:State>MD</d3p1:State>
              </Allocation>
         </AllocationList>
    </myFields>')
    INTO l_return
    FROM dual;
    l_parser := dbms_xmlparser.newParser;
    dbms_xmlparser.parseClob(l_parser, l_return.getclobval());
    l_doc := dbms_xmlparser.getDocument(l_parser);
    dbms_xmlparser.freeParser(l_parser);
    l_nl := dbms_xslprocessor.selectNodes(dbms_xmldom.makeNode(l_doc),'/myFields/AllocationList/Allocation', l_namespace1);
    FOR i IN 1 .. dbms_xmldom.getLength(l_nl) LOOP
    l_n := dbms_xmldom.item(l_nl, i-1);
    dbms_xslprocessor.valueOf(l_n,'@d3p1:LineNum',l_num, l_namespace2);
    dbms_output.put_line(l_num);
    END LOOP;
    dbms_xmldom.freeDocument(l_doc);
    END;

  • Setting parameter value using hyperlink

    I have a jsp search page which shows records in an html table. In each table row I have the id of the record. I would like to use this id value as a hyperlink and set the value of a hidden field to the id and then submit the form. my idea is to open a new page showing all the details of the specified record by the id which is sent as a parameter from the search page as soon as I click the id hyperlink. I am trying to use javascript, but I am a bit green in this area. I would appreciate any help.

    You could easily do this with JSPs, HTML and JSTL - there's no need for JavaScript in this case.

  • Set initial value using SQL

    Hi,
    How do I set the 'initial value' property of a default value using an SQL statement?
    Any help appreciated,
    Rob

    Hi Kevin,
    you are right. It is sometimes confusing for the users, but it is - as you said - like setting the initial value, of course you can do some more complexity there.
    One big problem is. If you want to set the initial values in a detail record of a master-detail relatioship depending on the master-record, you CAN'T use it. If you change the master record to a record which doesn't have a detail, the WHEN-CREATE-RECORD trigger fires before the master-record really changes. That means, the detail will be initialized with data from the old master-record (the one you were in, before changing the master record). Stupid thing.
    I never tried the WHEN-DATABASE-RECORD trigger, I even don't know how it works. I think I have to check what it is doing.
    Regards,
    Torsten

  • How to Set Field value using javascript?

    I have a Field in First Page called 'SO'. I want to populate this field from the field value of SD_ITEMS.DATA.VBELN first row in the each page. Please help me with javascript to set this value.
    Thank you.
    Ranji

    I have a Field in First Page called 'SO'. I want to populate this field from the field value of SD_ITEMS.DATA.VBELN first row in the each page. Please help me with javascript to set this value.
    Thank you.
    Ranji

  • Selcect/ update attribute value using xpath navigator/ linq to xml

    Hi Folks,
    below is my xml string and the highlighted bold attribute value needs to update. Since this element contains prefix im not able to select teh particular element. if i remove the prefixx im able to select but i need to keep prefix.
        <IOP:MtvnSvcReq xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:IOP="mtvnCWExternInteropReq" xmlns:IOP1="mtvnExtInteropReqData" xmlns:PR1="mtvnPRInteropReqData">
                              <IOP:Svc>
                                                 <IOP1:PR1>
                                                       <PR1:PRExternSSOReqData>
    <PR1:UserId>abcd</PR1:UserId>
                                                       </PR1:PRExternSSOReqData>
                                                 </IOP1:PR1>
                                </IOP:Svc>
                        </IOP:MtvnSvcReq>
    Thanks 

    Hi Pulikk,
    Do you mean you want  to change the attribute value(abcd)? If so,
    Please try the following code, i tested on my side, it changed successfully.
    //Here is the variable with which you assign a new value
    string newValue = string.Empty;
    XDocument objDoc = XDocument.Load(@"yourdata.xml");
    XNamespace IOP = "mtvnCWExternInteropReq";
    XNamespace IOP1 = "mtvnExtInteropReqData";
    XNamespace PR1 = "mtvnPRInteropReqData";
    foreach (var node in objDoc.Descendants(PR1 + "UserId"))
    node.Value = newValue;
    objDoc.Save(@"yourdata.xml");
    Have a nice day!
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to pass a VO attribute value using Page Level button

    Hi Gurus,
    Consider the Sinple Page having a information header seaction (having name, ID (form value), and status) and one details section.this page has a page button bar having one button (say XYZbtn).
    Requirment : when the user clicks on the XYZbtn , this should navigate the user to another page and passing the ID as the parameter.
    Note : As we are not modifying the CO, so we cannot write code in PFR() to redirect.
    So we have added a button XYZbtn (using customization) and set its destination URI property as OA.jsp?page=/myorg/oracle/apps/../../../webui/NewPG&ID={@ID}
    This takes the user to newPG but passes null for ID
    Tell me pls, how can we pass the value of ID to another page using a button (or link) 's Destination URI property, how do we send this value ?
    thanks
    Chaitanya

    You can pass id as url parametre like :
    /myorg/oracle/apps/../../../webui/NewPG&ID=xxx
    and retrieve the parametre value in second page in process request of controller like
    string s=pageContext.getParameter("ID");
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Error when replacing attribute value using LDAPConnection.modify()

    I am using Directory SDK 4.1 from netscape. I am trying to replace/modify the value of an attribute for a particular dn. Below is the code:
    LDAPConstraints constraints = new LDAPConstraints();
    constraints.setReferrals(true);
    LDAPAttribute attribute = new LDAPAttribute("passwordexpwarned","1");
    LDAPModification mod = new LDAPModification
    (LDAPModification.REPLACE , attribute);
    getLDAPConnection().modify(dn, mod,constraints);
    Automatic Referral Handling is enabled and I want to use to anonymous authentication. When I run the code, I get the following error:
    java.lang.ClassCastException: netscape.ldap.LDAPConstraints     at netscape.ldap.LDAPConnection.performReferrals(LDAPConnection.java:5057)
    at netscape.ldap.LDAPConnection.modify LDAPConnection.java:3121)
    at netscape.ldap.LDAPConnection.modify(LDAPConnection.java:2981)
    at PasswordExpiration.setPasswordWarnedAttribute(PasswordExpiration.java:305)
    Has anyone encountered the same error or could anyone provide me some input on what could be the reason for the error? I would greatly appreciate any help in this matter.
    Thanks for your time.

    you must use LDAPSearchConstraints instead of LDAPConstraints;
    the reason is a minor but awkward bug in LDAPJDK;

  • Setting default value using pl/sql

    I am having trouble writing the correct syntax for either a pl/sql expression or function on the default value section for a checkbox item. I share the same form for showing data in edit mode and creating new records. When the instance is a new record, I want an item called P12_ACTIVE to be set to Y (yes).
    I have tried several variations like:
    begin
    select distinct 'Y'
    into :P12_ACTIVE
    from VMS_PROSPECTING_ITEMS
    where order_id != :P12_ORDER_ID;
    end;
    -OR-
    declare defaultvalue varchar2(10);
    begin
    if not exists (select *
    from VMS_PROSPECTING_ITEMS
    where order_id = :P12_ORDER_ID) then
    defaultvalue := 'Y' ;
    end if;
    return defaultvalue ;
    end;
    -OR-
    as a pl/sql expression....
    select distinct 'Y'
    from VMS_PROSPECTING_ITEMS
    where order_id != :P12_ORDER_ID;
    end;
    Dawn

    This is my LOV definition for the item:
    STATIC: ;Y
    If I put Y as the default value, then the check box is always marked, even when the record is one that was edited; therefore potentially changing the active status incorrectly. I would like one of my examples to work right. My second example throws this error:
    Error ERR-9131 Error in PLSQL function body for item default code, item=P12_ACTIVE
    ORA-06550: line 3, column 8: PLS-00204: function or pseudo-column 'EXISTS' may be used inside a SQL statement only ORA-06550: line 3, column 1: PL/SQL: Statement ignored.

  • Set property values using  javascript

    How can I recreate this while using javascript?
    <PARAM NAME="AllowSelection" VALUE="false">
    I tried this...
    document.Grid.setPropertyValue(AllowSelection,false);
    but it did not work.  Where is the documentation that would describe this in its entirety.  Thank you in advance.

    Chip,
    here is the Javascript for you.
    document.iGrid.getGridObject().setAllowSelection(NEWVALUE);
    Documentation you can find under the help Link in MII. You can also use the SAP MII Script Assistant
    to see all supported methods .
    Regards
    Pedro

Maybe you are looking for

  • IPhone 4S to iPad 2 - Settings won't transfer.

    I used my iPhone 4S backup from iCloud to set up my new iPad, but none of the settings, contents, or game data transferred over. How do I get EVERYTHING to transfer? All my apps are set up individually I stead of grouped in folders. And none of my co

  • Accrual Reversal

    Friends, Apart from FBS1 & F.81 any other way to post the Accural and Reversal entreis,because our user feel difficult to use the FBS1 TC For posting the Accural Entry, Please suggest. Thanks & Regards BK

  • Adobe reader sometimes does not open

    Hi there, On the16 September 2014, there was an update to Adobe Reader version 11.0.09 (we are now at the version 11.0.10). Since then, on one of my computers, I have the following problem: No way to open a pdf file on first try if I (double)click on

  • Adding New RSS Feed on Mail 5.2 Not Working

    I can't add a new RSS feed on Mail 5.2     On Mail 5.2, I clicked on File > Add RSS Feed     but nothing happens.   Can anyone help?   Thanks.

  • Imported images gray out...won't drag to timeline???

    Have a new intel Duo 2 Core iMac...iMovie6... just about finished with a short video, trying to add several imported jpeg images at the end. When I click on the image, it highlights blue...thus letting me know it recognizes I've connected with it. As