DBDataSource binding and matrix

Hello SBO programmers
It is the idea to fill up the field(s) of the business partner menu identified by debug info as follows:
Send to [Form=134 Item=178 Column=1 Row=1 Variable=14 CRD1,Address]
                          (Column=45,44,2 and so on ...)
As far as I know is, that an item of class matrix
has to be accessed with using datasources.
Now I have the idea, that the table CRD1 is
such a datasource.
    Dim oForm As SAPbouiCOM.Form
    Dim oDBDataSource As SAPbouiCOM.DBDataSource
    Dim sNewValue, sActualValue As String
    Dim i As Integer
    oForm = SboAppl.Forms.GetFormByTypeAndCount(134, FormTypeCount)
    oDBDataSource = oForm.DataSources.DBDataSources.Item("CRD1")
    i = oDBDataSource.Size
    i = i - 1
    '  with this statement the value "Send to " results
    sActualValue = oDBDataSource.GetValue("Address", i)
    '  -> sActualValue == "Send to "
    sNewValue = "Send to another address"
    '  <i>but this following statement is not executed, the program runs out</i>
    oDBDataSource.SetValue("Address", i, sNewValue)
WHY is the address not overwritable ?
Is it the right way or must be choosed another way ?
Thank You very much for feedback.
Best regards
Guido Baumeler
IVM Engineering AG

Hi Guido,
In order to add addresses to the Business Partners, use the BusinessPartner.BPAddresses.Add method.
From the DI API help:
Description
BPAddresses is a business object that represents the addresses list of a specific business partner. This object is part of the Business Partner module of the SAP Business One application.
You can retrieve or set this object by using the Addresses property of the BusinessPartners object.
This object enables you to add the address details of a business partner.
Source table: CRD1.
Hope helps,
Ibai Peñ

Similar Messages

  • How to bind the matrix as a whole

    hi,
    I am trying to bind the matrix with the recordset.But I am binding cell by cell which looks very hectic.
    How can I bind the matrix as a whole.

    You then should use DBDataSource object. More about it you can find in SDK directory (samples) and in UI-Help (definitions).

  • User defined Table and matrix problem

    Hi,
    I have a user defined table. I am displaying data from this table using DBdataSource on a matrix in my form. After making changes to a cell on the matrix when i try to save the data back to the data source, the changes are not updated. I am using SBO2004 and using FlushToDataSource method to save the changes.
    Please help.
    Thanks.

    Fabio,
    I disagree with you, FlushtoDataSource does work on user form too.
    Once you use this function, you'll have to open a the userTable object, and save the records from the DBDataSource object to the table using this object.
    Sébastien

  • Model Binding and Calculated Field Syntax for "class" Attribute

    Hi,
    I tried to use the calculated field syntax from SAP UI5 to change the CSS class attribute of an element based on some model property, i.e., I wanted to change the class in the corresponding formatter function based on the currently bound value. However, my formatter function is not called. When I use the same syntax on a text attribute, it works.
    I also tried to use normal property binding, but it did not work on the class attribute either (it just put class="{property}" in the rendered HTML).
    Is there anything I missed or is it just not possible to use property binding and calculated field syntax for class attributes? Did anybody try something like this before?
    I think it is a standard use case to change the CSS class based on some model property. So, if anybody knows how to do that, could you give a short example?
    Best regards
    Svenja

    They have a class property. At least, I can do the following in an XML view:
    <Button
                  icon="sap-icon://add"
                  press="onButtonPress"
                  class="my-button-class" />
    I would expect the following to work as well, but for me it did not:
    <Button
                  icon="sap-icon://add"
                  press="onButtonPress"
                  class="{/customClass}" />
    This renders the following HTML (cropped to the important parts):
    <button type="button" class="sapMBtn {/customClass}">
    </button>
    It seems like the class attribute is something special although I don't see a reason why. Other HTML templating engines, for example, support things like that.

  • Getting "Ordinal binding and Named binding cannot be combined" error

    Hello,
    I am getting following exception while calling stored produre:
    *"Ordinal binding and Named binding cannot be combined"*
    I am calling stored procedure with JDBC with 1 input parameter and 1 output parameters as mentioned below:
    CallableStatement collableStat = connection.prepareCall("{ call sp_clnt_intermed_validation(?,?) };
    // Registering In parameters          
    collableStat.setString("p_user_name", "SampleUser");                              
    // Registering Out parameters
    for(String paramKey : paramKeysSet) {                                   
    collableStat.registerOutParameter("p_success_flag", Types.VARCHAR);
    // execute stored procedure
    collableStat.execute();
    Please guide.
    Regards,
    Akshay.
    Edited by: 914678 on Feb 15, 2012 5:48 AM

    Why is the registerOutParameter in a loop?
    You don't state your DB version but as of 10g there is no support for named parameters for a PL/SQL function because there is no 'name' of the returned parameter. So use ordinal indexes for both parameters.
    Instead of
    collableStat.setString("p_user_name", "SampleUser");
    collableStat.registerOutParameter("p_success_flag", Types.VARCHAR);use
    collableStat.setString(1, "SampleUser");
    collableStat.registerOutParameter(2, Types.VARCHAR);Next time post this in the JDBC forum.
    Edited by: rp0428 on Feb 15, 2012 11:48 AM

  • How could I bind a Matrix Colum (EditText)

    How can I bind a matrix column to a table with an column e.p
    Table: xy
    Colum: zy
    MatrixcolumID = 5
    Thx for regards

    HI,
    I think the following code sample may help you to bind the matrix column
           Dim oItem As SAPbouiCOM.Item              
            Dim oColumns As SAPbouiCOM.Columns        
         Dim oMatrix As SAPbouiCOM.Matrix
         oItem = oForm.Items.Item("matrixname")
            oMatrix = oItem.Specific
         oColumns = oMatrix.Columns
         colItemCode = oColumns.Item("ColumnUID")
         colItemCode.DataBind.SetBound(True, "xy", "zy")
    Regards
    Ajith G.

  • Where to find javax.xml.bind and javax.jdo

    One of my application require import javax.xml.bind and javax.jdo packages. I could not find them. Someone can help to let me know where to download them or they come with some other toll\packages?
    Thanks
    John

    Hi John ,
    I have the same problem: Getting the javax.jdo Packge . . . .(WHERE ?)
    if you found out ow already, please tell me at: [email protected]
    thanks,
    edan

  • Qualification Catalog and Matrix Load (SAP MRS)

    We are looking to load Qualification Catalog and Matrix using excel/csv file, in SAP MRS.
    Any BAPi/function module that we can refer to.... Any other inputs/pointers on developing this load program - please share...

    Yes, we were able to load using standard FMs...
    Qualification Catalog (using Function Module /MRSS/SQM_API_CAT_CREATE)
    Qualification Matrix (using Function Module /MRSS/SQM_API_MAT_CREATE)

  • Component binding and state saving

    Hello,
    I have a few questions in regards to component binding and state saving (specifically in regards to the reference implementation) when the saving method is client and backing-beans are in the request scope rather than in the session scope:
    1) if a component instance is bound to a backing-bean property then does the state of that component get saved when the view state is saved?
    2) for UIData component, if the component value is bound to a list, does the actual list (after being wrapped) serve as the local data for the component? If this is the case, when the state is saved and then subsequently restored, does the list get re-created with the original number of items?
    Regards,
    Len Takeuchi

    Thanks for the quick response.
    (2) The actual list is not saved; the list will be
    re-queried on subsequent requests.The list composition may have changed by the time the list is re-queried. If the table being displayed is updatable then transfer of information from request back to the list (during Apply Request Values) may not happen properly. So does that pretty much mean that the original list has to be kept around (in the session)? If the state saving method is server then does the saved state maintain a reference to the original list across requests?
    Len Takeuchi

  • Where can I find BIND and C-compiler software

    I just install Solaris 8 on my sunblade, i t will be used as a test DNS server. Does anyone know where can I find/download the BIND and CC software? Is it on the installation CD or do I need to download. Thanks.
    Sonny

    It might be on the "Software Companion" CD in the Bonus Software booklet but gcc & bind are also located at:
    http://sunfreeware.com/
    Click on Sparc/Solaris 8 to see what versions are available.
    Download info & FAQs are in left column.
    John

  • WD Tut18: when to bind and when to addElement() ???

    Hi All,
      I am trying <b>Context Programming and Data Binding (18) tutorial</b>.
      I am slight confused.. when to bind() and when to addElement()'s:
    page 22>>
    newCustomerNodeElement.nodeAddress().bind(newAddressNodeElement);
    page 26>>
    node.addElement(newOrderNodeElement);
    page23 explanation >>
    Note that, if you call the method bind (newCustomerNodeElement) instead of addElement(newCustomerNodeElement), only the last bound node element of the type Customer is contained in the list of node elements. That is, wdContext.nodeCustomers().bind(newCustomerNodeElement) overwrites the list of node elements of the type Customer.
      Is it that .. when the cardinality is 0..1 (or) 1..1>> we have to <b>bind</b> elements and when cardinality 0..n (or) 1..n >> we have to <b>addElement();</b> ??
      Also i didn't get the exact advantage of a supplyFunction.
    Can any1 help me out ?? explain me .. more detailedly ???
    Thank u very much in advance,
    kanth.

    Beginner,
    In general, bind and addElement are interchangeable: you may either bind or addElement.
    For example, if cardinality is 0..1 you may add sole element or bind this element. If the cardinality is 0..n then you may either bind collection of elements or add elements one by one.
    Typically, bind is used when you populate node content initially, addElement is used when user adds/removes already populated node.
    VS

  • Is there a Difference between Binding and Mapping

    Hello together,
    in SAP NetWeaver Library they speak about Data Binding and Mapping
    http://help.sap.com/saphelp_nw70/helpdata/en/77/3545415ea6f523e10000000a155106/frameset.htm
    Is Binding and Mapping the same thing? Or is there any difference?
    Am I right in thinking binding works the following way:
    There´s Context-Element NAME into the Component-Controller-Context,
    a Context-Element NAME into the View-Controller-Context and one UI-Element on my View-Layout.
    In the next step, I bind View-Controller-Context-Element NAME against the Element in the Component-Controller-Context, and the UI-Element against the element into the view controller.
    While runtime, the Context-Element of the Component-Controller-Context gets created.
    Is it right, that because of the binding, all involved Controller-Contexts work on the same reference of the
    data-object, which is behind Context-Element NAME?
    Thank you very much.
    With regards,
    Oliver

    Hi,
    Both are different,binding is between view UI element and view context node/attribute.Mapping is between two controlleres like view controller and component controller.The detailed information is given in the below article about context.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/60730016-dbba-2a10-8f96-9754a865b814
    also check this document about different contrlleres in Web Dynpro for ABAP
    http://help.sap.com/SAPHELP_NW04S/helpdata/EN/b9/b82c4142aef623e10000000a155106/content.htm

  • How fast does Labview perform integer, float and matrix calculations?

    What is the speed of a modern CPU? Ok it is 3Ghz, one to four cores etc. but how much work can I get done in one clock cycle at this speed?
    This kind of questions have been in the back of my head for some time, so I decided to test it. Of course using Labview since it so easy to to use!
    I wrote a really simple program that performed 10000 adds 3 to an 32 bit integer in a loop. It then repeats this until 1000ms has elapsed and calculates the MegaInts (or whatever I should call it). I then did the same thing by adding 3 to a matrix of 10000 32bit ints.
    On and dual core 3Ghz PC from 2005 I got 261 Mints in a loop, and 1400 Mints in matrix. Only one core seems to be used, CPU load aorund 50%. So every two clock cycles or so I get some work done in a matrix calculation. Also older 1,8Ghz Celeron computers performs about the same in this test, even though they feel very slow in normal use.
    On a newer 4/8 core 2,8Ghz PC from this year I got 830 Mints in a loop, and 5900 Mints in matrix. Only one core seems to be used, CPU load aorund 12%. So actually more than one add per clock cycle!
    This indicates that either the compiler is smarter than me and does not to all integer adds, or the CPU is smart and do them very fast!
    See this as not the complete benchmark of Labview in integer, float and matrix calculations, but as a teaser to make you do your own tests.
    Play around and have fun!

    Norbert_B wrote:
    Yamaeda wrote:
    A standard loop only runs in 1 thread,[...]
    That is not true.
    A standard loop follows the clumping algorithm during compilation. Clumps can be distributed on any number of threads.
    So, a standard loop CAN be distributed between several threads.
    There are, however, some settings and structures which will result in a single thread per loop:
    - Setting the calling VI to "subroutine" priority (not recommended)
    - Using a Timed Loop instead of a standard one
    - AFAIK: Containing the loop in an InPlace Element Structure with "Data Value Reference" border nodes
    There is at least one additional option, but it is so unlikely (as it messes up with most of LV!) that i will not point it out here.....
    Norbert
    Why would we have parallellization options for a loop if it's already multithreaded? I'd love if loops would automatically parallellize.
    If you mean the content inside the loop, then it'll follow ordinary optimization and use several threads if possible. In this case OP mentioned 1 cpu was at 100%.
    /Y
    LabVIEW 8.2 - 2014
    "Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
    G# - Free award winning reference based OOP for LV

  • Difference betwee "Binding" and "Partner Link"

    Hi Forum - Could you please explain the difference between Binding and Partner Link and when to use which one?
    Thanks!

    Thanks for the explanations. Can I create a service with just the SOAP binding without usnig BPEL partner links in Oracle BPEL?
    I have tried this however BPEL is adding a reference to my WSDL and then creating a partner link by itself in the reference binding. How can I stop it from doing that?
    The reason I want to do that is becasue I have a BPEL project which has two processes, which I expose as web sevices by creating the WSDL file manually (not using auto wizard).
    I have deployed this project on weblogic soa domain but its giving me two endpoints for it and two links to wsdl file, one for each process. Is this normal?
    Thanks!

  • Difference between binding and value

    Hi
    I am new to JSF
    Can you tell me what is the difference between binding and value attribute of a
    JSF component ?
    Many thanks.

    Hi,
    the binding is the component association to a managed bean (or backing bean). This allows you to manipulate the component in Java code stored in a managed bean.
    The value is what the actual component value is.
    Frank

Maybe you are looking for