Refresh system matrix
I have added a user defined field at the row level.I am performing some calculation on this udf in the goods receipt po form.I need to refresh this system matrix after performing calculations.Is it possible to refresh system matrix programatically ?
Hi Dilip,
Anoop is right, there is no function for refreshing the matrix so you'll have to get around it like this:
1. Update the document
2. Freeze the form
3. Put the form in Find mode
4. Fill in the document number (docnum)
5. Programmatically click the Find button (OK button)
6. Put the form back in the mode it was before
7. Unfreeze the form
Regards,
Marnix
Similar Messages
-
AffectsFormMode property of User defined field in system matrix
Hallo
I added one UDF in System matrix of service call id at panel Solution.
I set formated search for that UDF field to populate Symptons data from system knowldge base form (table).
I set the fromatted search property for that UDF Column is Automatic.
So when i nevigate record on Service call form, this UDF column fetch the value and so form goes in Update Mode.
Please i want to AffectsFormMode property for that column, so i have to get the form mode is "OK"
How it is possible.
Pleaase help me
Narendra
Edited by: NarenKD on Dec 28, 2010 12:24 PMHi H2
It is true,
But When i open 'Service Knowledge Base' child form by clicking ID Link Button in Solution Tab of Service Call Form
and update that form (here symptoms field important for me),
it does not change the state of Parrent Service call form to update.
Also there is not any link between this two table SCL1 service call and OSLT Solution knowldege table In PLD.
so i create Symptoms UDF in matrix at solution tab of Service call form.
also i create formatted search to fill this column.
I set that formatted search as "auto refresh when field change"
so when i navigate through service call records. it featches and put value in that UDF column and make form state "Update"
I want to avoid it.
means when i navigate the service call, when the value of that UDF Is different then OSLT table then that Service Call goes to update state otherwise it have OK state.
I used query in formatted search to fetch the value for UDF
What will be the solution for this problem.
Also tell me Can i call formatted search through program means can i give formatted search command (shift F2. or press formatted seach button) in program.
Regards
Narendra
Edited by: NarenKD on Dec 29, 2010 9:41 AM
Edited by: NarenKD on Dec 29, 2010 9:50 AM -
How to Refresh System Form in Run Time
Dear All,
Please give me idea for Refresh System Document in Run Time using DI,basically I am using system columns for update for some scenarios.
So please give solution that how should refresh system form.
Thanks a lot.
Ashish Singh.Hi,
Please post above discussion in SDK forum.
Thanks & Regards,
Nagarajan -
hi kings
how to create check box in system matrix.
Thanks & Best Regards
B.Lakshmi NarayananHi,
I am in need of creating a UFD of type Check Box in Sales Order Screen. I would like to know how to go about defining the UDF. Please reply..
Thanks in advance.
Regards
Rohan S. Kamble. -
Focus when setting value in system matrix
Hi All,
Starting from SAP Business One 8.8 SAP changed the behaviour of the matrix focus.
Previously, after you set a value in a system matrix with the UI API, the focus was automatically restored to the item that previously had the focus. In 8.8, the focus remains on the matrix cell.
We're currently facing different issues with addons which were working in the past as this is a change of behaviour.
I would like to know from other forum users what they think about this change of behaviour, is it good, not good?, ...
Thank You,
paoloHi Paolo,
I ran in to this issue on a number of my addons which caused me a lot of extra work. Personally I thought it was a weird change to make as I would rarely (if ever) want to automatically set focus to a cell in a matrix when the value is changed through code. Typically my addon might be setting 3 or more values in a row (based on data that the user selects) and, after the change to the UI API, the screen flickers badly and the focus ends up on the final cell that was updated which can make data entry awkward (especially as Form Settings allows any user to change the order of the columns). In the end I had to freeze the form during my updates and then call the Click method on the cell where I wanted focus to remain.
I did raise this with SAP support and they said it was a deliberate design change. Hopefully they will change it again so that the developer can pass in a parameter or something to control where the focus is placed after the update.
Kind Regards,
Owen -
Set value to system matrix (38) cell
Hello,
Thanks for your reply.
I need to set value for some UDF on a system matrix (38). Crurrently ,I use following code:
public void SetValue(string columnUniqueId, int matrixRowIndex, string value);
(I'm using the coresuite framwork)
The coresponding way in SDK would be:
oMatrix.Columns.Item("columnUniqueId").Cells.Item("matrixRowIndex").Specific.value = "value"
This works but when I have more than 10 UDF to fill together, the performance is bad. It takes nearly 3-4 seconds to load one item(row).
Is there any fast way to set the value? Or is there any other suggestion how to do it?No, the problem is not by loading of UDFs by a existing document.
But when you create a new document and you add a new postion to the document by choosing an item. Then our AddOn copies the UDF values from the item master data into the corresponding UDFs in the postion. At this moment I have to write them manually.
The best would be when the UDFs in the Item Master Data would be autiomatically created also in the postion of documents. Because in this way they would be automatically loaded by SBO itself.
I think SBO has a mistake in its design by here. -
Rebinding datasource to system matrix
Hi,
is it possible in SBO to rebind in system form system matrix with another datasource? For example order items are shown in system matrix and I would like to bind this system item to my recordset.
The only solution I found is to hide all columns in matrix and add new columns bounded to my datasource, but this is not the best way. Any idea?
thx
PetrAs I found now, the way to add new columns isn`t working, because error "this item is not user defined item". Is any possibility to set the matrix as user matrix?
What I need is to keep the design and references from matrix, but change datasource to my datasource (I need to change some part of sql query). -
Hi,
I like to fill system Matrix with data; please find the code below.
Thank you very much for your good work and support.
Thank you,
Rune
CODE
#region SalesOrderItemLine_GetDataFromDataSource
public void SalesOrderItemLine_GetDataFromDataSource( SAPbouiCOM.Form oForm, bool Matrix77_AddRefresh )
try
if ( Matrix77_AddRefresh )
oForm.DataSources.DataTables.Add("SYS_77");
oForm.DataSources.DataTables.Item("SYS_77").ExecuteQuery("SELECT [Code],[Name],[U_Weight],[U_PoNo],[U_CoopName],[U_Consignee],[U_PalGroup],[U_Container],[U_ItemCode],[U_CheckBoxSelect] FROM [dbo].[@MyTable] WHERE [U_MatrixAorB] = 'A' AND [U_WRKsalesOrderYN] = 'N'");
( ( SAPbouiCOM.Matrix ) ( oForm.Items.Item("77").Specific ) ).Columns.Item("1").DataBind.Bind("SYS_77", "U_ItemCode");
( ( SAPbouiCOM.Matrix ) ( oForm.Items.Item("77").Specific ) ).Clear();
( ( SAPbouiCOM.Matrix ) ( oForm.Items.Item("77").Specific ) ).LoadFromDataSource();
( ( SAPbouiCOM.Matrix ) ( oForm.Items.Item("77").Specific ) ).AutoResizeColumns();
catch ( Exception Error )
oApplication.MessageBox("Add-On Error-3232: = " + Error.Message, 1, "Ok", "", ""); // My Error Code
#endregionHi David!
This is a Product Development Collaboration suggestion!
I like to load data into system matixes...that could be really nice!
(No my problem is still out there...
Thank you,
Rune -
Add ChooseFromList to UDF on System Matrix
Hi Everyone
I would like to know if it is possible to add a choosefromlist to a UDF on a system matrix. I keep and getting an error "The item is not a user-defined item"
Has anypone be able to achieve this???
Thanks in advanceThanks Frank.
I have done so already. I made a button on the form the size of a dot, not visible and so on. I then link it to a choose from list. Then i catch the needed event and then through code initiate a click on the button.
Could you please check my thread on FormDataEvent on SBO 2005 SP01 P04
Thanks for the response -
How to change the order of the columns in system matrix?
Hi all,
Is there any way to change the order of the columns in system matrix through SDK, without doing it from 'Form settings'??Hi ,
is this true for the 'Active' property also , in CPRF table? I want to check whether the Item is active or not becuse, when I m trying to copy the value in item which is not active, I m given error. Is there any way to change or active the 'Active' flag in form settings at run-time?
Any clue?
Thanks in advance,......
Binita -
Hello experts,
I'd like to know what the best solution for refreshing systems between Data Sync Manager from Epiuse (DSM) and Landscape Virtualization Management from SAP (LVM).
I've already read a lot of papers about both solutions like this one:
Comparisons between SAP TDMS vs. 3rd Party Data transfer tools
Of course I also took a look to a lot of papers talking about how great both are.
What I want is feedback from people who could use these solutions for data copy, their pros and cons, especially cons.
I know that the greatest point of DSM is that it can slice data by time or objects to make the target system lighter than the source, and LVM can do also copy and post copy automation (PCA) with a bundle for a better system administration. Both can also do data scrambling, even if for LVM we have to use another solution like SAP TDMS. Both support the most important old and recent SAP application releases (ERP, SRM, CRM, GTS, BW,SCM, NW).
So please, give me some points that could make me decide what's the best one.
Thank you in advance.
Best regards,
Alex.
P.S.: if you want to talk about other solutions than SAP LVM and Epiuse DSM, please do, it could help others.Here is an interesting discussion on TDMS vs DSM:
SAP TDMS - comparison with Data Sync Manager
So now the comparison would be TDMS vs LVM vs DSM. -
Add data in a user defined column in System matrix
Hello All,
I have created a User defined column in the Goods Issue Form
When I choose a particular order, I get values in the matrix defined by system
Based on this selection, I fire a query which returns a value and this value has to be
displayed in the user defined column.
I am trying to add a value to this column but I get the following error message
Form Item is not Editable
Here is the code written in form activate event
code = (EditText)matrix.Columns.Item(1).Cells.Item(i).Specific;
string strcode = code.Value.ToString();
string str;
str = "select itemCode from owor where Docnum='" + strcode + "'";
RecSet.DoQuery(str);
e = (EditText)matrix.Columns.Item(15).Cells.Item(i).Specific;
strcode = RecSet.Fields.Item(0).Value.ToString();
try
matrix.Columns.Item(15).Editable = true;
e.String = strcode;
matrix.Columns.Item(15).Editable = false;
catch (System.Runtime.InteropServices.COMException com_err)
Regards
Nirmala BOn system forms, you cannot update the DataSource (DBDataSource) of system matrixes, SAP blocks it.
The only solution is to set the column visible and editable, and write in it with the matrix cell set value method.
The downside is that the user will be able to see and edit the values (unless you catch all edit and click events to that cell). -
How to fill values in the system matrix through code
hi
All
i want to fill the system matrix in the sales order in such a way that
Items will be filled in system matrix in the lost focust event of the Customer Code selection in the Sales order Document
how can i fill the system matrix through code
one thing that first column(ItemCode) of the system matrix column is a Icombbox type
Now i need to fill out item code using code
can any one suggest the answer
thanks in advancemadhu,
You need to catch the Validate event, when pVal.BeforeAction = False for form items 4 (CardCode) and 54 (CardName) of the Sales Order form.
Concerning the form's matrix, you can fill it but you cannot change it (you cannot change the ItemCode column into a ComboBox. Is is a EditText)
Fill a System matrix's Cell with the following code:
Dim oMatrix As SAPbouiCOM.Matrix = oForm.Items.Item("38").Specific
oMatrix.Columns.Item("ItemCode").Cells.Item(Row_Num).Specific.Value = "Item_Code"
Regards,
Vítor Vieira -
Choose From List and Golden arrow link in System Matrix UDF column
I'm wondering if there is a way through the SDK to create a 'Choose From List' and Golden arrow linked button in a System Matrix UDF column?
For example the Item Code in a sales order matrix does both.Hi,
Try this code for adding CFL.
SAPbouiCOM.ChooseFromListCollection oCFLs = null;
SAPbouiCOM.Conditions oCons = null;
SAPbouiCOM.Condition oCon = null;
oCFLs = oForm.ChooseFromLists;
SAPbouiCOM.ChooseFromList oCFL = null;
SAPbouiCOM.ChooseFromListCreationParams oCFLCreationParams = null;
oCFLCreationParams = ( ( SAPbouiCOM.ChooseFromListCreationParams )( SBO_Application.CreateObject( SAPbouiCOM.BoCreatableObjectType.cot_ChooseFromListCreationParams ) ) );
oCFLCreationParams.MultiSelection = false;
oCFLCreationParams.ObjectType = "object id ";
oCFLCreationParams.UniqueID = "CFL1";
oCFL = oCFLs.Add( oCFLCreationParams );
oColumn.ChooseFromListUID = "CFL1";
//where oColumn is the instance of that column.
Hope u will get help....
Thanks and Regards,
Lalit -
Trick to Load Data into System Matrix?
Hi,
Is there any possibility to load a system Matrix, see code below:
The code below break at LoadFromDataSource (Not user defined)
Thank You!
Rune
CODE
oForm.DataSources.DataTables.Item("SYS_77").ExecuteQuery("SELECT [U_ItemCode] WHERE [U_MyField1] = 'A' AND [U_MyField2] = 'N'");
( ( SAPbouiCOM.Matrix ) ( oForm.Items.Item("77").Specific ) ).Columns.Item("1").DataBind.Bind("SYS_77", "U_ItemCode");
( ( SAPbouiCOM.Matrix ) ( oForm.Items.Item("77").Specific ) ).Clear();
( ( SAPbouiCOM.Matrix ) ( oForm.Items.Item("77").Specific ) ).LoadFromDataSource();
( ( SAPbouiCOM.Matrix ) ( oForm.Items.Item("77").Specific ) ).AutoResizeColumns();Hi Petr,
your first option is understood but, will you please explain the second one?
"when is there more lines, create user defined field in lines table, with di api make update of this userdefined field and then make form.update"
I have number of lines to be filled in system matrix and have used only first option, which is unacceptably slow. how can the use defined column's data be transferred to system columns without copying them on cell level as suggested in first option by you?
thanks and regards,
Binita
Maybe you are looking for
-
Disk sharing and multiple users...
Hi, I've my hard-drive connected to my Airport Extreme base station, to which I access from a Snow Leopard. The connection works properly and I can access the disk. Happily. I have two users (let's say "toto" and "tata") on my Snow Leopard who I want
-
Macbook Pro screen blacks out keys stay lit
The gist of it is in the subject Pretty much without warning, does not have a preference for type of application being ran, the screen will completely black out. If sound is being play it either stops or begins to skip. The keys stay lit. The only wa
-
Hi all While doing MIGO for Delivery I am geeting a run time error, I am giving the details of the error below. Runtime Errors MESSAGE_TYPE_X Date and Time 05.11.2007 06:05:17 Short dump has not been completely stored (too big) ShrtText The current a
-
How to add search help to a field in MARA table
Hi, According to my requirement,I need to add search help to one of the field in MARA.It is checkbox now and it has to be changed to drop down. How to do this please help.
-
IPhoto 9/Photoshop Elements compatibility
I never used to have this problem when I had my old eMac. I can't open up photos from my iPhoto into Photoshop elements. At first I thought it was a Camera Raw compatibility problem, as Camara Raw isn't compatible with my current Nikon. However, even