Clear and Delete rows in HFM
Okay, so I know that the hs.clear will set a value to zero, aka '0' in the database. So I have some code written in the rules file to do this. however, when I trace what's actually stored in the DB, it does not appear to actually delete the rows in the database, just sets all the values to zero. This is fine if you are worried about just the values, but I want the rows out of the DB for performance reasons. Is there something else that needs to be written/executed for this to work?
HS.Clear actually clears the numbers from the database. You may still see zeros in the cells, because the relevant accounts may have values in previous periods. However, if you observe those cells closely, you may notice that these zeros are displayed in light gray font, which means that the zeros are not actually there. Those "shadow" values in HFM are called "derived" values. I believe that HFM does not actually store these values in the database to save space, however I would not mess with the HFM database tables if I had any suspicions that the zeros are stored.
Similar Messages
-
Insert row and delete row in a table control
Hi Experts,
I am using a table control in module pool programming, How can I Insert row and delete row in a table control?
Thanks in Advance....Santhosh,
Iam using this code..
FORM fcode_delete_row
USING p_tc_name TYPE dynfnam
p_table_name
p_mark_name .
-BEGIN OF LOCAL DATA----
DATA l_table_name LIKE feld-name.
data: p_mark_name type c.
FIELD-SYMBOLS <tc> TYPE cxtab_control.
FIELD-SYMBOLS <table> TYPE STANDARD TABLE.
FIELD-SYMBOLS <wa>.
FIELD-SYMBOLS <mark_field>.
-END OF LOCAL DATA----
ASSIGN (p_tc_name) TO <tc>.
get the table, which belongs to the tc *
CONCATENATE p_table_name '[]' INTO l_table_name. "table body
ASSIGN (l_table_name) TO <table>. "not headerline
delete marked lines *
DESCRIBE TABLE <table> LINES <tc>-lines.
LOOP AT <table> ASSIGNING <wa>.
access to the component 'FLAG' of the table header *
ASSIGN COMPONENT p_mark_name OF STRUCTURE <wa> TO <mark_field>.
if <MARK_FIELD> = 'X'.
PERFORM f_save_confirmation_9101.
IF gv_answer EQ '1'.
DELETE <table> INDEX syst-tabix.
IF sy-subrc = 0.
<tc>-lines = <tc>-lines - 1.
ENDIF.
ELSE.
ENDIF.
ENDIF.
ENDLOOP.
in this code ASSIGN COMPONENT p_mark_name OF STRUCTURE <wa> TO <mark_field>.
if <MARK_FIELD> = 'X'.
this code is not working... -
Remove "Clear" and "Delete" Softkeys from Directories?
Is there any way to remove the "Clear" and "Delete" softkeys from "Missed Calls" and "Recieved Calls" directories?
I'm trying to do this on a 7965G with CUCM 8.6.2.
So far it just looks like you can set softkeys based on "call state".
Thanks in advance.Unfortunately not, the pages are not editable as they are hard coded on the appliance CUCM server. You would need develop your own directory using Cisco's API.
HTH, please rate all useful posts!
Chris -
Adding and deleting "rows" in pdfs
I need to know the best way to edit pdfs. What I have are files that resemble a table setup in Word. I would need to add and delete "rows" of information which are also set up in columns. I also may need to edit some of the text in a row.
What is the best tool for me to use? Acrobat? Illustrator? We are currently using v.10 on Macs. Is there a fairly simple way to accomplish this?I don't think there is a good way to do this. Except for very simple edits, it's better to edit the source document and recreate the PDF. If there is no source document available, you can try exporting to Word from Acrobat and see if you get something usable.
-
How can I select and delete rows based on the value in one column?
I searched through the discussion board, and found a thread on deleting blank rows, but not sure how to modify it to work with my issue.
I have put together a rather complicated spreadsheet for designing control systems, it calculates parts needed based on check boxes selected in a second spreadsheet.
Since not all systems require all parts there are many rows that have a 0 quantity value, I would like to select these rows and delete them once I have gone through the design phase (checking off required features on a separate sheet).
I like the way the other thread I found will gather all the blank rows at the bottom without changing the order of the rows with data in them.
I don't understand exactly how the formula in the other thread works well enough to modify it to look for a certain column.
I hope I made myself clear enough here, to recap, I would like to sort the rows based on a zero value in one (quantity) column, move them (the zero quantity rows) to the bottom of the sheet, and then delete the rows with a zero quantity (I can delete them manually, but would like to automate the sorting part).
Thanks for any help anyone can provide here.
DannyI apologize but, as far as I know, Numbers wasn't designed by Ian Flemming.
There is no "this column will be auto-destructing after two minutes"
You will have to use your fingers to delete it.
I wish to add a last comment :
if your boss has the bad habit to look over your shoulder, it's time to find an other one.
As I am really pig headed, it's what I did. I became my own boss so nobody looked over my shoulder.
Yvan KOENIG (VALLAURIS, France) mercredi 13 juillet 2011 20:30:25
iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8
Please : Search for questions similar to your own before submitting them to the community
To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer ! -
Loop through result set and delete row
so here is what I need -
I have a query that pulls rows from the Database through a stored procedure.(these are properties in an area)
Before I start looping through the query, I need to check the distance between my current location and the property. If it less than 5 miles, only then should I display that property. The distance in miles will be chosen while submitting the search form.
So is there a way to delete rows from the result set based on the criteria? Or
Is there a better way to accomplish this? I am using the the google api to get the latitudes and longitudes. The other issue to keep in mind is the load time.
ThanksYou can do this the easy way or the hard way. Depends on whether your condition that needs to be checked can be expressed in the form of a SQL where clause. If it can, then do what BKBK suggested, and use a query of query to create a new resultset that only has the rows from the original resultset that don't meet your condition.
If the calculation of the condition is more complex, then do a CFLOOP over the query and examine each row to see if you want to keep it or toss it. if you want to toss it, the delete that row - there is a function in CFLIB.ORG called querydeleterow that should help you. Or, you could just clear out the row's contents and then do the query of query as described in BKBK's post to create a new resultset that doesn't include the blank rows. -
Problem with creating and deleting row in table
Hi
I'm using JDev11.1.1.2.0. I have a table "A" with primary key X -> CHAR(1). I have created Entity and ViewObject (with the primary key X).
I created an editable Table with CreateInsert and Delete actions.
When I click Insert, a new record is added and I enter some data. Then I move selection to some other row, and return back to the new row. When I press Delete, It does not delete the new row, but the previous one selected.
In the console, when I navigate back two the new added record: <FacesCtrlHierBinding$FacesModel><makeCurrent> ADFv: No row found for rowKey: [oracle.jbo.Key[null ]].
I tried the same scenario with a different table, that has RowID as a primary key and it works correctly.
Any Idea why this is happening ? I suppose it's connected somehow with the primary key.
Thanks
agruev
Edited by: a.gruev on Nov 26, 2009 9:47 AMI changed my entity: unchecked the X column to be primary key added RowID as a primary key. Now it works.
What's wrong with my CHAR(1) as a primary key ?
I also tried to add a Refresh button:
<af:commandButton text="Refresh" id="cb3"/>and in the table add a partialTarget to the button. Now when I add new row and press the Refresh button - then it works.
So it seems that the problem is when I add new row and enter data, the table is not refreshed and the row is missing it's primary key.
Any solutions?
Edited by: a.gruev on Nov 26, 2009 4:18 PM -
How to get Inserted and Deleted Rows in ALV
I have looked at the BC_EDIT* examples but I still can't figure out how to determine which rows were Inserted and Deleted from the ALV list. Can someone please provide me the code to do this?
Thanks.
SandyHi sandy,
i dont think you will have issue in inserting a row in ALV because whenever the user done some actions say for eg clicking the pushbutton at the toolbar you could insert the a new row into the ALV.for creating pushbutton you need to use the events TOOLBAR,USER_COMMAND.
deleting a row may also follow the above procedure.
Have a look at the demo program
BCALV_GRID_05
Cheers,
Abdul Hakim -
Moderator message: please do not post subject in all capitals
Dear friends
i have created report for transfering data from one database table to another database table i.e. detail table.
after executing Master data list will appear and after clicking on master data record it shows detail data with edit fields where i can enter my own data and after clicking save button i can pass that data to database table and at the same time data goes in display mode. I want that enterd data not to delete bye delete row button please tell me how can i avoid deletion of data.
Thanks
regards
Rohan
Edited by: Matt on Jan 19, 2009 1:51 PMHi ,
You csn hide the Delete button so that it will not delete the line...
Please have a look at this example ...BCALV_EDIT_05. You need to append exclude table and pass in the set_table_for_first_display method like below...
ls_exclude = cl_gui_alv_grid=>mc_fc_loc_delete_row.
append ls_exclude to t_exclude.
call method g_grid->set_table_for_first_display
exporting is_layout = gs_layout
it_toolbar_excluding = lt_exclude
changing it_fieldcatalog = gt_fieldcat
it_outtab = gt_outtab[].
hope this helps you,.
Raj -
Clear and delete warning and alert
HI guys,
in alert tab of GC i've seen many of warning and alert messages with the select field for clear it in grey state. if i check these alerts it doesn't available the clear alert bottom.
i just can try to use "emctl clearstate agent" on target host but nothing to do..
why some alert are not clearable and how i can delete it??
thanks
AndrewHi
The GC clean the alerts of this way:
- If the alert is warning, you must to clean manually this alert in th ALERTS tab section of GC Console.
- If the alert is critical the clean process is maually.
When you entry first time in the Metrc and Policy Settings in Oracle database, exists a type of metrics that change of stete( example Invalid Objects in schema) but other metrics collect information and this information not change ( Example Generic Log Error ) .
The metrics of first time clean wher the collection of metric check that his value is less that the value thar produced the error.
Regards -
I am not very versed in writing syntax, especially in Power Query's "Query Editor". I want to create a filter based on two variables - [Status] (containing "D" or "C") and [LastActivity] (containing dates, but some are 'null').
I want to remove rows that are just "D" for [Status] and
"null" for [LastActivity]. (Note: I want to keep the "D"s that have dates in [LastActivity] as well as "C"s that don't have dates in [LastActivity])
I thought I could use "Table.RemoveRows"?? Not sure.
I would appreciate any help. Thank you.Table.SelectRows effectively expects a description of the rows that you want to keep in the result set. In this case, it says "I want to keep all of the rows where the status is not D or the last activity is not null." According to De Morgan's
law, this is the equivalent of saying "I want to discard all the rows where the status is D and the last activity is null". It's not magic; it's simple Boolean logic! :) -
UDO: Add and Remove rows to/from Matrix.
Hi all,
Yes, I know there are lots of topics about adding and removing rows but I was having trouble with these and I need some expert's opinion.
I'm working with a Document type UDO, with 1 header table (ADAT_ONR) and 1 child table (ADAT_NR1 - MatrixUID = "mtx_NR").
I add the first row when the user chooses the business partner.
If oMatrix.RowCount = 0 Then
oMatrix.AddRow()
oMatrix.AutoResizeColumns()
oMatrix.Columns.Item("V_LineId").Cells.Item(1).Specific.Value = 1
End If
Then, the user has to press the AddRow button to add new rows, and the user can only add 1 new blank row. Later I'll change the row adding behavior to mimic B1s.
If pVal.BeforeAction = False Then
Select Case pVal.ItemUID
Case "AddRow"
'ItemHandler_Click = AddRow(oCompany, oApplication, oForm, oForm.Items.Item("mtx_NR").Specific.RowCount())
oMatrix = oForm.Items.Item("mtx_NR").Specific
If oMatrix.RowCount > 0 Then
If Trim(oMatrix.Columns.Item("V_PltCode").Cells.Item(oMatrix.RowCount).Specific.Value) = "" Then
oApplication.StatusBar.SetText(TranslateStr(oApplication, MustChoosePallet), BoMessageTime.bmt_Short)
Exit Function
End If
End If
ItemHandler_Click = NewLine(oCompany, oApplication, oForm)
Exit Function
Private Function NewLine(ByRef oCompany As SAPbobsCOM.Company, ByRef oApplication As SAPbouiCOM.Application, _
ByRef oForm As SAPbouiCOM.Form) As Boolean
NewLine = False
Try
oMatrix = oForm.Items.Item("mtx_NR").Specific
Dim Index As Integer = oMatrix.RowCount
With oForm.DataSources.DBDataSources.Item("@ADAT_NR1")
.Clear()
End With
oMatrix.AddRow()
oMatrix.Columns.Item("V_LineId").Cells.Item(Index + 1).Specific.Value = (Index + 1).ToString
oMatrix.FlushToDataSource()
oMatrix.LoadFromDataSource()
oForm.Refresh()
NewLine = True
Catch ex As Exception
oApplication.MessageBox("NewLine(): " & oCompany.GetLastErrorCode.ToString & ", " & ex.Message)
End Try
End Function
When I Add or Update the data, I clear the last blank row, if it exists.
'// In the Click Event
If pVal.BeforeAction = True Then
Select Case pVal.ItemUID
Case "1"
If oForm.Mode <> BoFormMode.fm_FIND_MODE Then
oMatrix = oForm.Items.Item("mtx_NR").Specific
oMatrix.FlushToDataSource()
oMatrix.LoadFromDataSource()
If Trim(oMatrix.Columns.Item("V_PltCode").Cells.Item(oMatrix.RowCount).Specific.Value) = "" Then
oForm.DataSources.DBDataSources.Item("@ADAT_NR1").RemoveRecord(oMatrix.RowCount - 1)
oMatrix.DeleteRow(oMatrix.RowCount)
'oMatrix.FlushToDataSource()
End If
End If
End Select
My question is, Is there an easier way to Add and Delete Rows??
BTW, I still have a problem so solve. With this code, when the user deletes a row the row numbering is incorrect. Example: if I have to rows in a matrix and I delete row nº1, row nº2 will hold the same number...
Any Ideas?
Thanks in advanced,
Vítor VieiraHi Victor,
there is a Form Data event which you ca use in that try to write the code for adding a row after updating and delete a row while inserting and add a row while traversing.
sample code.
Sub FormDataEvent(ByRef BusinessObjectInfo As SAPbouiCOM.BusinessObjectInfo, ByRef BubbleEvent As Boolean)
Try
Select Case BusinessObjectInfo.EventType
Case SAPbouiCOM.BoEventTypes.et_FORM_DATA_ADD, SAPbouiCOM.BoEventTypes.et_FORM_DATA_UPDATE
If BusinessObjectInfo.BeforeAction = True Then
objForm = objMain.objApplication.Forms.Item(BusinessObjectInfo.FormUID)
oDBs_Head = objForm.DataSources.DBDataSources.Item("@Header")
oDBs_Detail= objForm.DataSources.DBDataSources.Item("@Line")
objMatrix = objForm.Items.Item("83").Specific
If objMatrix.VisualRowCount <> 0 Then
objMatrix.DeleteRow(objMatrix.VisualRowCount)
objMatrix.FlushToDataSource()
End If
If BusinessObjectInfo.EventType = SAPbouiCOM.BoEventTypes.et_FORM_DATA_ADD Then
End If
ElseIf BusinessObjectInfo.ActionSuccess = True Then
objForm = objMain.objApplication.Forms.Item(BusinessObjectInfo.FormUID)
If BusinessObjectInfo.EventType = SAPbouiCOM.BoEventTypes.et_FORM_DATA_UPDATE Then
objMatrix = objForm.Items.Item("83").Specific
objMatrix.AddRow()
SetNewLineCharge(objForm.UniqueID, objMatrix.VisualRowCount)
objMatrix.FlushToDataSource()
End If
End If
Case SAPbouiCOM.BoEventTypes.et_FORM_DATA_LOAD
If BusinessObjectInfo.ActionSuccess = True Then
oDBs_Head = objForm.DataSources.DBDataSources.Item("@Header")
oDBs_Detail = objForm.DataSources.DBDataSources.Item("@Line")
objMatrix = objForm.Items.Item("83").Specific
objMatrix.AddRow()
SetNewLineCharge(objForm.UniqueID, objMatrix.VisualRowCount)
objMatrix.FlushToDataSource()
End If
End Select
End Sub
Hope this helps,
OM Prakash -
[Help]Grid (Add row - Delete row)
Hi experts. Just want to ask how can I add row and delete row in Grid?
And how can I get the data from the specific row so I can Save the data in my table.
Please help.Hi hikaru1207 ,
this code for delete row from Matrix :
Matrix oMatrix_cat = (Matrix)form.Items.Item("mtx_cat").Specific;
Delete Row -
for (int i = 2; i <= oMatrix_cat .rowcount; i++)
oEditText = (EditText)oMatrix.Columns.Item(colname).Cells.Item(i).Specific;
oMatrix.DeleteRow(i);
if (form.Mode == BoFormMode.fm_ADD_MODE)
if (oMatrix.RowCount == 0)
DBDataSource oDBDataSource = form.DataSources.DBDataSources.Item(table name);
oDBDataSource.Clear();
oMatrix_cat .FlushToDataSource();
Add row----
if (oMatrix_cat.RowCount == 0)
oMatrix_cat.AddRow(1, 1);
oDBDataSource_cat.InsertRecord(oDBDataSource_cat.Size);
else
oDBDataSource_cat.InsertRecord(oDBDataSource_cat.Size - 1);
oDBDataSource_cat.SetValue("LineId", oDBDataSource_cat.Size - 1, "");
oDBDataSource_cat.SetValue("U_SKU", oDBDataSource_cat.Size - 1, "");
oDBDataSource_cat.SetValue("U_CatId", oDBDataSource_cat.Size - 1, "");
oMatrix_cat.LoadFromDataSource();
oDBDataSource_cat = null;
please reply ......
yhanks
surajit -
Cannot DELETE rows from LOV on running...is it a bug ??
One of the features I appreciated in the new version of JHeadstart is that we can now insert, modify and delete rows on LOV (even in the database).
We have just to check on Lookup properties :
Multi-row insert allowed
Multi-row update allowed
Multi-row delete allowed
I cheked all of them and on runnig I could insert and update records in LOV.
When I tried to delete records from LOV the system display information message "nothing to save" and in fact no records were deleted.
Normally since I checked the delete property it should be possible to delete rows from LOV
thanks for any HelpMonta,
I could reproduce this, it is a bug. Added to the fix list for the next release.
Thanks for reporting,
Steven Davelaar,
JHeadstart Team. -
Hi
i am developing a indent form in that i placed a matrix.
can u plz get me some hints of adding rows and deleting rows..
now i am placing buttons and writing code to do these tasks..Hi,
Dim OCT_Form As SAPbouiCOM.Form
Dim OCT_Matrix As SAPbouiCOM.Matrix
OCT_Form = OCT_Application.Forms.Item("FormUID")
OCT_Matrix = OCT_Form.Items.Item("MatrixUID").Specific
'To add row in the matrix use
OCT_Matrix.Addrow()
'To Delete Row from the matrix use
OCT_Matrix.DeleteRow()
Hope this will help you.
Regards,
Mahendra
Edited by: Mahendrakumar on Sep 25, 2008 2:18 PM
Maybe you are looking for
-
Best filesystem for external hard drive?
I just bought a Maxtor Basics 1 TB external hard drive. I think the current filesystem it is using is NTFS. Should I stick with it, or should I reformat it to ext3( or something better?). What are the advantages and disadvantages?. Primary use is in
-
TS4062 how do I change name of computer on ipod to sync
I have two computers but can only sync with one of them
-
Adobe PS Elements 11 in Win7 SP1 download?
My Adobe PS Elements was corrupted in Win7 SP1 How do I download and reinstall? I have my key; but cannot find the link to down load. Also, part of the porblem has been a change in syntax of our emails from Firstname to FirstnameLastname. Adobe can't
-
When I click the "create" button, the options include "album" but not "smart album". How can I create a smart album?
-
Our application is a simple JRIO code which writes into a VSAM file. The jar which does this job is also housed under the Mainframe. For the past few months we are getting the below exception EDC5112I Resource temporarily unavailable.; errno= X'00000