Set active column of matrix using SDK

Hi,
How do i set active (FormSettings>TableFormat>Active Checkbox) column of matrix in order form using SDK?
Thanks

HI
replace the COLID with the id of the column, and put this code into the form_load event and beforeaction=false
        oMatrix.Columns.Item("COLID").Editable = True
        oMatrix.Columns.Item("COLID").Visible = True
regards,
J.
if the answer is ok, please reward.

Similar Messages

  • Setting Activity AttendEmpl or AttendUser via SDK

    Dear all,
    I'm developing a procedure via SAP DI SDK to create new Activities into SAP B1.
    Iuse the SAPbobsCOM.Contacts class.
    I need to set the OCGL AttendEmpl / AttendUser fields
    Is it possible via SDK?
    I can use the HandledBy property only if the Employee is also a SAP user.
    How can we set AttendEmpl / AttendUser fields via SDK when the Employee is not associated to a SAP user?
    Best regards
       Emanuele

    Dear Beni,
    thank you for your help.
    I solved the problem using
    Dim oCompServ As SAPbobsCOM.CompanyService = Nothing
    Dim oActivityServ As SAPbobsCOM.ActivitiesService = Nothing
    Dim vNewActivity As SAPbobsCOM.Activity = Nothing
    oCompServ = oCompany.GetCompanyService
    oActivityServ = oCompServ.GetBusinessService(SAPbobsCOM.ServiceTypes.ActivitiesService)
    vNewActivity = oActivityServ.GetDataInterface(SAPbobsCOM.ActivitiesServiceDataInterfaces.asActivity)
    vNewActivity.HandledBy = dsOrders.Tables(0).Rows(iterOrders).Item("HandledBy")
    oActivityServ.AddActivity(vNewActivity)
    Best regards
        Emanuele

  • BC sets activated in the system

    Hi All,
      I want to check what all BC sets are activated in my system.
      Could you please guide me the navigation path.
    I understand that with the transaction SCPR20 I can see what all BC sets are available in the system.
    Regards,
    Jitender

    Hello,
    you can look in the tables
    SCPRACPM                       BC Sets: Activation Logs (Messages)      
    SCPRACPP                       BC Sets: Activation Logs (BC Set Names)  
    SCPRACPR                       BC Sets: Activation Logs (Activated Data R
    SCPRACTP                       BC Set: Activated in local system        
    SCPRACTR                       BC Set: Active records in Local System   
    SCPRACTST                      BC Sets: Activation Status               
    SCPRACTV                       BC Sets: Activated in local system (old) 
    SCPRACTW                       BC Set: Active Values in Local System    
    SCPRACTX                       BC Set: Activated in local system        
    using transaction SE16.
    Hope this helps.
    Kr,
    Andreas

  • Set value of System Matrix Form using SDK

    Is is possible to set matrix value using SDK of user defined form. Plz forward code for same.

    Yes it is possible. You need to get the form and into the form the item, cast it to a matrix and then set the values into it.
    There is plenty of samples you can use to learn about UI API. You can download them directly from SDN.

  • Any way to know whether the column of matrix is active at run-time?

    Hi all,
    I have posted similar question earlier but it was for setting the column prefrences . In a system form, I am having some user defined columns to which I am copying some data. If they are not active, and if I try to do
    Matrix.Columns.Item("U_STNLineno").Editable = True,
    It gives me 'form item is not editable' error.
    I can fetch the active status from CPRF table, but it  updates the status only after SAP B1 is closed.
    If atleast, I know, at run time, tht the column is not active, I can prompt user a warning to make it active from form settings.
    But, How do I know whether the column is active or not?
    any clue?
    Thanks in advance..
    Binita

    Maybe is better solution, but I`m doing it that I`m trying in system objects to do
    Matrix.Columns.Item("U_STNLineno").Editable = True
    between try catch statement and if is there any error which contains "editable" sentence, I know that it is`nt allowed.
    it should be done as
    on error resume next
    Matrix.Columns.Item("U_STNLineno").Editable = True
    if Err.Description <> "" then
    -- cannot set
    end if
    on error goto 0
    Petr

  • Using CASE to return a set of columns

    Good day all,
    Many times I have used the CASE construct to return a value based on a set of conditions but now I have a need to return a set of columns based on a set of condition.
    Look at this
    A
    =====
    id
    name
    account
    zip_code
    status
    B
    =====
    id
    name
    account
    zip_code
    C
    =======
    id
    name
    account
    zip_code
    D
    ======
    id
    name
    account
    zip_code
    I want a query that would return
    id - of A
    name, - of A
    beneficiary, - name column of either, A, B, C or D depending on the value of A's status (A, B, C, D)
    account, - account column of either, A, B, C or D depending on the value of A's status (A, B, C, D)
    zip_code - zip_code column of either, A, B, C or D depending on the value of A's status (A, B, C, D)
    Can anyone help with construct that could achieve this with queries only. I don't feel like this warrants PLSQL.
    regards

    Hi,
    Is this what youa re looking for?
    As Frank has said not sure what is the relationship between your tables and what Output you expect.
    Sample Data used.Avoid using reserved words for column like ID and NAME
    create table a (id1 varchar2(10),name1 varchar2(10),account1 varchar2(10),zip_code varchar2(10),status varchar2(10))
    create table b (id1 varchar2(10),name1 varchar2(10),account1 varchar2(10),zip_code varchar2(10))
    create table c (id1 varchar2(10),name1 varchar2(10),account1 varchar2(10),zip_code varchar2(10))
    create table d (id1 varchar2(50),name1 varchar2(50),account1 varchar2(50),zip_code varchar2(50))
    insert into A values (0, 'michael', '000000', '213401', 'A');
    insert into A values (1, 'johnson', '63423', '093401', 'B');
    insert into A values (2, 'fred', '23221', '203901', 'D');
    insert into B values (1, 'brother', '1129812', '093083');
    insert into B values (2, 'stuggard', '0093732', '087366');
    insert into B values (3, 'jekins', '9009387', '329838');
    insert into C values (1, 'mary', '009300', '093083');
    insert into C values (2, 'lori', '112212', '654032');
    insert into C values (3, 'helen', '909083', '938292');
    insert into D values (1, 'mother & father', '093291', '329232');
    insert into D values (2, 'Uncles & Aunties', '098762', '742326');
    insert into D values (3, 'Grannies', '237643', '864433');
    Query
    select 
    case when a.status='A' then
    a.id1
    when a.status='B' then
    b.id1
    when a.status='C' then
    c.id1
    when a.status='D' then
    d.id1
    end ID1,
    case when a.status='A' then
    a.name1
    when a.status='B' then
    b.name1
    when a.status='C' then
    c.name1
    when a.status='D' then
    d.name1
    end ID1
    ,case when a.status='A' then
    a.account1
    when a.status='B' then
    b.account1
    when a.status='C' then
    c.account1
    when a.status='D' then
    d.account1
    end account1,
    a.status status,
    case when a.status='A' then
    a.zip_code
    when a.status='B' then
    b.zip_code
    when a.status='C' then
    c.zip_code
    when a.status='D' then
    d.zip_code
    end zip_code
    from a ,b,c,d
    where a.id1=b.id1 and b.id1=c.id1 and c.id1=d.id1Cheers!!!
    Bhushan

  • Howto use formula columns in matrix reports

    Hello
    How can i use a formula column in matrix report whose function would be
    Formula_Column_Result=A-B where A=Cell A
    B =Cell B
    Regards
    Fahad

    Hii guys
    I solved my problem on my own.
    i wrote
    SELECT * FROM EMP WHERE EMP.DEPTNO=P_DEPT_NO
    and it worked.
    Thanks guys..i luv this forum
    Regards
    Fahad Hameed

  • How to use Special value set with Column clause to display addtional column

    hi
    can anyone tell me
    How to use Special value set with Column clause to display addtional column
    how can i use FND POPID and with COLUMN clause ?

    Dear Yaseen,
                To get the value in formula cumulative,after you have created the formula for that particular key figure,go to edit and click on tab "calculations".
    In that select overall result as 'count all values not equal to zero' and single result as 'count all values not equal to zero' .
    And mark the cumulative check box underneath.
    I hope you get the desired result and please do me favour .
    Sumit goomber

  • How to set unequal columns using master pages in InDesign CS3?

    How to set unequal columns using master pages in InDesign CS3?

    I don't have CS3 anymore but I don't think this has substantially changed in the last few versions of InDesign.
    Choose View > Grids & Guides > uncheck Lock Column Guides. Then drag the column guides to the position you want.

  • Inserting multiple columns into database using dbtool set

    I have  a labVIEW program that is currenly simulating voltage and a current signal using the DAQ Assistant. I'm using the database connectivity toolset. I am currently able to insert one signal into the database converted to a float(I can insert both into the same column as bianary but it needs to be stored as a usable format and in seperate columns.)
    The problem I am having is at the DB Tools Insert Data block. I have the connection, dbTable, error code, and create table boolean being passed into it. Where I am a little lost is how to set the columns I want to store the multiple signals into.
    If someone could break that part down for me that would be great. In short, I want to store voltage(channel0) and current(channel1) from the DAQ Assistant into their own respective columns in the db.
    Message Edited by DonPoulson on 07-10-2007 11:04 AM

    Don,
    This particular forum is specific to TestStand, not LabVIEW or Multifunction DAQ. You may have a better chance at responses by posting to either of those forums rather than here.
    Brandon Vasquez | Software Engineer | Integration Services | National Instruments

  • I got a blacklisted iphone 5 from att and I reset it and now when I try to set it up it needs a sim card so I went to the att store and they put a sim in and on the iPhone it says replacement needed couldn't complete activation.i just want use it as a ip

    I got a blacklisted iphone 5 from att and I reset it and now when I try to set it up it needs a sim card so I went to the att store and they put a sim in and on the iPhone it says replacement needed couldn't complete activation.i just want use it as a ipod

    To use it as an iPod it must be activated...to do that it has to accept a sim.  A blacklisted iPhone cannot do that.  Take it back to AT and T where you got it and get your money back.

  • Form Setting using SDK

    Hi,
    How i will do form setting using SDK.
    Regards,
    Avijit

    Hi,
    Refer this.
    Form settings using SDK
    Regards,
    Mahendra

  • Set the column order in document library using power shell

    hi all,
     am looking for a power shell script which set the column order in the document  library, when i try to upload a  document.
     ie; i am  uploading a  doc to the doc lib. which has the below columns:
     columnA -   [choice field  - mandatory ]
     columnB -   [lookup field  - mandatory ]
     columnC -   [single line of text  - optional ]
     columnD -   [choice field  - optional ]
     columnE -   [choice field  - mandatory ]
    now when  the end user uploads a   document in my doc lib, i would like to see the mandatory columns takes up the top order and then optional fields.
     columnA
     columnB
     columnE
     columnC
     columnD
    so, is there any script, through which i can set the mandatory columns which will be coming in top and the optional fields as next order

    This is sample PowerShell code to reorder fields in a content type of a list.
    $web = Get-SPWeb http://aissp2013/sites/TestSite
    $list = $web.Lists["MyList"]
    $contentType = $list.ContentTypes | where {$_.Name –eq "MyTestCT"}
    $ctArray = "Title","ColumnA","ColumnB","ColumnD","ColumnC"
    $contentType.FieldLinks.Reorder($ctArray)
    $contentType.Update()
    Blog | SharePoint Learnings CodePlex Tools |
    Export Version History To Excel |
    Autocomplete Lookup Field

  • Form settings using SDK

    Hi Friends
    I am doing on Purchase order form.i need to set visible some column of matrix visible and active (in table Format and RowFormat) with out using form setting inter face , means through code using SDK.Is it possible
    Thanks

    sorry, i haven't yet get a solution.
    actually i need to  position my userfield in between Quandity and UnitPrice. In Table CPRF I Changed its 'VisualIndx' and 'ExpandIndx'
    Now in Table CPRF Record is Like below
    ColID                            VisualIndx             ExtendIndx
    Quantity(Coulumn11)             13                          13
    UnitPrice(Coulnn 14)              17                         257
    UserField -                            14                          14
    But still dispalying my UserField on last Column.
    I did all the process after SAPB1 Application stoped
    Edited by: Muna on Jul 24, 2008 12:03 PM
    Edited by: Muna on Jul 24, 2008 12:05 PM

  • Problem with checkbox column in matrix

    Hello.
    I have a little problem with checkbox column in matrix.
    Column is binded to the UserData.
    It has ValOn="Y", ValOff="N".
    I use C++. It is wird problem. In matrix I have 10 columns - scrollbar role and if You want see checkbox column, You must role to the right. If this column is on the screen, and I use:
    checkcell->PutChecked(VARIANT_TRUE);
    then the checkbox is cheched, and if the checkbox isn`t on the screen and I use this comment - it nothing happening.
    I tried to use ValOn="Y", PutChecked...
    The problem i solved if the column is on the screen - if the column is first in matrix or second, but if it`s last I have a big problem.
    My column with checkbox is not editable, but I tried to make it editable, check it, and then make it uneditable - the same efect.
    How can I solve it ?
    Sorry for my english.
    Kamil Wydra

    Hello Kamil,
    I am not sure about your problem, but here is an example of how to use checkbox in UI API.
    First, create the matrix with checkbox column in Screen painter, and the output is an xml file, like this. Type as 121 indicates that it is a check box.
    - <column AffectsFormMode="0" backcolor="-1" description="" disp_desc="0" editable="0" right_just="0" title="Rented" type="121" uid="Rented" val_off="N" val_on="Y" visible="1" width="41">
      <databind alias="U_RENTED" databound="1" table="@VIDS" />
      <ExtendedObject />
    Second, bind the column to table from DB. This is a bug of 2004 Screen Painter, so if you are using 2005 Screen Painter, there is no problem.
    Third, when you open the form, you can check and uncheck the cell.
    BTW, please set the editable of the column to true.
    Hope this helps,
    Nick

Maybe you are looking for

  • Question about creating association between Sharepoint BDC entities using Visual Studio 2010

    I am following this tutorial: http://blogs.msdn.com/b/vssharepointtoolsblog/archive/2010/08/02/walkthrough-of-creating-association-between-sharepoint-bdc-entities-using-visual-studio-2010.aspx I am getting the following error:  There is an error in t

  • Muvo n200-not find by

    hello I got a big problem with my muvo N200. When I connect it through usb to pc it's not recognized.the picture which shows that player is connected to pc is not appearing. I can't upgrade the firmware and do anything with usb. I tried this on other

  • 1 record 2 tables. Identity duplication issue

    Hi, I have to add a file info in two different tables: the first one is the dictionary and the second one is used to store the file. The issue is the IDs set in the second table is not correct. Could you please let me know if you see anything wrong i

  • Update multiple records on one page php/mysql

    Hi folks, I am trying to adapt a page to offer the option to update multiple records on one page. The intention is to edit FAQ categories which are contained in a table with just two fields - the category and an id. The page lists each categories in

  • Cartesian Coordinates

    Ok, let me start by saying that I am really really new to Java programming. For my first coding project (outside of the tutorials) I want to create a 2D Cartesian map. I am at a loss though of where to go next. The class I built to hold the user give