Cursor to add data through a wizard

Hi All,
Thanks in advance for any help.
I have several insert statements using cursors but am getting caught up on a few problems.
For the first portion I was trying to insert the id and description of a variable at the same time with no luck. Below is the code I am using however I get a ORA-01422: exact fetch returns more than requested number of rows error.
I am not sure if a select into statement is the right thing to do here, any help is appreciated.
FOR i IN 1..v_wi_phase.count
  Loop
  select description into v_description
  from trs_work_items
  where pha_id = v_wi_phase(i);
-- Insert data in the TRS_WORK_ITEMS table
    INSERT INTO TRS_WORK_ITEMS
    (ACT_ID
    ,PHA_ID
    ,IS_COMMENT_REQUIRED
    ,IS_OVERTIME_ALLOWED
    ,IS_BILLABLE
    ,OUT_ID
    ,START_DATE
    ,END_DATE
    ,ORG_ID
    ,DESCRIPTION
    VALUES
    (v_activity_id
    ,v_wi_phase(i)
    ,v_wi_is_comment_required
    ,v_wi_is_overtime_allowed
    ,v_wi_is_billable
    ,v_wi_out_id
    ,v_wi_start_date
    ,v_wi_end_date
    ,v_org_id
    ,v_wi_description || '-' || v_description
    )RETURNING ID INTO i_work_item_id;
End Loop;My second problem is that I need to return multiple ids from an insert statement but am not sure how to do this.
below is my attempt:
FOR i IN 1..v_work_item_id.count
    Loop
     FOR x IN 1..v_pha_id.count
     Loop
      If v_pha_id(x) = v_work_item_id(i)
    then
      INSERT INTO TRS_ACTIVITY_ALLOCATIONS
      (ACT_ID
      ,EMP_ID
      ,SEC_ID
      ,WIT_ID
      ,START_DATE
      ,END_DATE
      VALUES
      (v_activity_id
      ,null
      ,v_allocation_sec_id
      ,v_work_item_id(i)
      ,v_allocation_start_date
      ,v_allocation_end_date
end if;
    End Loop;
      End Loop;

Assuming that V_WORK_ITEM_ID is defined as some sort of collection rather than as a scalar, you could replace your LOOP and do something like (assuming that all the other local variables are initialized outside your loop
-- Insert data in the TRS_WORK_ITEMS table
    INSERT INTO TRS_WORK_ITEMS
    (ACT_ID
    ,PHA_ID
    ,IS_COMMENT_REQUIRED
    ,IS_OVERTIME_ALLOWED
    ,IS_BILLABLE
    ,OUT_ID
    ,START_DATE
    ,END_DATE
    ,ORG_ID
    ,DESCRIPTION
    SELECT
     v_activity_id
    ,wi_phases.column_value
    ,v_wi_is_comment_required
    ,v_wi_is_overtime_allowed
    ,v_wi_is_billable
    ,v_wi_out_id
    ,v_wi_start_date
    ,v_wi_end_date
    ,v_org_id
    ,v_wi_description || '-' || trs_phases.description
    FROM table( v_wi_phase ) wi_phases,
         trs_phases
   WHERE trs_phases.id = wi_phase.column_value
RETURNING ID BULK COLLECT INTO v_work_item_id;This doesn't seem to smell right for lack of a better term, though.
1) If V_WORK_ITEM_ID is a collection, the name ought to imply that it is a collection, not that it is a scalar number
1a) V_WI_PHASE is, similarly, not a particularly apt name for a collection of phases
2) It would seem odd that all the other local variables are initialized outside the loop. Maybe it makes sense that all these attributes are independent of the data in the V_WI_PHASE collection but the names seem to imply that they have something to do with phases. The fact that there is a TRS_PHASES table and a V_WI_PHASE collection also seems confusing at least. It would seem like the other columns in the SELECT ought to be populated with data from one of these two.
Justin

Similar Messages

  • How to add data through matrix from sales order row level to

    user defined document type table ...
    i created matrix in user defined form, i placed one edit text box on that form
    when i entered docnum of sales order the data of sales order row level should have to
    upload to matrix , after fill up the some data in matrix that data should have to add to the user defined document type table
                                any one have code pls post it
                                            thanq

    Hi rajeshwar
    Here is a sample function related to ur senario. just check it out and use the concepts.
    Here I have used a CFL to get the itemcode and I have used a query to  add data to matrix.
    This is a function used.
    Private Sub AddValuesInMatrix(ByRef name As String)
            Try
                'Dim quantemp As Double
                oForm = SBO_Application.Forms.Item("itemdts")
                oMatrix = oForm.Items.Item("matrix").Specific
                Dim rs As SAPbobsCOM.Recordset = ocompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
                '//gitemdesc = "SELECT T0.[ItemName] FROM OITM T0 WHERE T0.[ItemCode] ='" & name & "'"
                oMatrix.Clear()
                rs.DoQuery("SELECT T0.[DocEntry], T0.[ItemCode], T0.[Dscription], T0.[Quantity], T0.[Price], T0.[TaxCode] FROM dbo.[POR1] T0 WHERE T0.[ItemCode] ='" & name & "'")
                rscount = rs.RecordCount
                If (rscount < 1) Then
                    SBO_Application.StatusBar.SetText("No Items Found", SAPbouiCOM.BoMessageTime.bmt_Short)
                Else
                    oForm.Freeze(True)
                    ITE = True
                    For i As Integer = 1 To rs.RecordCount
                        oMatrix.AddRow()
                        oMatrix.Columns.Item("V_5").Cells.Item(i).Specific.Value = rs.Fields.Item("DocEntry").Value
                        oMatrix.Columns.Item("V_4").Cells.Item(i).Specific.Value = rs.Fields.Item("ItemCode").Value
                        oMatrix.Columns.Item("V_3").Cells.Item(i).Specific.Value = rs.Fields.Item("Dscription").Value
                        oMatrix.Columns.Item("V_2").Cells.Item(i).Specific.Value = rs.Fields.Item("Quantity").Value
                        'quansum = quansum + rs.Fields.Item("Quantity").Value
                        oMatrix.Columns.Item("V_1").Cells.Item(i).Specific.Value = rs.Fields.Item("Price").Value
                        'pricesum = pricesum + rs.Fields.Item("Price").Value
                        oMatrix.Columns.Item("V_0").Cells.Item(i).Specific.Value = rs.Fields.Item("TaxCode").Value
                        SBO_Application.SetStatusBarMessage("Data Loading In Progress Please Wait.....>>> " & i & " / " & rs.RecordCount, SAPbouiCOM.BoMessageTime.bmt_Short, False)
                        rs.MoveNext()
                    Next
                    ITE = False
                    oMatrix.AutoResizeColumns()
                    SBO_Application.StatusBar.SetText("Data Loading Completed", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Success)
                    oForm.Freeze(False)
                    oForm.Refresh()
                End If
            Catch ex As Exception
                SBO_Application.MessageBox("Matrix Load Function : " & ex.Message)
                ITE = False
            End Try
        End Sub
    -Anto

  • Fastest Way To Add Data Through DI

    For Examples there're 5 or more rows in Matrix when i press add button it takes too long time about 10 seconds more. i dont know whether there's faster way. i did matrix row looping from row 1 to Matrix.rowcount to do oDocument_Lines.add .After all data add i do oDocument.add.
    I know that many developers complaint about the DI Performance, but is there any way to enhance DI performance ? Thanks

    Hi Hamdi,
    There is a work around, If you bind the Matrix to a user defined table (It can be a blank table), and then use the oMatrix.LoadFromDatasource and oMatrix.FlushtoDatasource, you can manipulate/collect/call the data using the dbdatasource object.
    This is quite fast, and I have had no problem with it, and also using a Documents object to do a goods receipt.
    To recap, bound dbdatasource (blank if needed) to a usertable, use flushtodatasource and LoadFromDatasource and use dbdatasource.offset method
    I attach some sample Code.
    Populate your Matrix
    oMatrix.FlushToDataSource()
    For i = 0 To Scanindb.Size - 1
                            If Trim(Scanindb.GetValue(4, i)) = "No" Then
                                ' Right we need to add the item
                                OITMOBject.ItemCode = Trim(Scanindb.GetValue(0, i))
                                OITMOBject.Manufacturer = "-1"
                                OITMOBject.ItemsGroupCode = "101"
                                OITMOBject.UserFields.Fields.Item(4).Value = Scanindb.GetValue(3, i)
                                OITMOBject.UserFields.Fields.Item(5).Value = Scanindb.GetValue(2, i)
                                ret = OITMOBject.Add
                                SBO_Application.MessageBox(ret)
                            End If
                        Next i

  • Pls Help me with steps to add data from xml file to SAP B1 through B1iSN.

    Pls Help me with steps to add data from xml file to SAP B1 through B1iSN. I  am getting stuck in xsl transformation. not able to understand where the mapping code needs to be added.
    Pls explain me the steps for adding data from xml to B1 quotation step by step.
    thanks and regards
    Priya

    Hi,
    Have you checked this: https://sap.na.pgiconnect.com/p45508295/?launcher=false&fcsContent=true&pbMode=normal ?
    Thanks,
    Gordon

  • How to add data in IT 184 through portal.

    Hi Experts,
    I want to add data in IT 184 .
    I am adding the project description of an employee in this IT type.
    I will provide the link on portal to add the data in this infotype by it is not possible for me to update the data.
    Please guide me.
    Thanks in Advance.
    Ashish

    Hi,
    Are you implementing it in Singapore.
    I think this Infotype is specific for Singapore.
    Check in Table T582L.
    Please reward points.
    Regards
    Venu

  • How to create a text file or XML file  and add content through  code into it...

    Hi Everyone,
    How to create a text file and add content through the code to the text file eform javascript ......orelse can we create a text file in life cycle designer...
    Else say how to create a new XML file through the code and how some content like Example "Hello World".

    You can create a text file as a file attachment (data object) using the doc.createDataObject and doc.setDataObjectContents:
    http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.450.html
    http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.528.html
    You can then export the file with the doc.exportDataObject method:
    http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.463.html
    This won't work with Reader if it hasn't been given the file attachment usage right with LiveCycle Reader Extensions.

  • I want to transfer data through the serial port in the same coding that hyperterminal uses. How can i do it?

    The serial port seems to be working, and labview seems to be sending the data, but the problem is in which format does it send the data, because in hyperterminal i just input the string "JDX" and it sends it to my device, with labview it sends something but my device does not recognize it.

    nobuto wrote:
    > I want to transfer data through the serial port in the same coding
    > that hyperterminal uses. How can i do it?
    >
    > The serial port seems to be working, and labview seems to be sending
    > the data, but the problem is in which format does it send the data,
    > because in hyperterminal i just input the string "JDX" and it sends it
    > to my device, with labview it sends something but my device does not
    > recognize it.
    Hyperterminal adds the carriage return/line feed to the string which is
    generated by the return key to send out the current line. LabVIEW simply
    sends out what you tell it, so try to set the string to "Show \ Display"
    format and add a \r or \n or \r\n to the command you want to send out.
    Assumes of course that you set the right baudr
    ate/bits/parity etc in
    LabVIEW with the VISA property node, when opening the serial port.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Add record through pop to search view criteria table?

    Hi,
    I am trying to add data from pop to search view criteria table but i am strukked at inserting data through popup...
    i got nullpointer exception like this
    <RegionRenderer> <encodeAll> The region component with id: pt1:r1 has detected a page fragment with multiple root components. Fragments with more than one root component may not display correctly in a region and may have a negative impact on performance. It is recommended that you restructure the page fragment to have a single root component.
    <RowGatherCallback> <processComponent> Illegal child component ("javax.faces.component.html.HtmlOutputText@17cc21b" id="j_id256") detected inside parent component ("panelGridLayout" with clientId="pt1:r1:1:pgc1:pt_pgl3"). The child component must instead be of type "gridRow" instead.
    <Utils> <buildFacesMessage> ADF: Adding the following JSF error message: java.lang.NullPointerException
    java.lang.NullPointerException
        at oracle.jbo.server.QueryCollection.getRowSetRefs(QueryCollection.java:2675)
        at oracle.jbo.server.ViewObjectImpl.notifyRowUpdated(ViewObjectImpl.java:12174)
        at oracle.jbo.server.ViewObjectImpl.afterRowUpdate(ViewObjectImpl.java:13921)
        at oracle.jbo.server.ViewObjectImpl.sourceChanged(ViewObjectImpl.java:14224)
        at oracle.jbo.server.EntityCache.sendEvent(EntityCache.java:1566)
        at oracle.jbo.server.EntityCache.deliverEntityEvent(EntityCache.java:1582)
        at oracle.jbo.server.EntityCache.notifyColumnAndBlgChange(EntityCache.java:1640)
        at oracle.jbo.server.EntityImpl.notifyAttributesChanged(EntityImpl.java:7426)
        at oracle.jbo.server.EntityImpl.notifyAttributesChanged(EntityImpl.java:7407)
        at oracle.jbo.server.ViewRowImpl.setAttributeValues(ViewRowImpl.java:1827)
        at oracle.adf.model.binding.DCDataControl.setAttributesInRow(DCDataControl.java:2447)
        at oracle.jbo.uicli.binding.JUCtrlValueBinding.setAttributeValuesInRow(JUCtrlValueBinding.java:997)
        at oracle.jbo.uicli.binding.JUCtrlListBinding.setTargetAttrsFromLovRow(JUCtrlListBinding.java:2813)
        at oracle.jbo.uicli.binding.JUCtrlListBinding.updateTargetFromSelectedValue(JUCtrlListBinding.java:2941)
        at oracle.jbo.uicli.binding.JUCtrlListBinding.setAttributeFromValueList(JUCtrlListBinding.java:2886)
        at oracle.jbo.uicli.binding.JUCtrlListBinding.setSelectedIndex(JUCtrlListBinding.java:1752)
        at oracle.jbo.uicli.binding.JUCtrlListBinding.setInputValueInRow(JUCtrlListBinding.java:3541)
        at oracle.jbo.uicli.binding.JUCtrlValueBinding.setInputValue(JUCtrlValueBinding.java:2926)
        at oracle.jbo.uicli.binding.JUCtrlValueBinding.setInputValue(JUCtrlValueBinding.java:2889)
        at oracle.adfinternal.view.faces.model.binding.FacesCtrlListBinding.setInputValue(FacesCtrlListBinding.java:458)
        at oracle.jbo.uicli.binding.JUCtrlValueBinding.put(JUCtrlValueBinding.java:2546)
        at oracle.jbo.uicli.binding.JUCtrlListBinding.put(JUCtrlListBinding.java:3437)
        at javax.el.MapELResolver.setValue(MapELResolver.java:229)
        at com.sun.faces.el.DemuxCompositeELResolver._setValue(DemuxCompositeELResolver.java:255)
        at com.sun.faces.el.DemuxCompositeELResolver.setValue(DemuxCompositeELResolver.java:281)
        at com.sun.el.parser.AstValue.setValue(Unknown Source)
        at com.sun.el.ValueExpressionImpl.setValue(Unknown Source)
        at org.apache.myfaces.trinidad.component.UIXEditableValue.updateModel(UIXEditableValue.java:361)
        at org.apache.myfaces.trinidad.component.UIXEditableValue.processUpdates(UIXEditableValue.java:311)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.updateChildrenImpl(UIXComponentBase.java:1269)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.updateChildren(UIXComponentBase.java:1259)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.processUpdates(UIXComponentBase.java:1012)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.updateChildrenImpl(UIXComponentBase.java:1269)
        at oracle.adf.view.rich.component.fragment.UIXRegion.updateChildrenImpl(UIXRegion.java:669)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.updateChildren(UIXComponentBase.java:1259)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.processUpdates(UIXComponentBase.java:1012)
        at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl$UpdateModelValuesCallback.invokeContextCallback(LifecycleImpl.java:1561)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnNamingContainerComponent(UIXComponentBase.java:1670)
        at oracle.adf.view.rich.component.fragment.UIXRegion.invokeOnComponent(UIXRegion.java:625)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1750)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1750)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1750)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1750)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnNamingContainerComponent(UIXComponentBase.java:1693)
        at oracle.adf.view.rich.component.fragment.UIXRegion.invokeOnComponent(UIXRegion.java:625)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1750)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
        at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.invokeOnComponent(ContextSwitchingComponent.java:222)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1750)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1750)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1750)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1750)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1750)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
        at oracle.adf.view.rich.component.fragment.UIXInclude.invokeOnComponent(UIXInclude.java:161)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1750)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1750)
        at org.apache.myfaces.trinidad.component.UIXDocument.invokeOnComponent(UIXDocument.java:106)
        at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:1321)
        at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:678)
        at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:382)
        at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:202)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:508)
        at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
        at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
        at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
        at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:125)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
        at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
        at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
        at java.security.AccessController.doPrivileged(Native Method)
        at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
        at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
        at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
        at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
        at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
        at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
        at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
        at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
        at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
        at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    can any body help me out this?..
    ThankYou

    HI,
    I think you have created form using two view objects ...recheck one of the value is null before commit ..
    Thanks
    Nitesh

  • How to Add the Dynamic List Wizard Form to a Spry Accordion Panel?

    Is it possible to add ADDT Dynamic Forms to the Spry Widgets?
    - I have been trying to add the Dynamic List Wizard to my existing Accordion but everytime I do, the Accordion turns into plain text?
    -Also, If it is possible then how do I target the Panels and have the detail record open up in Panel number 2?
    I plan on having the ADDT Dynamic Form in Panel 1, and want the Add, Edit, New, Delete form to open up in Panel 2.
    Thanks for your help,
    jlig

    I figured this out.
    1) First add all the Fields to the Form using the ADDT Insert Record Form Wizard.
    2) View the ADDT form in the browser to make sure the fields all display.
    3) In DW design view, move the cursor just to the left of the ADDT Form and hit Enter to Add a line just above the ADDT Table.
    4) With the cursor below the Red Form line and just above the ADDT table add the SPRY widget. (ex..Tabs)
    5) Now highlight the rows you want to move & hit Cut, then open up Tab1, highlight Content1 and hit Paste.
    I decide to leave my date_added, modified_By & date_modified fields below the SPRY tab widget so that these fields are visible all the time. When I click on the Insert button, the record was added correctly to my Table after Validation passed.
    Thanks,
    jlig

  • TO ADD DATA IN YTABLE

    I am doing a dialog program. I have created a screen 1002 which has a table control.
    I first created a ytable. In the report i created an itab which includes structure of this ytable. Then in the screen painter i created a table control which includes this itab. It contains all the fields of this itab. In screen flow logic i wrote:
    In PBO :
    LOOP AT ITAB WITH CONTROL TBCL CURSOR TBCL-CURRENT_LINE.
    endloop.
    In PAI:
    LOOP AT ITAB.
    ENDLOOP.
    In the report i wrote:
    CONTROLS: tbcl TYPE TABLEVIEW USING SCREEN 1002.
    START-OF-SELECTION.
    CALL SCREEN 1002.
    Now when i run the report , I see the table control.
    Now i want to add data in this table field so that it gets added in the ytable created. When i click the save button on the same screen it should get saved in the ytable. Now how should i proceed.

    hi priti.....
    use the following coding:
    In PBO :
    LOOP AT ITAB into wa WITH CONTROL TBCL CURSOR TBCL-CURRENT_LINE.
    endloop.
    In PAI:
    LOOP AT ITAB.
    module hold_data.
    ENDLOOP.
    inside the module:
        modify table itab from wa index tbcl-current_line.
        if sy-subrc eq 4.
         append wa to itab.
       endif.
    <b>what happens here is this:</b>
    each and every time you enter a value in your TC and press enter, the following things  take place:
      First use a workarea for your itab. i have given it as wa.
       the loop for the itab begins in the PAI.
      for each and every loop the first record in your TC will be brought into the wa and compared with the itab value.
    if the values are same(sy-ssubrc = 0 ), there will be no change.
    if not so the value in the wa will be appended in you itab as well as TC.
    now all the values will be stored in your itab. then you can use the normal method to save the values from itab to ytable

  • How to add data into JTable

    How can I add data into JTable, for instance ("Mike", "Gooler", 21).

    How can I add data into JTable, for instance ("Mike",
    "Gooler", 21).You will have very good results if you segregate out the table model as a seperate user class and provide a method to add a row there. In fact, if you use the table to reflect a database table you can add the row inplace using the existing cursor. I believe it's TableExample2 in the jdk\demo\jfc\TableExamples that has a very good example of this.
    Walt

  • Vb 2010 data source configuration wizard and sql server 2012

    I am having a problem using the Data Source Configuration Wizard in vb 2010 express to connect to a remote SQL server database. The weird thing is that I can connect to it just fine if I manually dimension the sqlcommand, sqlconnection and set up the sql
    connectionstring. So I know the connectivity is possible, but I would like to use the functionality of the Data Source Configuration Wizard.
    Here's what happens when I attempt to add a connection via the Database Explorer:
    I only get two SQL Server options. Neither will let me connect to a remote database.
    I know that Microsoft SQL Server Compact 3.5 isn't what I want, but I have tried it anyway. It will only let me connect to a database on my computer. An 'ActiveSync' option is greyed out.
    Microsoft SQL Server Database File would appear to be what I want, but when I select this option, it informs me (as you can see) that this will only work for a local database:
    The connection string that I build manually (and which works) looks like this:
    Dim
    myConn
    As
    NewSqlConnection(sConnect)
    sConnect =
    ""Data Source=xxxxxx.xxxxxx.com;Server=""Xxxx XXX Database"";Initial Catalog=StockAnalysisProd;User
    ID=cadietz;Password = "& sPW &
    I have attempted all variation of this string in the database file name input box to no avail. I think it really should go in as a Data Source but those are hard wired and cannot be changed. I'm sure I'm doing something stupid, but I need someone
    to point out what it is. Thanks in advance for your help...
    Alex3764

    Alberto... thanks for your reply.
    Unfortunately this does not appear to work. I downloaded Visual Studio Express for the Web (2012) and attempted the 'work around' proposed by Sergey and I could not make it work on the remote server. I have given up on the Data Connection Wizard and
    am simply connecting to my remote SQL server using the manual classes (SqlConnection, SqlCommand, SqlDataAdapter, etc.). The moderator has marked this as an answer but I'm going to unmark it.
    I am now even more frustrated because I now find that I cannot connect to my LOCAL SQL database using the Data Connection Wizard and the circumstances are even weirder. Here's what happens:
    I open the Add Connection window, select 'Microsoft SQL Server Database File (SqlClient)' as the data source.
    I then browse to my local database file in the Database file name input box. When I click the 'Test Connection' button I get a message box that informs me: 'Test connection
    succeeded'. Voila!
    But, alas, when I close the message box and click OK on the Add Connection window I get this message: 'The ability to open this connection is not supported in this edition of Visual Studio'.
    I mean this borders on the absurd. Why is the Data Connection Wizard even offered with VB 2010 Express if you can't use it for anything. Once again I can get around the problem manually but I'm getting very frustrated with MS. Any suggestions??
    Alex3764

  • Add data in webtogo client

    Hello!
    I read and work through the webtogo tutorial (to do list application). Everything works fine while I'm adding data in online mode. But if I try to add data in the webtogo client nothing happens. Is there a solution to solve that problem?
    regards
    Marco

    Hi,
    If you do not have Table Maintenance for your table and if you want to transfer the data to QA client then yes, it is required to create a Transport Request and then transport the Request number to QA client. if u do have table maintenance then you can directly create the data in the table in QA client itself.
    thanks,
    sksingh

  • Add Data from DataGridView in Data entity framework

    private void ShtoArtikullin()
    //FaturatDetalet fd = new Faturatdetalet();
    System.Data.DataRow newrow = lvShitjetDetajet.NewRow();
    //fd.FaturaID = -1;
    int lastid = 1;
    //if (dtDetaletFatura.Rows.Count == null)
    lastid = lvShitjetDetajet.Rows.Count + 1;
    newrow["FaturaID"] = lastid;
    newrow["ArtikulliID"] = lvArtikujt.SelectedRows[0].Cells["ID"].Value;
    newrow["Emri"] = lvArtikujt.SelectedRows[0].Cells["Emri"].Value;
    newrow["Njesia"] = lvArtikujt.SelectedRows[0].Cells["Njesia"].Value;
    newrow["Sasia"] = 1;
    newrow["Cmimi"] = lvArtikujt.SelectedRows[0].Cells["Cmimi"].Value;
    newrow["Totali"] = lvArtikujt.SelectedRows[0].Cells["Cmimi"].Value;
    //DataRow r = newrow;
    //newrow["Barkodi"] = dgArtikujt.SelectedRows[0].Cells["Barkodi"].Value;
    dtDetaletFatura.Rows.Add(newrow);
    ////selektimi e percjell artikullin e fundit
    dgDetaletFat.Rows[dgDetaletFat.Rows.Count - 1].Selected = true;
    //dgDetaletFat.ClearSelection();
    //e fshin tekstin ne txtserch te artikullin e shtuar
    txtSearch.Text = "";
    I need this code to do in Data entity framework,this kode is to add data from one datagridview to another datagridview it work well in sqldataadapter but i need  to do in data entity framework  how to do this?

    If you add these entries to an observablecollection and put that in application.current.resources.  Use that same observablecollection in both datagrids. 
    When you add an entity in one DataGrid  then it will appear in the other one.
    Although it is not really what the sample is about, you can see a simple way to  share an observable collection across views in this:
    https://gallery.technet.microsoft.com/Dynamic-XAML-Composed-View-e087f3c1
    I don't quite follow where the selecting comes in with your code but that sample also uses the current item to share which is selected.
    I also recommend wrapping an entity in a row viewmodel.
    As I do in this:
    http://social.technet.microsoft.com/wiki/contents/articles/28209.wpf-entity-framework-mvvm-walk-through-1.aspx
    Please don't forget to upvote posts which you like and mark those which answer your question.
    My latest Technet article - Dynamic XAML

  • We have just gone over our limit for data usage this month. Is it possible to add data just for this month?

    We have just gone over our limit for data usage this month. Is it possible to add data just for this month?

    YES.  YOU GOING TO DO A PLAN CHANGE.  WHEN IT GIES YOU DATE OPTIONS YOUR GOING TO BACK DATE IT TO BEGINING OF CYCLE.    ONCE THAT GOES THROUGH DO ANOTHER PLAN CHANGE BACK TO IRIGINAL PLAN AND FUTURE DATE TO BEGINIGN OF NEXT BILL CYCLE.  THIS ALL CAN BE DONE ON MY VERIZON OR IF YOU FEEL SAFER CALL CUSTOMER CARE AND THEY CAN DO THSI FOR YOU

Maybe you are looking for

  • Loading Infocube OSD_C03

    Hi, I am practicing BI7 by taking standard infocube and datasource 2LIS_12_VCITM.Upto now i am familiar with BW3.5 but i am new to BI7.When i log on to BI7 i saw datasources with small square before it.I came to know that they are BW3.X datasources i

  • Don't like IOS 7' can i downgrade?

    I do not think iOS7 is suitable for iPad 3. The processor is not coping at all. It only just coped with the retina display before, but is really suffering now. The screen keeps freezing, button activations take seconds to respond or have to be presse

  • When I browse pages in safari, the computer thinks and I have to force reload the page.  Is this my Mac or my network?

    When I browse pages in Safari, the computer spins and thinks.  I have to force re-load to get past it.  Is this my Mac or my network?

  • Connect to Visual Admin - xmla connector - java - mdx

    I'm trying to code (Java) a direct execution of an MDX statement using the BI XMLA Connector.  I've set-up visual adminstrator with the connector information and followed the instructions from the link below.  I am still unable to establish a connect

  • Gmail IMAP on Mail 3 - Need Help

    I have set up Gmail IMAP to use with Apple Mail and I am multiple questions -- please help! 1. Under Mailboxes -- I have Inbox which one would think would have all my email from Gmail. And There is another option termed "Gmail" which has all the IMAP