Like to enable column in matrix
Sorry,
to disrespect my previous message;
Now:
I want to know like to enable one column in matrix by form
Landed Costs in folder Costs, the column is Amount.
I try to use this:
mtLandedCosts.Columns.Item(3).Editable = true;
but the same column still is not editable.
thank you.
Strange ... but I can think of a couple of things
1. Bare in mind that it is a SAP system form. Which means to achieve control can be sometimes difficult since the system might be doing its managing of the controls.
2. The event in which you try to enable the control might be preceding one in which the system puts back the column to disable.
3. An error might be occurring.
I would try to enable the column at a different point or event. The expression looks right to me.
Similar Messages
-
Like to disable column in matrix
Hi,
I want to know like to disable one column in matrix by form
Landed Costs in folder Costs, the column is Amount.
I try to use this:
mtLandedCosts.Columns.Item(3).Editable = true;
but the same column still is not editable.
thank you.Try this
mtLandedCosts.Columns.Item(3).Editable = False;
if you want to disable the column
Message was edited by:
Neftali Figueroa -
For some business requirements, users want to extract values from a multi-value enabled lookup column
and add items to another list based on each separate value. In contrast, others want to find duplicate values in the list and merge associated values to a multi-value enabled column and then
add items to another list based on the merged value. All of these can be achieved using SharePoint Designer 2013 Workflow.
How to extract values from a multi-value enabled lookup column and add items to another list based
on each separate value using SharePoint Designer 2013.
Important actions: Loop Shape; Utility Actions
Three scenarios
Things to note
Steps to create Workflow
How to merge values to a multi-value enabled column and add item to another list based on the
merged value using SharePoint Designer 2013.
Important actions: Call HTTP Web Service; Build Dictionary
Things to note
Steps to create Workflow
How to
extract values from a multi-value enabled lookup column and
add items to another list based on each separate value using SharePoint Designer 2013.
For example, they have three lists as below. They want to
extract values from the Destinations column
in Lookup2 and add items to Lookup3 based on each country and set Title to current item: ID.
Lookup1:
Title (Single line of text)
Lookup2:
Title (Single line of text), Destinations (Lookup; Get information from: Lookup1 in Title column).\
Lookup3:
Title (Single line of text), Country (Single line of text).
Important action
1. Loop Shape: SharePoint Designer 2013 support two types of loops: loop n times and loop with condition.
Loops must also conform to the following rules:
Loops must be within a stage, and stages cannot be within a loop.
Steps may be within a loop.
Loops may have only one entry and one exit point.
2. Utility Actions: It contains many actions, such as ‘Extract Substring from Index of String’ and ‘Find substring in String’.
Three scenarios
We need to loop through the string returned from the look up column and look for commas. There are three
scenarios:
1. No comma but string is non-empty so there is only one country.
2. At least one comma so there is at least two or more countries to loop.
3. In the loop we have consumed all the commas so we have found the last country.
Things to note
There are two things to note:
1. "Find string in string (output to Variable:index)" will return -1 if doesn't find
the searched for string.
2. In the opening statement "Set Variable: Countries to Current Item:Destinations" set the return
field as "Lookup Values, Comma Delimited".
Steps to create Workflow
Create a custom list named Lookup1.
Create a custom list named Lookup2, add column: Destinations (Lookup; Get information from: Lookup1 in Title column).
Create a custom list named Lookup3, add column: Country (Single line of text).
Create a workflow associated to Lookup2.
Add conditions and actions:
Start the workflow automatically when an item is created.
Add item to Lookup2, then workflow will be started automatically and create multiple items to lookup3.
See the below in workflow History List:
How to merge values to a multi-value enabled column and add item to another list based on the
merged value using SharePoint Designer 2013
For example, they have three lists as below. They want to find duplicate values in the Title column in
Lookup3 and merge country column to a multi-value enabled column and then add item to lookup2 and set the Title to Current Item: Title.
Lookup1:
Title (Single line of text)
Lookup3:
Title (Single line of text), Country (Single line of text).
Lookup2:
Title (Single line of text), Test (Single line of text).
Important actions
"Call HTTP Web Service"
action: In SharePoint 2013 workflows, we can call a web service using a new action introduced in SharePoint 2013 named Call HTTP Web Service. This action
is flexible and allows you to make simple calls to a web service easily, or, if needed, you can create more complex calls using HTTP verbs as well as allowing you to add HTTP headers.
“Build Dictionary"
action:
The Dictionary variable type is a new variable type in the SharePoint 2013 Workflow.
The following are the three actions specifically designed for the Dictionary variable type: Build Dictionary, Count Items in a Dictionary and Get an Item from a Dictionary.
The "Call HTTP Web Service" workflow action would be useless without the new "Dictionary" workflow action.
Things to note
The
HTTP URI is set to https://sitename/_api/web/lists/GetByTitle('listname')/items?$orderby=Id%20desc and the HTTP method is set to “GET”. Then the list will be sort by Id in descending order.
Use Get
d/results(0)/Id form
Variable: ResponseContent (Output to
Variable: maxid) to get the Max ID.
Use Set
Variable: minid to Current List:ID to get the Min ID.
Use Copy from
Variable: destianation , starting at
1 (Output to
Variable: destianation) to remove the space.
Steps to create Workflow
Create a custom list named Lookup1.
Create a custom list named Lookup2, add column: Test (Single line of text).
Create a custom list named Lookup3, add column: Country (Single line of text).
Create a workflow associated to Lookup3.
Add a new "Build Dictionary" action
to define the http request header:
Add a Call HTTP Web Serviceaction, click on
this and paste your http request.
To associate the
RequestHeader variable, select the Call action property,
set the
RequestHeaders property to
RequestHeader:
In the Call action, click on
response and associate the response to a new
variable: ResponseContent (of type Dictionary).
After the Call action add Get item from Dictionary action to get the Max ID.
Add Set Workflow Variable action to get the Min ID.
Add Loop Shape (Loop with Condition) to get all the duplicate titles and integrate them to a string.
Create item in Lookup2.
The final Stage should look like this:
Start the workflow automatically when an item is created.
Add item to Lookup3, then workflow will be started automatically and create item to lookup2.
See the below in workflow History List:
References
SharePoint Designer 2013 - Extracting values from a multi-value enabled lookup column into a dictionary as separate items:
http://social.technet.microsoft.com/Forums/en-US/97d34468-1b53-4741-88b0-958472f8ca9a/sharepoint-designer-2013-extracting-values-from-a-multivalue-enabled-lookup-column-into-a
Workflow actions quick reference (SharePoint 2013 Workflow platform):
http://msdn.microsoft.com/en-us/library/jj164026.aspx
Understanding Dictionary actions in SharePoint Designer 2013:
http://msdn.microsoft.com/en-us/library/office/jj554504.aspx
Working with Web Services in SharePoint 2013 Workflows using SharePoint Designer 2013:
http://msdn.microsoft.com/en-us/library/office/dn567558.aspx
Calling the SharePoint 2013 Rest API from a SharePoint Designer Workflow:
http://sergeluca.wordpress.com/2013/04/09/calling-the-sharepoint-2013-rest-api-from-a-sharepoint-designer-workflow/GREAT info, but it may be helpful to note that when replacing a portion of the variable "Countries" with a whitespace character, you may cause the workflow to fail in a few specific cases (certain lookup fields will not accept this and will automatically
cancel). I only found this out when recreating your workflow on a similar, but much more complex list set.
To resolve this issue, I used another utility action (Extract Substring from Index of List) to clear out the whitespace. I configured it as "Copy from
Variable: Countries, starting at
1 (Output to Variable: Countries), which takes care of this issue in those few cases.
Otherwise, WOW! AWESOME JOB! Thanks! :) -
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 WydraHello 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 -
How to disable a column in matrix
Hi All,
How to make a column in matrix disable in runtime...this is the coding iam using...but iam unable to find to disable that column.
Dim objWasType As EditText
objMatDet = objForm.Items.Item("MatDet").Specific
objWasType = objMatDet.Columns.Item("col_3").Cells.Item(pVal.Row).Specific
<--i want like this option,but it doesn't have that property-->
''objWasType.Disable =true
<--i want like this option,but it doesn't have that property-->
Regards,
shangai.hi petr,
i don't want to disable the matrix....only i want to disable a particular column in matrix on the selection of one combobox event.....
Ex:-In a combobox '2' selections are there & in matrix ''2'' columns are there...if 1st selection(in combobox) is selected then in the matrix second column should be disabled & if 2nd selection(in combobox) is selected then in the matrix first column should be disabled.
i have tried this line...
objMatDet.Columns.Item("col_1").Editable= False
but after this change it work fine....thenagain next time when i stop the debug mode of my project & again when i run my project the '2' columns are ALWAYS UNEDITABLE....(i,e the change occured has became constant)...is there any solution ot make the fields uneditable only on the selection event....
regards,
shangai -
Sorting a number in first column of matrix
Hi All,
I tried following code for sorting number of first column of matrix. But when i click on AddRow menu it gives error and when i use commented line code that time it adds one row but number shows in column last row number.
And when i click on DeleteRow menu it delete only first time second time it is not working.
Can anybody tell me where i am wrong ? Plz suggest me exact code.
Public Sub SBO_Application_MenuEvent(ByRef pVal As SAPbouiCOM.MenuEvent, ByRef BubbleEvent As Boolean)
Dim item As Matrix
formd = SBO_Application.Forms.ActiveForm
item = formd.Items.Item("2").Specific
Dim i As Integer
If pVal.MenuUID = "1292" Then
' item.AddRow(1, 1)
item.Columns.cells.item(item.RowCount).specific.value = item.RowCount
BubbleEvent = False
End If
If pVal.MenuUID = "1293" Then
For i = 1 To item.VisualRowCount
item.Columns.Item("V_-1").Cells.Item(i).Specific.value = i
Next
item.FlushToDataSource()
BubbleEvent = False
End If
End SubHi...
Copy the code and change ur matrix id...
Private Sub SBO_Application_RightClickEvent(ByRef eventInfo As SAPbouiCOM.ContextMenuInfo, ByRef BubbleEvent As Boolean) Handles SBO_Application.RightClickEvent
If eventInfo.FormUID = "Ur Form ID" Then
If (eventInfo.BeforeAction = True) Then
Dim oMenuItem As SAPbouiCOM.MenuItem
Dim oMenus As SAPbouiCOM.Menus
Dim omat As SAPbouiCOM.Matrix
Dim GCols As SAPbouiCOM.Columns
oitem = OForm.Items.Item("Ur Matrix")
omat = oitem.Specific
GCols = omat.Columns
Try
selItem = eventInfo.ItemUID
Dim oCreationPackage As SAPbouiCOM.MenuCreationParams
oCreationPackage = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_MenuCreationParams)
oCreationPackage.Type = SAPbouiCOM.BoMenuType.mt_STRING
oCreationPackage.UniqueID = "OnlyOnRC"
oCreationPackage.String = "Delete Row"
oCreationPackage.Enabled = True
oMenuItem = SBO_Application.Menus.Item("1280") 'Data'
oMenus = oMenuItem.SubMenus
oMenus.AddEx(oCreationPackage)
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
Else
Dim oMenuItem As SAPbouiCOM.MenuItem
Dim oMenus As SAPbouiCOM.Menus
Try
SBO_Application.Menus.RemoveEx("OnlyOnRC")
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
End If
End If
End Sub
Menu Event...
If (pVal.MenuUID = "OnlyOnRC") And (pVal.BeforeAction = False) Then
Try
Dim oMenuItem As SAPbouiCOM.MenuItem
Dim oMenus As SAPbouiCOM.Menus
Dim omat As SAPbouiCOM.Matrix
Dim GCols As SAPbouiCOM.Columns
Dim i As Integer
oitem = OForm.Items.Item("Ur Matrix")
omat = oitem.Specific
GCols = omat.Columns
omat = OForm.Items.Item(selItem).Specific
For i = 1 To omat.RowCount
If omat.IsRowSelected(i) = True Then
omat.DeleteRow(i)
Exit For
End If
Next
Catch ex As Exception
SBO_Application.MessageBox(ex.Message)
End Try
End If
It will work..
Regards..
Billa 2007 -
How can I change the type of column in matrix
I want to change the type of column in matrix to it_LINKED_BUTTON, so it can show the orange arrow
I added the column throw marketing documents (rows)
It's seems the default column type is it_Edit
is there a way of changing the column type
i tried the below code, but it did not work because the type property in a matrix column is readonly
mtx.Columns.Item(0).Type = SAPbouiCOM.BoFormItemTypes.it_LINKED_BUTTON
sincerely yours
Riade Aslehi don't want to add a new column
i want to change the column type of existing column in matrix, becuase it's bind to a field
beside that, i can not add column , if the matrix has rows in it
sincerely yours
Riade Asleh -
Hi Experts
Can anybody tell how to create a dynamic column in matrix?
when user enter's a value say '4' then 4 clolumn should be created...
regards
shibinHi,
You can add the column by using the below line
oMatrix.Columns.Add("Column ID", Column Type)
Ex: oMatrix.Columns.Add("4", SAPbouiCOM.BoFormItemTypes.it_EDIT)
Regards,
Noor -
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
FahadHii 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 -
Input enabled column to enter text in query
Hi All,
I need to create a query which has an input enabled column where user can enter text up to 250 characters. Is this possible only using aggregation level? Is it possible to declare a characteristic to show up as a column and input enabled? I am thinking only key figures can be input enabled and they can accept only numbers but not characters.
I am new to BI Planning concept. Please let me know the best solution for my requirement.
Thanks in Advance!
Sonali.Hi,
Please take a look in the following thread.
Re: Input Ready query text field
Hope this helps. -
I want add new column in matrix in "Inventory Transfer" Form (System Form)
hai,
i want to add new column in Matrix in "Inventory Transfer" Form (System Form)
Is it possible or not?
bye
gopinathhai,
i want coding how to add columns in the matrix ( system form)
plz....
bye
gopi
Edited by: Rui Pereira on Dec 23, 2008 4:45 PM -
Default Value for a column in matrix
Hi,
How to set default value for a column in matrix which is of type combo(Yes/No).
The cell has combo in it
ManojHi Manoj,
The column is set as combo. Now you need to tell SBO what constituates a Y or N. In my example my Column "Col6" must display Yes if the RENTED column = 1 and No if the RENTED column = 0. (I'm obviously using a datasource to tie the data to the matrix)
oMatrix = frm.Items.Item("YourMatrixID").Specific
oColumns = oMatrix.Columns
oColumn = oColumns.Item("Col6")
oColumn.DataBind.SetBound(True, "@VIDEO", "U_RENTED")
oColumn.ValOn = "1"
oColumn.ValOff = "0" -
Count the total val of the column in matrix
hi
how to count the total value of the column in matrix
eg:
id name points
10 sachin 100
12 rama 80
count the total points in the matrix
180Hi Hareesh,
Try This....
Dim finaltot As Integer = 0
Dim i As Integer
For i = 1 To omatrix.RowCount
oedittot = omatrix.Columns.Item("points").Cells.Item(i).Specific
finaltot = finaltot + oedittot.value
Next
Thanks
Shafi -
Reports - merging data columns in matrix
Hi,
I need help with merging columns in matrix. I use MS SQL 2012. I need merge data columns, here is example:
matrix:
+-----------+----------+
| | [time] |
+-----------+----------+
| | [step] |
| [project] +----------+
| | [action] |
+-----------+----------+
current output:
+-----------+----------+----------+----------+----------+
| | 00:00 | 00:05 | 00:10 | 00:15 |
+-----------+----------+----------+----------+----------+
| | step 1 | step 1 | | step 2 |
| project 1 +----------+----------+----------+----------+
| | start | running | | start |
+-----------+----------+----------+----------+----------+
| | | step 1 | step 1 | step 1 |
| project 2 +----------+----------+----------+----------+
| | | start | running | running |
+-----------+----------+----------+----------+----------+
demanded output:
+-----------+----------+----------+----------+----------+
| | 00:00 | 00:05 | 00:10 | 00:15 |
+-----------+----------+----------+----------+----------+
| | step 1 | | step 2 |
| project 1 +----------+----------+----------+----------+
| | start | running | | start |
+-----------+----------+----------+----------+----------+
| | | step 1 |
| project 2 +----------+----------+----------+----------+
| | | start | running |
+-----------+----------+----------+----------+----------+
Thanks in advance :-)
RegardsHi Katamarucz,
According to your description and the sample matrix, you want to merge the columns in the same steps into one column, right? In this case, on some rows the columns that have the same steps should be merged, however, the column should not be merge on other
row that the columns have different steps.
In Reporting Services, if we merger the columns when designing the report, then the columns will be merged on all the rows. So you requirement cannot be achieved. And I am afraid there is no other approach to work around this issue.
Thank you for your understanding.
Regards,
Charlie Liao
TechNet Community Support -
I Can't open iTunes. When I attempt, the following message appears: You are attempting to add a new iTunes U collection but iTunes U is disabled. Would you like to enable iTunes U? If I click either yes or no, the same box just reopens. As far as I know, I have not done anything with iTunes U. The software is up to date and I have also reinstalled itunes. Any ideas?
Since this problem, I was able to reinstall again and reboot, and then 'stop' while the library was being opened (that was another window that I could not close, that would come up before the error message, this time I chose to stop it). Now only music I have purchased appears, none of my other >1,000 albums I manually added via my CD collection. About 10% are in different music folders (I don't know why they aren't in the same one), but the other 90% are missing. Any ideas??
Maybe you are looking for
-
Mail sending Reply, but not saving reply in thread.
Over the past week an entirely new problem has cropped up. When I send a reply to somebody, once in a while the reply message I send does not show up in the thread. It seems like it goes out... making the mail out swoosh sound, but there is no messag
-
My sisters computer is crapping out so they are trying to back everything up to move onto another computer. She can't seem to figure out where the pictures are located that she saved via BlackBerry Desktop Software. I have her HDD in an external case
-
How to attached a file to email?
I want to send an email with an attachment but do not see icon for attachment.
-
SQL Question : get latest message from messages table
Hi, I have a table messages and i need to get the latest message by userto where userfrom='a' MESSAGES userfrom,userto,timestampsend,subject a ................b.............xx16h00mn.........hi a.................b.............xx16h01mn.........hi2 a.
-
Suggestion on collections and object creation
Hi I need to read some data from the Sybase database and make some statistical computations( average, standard Deviation, min/max) for monthly period. The data looks like the following: Name Score Date John 100 06/20/2009 Mike 200 05/23/2009 Performa