User Data source with matrix

Hi all ,,
i have a question if you can help me :
i put choose from list in matrix but when i choose item didn't fill in the column and my code is :
** on create form
   oForm.DataSources.UserDataSources.Add("IDS", BoDataType.dt_SHORT_TEXT);
                SAPbouiCOM.Matrix Mat = (SAPbouiCOM.Matrix)oForm.Items.Item("12").Specific;
              //  SAPbouiCOM.EditTextColumn EC = Mat.Columns.It
                Mat.Columns.Item("V_ITM").ChooseFromListUID = "ITM";
                Mat.Columns.Item("V_ITM").ChooseFromListAlias = "ItemCode";
                Mat.Columns.Item("V_ITM").DataBind.SetBound(true, "", "IDS");
***on Item Event
    if ((pVal.ColUID== "V_4"))
                        //oForm.DataSources.UserDataSources.Item("IDS").ValueEx = val;
                         SAPbouiCOM.Matrix Mat = (SAPbouiCOM.Matrix)oForm.Items.Item("12").Specific;
                  //  SAPbouiCOM.EditTextColumn EC = Mat.Columns.It
                         SAPbouiCOM.EditText c = null ;
                        try
                             oForm.DataSources.UserDataSources.Item("IDS").ValueEx = val;
                             Mat.LoadFromDataSource();

Hi folks, i know this thread is a little old but i have the same insue and i want to share the solution, it could help others.
Like Mayank said, get line and set line works the last row of the matrix, but is not true at all, GetLineData and SetLineData works for the row of the matrix that is set on the offset of DBDatasource lines, so to works fine you need to set the offset first.
oForm.DataSources.DBDataSources.Item("@MY_DS_LINES").Offset = x-1;
Mat.GetLineData(x);
oForm.DataSources.UserDataSources.Item("IDS").ValueEx = val;
// Update any other UserDataSources for the same row here...
Mat.SetLineData(x);
where x is the row number of the matrix you want to update.

Similar Messages

  • Help Me "Data Source - Not User Data Source"

    Hi All!
    I have written an addon in Service Call Form To add new Matrix in this form with code as follows:
    Dim oLink As SAPbouiCOM.LinkedButton
    oFormServiceCall = SBO_Application.Forms.GetFormByTypeAndCount(60110, 1)
            oItem = oFormServiceCall.Items.Item("159")
            oNewItem = oFormServiceCall.Items.Add("Matrix1", SAPbouiCOM.BoFormItemTypes.it_MATRIX)
            oNewItem.Left = oItem.Left
            oNewItem.Width = oItem.Width
            oNewItem.Top = oItem.Top
            oNewItem.Height = oItem.Height
            oNewItem.FromPane = 8
            oNewItem.ToPane = 8
            oMatrix = oNewItem.Specific
            oColumns = oMatrix.Columns
            oColumn = oColumns.Add("#", SAPbouiCOM.BoFormItemTypes.it_EDIT)
            oColumn.TitleObject.Caption = "#"
            oColumn.Width = 20
            oColumn.Editable = False
            '// Add a column for BP Card Code
            oColumn = oColumns.Add("callID", SAPbouiCOM.BoFormItemTypes.it_LINKED_BUTTON)
            oColumn.TitleObject.Caption = "Call ID"
            oColumn.Width = 20
            oColumn.Editable = True
            oColumn = oColumns.Add("subject", SAPbouiCOM.BoFormItemTypes.it_EDIT)
            oColumn.TitleObject.Caption = "Subject"
            oColumn.Width = 120
            oColumn.Editable = True
            oColumn = oColumns.Add("customer", SAPbouiCOM.BoFormItemTypes.it_LINKED_BUTTON)
            oColumn.TitleObject.Caption = "Cust.Code"
            oColumn.Width = 30
            oColumn.Editable = True
            '// Link the column to the BP master data system form
            oLink = oColumn.ExtendedObject
            oLink.LinkedObject = SAPbouiCOM.BoLinkedObject.lf_BusinessPartner
            oColumn = oColumns.Add("custmrName", SAPbouiCOM.BoFormItemTypes.it_EDIT)
            oColumn.TitleObject.Caption = "Cust.Name"
            oColumn.Width = 120
            oColumn.Editable = True
            oColumn = oColumns.Add("itemCode", SAPbouiCOM.BoFormItemTypes.it_LINKED_BUTTON)
            oColumn.TitleObject.Caption = "Item Code"
            oColumn.Width = 30
            oColumn.Editable = True
            oLink = oColumn.ExtendedObject
            oLink.LinkedObject = SAPbouiCOM.BoLinkedObject.lf_Items
            oColumn = oColumns.Add("itemName", SAPbouiCOM.BoFormItemTypes.it_EDIT)
            oColumn.TitleObject.Caption = "Item Name"
            oColumn.Width = 100
            oColumn.Editable = True
    And code to bind data to matrix
    oDBDataSource = oFormServiceCall.DataSources.DBDataSources.Add("OSCL")
            'oUserDataSource = oFormServiceCall.DataSources.UserDataSources.Add("OSCL", SAPbouiCOM.BoDataType.dt_LONG_TEXT)
            oColumn = oColumns.Item("callID")
            oColumn.DataBind.SetBound(True, "OSCL", "callID")
            oColumn = oColumns.Item("subject")
            oColumn.DataBind.SetBound(True, "OSCL", "subject")
            oColumn = oColumns.Item("customer")
            oColumn.DataBind.SetBound(True, "OSCL", "customer")
            oColumn = oColumns.Item("custmrName")
            oColumn.DataBind.SetBound(True, "OSCL", "custmrName")
            oColumn = oColumns.Item("itemCode")
            oColumn.DataBind.SetBound(True, "OSCL", "itemCode")
            oColumn = oColumns.Item("itemName")
            oColumn.DataBind.SetBound(True, "OSCL", "itemName")
    But It's error when Run at the row is bold. This error:
    oColumn.DataBind.SetBound(True, "OSCL", "callID")     Run-time exception thrown : System.Runtime.InteropServices.COMException - Data Source - Not User Data Source
    Please help me fix problem.
    Thanks
    Edited by: Tao lao on Mar 5, 2008 3:10 AM

    I think, u can't bind the system table system columns to the column of the matrix in the form which is bound to the same table.(though, m not sure on this.) service call is by default bound to OSCL. If u try creating a user defined column in OSCL and then bind it, it works. but, if CallId is already bound on form, and u r bnding it one more time, it will give you error.

  • An error occurred querying a data source - with REST services

    Hi,
    I have a SharePoint 2013 form library library with an info-path form. I need to get the logged in user's 'Display Name' on my form load automatically.
    I used REST service to fetch the current user details. In the preview mode of the form, its showing the right name. But when I publish this form to library I am getting the following error.
    REST Service --> http://site url/_api/SP.UserProfiles.PeopleManager/GetMyProperties
    Please help me to resolve this issue.
    Thanks in advance for your time and reply :)

    Hi,
    According to your post, my understanding is that an error occurred querying a data source with REST services.
    It is defiantly permission issue with GetUserProfileByName service
    and could be many reasons of this problem. You first try with UDCX file and make sure that UPS is running.
    Here are some similar threads for your reference:
    http://social.technet.microsoft.com/Forums/en-US/b8c668ea-7511-4657-a1a8-08fb4a6bd53d/info-path-an-error-occurred-querying-a-data-source?forum=sharepointcustomizationprevious
    http://social.technet.microsoft.com/Forums/en-US/46866ac2-da09-4340-a86a-af72cbb2c8d7/info-path-an-error-occurred-querying-a-data-source-?forum=sharepointcustomization
    http://blogs.msdn.com/b/russmax/archive/2012/08/17/want-to-call-sharepoint-2010-web-services-within-browser-based-infopath-2010-forms.aspx
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Shared Data Source with prompted credentials - errors out.

    Using Data Tools (VS 2010) to build report.
    Have built a simple report while trying to diagnose this issue.  This report is created in a project that was originally built in BIDS2008 and migrated to Data Tools 2010.  This project contains an original shared dataset that does NOT
    error out.
    Report contains
         1) shared data source with properties set to prompted credentials.
         2) shared dataset using data source above
         3) 2 parameters (month and year)
         4) Report uses shared dataset
         5) 2 text boxes in the report body to display the parameters values.
    When I try to preview this report I get the error:
         The execution failed for the shared data set "xxx"
         Cannot create a connection to data source 'Data source for shared dataset'
         Security processing failed with reason "3" ("password missing")
    Now, if I changed that same shared dataset to use a static login and password; the report renders fine.
    What is going on???

    Hi RoseNeedsAVacation,
    When you use shared data source with "Prompt for credential" option, please use SQL Server login credential to u view the report in BIDS or SSDT report designer environment.
    Note: The shared data source will automatic switch to SQL Server authentication mode if we use "Prompt for credential" option.
    After you deploy your report and shared data source to report server, please remember to configure your shared data source to use "Credentials supplied by the user running the report" option. Furthermore, select "Use
    as Windows credentials when connecting to the data source" checkbox if the credentials that the user provides are Windows Authentication credentials. Do not select this check box if you are using database authentication (for example, SQL
    Server Authentication).
    For more information, please refer to the article below:
    New Data Source Page (Report Manager):
    http://technet.microsoft.com/en-us/library/ms180077(v=sql.100).aspx
    Regards,
    Elvis Long
    TechNet Community Support

  • User Data Source in GRC AC 10

    Dear Experts,
    Need clariofcation regarding User data Source for SAP GRC AC .
    Till GRC AC 5.3 we can use only one sap backend system as user data source for gettting users like manager,approver etc and have to change User data source if user reside in some other system .
    Is this been address with GRC AC 10 .
    Thanks & Regards
    Asheesh

    Hi Asheesh,
    Looking at the configuration, you can configure multiple target systems against all of the different data sources and authentication sources. It uses the sequence number to identify in which order these should be accessed.
    SPRO - Ref IMG - GRC - Access Controls - Maintain Data Sources Configuration
    However, in my experience connecting lots of different systems to take elements of user data causes performance issues and often cuases some confusion about the actual data to be displayed. You'll need to consider the field mapping and source elements casrefuly to ensure you don't get conflicting information.
    Simon

  • User Data Source in CUP AC5.3

    Hello,
    What is the functionality of the User data sourcein Compliant User Provisioning?
    We are using HR module and i have created the connector using the Jco destination VIRSA_HRModel.
    I have configured the User data source type as SAP HR System as VIRSA_HRModel and Details source type as SAPHR with System name as VIRSA_HRModel.
    Please explain the functionality.
    Regards,
    Kumar Rayudu

    Kumar,
       As you know CUP is an ticket creation, user provisioning tool with automated workflow. So CUP will need to bring user details or user information for requestor, approver, manager etc. from some kind of source. This is where data source comes into picture. Whenever you need to search for an user ID, CUP will look at the search data source and whenever CUP needs to bring in user information like name, email, phone etc., CUP will use user details data source.
    DO NOT USE JCO IN CUP, ERM AND SPM. You will need to have exactly same connector names in all four modules of AC 5.3 for all of the integration functionality to work. When you use JCo, it will not allow you to change the default name (virsahr_model in your case).
    ONE MORE THING, NEVER EVER TOUCH JCo OTHER THAN VIRSAXSR3 EVEN FOR RAR (CC). VIRSAHR AND VIRSAR3 ARE NOT RECOMMENDED TO USE.
    I hope this helps.
    Regards,
    Alpesh

  • Portal language refresh / reload (user data source ABAP stack)

    Hello,
    I'm on SAP NetWeaver Portal 7.0 with user data source on ABAP stack.
    I'm trying to create simple JavaScript links for changing the Portal language.
    I was able to change the ABAP stack user's logon language by BAPI call.
    But the newly set language shows up only after the user logs out and logs in again.
    I know that in the WebDynpro for Java, which implements the UME user interface, there is a functionality, that allows that relogging of the user is not necessary. After setting the language you only refresh the browser page (F5) and the new language shows up.
    Does anyone know what function I should call, for the language refresh (could be the same as in UME standard WDJ)?

    Hi Andres,
    language doesn't change on the Portal. The content remains in the previous language.
    I know that the switching of Logon language parameter in the user profile in ABAP stack and logoff and login on the portal leads to change of the language on the Portal. But I don't know, how to do it without the relogging of the user.
    I change the Logon language in ABAP by AJAX call of BAPI.
    Thank you for any idea.
    Jiri

  • User data Source

    dear all
    how can i know the user dat source index in Good Receipt's matrix??
    I need to read the uncommited value in the matrix.

    Hi Ian,
    I think that is a system data source...if you want to access it (read only), explore the DBDataSource collection of the mentioned form.
    Hope this helps

  • Generic Data source with Infoset Query

    Hi All,
    Please provide me the links or PPT's or Information or PDF's for the creation of the Generic Data source with Infoset Query or
    Please explain in clear steps how to create Generic Data source with Infoset Query.
    Thanks & Regards,
    Ravi

    Oopps...being a BI guy, always think of BW
    I have never created, though I will suggest to follow this:
    A query can be created to extract information from master records i.e Infotypes. For example, by creating a query , the data relating to an employee contained in various Infotypes can be extracted.
    Proceedure :
    Decide on the various Infotypes we want to make the query. Decide on the area where we want to query i.e Global area or Standard area. Standard area is client specific and globel area will include all clients.
    Menu : HR u2013 PM u2013 Admn - Information System - Adhoc Query
    Select area standard and select the user group already created
    Creation of new query :
    TC SQ03 - Select Environment u2013 Select Standard Area - Enter -- If new user group is to be created, enter name of the user group, click on create and enter necessary information and exit after saving
    TC SQ02 - Enter name of the Infoset u2013 Create u2013 enter name of Infoset - Data source -- > Table join by basis table u2013 give name of table e.g pa0000 - Enter - Click on insert table if we want to include more tables u2013 give name of table one by one and after finishing, place cursor on the joining lines and right click to delete unwanted relationships - check - and go back - field groups - include all table fields - click on generate button - go out
    TC SQ03 - Select user group - eg. Payroll
    Infoset - Enter name of newly created Infoset
    Assign users and Infosets - Assign infosets - put tick on payroll - save and go back
    TC PAAH - Expand the nodes and put tick on relevant fields depending upon necessity
    Save the query by giving the same name as infoset for easyness..
    Thanks...
    Shambhu

  • AE 5.2: Using Database as  User Data Source

    Hi all,
    we have a problem connecting our User Data Source, which is basically just a DB accessible via SQL, to Access Enforcer 5.2 SP08.
    To my knowledge AE only supports LDAP, SAP, SAP UME and SAP HR, none of which will be able to extract the data from our data source.
    Is there a way of directly mapping the DB fields with our user data to the AE request fields (like the LDAP mapping, but without using the LDAP protocol)?
    Would there be a workaround like attaching the UME to an external database? SAP Help only refers to the following sources:
    "UME can use the following types of data sources: Database of the AS Java, Directory service, User management of the AS ABAP"
    If so, would this also work with a dual stack system (ABAP&JAVA)?
    Thanks,
    Daniela

    Hi,
    I'm not sure of all the complexities around this but we had a similar problem where the user respository we used could not be connected using LDAP.
    The solution that was implemented was to create an ADAM (Active Directory Application Mode) directory, which is connected to the user repository - ADAM is then connected the UME for AE as the LDAP server.
    Probably not the most elegant solution, but we have been using this in  PRD environment for a couple of months now without any performance issues.
    Unfortunately I don't have all the details to guide you through all the config that was required, but perhaps you could investigate this as an alternative solution.
    Regards

  • Not able to create a Data source with qty filed in the table

    Hi i am having scenario.
        i am doing a Genric R/3 extraction for R/3 system. I created a view from two tables. I have added a net quantity field also in then view table. But when i created a data source for that view it is showing a error message which says that it cannot create a data source with a quantity field in the table.
    Here is my question. How to create a Data Source for a view table which has Qty filed in it.
    Pls help with this.
    Senthil

    Hi Sensai,
       U need to add reference table for the unit .... when added into the view u create .......the reference table name u can find in the table itself from where it is brought into the view.... in the table currency quantity fields........
    U can add that table in the currency /quantity fields of the view....u need to add referecne field and table...and activate ........
    i think it works
    Regards
    vamsi

  • Errors in the high-level relational engine. A connection could not be made to the data source with the DataSourceID of '

    When I deploy the cube which is sitting on my PC (local) the following 4 errors come up:
    Error 1 The datasource , 'AdventureWorksDW', contains an ImpersonationMode that that is not supported for processing operations.  0 0 
    Error 2 Errors in the high-level relational engine. A connection could not be made to the data source with the DataSourceID of 'Adventure Works DW', Name of 'AdventureWorksDW'.  0 0 
    Error 3 Errors in the OLAP storage engine: An error occurred while the dimension, with the ID of 'Customer', Name of 'Customer' was being processed.  0 0 
    Error 4 Errors in the OLAP storage engine: An error occurred while the 'Customer Alternate Key' attribute of the 'Customer' dimension from the 'Analysis Services Tutorial' database was being processed.  0 0 

    Sorry hit the wrong button there. That is not entire solution and setting it to default would work when using a single box and not in a distributed application solution. If you are creating the analysis database manually or using the wizard then you can
    set the impersonation to your heart content as long as the right permission has been set on the analysis server.
    In my case I was using MS Project Server 2010 to create the database in the OLAP configuration section. The situation is that the underlying build script has been configured to use the default setting which is the SQL Service account and this account does
    not have permission in Project Server I believe.
    Changing the account to match the Project service account allowed for a successful build \ creation of the database. My verdict is that this is a bug in Project Server because it needs to include the option to choose impersonation when creating the Database
    this way it will not use the default which led to my error in the first place. I do not think there is a one fix for all in relations to this problem it is an environment by environment issue and should be resolved as such. But the idea around fixing it is
    if you are using the SQL Analysis server service account as the account creating the database and cubes then default or service account is fine. If you are using a custom account then set that custom account in the impersonation details after you have granted
    it SQL analysis administrator role. You can remove that role after the DB is created and harden it by creating a role with administrative permissions.
    Hope this helps.

  • Access enforcer and User Data Source for HR

    We are on Access Enforcer 5.2 - service pack 2:
    My problem is that when creating a new request in AE, I able to get a list of all users when I point my User Data Source to either SAP or UME. However when I attempt to create a request whilst pointing the User Data Source at the SAPHR system, I do not get any users back (and we have user set up in the SAP HR system).
    I’ve changed the connector to ‘YES’ under the HR System box, I’ve changed the Data Source Type and Details Source Type to point at the SAPHR and still it fails to fetch any users.
    I've tried looking at the log, but can't get much out of it.
    I would appreciate it, if anyone could provide any assistance.
    Thanks you in advance.
    Amarjit
    Message was edited by:
            amarjit singh

    Hi Micheal,
    Thanks for your reply.
    I'm pointing both Data Source Type and Details Source Type to the same system SAPHR and to the same system name (which is our dev system)
    Regards,
    Amarjit

  • Using JDBC Data Sources with ADFBC, NoInitialContextException

    Using JDBC Data Sources with ADF Business Components, NoInitialContextException
    I follow the instruction in the link below to create an ADF Swing application using datasource. I am using JDeveloper version 10.1.3.
    http://www.oracle.com/technology/products/jdev/howtos/10g/usingdatasources/using_datasources.html
    The ADF generated code looks like this:
    JUMetaObjectManager.setErrorHandler(new JUErrorHandlerDlg());
    JUMetaObjectManager mgr = JUMetaObjectManager.getJUMom();
    mgr.setJClientDefFactory(null);
    BindingContext ctx = new BindingContext();
    ctx.put(DataControlFactory.APP_PARAM_ENV_INFO, new JUEnvInfoProvider());
    ctx.setLocaleContext(new DefLocaleContext(null));
    HashMap map = new HashMap(4);
    map.put(DataControlFactory.APP_PARAMS_BINDING_CONTEXT, ctx);
    mgr.loadCpx("datasource.view.DataBindings.cpx" , map);
    final FormMain frame = new FormMain();
    frame.setBindingContext(ctx);
    I got this error when executing the last line: frame.setBindingContext(ctx);
    (oracle.jbo.common.ampool.ApplicationPoolException) JBO-30003: The application pool (datasource.datamodel.AppModuleDS) failed to checkout an application module due to the following exception:
    ----- LEVEL 1: DETAIL 0 -----
    (oracle.jbo.JboException) JBO-29000: Unexpected exception caught: oracle.jbo.DMLException, msg=JBO-27200: JNDI failure. Unable to lookup Data Source at context jdbc/xe_hrDS
    ----- LEVEL 2: DETAIL 0 -----
    (oracle.jbo.DMLException) JBO-27200: JNDI failure. Unable to lookup Data Source at context jdbc/xe_hrDS
    ----- LEVEL 3: DETAIL 0 -----
    (javax.naming.NoInitialContextException) Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
    If I configure the application module connection type as JDBC URL, everything works.
    If the connection type is JDBC Datasource, I got the above error.
    Can someone show me how to adjust the generated code by ADF to use datasource?

    ADF BC has a bug. With Data Source in Application Module, application module does not connect. Use JDBC Connection URL.
    Also refer
    ADF BC: JDBC URL vs JDBC DataSource

  • GRC 10/10.1 User Data Source question

    Hi folks, I've been unable to find any document that addresses this so I thought I'd ask.
    I've configured GRC 10.1 so that the GRC system is looking at the ECC system and all the scenarios are configured and things are working well.  We have a separate LDAP issue, and until that's resolved, the user data sources have been set to the ECC system.
    Specifically for Firefighter, we want to create Firefighters in the GRC system and assign them IDs that are configured in the ECC system so that they can get in for Firefighter related access and get their work done.  Many of these people are not in the ECC system.
    I realized that I have not set up the GRC system as a connector within the GRC connectors configuration.  I also did not find any reference to this in any of the documentation that's available out there.
    So I wanted to know how do you get the GRC system to become available as a user data source so that in the event a user is not available in the ECC system, and as in our case, LDAP isn't working, the user will still pull up because they exist in the GRC system?
    Can I use a connection type of LOCAL in the "Change View "Connection type definition": Overview" Screen?
    Please advice.
    Thanks,
    Santosh

    Hi Santosh,
    If your requirement is to use GRC as a data source, configure it as a SAP connector as you do for other SAP systems (the underlying system of GRC is Netweaver so its SAP as well).
    Once the connector is configured, you can use that in your "data sources configuration - user search data source". List all your connectors and the sequence in which the user ID has to be searched for.
    For  your case.,
    1. LDAP connector
    2. ECC connector
    3. GRC connector
    Thanks.
    Regards,
    Muthu

Maybe you are looking for

  • Unable to install Oracle 8.1.6 on Windows 2000

    I installed a new Windows 2000 Advanced Server on a new Dell Dimension 8100 w/ 256 mb ram. Then I inserted oracle 8i Enterprise Edition 8.1.6 into the cd rom and click on installed, but after a few seconds nothing happens. I've installed the same thi

  • Acrobat 9 Pro Installed - Pagemaker 6.5 shuts down......

    Acrobat 9 Pro Installed - Pagemaker 6.5 shuts down...... So I bought Acrobat 9 Pro to add to a machine. - I go to use Pagemaker 6.5 - The program will start but you can't save or open a 6.5 file without it shutting down pagemaker. Is there a fix? Jus

  • Photoshop CS2 for Win 7 won't recognize file type

    I scanned some images using Phtoshop CS2 and saved them in Photoshope as jpgs. But apparently photoshop interpretted the end of the file name that I typed as a file extension - so a file that was called Portrait-06.22.1999 - was saved as a "1999" fil

  • Illustrator file missing objects when placed in InDesign

    I created an Illustrator file that has text converted to outlines. Some of it is white and some of it is other colors. When I save the file as eps, pdf or export as jpg and then place the files in InDesign, the white outlined text doesn't show up. Ad

  • Using ALV function with tables

    Hello Everyone, Can anyone pls explain with an example how to use ALV in unicode to write out a table.  Since following statements is porducing error: write:/T510N, 'T510N was changed'. it gives uncompatible error.  In non unicode system it works fin