Fill Grid with external datasource

Someone to loaded data from external database to a grid in SAP BO with SDK
I need to show data from a external system with MySQL to transfer the purchase orders to SAP
Best Regards
Claudio

Here's a little piece of code to work with.  You have to code your part for loading for your datasource and then pass the value to each UserDataSource.
Try
    Dim oForm As SAPbouiCOM.Form
    Dim oMatrix As SAPbouiCOM.Matrix
    'Load your Data on a DataSet or other DataSource method
    oMatrix.Clear()
    For Each oColumn As SAPbouiCOM.Column In oMatrix.Columns 'Bind your columns
        Dim strColumn As String = Replace(Replace(oColumn.UniqueID, "U_", ""), "UD", "")
        If oColumn.UniqueID = "#" Or Left(oColumn.UniqueID, 2) = "V_" Then
        Else
            Try
                oForm.DataSources.UserDataSources.Item("UD" & Replace(strCOlumn, "U_", ""))
            Catch ex As Exception
                Select Case rst.Fields.Item(strCOlumn).Type
                    Case SAPbobsCOM.BoFieldTypes.db_Alpha : oForm.DataSources.UserDataSources.Add("UD" & Replace(strCOlumn, "U_", ""), SAPbouiCOM.BoDataType.dt_SHORT_TEXT, rst.Fields.Item(strCOlumn).Size)
                    Case SAPbobsCOM.BoFieldTypes.db_Memo : oForm.DataSources.UserDataSources.Add("UD" & Replace(strCOlumn, "U_", ""), SAPbouiCOM.BoDataType.dt_LONG_TEXT, rst.Fields.Item(strCOlumn).Size)
                    Case SAPbobsCOM.BoFieldTypes.db_Date : oForm.DataSources.UserDataSources.Add("UD" & Replace(strCOlumn, "U_", ""), SAPbouiCOM.BoDataType.dt_DATE, rst.Fields.Item(strCOlumn).Size)
                    Case SAPbobsCOM.BoFieldTypes.db_Float
                        Select Case rst.Fields.Item(strCOlumn).SubType
                            Case SAPbobsCOM.BoFldSubTypes.st_None : oForm.DataSources.UserDataSources.Add("UD" & Replace(strCOlumn, "U_", ""), SAPbouiCOM.BoDataType.dt_QUANTITY, rst.Fields.Item(strCOlumn).Size)
                            Case SAPbobsCOM.BoFldSubTypes.st_Measurement : oForm.DataSources.UserDataSources.Add("UD" & Replace(strCOlumn, "U_", ""), SAPbouiCOM.BoDataType.dt_MEASURE, rst.Fields.Item(strCOlumn).Size)
                            Case SAPbobsCOM.BoFldSubTypes.st_Percentage : oForm.DataSources.UserDataSources.Add("UD" & Replace(strCOlumn, "U_", ""), SAPbouiCOM.BoDataType.dt_PERCENT, rst.Fields.Item(strColumn).Size)
                            Case SAPbobsCOM.BoFldSubTypes.st_Price : oForm.DataSources.UserDataSources.Add("UD" & Replace(strCOlumn, "U_", ""), SAPbouiCOM.BoDataType.dt_PRICE, rst.Fields.Item(strColumn).Size)
                            Case SAPbobsCOM.BoFldSubTypes.st_Quantity : oForm.DataSources.UserDataSources.Add("UD" & Replace(strColumn, "U_", ""), SAPbouiCOM.BoDataType.dt_QUANTITY, rst.Fields.Item(strCOlumn).Size)
                            Case SAPbobsCOM.BoFldSubTypes.st_Rate : oForm.DataSources.UserDataSources.Add("UD" & Replace(strCOlumn, "U_", ""), SAPbouiCOM.BoDataType.dt_RATE, rst.Fields.Item(strCOlumn).Size)
                            Case SAPbobsCOM.BoFldSubTypes.st_Sum : oForm.DataSources.UserDataSources.Add("UD" & Replace(strCOlumn, "U_", ""), SAPbouiCOM.BoDataType.dt_SUM, rst.Fields.Item(strCOlumn).Size)
                        End Select
                    Case SAPbobsCOM.BoFieldTypes.db_Numeric : oForm.DataSources.UserDataSources.Add("UD" & Replace(strCOlumn, "U_", ""), SAPbouiCOM.BoDataType.dt_SHORT_NUMBER, rst.Fields.Item(strCOlumn).Size)
                End Select
            End Try
            oColumn.DataBind.SetBound(True, "", "UD" & oColumn.UniqueID)
            oForm.DataSources.UserDataSources.Item("UD" & Replace(strCOlumn, "U_", "")).Value = ""
        End If
    Next
    For i As Int32 = 1 To rst.RecordCount    'load your data here
        For Each oColumn As SAPbouiCOM.Column In oMatrix.Columns
            If oColumn.UniqueID = "#" Or Left(oColumn.UniqueID, 2) = "V_" Then
                'do nothing
            Else
                If Len(oColumn.DataBind.Alias) > 0 Then
                    Select Case rst.Fields.Item(strFieldName).Type
                        Case SAPbobsCOM.BoFieldTypes.db_Date
                            oForm.DataSources.UserDataSources.Item(oColumn.DataBind.Alias).Value = rst.Fields.Item(strFieldName)
                        Case Else
                            oForm.DataSources.UserDataSources.Item(oColumn.DataBind.Alias).Value = rst.Fields.Item(strFieldName).Value
                    End Select
                End If
            End If
        Next
        oMatrix.AddRow(1)
        oMatrix.SetLineData(i)
        rst.MoveNext()
    Next
Catch ex As Exception
    SBO_Application.MessageBox("Error on column : " & " - " & ex.Message)
End Try

Similar Messages

  • Best way to fill CLOB with external XML from URL

    There seem to be a number of great tools available for pl/sql developers in the 8i DB environment and I am tryng to get a handle on them. So far I have worked with XSQL servlet (not PL/SQL), XML Parser and XSU.
    The problem I have is to fill a clob from an external xml file via a url and then make that clob available for DBMS_XMLSave to insert into DB. What is the best way to do this? I am thinking maybe I have to use utl_http or utl_tcp to fill the CLOB since I can't seem to find a method in the pl/sql XDK?
    XSU - can easily generate CLOB from a query but in this case it is not a query, it is XML from url
    XMlparser - can read in from a url using parse() but the document returned is a DOMDocument rather than CLOB.
    -quinn

    There seem to be a number of great tools available for pl/sql developers in the 8i DB environment and I am tryng to get a handle on them. So far I have worked with XSQL servlet (not PL/SQL), XML Parser and XSU.
    The problem I have is to fill a clob from an external xml file via a url and then make that clob available for DBMS_XMLSave to insert into DB. What is the best way to do this? I am thinking maybe I have to use utl_http or utl_tcp to fill the CLOB since I can't seem to find a method in the pl/sql XDK?
    XSU - can easily generate CLOB from a query but in this case it is not a query, it is XML from url
    XMlparser - can read in from a url using parse() but the document returned is a DOMDocument rather than CLOB.
    -quinn

  • External datasource problem(tns error)

    hi,
    i got and error while working with external datasource in BAM architect, how to fix it? Moreover i got tns error when i use tnsping utility for my XE db from command prompt
    ======================================
    C:\Documents and Settings\rehanfa>tnsping xe
    TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 06-JUN-2
    008 15:26:18
    Copyright (c) 1997, 2005, Oracle. All rights reserved.
    Used parameter files:
    C:\OracleBAM\ClientForBAM\network\admin\sqlnet.ora
    TNS-03505: Failed to resolve name
    ======================================
    and BAM archtect error while viewing contents of data model based on this external datasource
    ========================================
    ADC Server exception in OpenViewset().
    Details <<
    ADC Server exception in OpenViewset().
    Source: "ActiveDataCache" ID: "ADCServerException"
    ERROR [08001] [Microsoft][ODBC driver for Oracle][Oracle]ORA-12154: TNS:could not resolve the connect identifier specified ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed ERROR [01000] [Microsoft][ODBC Driver Manager] The driver doesn't support the version of ODBC behavior that the application requested (see SQLSetEnvAttr).
    Source: ""
    Internal debugging information >>
    Oracle.BAM.ActiveDataCache.Common.Exceptions.CacheException: ADC Server exception in OpenViewset(). ---> System.Data.Odbc.OdbcException: ERROR [08001] [Microsoft][ODBC driver for Oracle][Oracle]ORA-12154: TNS:could not resolve the connect identifier specified
    ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed
    ERROR [01000] [Microsoft][ODBC Driver Manager] The driver doesn't support the version of ODBC behavior that the application requested (see SQLSetEnvAttr).
    at System.Data.Odbc.OdbcConnection.Open()
    at Oracle.BAM.ActiveDataCache.ExternalDataSources.ODBC.Open(String strXml)
    at Oracle.BAM.ActiveDataCache.Kernel.Datasets.ExternalStorageEngine.GetDataReader(DSEQuery oDseQuery)
    at Oracle.BAM.ActiveDataCache.Kernel.Viewsets.Utilities.ExternalData.DataImporter.ExecuteQuery()
    at Oracle.BAM.ActiveDataCache.Kernel.Viewsets.Utilities.ExternalData.ExternalDataManager.ImportExternalData(String strDatasetID, String strTempName, FilterExpression filter)
    at Oracle.BAM.ActiveDataCache.Kernel.Viewsets.Utilities.ExternalData.ExternalDataManager.ImportExternalFactData()
    at Oracle.BAM.ActiveDataCache.Kernel.Viewsets.Utilities.ExternalData.ExternalDataManager.GetExternalData()
    at Oracle.BAM.ActiveDataCache.Kernel.Viewsets.Viewset.LoadData()
    at Oracle.BAM.ActiveDataCache.Kernel.Viewsets.ViewsetBase.Initialize()
    at Oracle.BAM.ActiveDataCache.Kernel.Viewsets.Viewset.Initialize()
    at Oracle.BAM.ActiveDataCache.Kernel.Viewsets.ViewsetBase.Open()
    at Oracle.BAM.ActiveDataCache.Kernel.Viewsets.ViewsetManager.InitViewset(Modifier oModifier, ViewsetOptions oViewsetOptions, Boolean bSynchronized, Int32 iTransactionID)
    at Oracle.BAM.ActiveDataCache.Kernel.Viewsets.ViewsetManager.OpenViewset(Modifier modifier, ViewsetOptions options, Int32 iTransactionID)
    at Oracle.BAM.ActiveDataCache.Kernel.Server.DataStoreServer.OpenViewset(Modifier modifier, ViewsetOptions options, Int32 iTransactionID)
    --- End of inner exception stack trace ---
    Server stack trace:
    at Oracle.BAM.ActiveDataCache.Kernel.Server.DataStoreServer.OpenViewset(Modifier modifier, ViewsetOptions options, Int32 iTransactionID)
    at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(MethodBase mb, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
    at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)
    Exception rethrown at [0]:
    at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
    at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
    at Oracle.BAM.ActiveDataCache.Common.Core.IDataStore.OpenViewset(Modifier oModifier, ViewsetOptions options, Int32 iTransactionID)
    at Oracle.BAM.ActiveDataCache.Remoting.ServerWrapper.OpenViewset(Modifier oModifier, ViewsetOptions options, Int32 iTransactionID)
    at Oracle.BAM.ActiveDataCache.Viewset.Open(Context ctxAdcContext, Modifier oModifier, ViewsetOptions options)
    at Oracle.BAM.Architect.DataObjectsContents.InternalContentsByRowID(String strEventParam, Boolean bEdit, Int64 lHighlightRowID, Boolean bAddBegin)
    ==========================================================

    Dear, I am facing that problem and I need some help. please tell me how the issue was resolved

  • Get default audit field behavior with an external datasource

    Others have posted and blogged extensively about creating a robust audit trail for LightSwitch. However, if you are looking to achieve the default behavior with an external datasource, you could simply add the fields to your database
    and write code in every entity's Inserting() and Updating() method.  However, if you have many tables in your app this can be a lot of work.  Here is a very easy way to DRY this up. 
    1. Add the audit fields to your tables
    - CreatedBy
    - DateCreated
    - UpdatedBy
    - DateUpdated
    2. Use this code in the DataService class for your datasource.
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using Microsoft.LightSwitch;
    using Microsoft.LightSwitch.Security.Server;
    namespace LightSwitchApplication
    public partial class ApplicationDataService
    partial void SaveChanges_Executing()
    EntityChangeSet changes = this.Details.GetChanges();
    IReadOnlyCollection<IEntityObject> addedEntities = changes.AddedEntities;
    IReadOnlyCollection<IEntityObject> modifiedEntities = changes.ModifiedEntities;
    if (addedEntities.Any())
    foreach (IEntityObject entity in addedEntities)
    InsertAuditFields(entity);
    if (modifiedEntities.Any())
    foreach (IEntityObject entity in modifiedEntities)
    UpdateAuditFields(entity);
    private void InsertAuditFields(IEntityObject entity)
    string userName = this.Application.User.FullName;
    DateTimeOffset currentDateTime = DateTimeOffset.Now;
    entity.Details.Properties["CreatedBy"].Value = userName;
    entity.Details.Properties["DateCreated"].Value = currentDateTime;
    entity.Details.Properties["UpdatedBy"].Value = userName;
    entity.Details.Properties["DateUpdated"].Value = currentDateTime;
    private void UpdateAuditFields(IEntityObject entity)
    string userName = this.Application.User.FullName;
    DateTimeOffset currentDateTime = DateTimeOffset.Now;
    entity.Details.Properties["UpdatedBy"].Value = userName;
    entity.Details.Properties["DateUpdated"].Value = currentDateTime;
    Hopefully this helps someone.

    This version will check whether the table has the audit properties, thus allowing you to opt in.  Paul's solution is going to be better in the long run because it checks at compile time.  This was meant to be a quick way to get the default behavior. 
    This is not a substitute for a full audit capability (see Paul's blog) if that is your requirement.
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using Microsoft.LightSwitch;
    using Microsoft.LightSwitch.Security.Server;
    using Microsoft.LightSwitch.Details;
    namespace LightSwitchApplication
    public partial class ApplicationDataService
    partial void SaveChanges_Executing()
    EntityChangeSet changes = this.Details.GetChanges();
    IReadOnlyCollection<IEntityObject> addedEntities = changes.AddedEntities;
    IReadOnlyCollection<IEntityObject> modifiedEntities = changes.ModifiedEntities;
    if (addedEntities.Any())
    foreach (IEntityObject entity in addedEntities)
    if (AuditProperties(entity))
    InsertAuditFields(entity);
    if (modifiedEntities.Any())
    foreach (IEntityObject entity in modifiedEntities)
    if (AuditProperties(entity))
    UpdateAuditFields(entity);
    private bool AuditProperties(IEntityObject entity)
    bool hasAuditProperties = true;
    bool createdBy = entity.Details.Properties.Contains("CreatedBy");
    bool dateCreated = entity.Details.Properties.Contains("DateCreated");
    bool updatedBy = entity.Details.Properties.Contains("UpdatedBy");
    bool dateUpdated = entity.Details.Properties.Contains("DateUpdated");
    bool[] checkForAuditProperties = new bool[]
    createdBy,
    dateCreated,
    updatedBy,
    dateUpdated
    if (checkForAuditProperties.Any(a => a == false))
    hasAuditProperties = false;
    return hasAuditProperties;
    private void InsertAuditFields(IEntityObject entity)
    string userName = this.Application.User.FullName;
    DateTimeOffset currentDateTime = DateTimeOffset.Now;
    entity.Details.Properties["CreatedBy"].Value = userName;
    entity.Details.Properties["DateCreated"].Value = currentDateTime;
    entity.Details.Properties["UpdatedBy"].Value = userName;
    entity.Details.Properties["DateUpdated"].Value = currentDateTime;
    private void UpdateAuditFields(IEntityObject entity)
    string userName = this.Application.User.FullName;
    DateTimeOffset currentDateTime = DateTimeOffset.Now;
    entity.Details.Properties["UpdatedBy"].Value = userName;
    entity.Details.Properties["DateUpdated"].Value = currentDateTime;

  • Load Grid with data from System.Data.DataTable

    Hi all.
    A have a System.Data.DataTable e need load a grid with data from this DataTable.
    How Load a Grid with data from System.Data.DataTable?

    Hi Francisco,
    actually i don't think that you can use a .NET datatable to fill a business one grid.
    the business one has it's own datatable.
    in c# it would look like this:
    oForm.DataSources.DataTables.Add("MyDataTable");
    ((SAPbouiCOM.Grid)(oForm.Items.Item("grid").Specific)).DataTable = oForm.DataSources.DataTables.Item("MyDataTable");
    oForm.DataSources.DataTables.Item(0).ExecuteQuery("SELECT Field FROM [dbname].dbo.TABLE");
    ((SAPbouiCOM.Grid)(oForm.Items.Item("grid").Specific)).CollapseLevel = 1;
    ((SAPbouiCOM.Grid)(oForm.Items.Item("grid").Specific)).AutoResizeColumns();
    ((SAPbouiCOM.Grid)(oForm.Items.Item("grid").Specific)).SelectionMode = SAPbouiCOM.BoMatrixSelect.ms_Single;
    good night
    lg David

  • How to use Final Cut pro with external hard drive?

    I have too little space on my computer so I have to use final cut pro x with an external hard drive, but whenever I have the hard drive plugged in and Final cut going, my computer goes very slow. I just upgraded to 16gb ram... but can't seem to run FCP x while an external hard drive is plugged in. FCP just freezes up and I have to force quit.

    craigbuckley wrote:
    all the files and events in final cut are still on my internal, so my internal drive is still full.... Do I have to go and delete everything off my internal?
    In addition to the excellent advice to keep your media on an external HDD, you need to make sure that your system (boot) drive has a decent amount of free space if you want to have a satisfactory editing experience. Many people recommend not going below 20% free space. That's especially so for the boot drive, but as you fill up the external, its performance will also slow. Ideally, we would have separate media and backup drives,
    You don't need to "delete everything". Rather, you first figure out what needs to be moved. You copy those files to the other drive and then verify that all the files you copied are in two locations. At that point you can delete those files from your boot drive.
    Good luck.
    Russ

  • How can i create a grid with summary row

    Hello Professionals,
    I'm wondering how could i create a grid like the grid below, i want to create a grid with summary row,
    i have tried to create it using collapsing but it didn't work as required.
    Any suggestions?, i want to know just the starting point so i can make deep investigations.
    Thanks in Advance,

    Hi Karem,
    this can be achieved by just assigning a datatable containing the data plus some formatting of grid. Meaning there is no feature for that.
    The datatable can be filled manually or by sql query. Then you have to attach some events for updating the values ( validate after for gid item ).
    A small example for a sql query showing last month quotations and orders with summary :
    select 1 as Sort,cast(DocNum as varchar) as DocNum,DocTotal,convert(varchar, DocDate,104) from OQUT where DocDate between  DATEADD(month, -1, GETDATE()) AND GETDATE()
    UNION ALL
    Select 2 as Sort,'Summary ( Quotation ) : ',sum(DocTotal), convert(varchar,  DATEADD(month, -1, GETDATE()),104)+' - '+convert(varchar,   GETDATE(),104) from OQUT where DocDate between  DATEADD(month, -1, GETDATE()) AND GETDATE()
    UNION ALL
    select 3 as Sort,cast(DocNum as varchar) as DocNum,DocTotal,convert(varchar, DocDate,104) from ORDR where DocDate between  DATEADD(month, -1, GETDATE()) AND GETDATE()
    UNION ALL
    Select 4 as Sort,'Summary ( Order ) : ',sum(DocTotal), convert(varchar,  DATEADD(month, -1, GETDATE()),104)+' - '+convert(varchar,   GETDATE(),104) from ORDR where DocDate between  DATEADD(month, -1, GETDATE()) AND GETDATE()
    ORDER by Sort
    regards,
    Maik

  • Apple TV - sync with external storage?

    I bought an Apple TV about 2 weeks and have been pretty happy with it. I have lots of TV shows saved on an external drive so as not to completely fill up my iMac. The external drive is connected to my iMac at all times.
    Is there a way that I can sync Apple TV to this external storage device? Or watch TV shows from the external hard drive without moving them back to the iMac and then syncing with the Apple TV? Or is there a way I can leave TV shows on the Apple TV without also copying them to my iMac? My Apple TV is 160gb so there must be a way of using that memory without jamming up my iMac.
    I've looked in the manual but haven't found an answer to this situation.
    Thanks for any ideas or assistance.
    Elizabeth

    Emsullivan wrote:
    I bought an Apple TV about 2 weeks and have been pretty happy with it. I have lots of TV shows saved on an external drive so as not to completely fill up my iMac. The external drive is connected to my iMac at all times.
    Next thing to appreciate is how iTunes stores files.
    The iTunes library, usually called iTunes, contains various sub-folders and files.
    Some of these files contain the library database, artwork etc.
    There'll be an iTunes Music folder which contains the media copied into iTunes on import.
    There may be old library database backups, and a folder for iPhone apps if you have one.
    There may be other folders for other sorts of user.
    Is there a way that I can sync Apple TV to this external storage device?
    Not without the files being known to iTunes - all communication with AppleTV in terms of local network file transfers works through iTunes.
    Or watch TV shows from the external hard drive without moving them back to the iMac and then syncing with the Apple TV?
    Yes, this is possible.
    When you import a CD it will automatically store in the iTunes Music folder. You can see where file are by selecting Show in Finder after a right click on the entry in iTunes.
    If you import a file from somewhere other than CD however there is a Preference under Advanced>General Tab which decides if a copy is placed in the iTunes Music folder or not. If you deselect the copy option iTunes simply stores a reference to the file not the file itself.
    So, if you deselect copy you could just drag the files from the external drive onto an iTunes window and they'll be available for syncing/streaming but still live on the external drive.
    This is probably your simplest option. There is a keyboard shortcut which from memory is the option key which will temporarily not copy an added file when dragged to iTunes.
    Or is there a way I can leave TV shows on the Apple TV without also copying them to my iMac?
    Using the do not copy option in iTunes will achieve this with files on the external drive not on the iMac.
    There is no manual drag and drop type way of filling AppleTV with media which is a shame if you don't have the external drive.
    You can in fact delete the file in the itunes Music folder manually from Finder and this will not remove them from the database - iTunes will complain if you try to play them or stream them but if synced to AppleTv you can play them from there. I do not recommend this approach, and you must not delete the file entry from iTunes or it will then also delete from AppleTV.
    My Apple TV is 160gb so there must be a way of using that memory without jamming up my iMac.
    The 160GB is mainly indtended to allow you to have more stuff on AppleTV so that youd odn't need itunes running all the time, or perhaps ifyour network doesn't allow smooth steaming.
    It is not a backup and must not be regarded as external storage - many people assume it's storage and then lose their files when their computer's hard drive or external fails if they have no backup. Sorry to repeat this but it's important.
    I've looked in the manual but haven't found an answer to this situation.
    It's not particularly detailed is it.
    Hope that helps.
    There are some other options to consider too.
    AC

  • Grid with check box.

    Hi,
    I want to make a grid with check box. I want to have two column in the grid. One column of the grid will show some column name of a table and the other column will contain check box. If I tick the check box of a the selected row of the grid then the value (e.g. Y or N) will store in the particulr table.
    I have written some code regardig this. But I am not getting my problem solved. I am sending the code sample below.
    oNewItem = oOrderForm.Items.Add("MyGrid", SAPbouiCOM.BoFormItemTypes.it_GRID)
            oNewItem.Left = 20
            oNewItem.Top = 30
            oNewItem.Width = 198
            oNewItem.Height = 130
    oGrid = oNewItem.Specific
    Dim str As String
            str = "SELECT COLUMN_NAME AS FACILITIES, '' AS TICK FROM PIONEER.INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = N'OITM' AND ORDINAL_POSITION BETWEEN 102 AND 165"
            oOrderForm.DataSources.DataTables.Add("MyDataTable")
            oOrderForm.DataSources.DataTables.Item(0).ExecuteQuery(str)
            oGrid.DataTable = oOrderForm.DataSources.DataTables.Item("MyDataTable")
            ' Set columns size
            oGrid.Columns.Item(0).Width = 270
            oGrid.Columns.Item(0).Editable = False
            oGrid.Columns.Item(1).Width = 70
            oGrid.Columns.Item(1).Type.gct_CheckBox.GetValues()
    From The last line I am getting problem. Please any one can help me for this problem.
    Thank you
    Amit Kumar Shai

    Hi
    The last line should read like this
    oGrid.Columns.Item(1).Type = SAPbouiCOM.BoGridColumnType.gct_CheckBox

  • Configuration problem with external Western Digital My Book 2 TB drive

    How do I fix a configuration problem with my external Western Digital My Book 2 TB drive which used to both read and write. Something has happened so that the drive is now read only? There is 600 GB of data on the drive that I cannot lose, thus am very concerned about messing around with formatting the drive which is raid 1 and filled with data.

    may not like to hear, but I'd skip on MyBook cases, nice looking as they are.
    Get a 2nd drive case to recover to.
    http://www.macsales.com/firewire
    may need to play with the demo Data Rescue 3 from Prosoft
    Backup/recover before repair is usually in order
    never have one backup set. THREE sets of your data, minimum.
    3rd party disk maintenance and repair should be a must and given rather than rely solely on Apple Disk Utility.
    Data and system maintenance and recovery plan - should be like practice for sports, arts, military with practice and making sure you will know how and the tools you need - ahead of time
    Resetting USB/FW ports, try another if one won't work. When 10.6 came out there was a lot of grinding teeth with external drives not working or mounting.

  • Problems with external context mapping

    Hi ,
    I am having the following problems with external context mapping from one WD component to another.
    Problem description:
    In the <i>Component Interfaces</i> I have defined a WD interface "InfA".
    In the <i>interface controller</i> of this compoenent,I have ContextA and attributeA(cardinality 1..1).The contextA is marked as an "Input Element".
    Now my webdynpro componentB adds InfA as used component.In componentB I decalre a contextB with attributeB and map it to contextA to set up the external context mapping.
    Now I expect that if any webdynpro component implements this WD interface InfA ,he has access to contextA with the data getting filled from contextB.
    After i have created the component for the used component I try to fill values in the source node contextB thru this code:
    wdContext.currentContextB.setB(value);
    But in the runtime I keep getting error nullPointerException for nodeContextB,suggesting that the mapping has not been completed.
    Can anyone suggest due to what the error can come ,and, if its a webdynpro bug ,is there a workaround??
    Thanks in advance for your help.
    Best regards
    Sourav

    HI,
    Valery : I personally checked  by doing the example, if the names of value attribute are different in the child's interface and parents component controller then it throws the exception.
    Sourav: NullPointer Exception is thrown when something is not properly initialised, if in the main component the cardinality of mapped origin is 1.1 then you need to access it element directly like:
    wdContext.currentParentNodeElement().setFname("Abhijeet");
        wdContext.currentParentNodeElement().setLname("M");
    i will suggest just check out if you are declaring some element of value node and without initialising taking its use or what?
    if this doesnt solve your problem, please post the expanded exception.
    hope it helps
    let me know if you face nay problem
    regards

  • SPM : Integration with External Data Sources

    Dear Experts,
    Can you let me know with your comments or by sharing any link or documentation, as to how to Integrate SPM with External Data Sources.
    And how many or what all external Data Sources, can SPM Connect with ?
    Regards
    Pankaj

    Hi Pankaj,
    There are no limitations of external data you can bring into BW and visualise in the SPM UI - you can expose custom bex queries as "datasources" in the user interface, and these can show anything you like. Its just a question about what makes sense to show in SPM.
    Are you looking to bring in anything specific?
    Thanks
    Neil

  • External Datasource Creation

    Hi All,
    I have created an external datasource to sql server from BAM (Version is 11g- 11.1.1.5). Datasource test was successful.
    Configuration
    ==========
    Owner --- Weblogic
    type --- JDBC
    Driver --- weblogic.jdbc.sqlserver.SQLServerDriver
    User --- <user>
    Password --- <pwd>
    Connection String ---- jdbc:weblogic:sqlserver://<ip>:1433;User=<user>;Password=<pwd>
    ===========================================================
    I was creating a DataObject using this External datasource, but External Table Name is not showing any Tables...
    Please let me know your suggestion on this..
    Thanks,
    Manikandan

    I created the user with the wizard Administration Assistant for windowsNT.thru I created the external user successfully but the problem is while I am connecting to sqlplus Iam unable to connect to the schema. I given connect and resource privilege to the exeternal user.
    After creation of external user I entered into window with that user name and while I am connecting sqlplus at command prompt it is giving error. I given like at commond promp sqlplus "/ as sysdba". it is giving protocol error and how to connect to exeternal user with dba privilege.
    what my doubt is how to connect to external user and is it necessary that external user should have the sysdba privileges.

  • MacBook Pro won't stay asleep with external monitor attached.  When sleep is selected from the Apple menu the computer will go to sleep only to continually wake up...go back to sleep...wake up...etc. every few seconds.

    MacBook Pro won't stay asleep with external monitor attached.  When sleep is selected from the Apple menu the computer will go to sleep only to continually wake up...go back to sleep...wake up...etc. every few seconds.  This only happens when using the external monitor. Does anyone have any suggestions?

    Mine does that too. The worst thing is when it goes to sleep, then wakes up and keeps running while the lid is closed and it is wrapped up in a case. I am afraid when the hot weather comes it is going to burn up. I am hoping Apple fixes it in the software or they may have a melted MBP to replace.
    Then when I open the lid it is crashed running at fill tilt, pumping out heat to beat the band. I am forced to hold the button down and reboot.
    I wiped my hard disk and reinstalled my OS, but it didn't help. I reversed my OS to 10.5.0 and it solved the DVI problem but still won't sleep. This post will probably be deleted by Apple, they did it a few days ago. I just don't know what to do, and I consider myself a real Apple expert. Just hoping you realize you are not the only one.

  • Time machine is turned off but my startup disk keeps filling up with backup files on a hidden volume.

    My Time Machine is turned off but my system startup drive keeps filling up with backup files in a hidden volume. How can I stop this? When Time Machine was turned on, the destination was set to an external drive.  I was completely confused about what was happening until I used Houdini to reveal the hidden volume. I have no idea how it got created or why it keeps filling up with no backup application running to my knowledge.  Thanks.

    Please read this whole message before doing anything.
    Download this, or a similar tool if you prefer:
    OmniDiskSweeper - Products - The Omni Group
    Boot in safe mode. The instructions provided by Apple are as follows:
    Be sure your Mac is shut down.
    Press the power button.
    Immediately after you hear the startup tone, hold the Shift key. The Shift key should be held as soon as possible after the startup tone, but not before the tone.
    Release the Shift key when you see the gray Apple icon and the progress indicator (looks like a spinning gear).
    During startup, you will see "Safe Boot" on the login screen, which appears even if you normally log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Safe mode is slower than normal, and some things won’t work at all, possibly including wireless networking.
    Does your boot volume continue to fill up? Use the above tool to explore the volume and find out where the space is going.

Maybe you are looking for

  • How do I use my MIDI controller to change PedalBoard in LP9?

    I'm not exactly sure how to phrase this, so I'm to just go for it & then try my best to narrow things down, clarify & define. I'm using Logic Pro 9 & Pedalboard (VERY cool). I've read the "manual" on it, but still can't figure out how to get my contr

  • How do I use Apple Mail to read my aol mail?

    When I click on mail, it askes me for the specifications for my aol account. I don't know all of them. Can anyone help me?

  • Is there any order for objects in a relationship collection

    I am using two cmp ejbs A and B which are in a many to one relationship. This is like : Any Order has 0 to * OrderLines. For this my ejb A has a cmr fild of type Collection: public abstract Collection getBs(); public abstract void setBs(Collection x)

  • How to create a trigger for particular value insertion?

    If I have a Table T, which has columns as A,B,C,D. I want to create a trigger to give an error message if someone inserts or updates T with values in A as '001' AND value in B as '99' Please reply soon.... Thanks

  • Performance Check - ABAP and Database color bars

    Hello everyone, When i go for the performance check of my object, i see Database in red bar and ABAP in green bar. The smaller the difference between these two bars, the better. But what does the color mean ? ( Somethimes the smaller bar is Red ) Tha