Use ComboBox TableCellEditor - values are not saved to the table model
Hi,
I got a combobox cell editor that uses to edit one of the columns.
And i got an ok button that uses to collect the data from the table and save it to the db.
In case i started editing of a cell and the editor is still displayed- if i will click on the button the data that will be colected from the table model will not contained the updated value in the cell editor.
In this case the user think his changes were saved but the last updated field is not updated.
Is this a bug i got in the cell editor or this is the normal behaviour?
Can it be fixed? (So that if the cell is in the middle of editing the value that will be saved is the last value that was selected).
public class PriorityCellEditor extends StandardComboBox implements TableCellEditor {
private boolean isEditMode=false;
* A list of eventlisteners to call when an event is fired
private EventListenerList listenerList = new EventListenerList();
* the table model
public StbAreaClusterPriorityCellEditor(boolean isEditMode) {
super(StbAreaMapper.clustersPriorities);
setEditMode(isEditMode);
setEditable(false);
this.setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);
setAlignmentX(Component.LEFT_ALIGNMENT);
public boolean isEditMode() {
return isEditMode;
public void setEditMode(boolean editMode) {
isEditMode = editMode;
setEnabled(editMode);
public Component getTableCellEditorComponent(JTable table, Object value,boolean isSelecte, int row, int column) {
int selectedIndex;
if (isSelecte) {
setForeground(table.getSelectionForeground());
setBackground(table.getSelectionBackground());
} else {
setForeground(table.getForeground());
setBackground(table.getBackground());
if(value instanceof String){
selectedIndex=StbAreaMapper.mapGuiPriorityDescToGuiCode((String)value);
setSelectedIndex(selectedIndex);
return this;
public void cancelCellEditing() {
fireEditingCanceled();
public Object getCellEditorValue() {
return getSelectedItem();
public boolean isCellEditable(EventObject anEvent) {
return isEditMode;
public boolean shouldSelectCell(EventObject anEvent) {
return false;
public boolean stopCellEditing() {
fireEditingStopped();
return true;
* Adds a new cellEditorListener to this cellEditor
public void addCellEditorListener(CellEditorListener l) {
listenerList.add(CellEditorListener.class, l);
* Removes a cellEditorListener from this cellEditor
public void removeCellEditorListener(CellEditorListener l) {
listenerList.remove(CellEditorListener.class, l);
* Notify all listeners that have registered interest for notification on
* this event type.
* @see javax.swing.event.EventListenerList
protected void fireEditingStopped() {
// Guaranteed to return a non-null array
Object[] listeners = listenerList.getListenerList();
// Process the listeners last to first, notifying
// those that are interested in this event
for (int i = listeners.length - 2; i >= 0; i -= 2) {
if (listeners[i] == CellEditorListener.class) {
((CellEditorListener) listeners[i + 1]).editingStopped(
new ChangeEvent(this));
* Notify all listeners that have registered interest for notification on
* this event type.
* @see javax.swing.event.EventListenerList
protected void fireEditingCanceled() {
// Guaranteed to return a non-null array
Object[] listeners = listenerList.getListenerList();
// Process the listeners last to first, notifying those that are interested in this event
for (int i = listeners.length - 2; i >= 0; i -= 2) {
if (listeners[i] == CellEditorListener.class) {
((CellEditorListener) listeners[i + 1]).editingCanceled(new ChangeEvent(this));
}
Try this
yourTable.putClientProperty("terminateEditOnFocusLost", Boolean.TRUE);
Similar Messages
-
Numc characteristic values are not saving in AUSP
Hi All,
I am unable to save numc/Date type characteristic values in AUSP table using CL20N tcode. i am able to retrive CHAR values from AUSP table but NUMC / DATE values are not saving in this table.
Regards,
PraveenHi Praveen,
If you are fetching ATINN from AUSP table, then you need to use conversion routine..
Call the FM CONVERSION_EXIT_ATINN_* & you will get the converted value.
Thanks,
Sharath -
AET Generated field values are not saved.
Hi Gurus,
I have created two AET fields on the screen (marked below) and that should store values in table CRMD_CUSTOMER_H. When I create a new service request and enter the values and save, AET field values are not saved. Again, when I edit the same service request and enter the values and save , AET field values are saved on the database.
While debugging I found that, relationship BTHeaderCustExt does not exist for the first time and second time onward its appearing. Due to this, data is not being saved at first time (Line no 27 : current is empty).
When tried to create realtionship using create_related_entity , it throwing exception cx_crm_genil_model_error.
Please advice me the soution for the same.
Regards,
Anandthere should be a context node at your view level. Please check ON NEW FOCUS method is implemented or not.
If not, you can implement that method with below code.
DATA: lv_collection TYPE REF TO if_bol_bo_col,
entity TYPE REF TO cl_crm_bol_entity.
* get collection of dependent nodes
entity ?= focus_bo.
TRY.
lv_collection = entity->get_related_entities(
iv_relation_name = 'BTHeaderCustExt' ).
IF lv_collection IS NOT BOUND or lv_collection->size( ) = 0.
IF entity->is_changeable( ) = ABAP_TRUE.
TRY.
entity = entity->create_related_entity(
iv_relation_name = 'BTHeaderCustExt' ).
CATCH cx_crm_genil_model_error cx_crm_genil_duplicate_rel.
* should never happen
ENDTRY.
IF entity IS BOUND.
CREATE OBJECT lv_collection TYPE cl_crm_bol_bo_col.
lv_collection->add( entity ).
ENDIF.
ENDIF.
ENDIF.
CATCH cx_crm_genil_model_error.
* should never happen
EXIT.
CATCH cx_sy_ref_is_initial.
ENDTRY.
me->set_collection( lv_collection ). -
Pop Up blocker exceptions are not saved in the browser for use, the next time the PC reboots. How do you save these exceptions for long term use?
In case you are using "Clear history when Firefox closes":
*do not clear the Site Preferences
*Tools > Options > Privacy > Firefox will: "Use custom settings for history": [X] "Clear history when Firefox closes" > Settings
*https://support.mozilla.org/kb/remove-browsing-search-and-download-history
Note that clearing "Site Preferences" clears all exceptions for cookies, images, pop-up windows, software installation, passwords, and other website specific data.
If you have software like Advanced SystemCare (Surfing Protection feature) that might reset some files to older versions to protect these files against changes then check the settings or uninstall this software. -
Line 390 Under the (Insert into SALES_TRADEIN Table)
I need to insert (TradeIn_1_VIN) Values If there is no values in (TradeIn_1_VIN) then i have to insert (TradeIn_2_VIN) values to the (SALES_TRADEIN) Table.
After i run then below script only (TradeIn_2_VIN) values are get inserted in the table. (TradeIn_1_VIN) are not getting loaded in to the table.
I think there is the problem from Line No (404 to 414) Please help me change those particular lines to insert (TradeIn_1_VIN) Values also.If there is no details then (TradeIn_2_VIN) need to be inserted.
-- =============================================
-- Stored Procedure for Flatfile_Sales
-- =============================================
USE [IconicMarketing]
---==========Sales_Cursor
--USE [IconicMarketing]
--GO
DECLARE
@FileType
varchar(50),
@ACDealerID
varchar(50),
@ClientDealerID
varchar(50),
@DMSType
varchar(50),
@DealNumber
varchar(50),
@CustomerNumber
varchar(50),
@CustomerName
varchar(50),
@CustomerFirstName
varchar(50),
@CustomerLastName
varchar(50),
@CustomerAddress
varchar(50),
@CustomerCity
varchar(50),
@CustomerState
varchar(50),
@CustomerZip
varchar(50),
@CustomerCounty
varchar(50),
@CustomerHomePhone
varchar(50),
@CustomerWorkPhone
varchar(50),
@CustomerCellPhone
varchar(50),
@CustomerPagerPhone
varchar(50),
@CustomerEmail
varchar(50),
@CustomerBirthDate
varchar(50),
@MailBlock
varchar(50),
@CoBuyerName
varchar(50),
@CoBuyerFirstName
varchar(50),
@CoBuyerLastName
varchar(50),
@CoBuyerAddress
varchar(50),
@CoBuyerCity
varchar(50),
@CoBuyerState
varchar(50),
@CoBuyerZip
varchar(50),
@CoBuyerCounty
varchar(50),
@CoBuyerHomePhone
varchar(50),
@CoBuyerWorkPhone
varchar(50),
@CoBuyerBirthDate
varchar(50),
@Salesman_1_Number
varchar(50),
@Salesman_1_Name
varchar(50),
@Salesman_2_Number
varchar(50),
@Salesman_2_Name
varchar(50),
@ClosingManagerName
varchar(50),
@ClosingManagerNumber
varchar(50),
@F_AND_I_ManagerNumber
varchar(50),
@F_AND_I_ManagerName
varchar(50),
@SalesManagerNumber
varchar(50),
@SalesManagerName
varchar(50),
@EntryDate
varchar(50),
@DealBookDate
varchar(50),
@VehicleYear
varchar(50),
@VehicleMake
varchar(50),
@VehicleModel
varchar(50),
@VehicleStockNumber
varchar(50),
@VehicleVIN
varchar(50),
@VehicleExteriorColor
varchar(50),
@VehicleInteriorColor
varchar(50),
@VehicleMileage
varchar(50),
@VehicleType
varchar(50),
@InServiceDate
varchar(50),
@HoldBackAmount
varchar(50),
@DealType
varchar(50),
@SaleType
varchar(50),
@BankCode
varchar(50),
@BankName
varchar(50),
@SalesmanCommission
varchar(50),
@GrossProfitSale
varchar(50),
@FinanceReserve
varchar(50),
@CreditLifePremium
varchar(50),
@CreditLifeCommision
varchar(50),
@TotalInsuranceReserve
varchar(50),
@BalloonAmount
varchar(50),
@CashPrice
varchar(50),
@AmountFinanced
varchar(50),
@TotalOfPayments
varchar(50),
@MSRP varchar(50),
@DownPayment
varchar(50),
@SecurityDesposit
varchar(50),
@Rebate
varchar(50),
@Term varchar(50),
@RetailPayment
varchar(50),
@PaymentType
varchar(50),
@RetailFirstPayDate
varchar(50),
@LeaseFirstPayDate
varchar(50),
@DayToFirstPayment
varchar(50),
@LeaseAnnualMiles
varchar(50),
@MileageRate
varchar(50),
@APRRate
varchar(50),
@ResidualAmount
varchar(50),
@LicenseFee
varchar(50),
@RegistrationFee
varchar(50),
@TotalTax
varchar(50),
@ExtendedWarrantyName
varchar(50),
@ExtendedWarrantyTerm
varchar(50),
@ExtendedWarrantyLimitMiles
varchar(50),
@ExtendedWarrantyDollar
varchar(50),
@ExtendedWarrantyProfit
varchar(50),
@FrontGross
varchar(50),
@BackGross
varchar(50),
@TradeIn_1_VIN
varchar(50),
@TradeIn_2_VIN
varchar(50),
@TradeIn_1_Make
varchar(50),
@TradeIn_2_Make
varchar(50),
@TradeIn_1_Model
varchar(50),
@TradeIn_2_Model
varchar(50),
@TradeIn_1_ExteriorColor
varchar(50),
@TradeIn_2_ExteriorColor
varchar(50),
@TradeIn_1_Year
varchar(50),
@TradeIn_2_Year
varchar(50),
@TradeIn_1_Mileage
varchar(50),
@TradeIn_2_Mileage
varchar(50),
@TradeIn_1_Gross
varchar(50),
@TradeIn_2_Gross
varchar(50),
@TradeIn_1_Payoff
varchar(50),
@TradeIn_2_Payoff
varchar(50),
@TradeIn_1_ACV
varchar(50),
@TradeIn_2_ACV
varchar(50),
@Fee_1_Name
varchar(50),
@Fee_1_Fee
varchar(50),
@Fee_1_Commission
varchar(50),
@Fee_2_Name
varchar(50),
@Fee_2_Fee
varchar(50),
@Fee_2_Commission
varchar(50),
@Fee_3_Name
varchar(50),
@Fee_3_Fee
varchar(50),
@Fee_3_Commission
varchar(50),
@Fee_4_Name
varchar(50),
@Fee_4_Fee
varchar(50),
@Fee_4_Commission
varchar(50),
@Fee_5_Name
varchar(50),
@Fee_5_Fee
varchar(50),
@Fee_5_Commission
varchar(50),
@Fee_6_Name
varchar(50),
@Fee_6_Fee
varchar(50),
@Fee_6_Commission
varchar(50),
@Fee_7_Name
varchar(50),
@Fee_7_Fee
varchar(50),
@Fee_7_Commission
varchar(50),
@Fee_8_Name
varchar(50),
@Fee_8_Fee
varchar(50),
@Fee_8_Commission
varchar(50),
@Fee_9_Name
varchar(50),
@Fee_9_Fee
varchar(50),
@Fee_9_Commission
varchar(50),
@Fee_10_Name
varchar(50),
@Fee_10_Fee
varchar(50),
@Fee_10_Commission
varchar(50),
@ContractDate
varchar(50),
@InsuranceName
varchar(50),
@InsuranceAgentName
varchar(50),
@InsuranceAddress
varchar(50),
@InsuranceCity
varchar(50),
@InsuranceState
varchar(50),
@InsuranceZip
varchar(50),
@InsurancePhone
varchar(50),
@InsurancePolicyNumber
varchar(50),
@InsuranceEffectiveDate
varchar(50),
@InsuranceExpirationDate
varchar(50),
@InsuranceCompensationDeduction
varchar(50),
@TradeIn_1_InteriorColor
varchar(50),
@TradeIn_2_InteriorColor
varchar(50),
@PhoneBlock
varchar(50),
@LicensePlateNumber
varchar(50),
@Cost varchar(50),
@InvoiceAmount
varchar(50),
@FinanceCharge
varchar(50),
@TotalPickupPayment
varchar(50),
@TotalAccessories
varchar(50),
@TotalDriveOffAmount
varchar(50),
@EmailBlock
varchar(50),
@ModelDescriptionOfCarSold
varchar(50),
@VehicleClassification
varchar(50),
@ModelNumberOfCarSold
varchar(50),
@GAPPremium
varchar(50),
@LastInstallmentDate
varchar(50),
@CashDeposit
varchar(50),
@AHPremium
varchar(50),
@LeaseRate
varchar(50),
@DealerSelect
varchar(50),
@LeasePayment
varchar(50),
@LeaseNetCapCost
varchar(50),
@LeaseTotalCapReduction
varchar(50),
@DealStatus
varchar(50),
@CustomerSuffix
varchar(50),
@CustomerSalutation
varchar(50),
@CustomerAddress2
varchar(50),
@CustomerMiddleName
varchar(50),
@GlobalOptOut
varchar(50),
@LeaseTerm
varchar(50),
@ExtendedWarrantyFlag
varchar(50),
@Salesman_3_Number
varchar(50),
@Salesman_3_Name
varchar(50),
@Salesman_4_Number
varchar(50),
@Salesman_4_Name
varchar(50),
@Salesman_5_Number
varchar(50),
@Salesman_5_Name
varchar(50),
@Salesman_6_Number
varchar(50),
@Salesman_6_Name
varchar(50),
@APRRate2
varchar(50),
@APRRate3
varchar(50),
@APRRate4
varchar(50),
@Term2
varchar(50),
@SecurityDeposit2
varchar(50),
@DownPayment2
varchar(50),
@TotalOfPayments2
varchar(50),
@BasePayment
varchar(50),
@JournalSaleAmount
varchar(50),
@IndividualBusinessFlag
varchar(50),
@InventoryDate
varchar(50),
@StatusDate
varchar(50),
@ListPrice
varchar(50),
@NetTradeAmount
varchar(50),
@TrimLevel
varchar(50),
@SubTrimLevel
varchar(50),
@BodyDescription
varchar(50),
@BodyDoorCount
varchar(50),
@TransmissionDesc
varchar(50),
@EngineDesc
varchar(50),
@TypeCode
varchar(50),
@SLCT2
varchar(50),
@DealDateOffset
varchar(50),
@AccountingDate
varchar(50),
@CoBuyerCustNum
varchar(50),
@CoBuyerCell
varchar(50),
@CoBuyerEmail
varchar(50),
@CoBuyerSalutation
varchar(50),
@CoBuyerPhoneBlock
varchar(50),
@CoBuyerMailBlock
varchar(50),
@CoBuyerEmailBlock
varchar(50),
@RealBookDate
varchar(50),
@CoBuyerMiddleName
varchar(50),
@CoBuyerCountry
varchar(50),
@CoBuyerAddress2
varchar(50),
@CoBuyerOptOut
varchar(50),
@CoBuyerOccupation
varchar(50),
@CoBuyerEmployer
varchar(50),
@Country
varchar(50),
@Occupation
varchar(50),
@Employer
varchar(50),
@Salesman2Commission
varchar(50),
@BankAddress
varchar(50),
@BankCity
varchar(50),
@BankState
varchar(50),
@BankZip
varchar(50),
@LeaseEstimatedMiles
varchar(50),
@AFTReserve
varchar(50),
@CreditLifePrem
varchar(50),
@CreditLifeRes
varchar(50),
@AHRes
varchar(50),
@Language
varchar(50),
@BuyRate
varchar(50),
@DMVAmount
varchar(50),
@Weight
varchar(50),
@StateDMVTotFee
varchar(50),
@ROSNumber
varchar(50),
@Incentives
varchar(50),
@CASS_STD_LINE1
varchar(50),
@CASS_STD_LINE2
varchar(50),
@CASS_STD_CITY
varchar(50),
@CASS_STD_STATE
varchar(50),
@CASS_STD_ZIP
varchar(50),
@CASS_STD_ZIP4
varchar(50),
@CASS_STD_DPBC
varchar(50),
@CASS_STD_CHKDGT
varchar(50),
@CASS_STD_CART
varchar(50),
@CASS_STD_LOT
varchar(50),
@CASS_STD_LOTORD
varchar(50),
@CASS_STD_URB
varchar(50),
@CASS_STD_FIPS
varchar(50),
@CASS_STD_EWS
varchar(50),
@CASS_STD_LACS
varchar(50),
@CASS_STD_ZIPMOV
varchar(50),
@CASS_STD_Z4LOM
varchar(50),
@CASS_STD_NDIAPT
varchar(50),
@CASS_STD_NDIRR
varchar(50),
@CASS_STD_LACSRT
varchar(50),
@CASS_STD_ERROR_CD
varchar(50),
@NCOA_AC_ID
varchar(50),
@NCOA_COA_ADDSRC
varchar(50),
@NCOA_COA_MATCH
varchar(50),
@NCOA_COA_MOVTYP
varchar(50),
@NCOA_COA_DATE
varchar(50),
@NCOA_COA_DELCD
varchar(50),
@NCOA_COA_RTYPE
varchar(50),
@NCOA_COA_RTNCD
varchar(50),
@NCOA_COA_LINE1
varchar(50),
@NCOA_COA_LINE2
varchar(50),
@NCOA_COA_CITY
varchar(50),
@NCOA_COA_STATE
varchar(50),
@NCOA_COA_ZIP
varchar(50),
@NCOA_COA_ZIP4
varchar(50),
@NCOA_COA_DPBC
varchar(50),
@NCOA_COA_CHKDGT
varchar(50),
@NCOA_COA_CART
varchar(50),
@NCOA_COA_LOT
varchar(50),
@NCOA_COA_LOTORD
varchar(50),
@NCOA_COA_URB
varchar(50),
@NCOA_COA_Z4LOM
varchar(50),
@NCOA_COA_ACTION
varchar(50),
@NCOA_COA_QNAME
varchar(50),
@NCOA_DPV_AA
varchar(50),
@NCOA_DPV_A1
varchar(50),
@NCOA_DPV_BB
varchar(50),
@NCOA_DPV_CC
varchar(50),
@NCOA_DPV_M1
varchar(50),
@NCOA_DPV_M3
varchar(50),
@NCOA_DPV_N1
varchar(50),
@NCOA_DPV_P1
varchar(50),
@NCOA_DPV_P3
varchar(50),
@NCOA_DPV_RR
varchar(50),
@NCOA_DPV_R1
varchar(50),
@NCOA_DPV_STATUS
varchar(50),
@NCOA_DPV_F1
varchar(50),
@NCOA_DPV_G1
varchar(50),
@NCOA_DPV_U1
varchar(50),
@myerror
varchar(500),
@SalesID
int,
@errornumber int,
@errorseverity varchar(500),
@errorstate int,
@errorprocedure varchar(500),
@errorline varchar(50),
@errormessage varchar(1000);
DECLARE Sales_Cursor CURSOR FOR
SELECT * from FLATFILE_SALES;
OPEN Sales_Cursor;
:r C:\Clients\BlackBook\BlackBookMarketing\Bharath\LOG_SALES_INSERT.sql
WHILE @@FETCH_STATUS = 0
BEGIN
PRINT @VehicleVIN ;
--===============================================================================
-- ****************** insert into Sales Table ***********
BEGIN TRY
INSERT INTO Sales
IconicDealerID,
DealNumber,
CustomerNumber,
DMSType,
ContractDate
VALUES (@ClientDealerID,@DealNumber,@CustomerNumber,@DMSType,@ContractDate);
END TRY
BEGIN CATCH
SELECT
@errornumber = ERROR_NUMBER()
,@errorseverity = ERROR_SEVERITY()
,@errorstate = ERROR_STATE()
,@errorprocedure = ERROR_PROCEDURE()
,@errorline = ERROR_LINE()
,@errormessage = ERROR_MESSAGE();
:r C:\Clients\BlackBook\BlackBookMarketing\Bharath\LOG_SALES_INSERT.sql
@errornumber ,
@errorseverity ,
@errorstate,
@errorprocedure,
@errorline,
@errormessage);
END CATCH
PRINT @errornumber;
PRINT @errorseverity;
PRINT @errorprocedure;
PRINT @errorline;
PRINT @errormessage;
PRINT @errorstate;
set @myerror = @@ERROR;
-- This PRINT statement prints 'Error = 0' because
-- @@ERROR is reset in the IF statement above.
PRINT N'Error = ' + @myerror;
set @SalesID = scope_identity();
PRINT @SalesID;
--================================================================================
--Insert into SALES_TRADEIN Table
BEGIN TRY
INSERT INTO SALES_TRADEIN
SalesID,
TradeIn_VIN,
TradeIn_Make,
TradeIn_Model,
TradeIn_ExteriorColor,
TradeIn_Year,
TradeIn_Mileage,
TradeIn_Gross,
TradeIn_Payoff,
TradeIn_ACV,
TradeIn_InteriorColor
VALUES
@SalesID,
case when @TradeIn_1_VIN is not null then @TradeIn_2_VIN end,
case when @TradeIn_1_Make is not null then @TradeIn_2_Make end,
case when @TradeIn_1_Model is not null then @TradeIn_2_Model end,
case when @TradeIn_1_ExteriorColor is not null then @TradeIn_2_ExteriorColor end,
case when @TradeIn_1_Year is not null then @TradeIn_2_Year end,
case when @TradeIn_1_Mileage is not null then @TradeIn_2_Mileage end,
case when @TradeIn_1_Gross is not null then @TradeIn_2_Gross end,
case when @TradeIn_1_Payoff is not null then @TradeIn_2_Payoff end,
case when @TradeIn_1_ACV is not null then @TradeIn_2_ACV end,
case when @TradeIn_1_InteriorColor is not null then @TradeIn_2_InteriorColor end
END TRY
BEGIN CATCH
SELECT
@errornumber = ERROR_NUMBER()
,@errorseverity = ERROR_SEVERITY()
,@errorstate = ERROR_STATE()
,@errorprocedure = ERROR_PROCEDURE()
,@errorline = ERROR_LINE()
,@errormessage = ERROR_MESSAGE();
:r C:\Clients\BlackBook\BlackBookMarketing\Bharath\LOG_SALES_INSERT.sql
END CATCHThis is what I've understood from your question. You want to replace @TradeIn_2_VIN value if @TradeIn_1_VIN
is NULL, else the value of @TradeIn_1_VIN.
If this is the requirement then, your CASE statement is missing ELSE part. You can re-write this as below
case when @TradeIn_1_VIN is null then @TradeIn_2_VIN
ELSE @TradeIn_1_VIN end,
or simply you can replace the CASE statement with the below
COALESCE function,
COALESCE(@TradeIn_1_VIN, @TradeIn_2_VIN),
Krishnakumar S -
Hi. I just got the iPhone 6, plugged into itunes and made the mistake of putting an OLD back up on my new phone resulting in losing all contacts after 2013. They are not saved on the cloud. Is there any way to go back to before I screwed up?
If you have performed a sync with the device since you restored this old backup, then don't bother looking for another backup. iTunes writes over the last backup each time you sync. If you were handling contacts in iCloud, you would find them by logging into iCloud. Or you can check settings and iCloud and see if the button it on for Contacts. Otherwise it might have been on the computer, if you had a program that syncs with iTunes and handles contacts, depending on the computer system you use. If Windows, it would be Windows Contacts or Outlook. If a Mac, there is a Mac Address book as well.
-
Removing songs from iTunes, that are not saved on the computer
Hey guys.
First of all i would like to thank you for reading my post and trying to help.
Anyways, i rent an external harddrive from one of my friends, and he had a huge amount of songs, that i would like to get on my computer. Stupid as i am, i started downloading directly from the harddrive, which result in a lot of songs in my iTunes, that are not saved in the computer, and when i remove the external harddrive from my computer, all the songs cannot play. So after that, i saved them on my computer, and tried getting them into iTunes once again. This has resulted in a double of every songs. Which is quite much.. Are there any ways, that i can do a "Clean-up" and remove all the songs that are not saved on my computer or not working or something like that?
I appreciate your help. Thanks in advance.Hi,
If your previous library was matched on you your computer, you can retrieve your music from itunes match on your computer.
Sign in to match and add your computer. Your library will now show all the music that is in match. You should be able to download all your music back on to your computer.
Jim -
Why is it, all of my itunes are not saved in the cloud?
Why is it, all of my itunes are not saved in the cloud?
If you mean that you have iTunes Match and wonder why not all songs go there, this should help:
"Since there are more than 26 million songs in the iTunes Store, chances are your music is already in iCloud. And for the few songs that aren't, iTunes uploads what it can't match ..."
The above comes from here:
http://www.apple.com/itunes/itunes-match/ -
Custom field values are not storing in the data base
Hi Friends,
We have created one Custom field called ZZ_APPROVER in Rfx Header , we have included this field in the below stuctures
1.INCL_EEW_PD_HEADER_CSF_BID
2.INCL_EEW_PD_HEADER_CSF
The data type of this field ( ZZ_APPROVER ) is CHAR and the length is 1 . we have given 2 fixed values in Value Range
1 -
X+2 Approver
2 --- Provisional Approver
so when we select either 1 or 2 ( in Drop Down ), its displaying properly on RFx Screen, but when we try save this document the values are not strong in the data base.
Can any one give me idea why its not stroring in the data base
Thanks in Advance
Kumar SriniHi Ganapathy,
A Record is created in table BBP_PDHSC , for other z fields, the values are stroing , but for this field ( ZZ_APPROVER ) [ drop down list ], the value is not stroring
Thnx
Kumar Srini -
Changes are not reflecting in the table control in 2nd time
Hi,
In BSP Portal Asset management page, General,cost center, allocations ..etc tabs are there.and i have maintain button also in this page
After filling all these things, when i click the maintain button , the mandatory fields [General,costcenter,Eval1,Eval2]are displaying in the tablecontrol popup window,
In the tablecontrol popup whatever i selected ,it is displaying fine..
In the popup,save buttons is there.Once if i clicked the save button, popup will vanish and datas are stored in the internal table.and again it will come to portal main page.Now if i select the different values in the allocations dropdown, old vales are displaying in the tablecontrol popup. new dropdown values are not diaplying in the popup.what can i do?
This is my code: popupdisplay.htm
==============
<%
* DATE CHANGE.....: 20/07/2007 *
* AUTHOR..........: Mohan Pitchaimani (inmpi0) *
* CHANGE DESCR....: DIsplay the popup when clicking the maintainbutton *
* R/3 RELEASE... : 2.1 *
* MODIFICATION ID : MOD-001 *
* RIFE/TPR/SCR No.: FSSE698 BSP Asset Mass Creation BSP Request form * *
* RT/TRANSPORT....: 12403 / D94K969999 *
%>
<%--********************Begin of changes mod-001 on 20/07/2007 *****************--%>
<%@page language="abap"%>
<%@extension name="bsp" prefix="bsp" %>
<%@extension name="htmlb" prefix="htmlb" %>
<%@ extension name="/DS1/mdm" prefix="mdm" %>
<%
data :
lt_columns type /DS1/MDM_tt_table_control,
ls_column type /DS1/MDM_ms_table_control,
l_onload type string,
lr_field type ref to /ds1/cl_mdm_bspfield_services,
lw_maintain type /ds1/fss_ms_popup,
l_editable type char1,
lt_drop type /ds1/mdm_tt_dropdowns,
ls_sc type /DS1/MDM_MS_F4_SEARCH_CRITERA,
ls_rmap type /DS1/MDM_MS_F4_RESULTS_MAP,
ls_drop type /ds1/mdm_ms_dropdown,
l_number type int4.
%>
<%--********************Close the window **************************************** --%>
<% data: event TYPE REF TO CL_HTMLB_EVENT.
event = CL_HTMLB_MANAGER=>get_event( runtime->server->request ).
%>
<%
if event is not initial.
CASE event->id.
WHEN 'con'.
%>
<script language="javascript">
self.close();
</script>
<% endcase.
endif.
%>
<%--************************ Popupdisplay ***************************************** --%>
<htmlb:content design = "design2002+design2003"
rtlAutoSwitch = "true"
forceEncode = "ENABLED" >
<htmlb:page title = "Maintain fields should be different from similar assets">
<script type="text/javascript" language="JavaScript" src="../MDM_GENERIC/Javascript/MDM_Generic.js"></script>
<%@ include file = "asst_scripts_change.htm" %>
<%@ include file = "../MDM_GENERIC/TableControlStyleInclude.xml" %>
<% delete controller->r_asset_data->T_MAINTAIN where TXT50 = space. %>
<% if controller->r_asset_data->t_maintain is initial.
lw_maintain-TXT50 = controller->r_asset_data->w_generaldata-DESCRIPT.
lw_maintain-INVNR = controller->r_asset_data->w_generaldata-INVENT_NO.
lw_maintain-kostl = controller->r_asset_data->w_timedependantdata-costcenter.
lw_maintain-ORD41 = controller->r_asset_data->w_allocations-EVALGROUP1.
lw_maintain-ORD42 = controller->r_asset_data->w_allocations-EVALGROUP2.
lw_maintain-ORD43 = controller->r_asset_data->w_allocations-EVALGROUP3.
lw_maintain-ORD44 = controller->r_asset_data->w_allocations-EVALGROUP4.
lw_maintain-GDLGRP = controller->r_asset_data->w_allocations-EVALGROUP5.%>
<%--******************** Appending the maintained values *************************** --%>
<%
if controller->r_asset_data->G_NO_ASSETS NE space.
clear l_number.
DO controller->r_asset_data->G_NO_ASSETS TIMES.
l_number = l_number + 1.
lw_maintain-SERNR = l_number.
APPEND lw_maintain TO controller->r_asset_data->t_maintain.
ENDDO.
else.
DO controller->r_asset_data->g_no_similarsubno TIMES.
APPEND lw_maintain TO controller->r_asset_data->t_maintain.
ENDDO.
endif.
controller->G_POPUP_FLAG = 'X'.
endif.
%>
<%--******************** VAlidations for the Requester and Approver screen *************************** --%>
<% if controller->ms_request_header-req_status = '00'.
ls_column-columnname = 'SERNR'.
ls_column-no_edit = 'X'.
append ls_column to lt_columns.
clear ls_column.
endif. %>
<% if controller->ms_request_header-req_status = '05'.
ls_column-columnname = 'SERNR'.
ls_column-no_edit = 'X'.
append ls_column to lt_columns.
clear ls_column.
ls_column-columnname = 'TXT50'.
ls_column-no_edit = 'X'.
append ls_column to lt_columns.
clear ls_column.
ls_column-columnname = 'INVNR'.
ls_column-no_edit = 'X'.
append ls_column to lt_columns.
clear ls_column.
ls_column-columnname = 'KOSTL'.
ls_column-no_edit = 'X'.
append ls_column to lt_columns.
clear ls_column.
endif. %>
<% if controller->ms_request_header-req_status = '06'.
ls_column-columnname = 'SERNR'.
ls_column-no_edit = 'X'.
append ls_column to lt_columns.
clear ls_column.
ls_column-columnname = 'TXT50'.
ls_column-no_edit = 'X'.
append ls_column to lt_columns.
clear ls_column.
ls_column-columnname = 'INVNR'.
ls_column-no_edit = 'X'.
append ls_column to lt_columns.
clear ls_column.
ls_column-columnname = 'KOSTL'.
ls_column-no_edit = 'X'.
append ls_column to lt_columns.
clear ls_column.
ls_column-columnname = 'ORD41'.
ls_column-no_edit = 'X'.
append ls_column to lt_columns.
clear ls_column.
ls_column-columnname = 'ORD42'.
ls_column-no_edit = 'X'.
append ls_column to lt_columns.
clear ls_column.
ls_column-columnname = 'ORD43'.
ls_column-no_edit = 'X'.
append ls_column to lt_columns.
clear ls_column.
ls_column-columnname = 'ORD44'.
ls_column-no_edit = 'X'.
append ls_column to lt_columns.
clear ls_column.
ls_column-columnname = 'GDLGRP'.
ls_column-no_edit = 'X'.
append ls_column to lt_columns.
clear ls_column.
endif.
%>
<% if controller->ms_request_header-req_status = '00'. %>
<html>
<body>
<p>
You can Maintain/Edit details of Similar Assets/Similar Sub - Assets . Click confirm to maintain the entries
</p>
</body>
</html>
<% elseif controller->ms_request_header-req_status <> '00'. %>
<html>
<body>
<p>You can view details of of Similar Assets/Similar Sub - Assets.
</p>
</body>
</html>
<% endif.%>
<htmlb:form id='frmMain' >
<htmlb:group>
<htmlb:groupBody>
<htmlb:gridLayout columnSize ="2"
rowSize ="15"
width ="150%">
<htmlb:gridLayoutCell columnIndex="2" rowIndex="1" horizontalAlignment="left" verticalAlignment="top" width="200" wrapping="false">
<%
ls_column-columnname = 'TXT50'.
ls_column-input_type = '1'.
ls_column-data_type = '1'.
APPEND ls_column TO lt_columns.
CLEAR ls_column.
ls_column-columnname = 'INVNR'.
ls_column-input_type = '1'.
ls_column-data_type = '1'.
APPEND ls_column TO lt_columns.
CLEAR ls_column.
* build F4 Search sceen
ls_sc-field_name = 'KOKRS'.
ls_sc-data_element = 'KOKRS'.
ls_sc-f4_from_data_element = 'X'.
ls_sc-value = 'OP01'.
append ls_sc to ls_column-lookup_params-searchcriteria.
clear: ls_sc.
ls_sc-field_name = 'BUKRS'.
ls_sc-data_element = 'BUKRS'.
ls_sc-f4_values = /DS1/CL_MDM_F4_VALUES=>GET_VALUES_FOR_COCE_COMPANY( ).
append ls_sc to ls_column-lookup_params-searchcriteria.
clear: ls_sc.
ls_sc-field_name = 'KOSTL'.
ls_sc-data_element = 'KOSTL'.
append ls_sc to ls_column-lookup_params-searchcriteria.
clear: ls_sc.
ls_sc-field_name = 'KOSAR'.
ls_sc-data_element = 'KOSAR'.
ls_sc-f4_from_data_element = 'X'.
append ls_sc to ls_column-lookup_params-searchcriteria.
clear: ls_sc.
ls_sc-field_name = 'VERAK'.
ls_sc-data_element = 'VERAK'.
append ls_sc to ls_column-lookup_params-searchcriteria.
clear: ls_sc.
ls_sc-field_name = 'LTEXT'.
ls_sc-data_element = 'KLTXT'.
append ls_sc to ls_column-lookup_params-searchcriteria.
clear: ls_sc.
ls_sc-field_name = 'SPRAS'.
ls_sc-data_element = 'SPRAS'.
ls_sc-f4_values = /DS1/CL_MDM_F4_VALUES=>GET_VALUES_FOR_LANGU( ).
ls_sc-value = sy-langu.
append ls_sc to ls_column-lookup_params-searchcriteria.
clear: ls_sc.
ls_sc-field_name = 'TELX1'.
ls_sc-data_element = 'TELX1'.
append ls_sc to ls_column-lookup_params-searchcriteria.
clear: ls_sc.
ls_sc-field_name = 'FUNC_AREA'.
ls_sc-data_element = 'FKBER'.
ls_sc-f4_from_data_element = 'X'.
append ls_sc to ls_column-lookup_params-searchcriteria.
clear: ls_sc.
ls_sc-field_name = 'PRCTR'.
ls_sc-data_element = 'PRCTR'.
append ls_sc to ls_column-lookup_params-searchcriteria.
clear: ls_sc.
ls_sc-field_name = 'REGIO'.
ls_sc-data_element = 'REGIO'.
append ls_sc to ls_column-lookup_params-searchcriteria.
clear: ls_sc.
* set parameters for f4 lookup
ls_column-lookup_params-POPUPHEIGHT = '550'.
ls_column-lookup_params-POPUPWIDTH = '750'.
ls_column-lookup_params-SEARCHMAXRESULTS = '500'.
ls_column-lookup_params-SEARCHRESULTSKEY = 'KOSTL'.
ls_column-lookup_params-SEARCHTABLE = 'CSKS'.
* Set Column for Cost center
ls_column-columnname = 'KOSTL'.
ls_column-input_type = '4'.
ls_column-data_type = '1'.
ls_column-tooltip_fom_de = 'X'.
ls_column-scrollable = ' '.
ls_column-length = '15'.
ls_column-maxlength = '15'.
ls_column-halign = 'RIGHT'.
ls_column-valign = 'TOP'.
APPEND ls_column TO lt_columns.
CLEAR ls_column.
* Set Column for Evaluation group 1
ls_drop-dropdown_id = 'evlg1'.
ls_drop-values_tab = /DS1/CL_MDM_F4_VALUES=>GET_VALUES_FOR_EVALGRP1( im_group = '1'
im_bukrs = controller->R_ASSET_DATA->W_KEY-COMPANYCODE ).
append ls_drop to lt_drop.
ls_column-columnname = 'ORD41'.
ls_column-input_type = '2'.
ls_column-DROPDOWN_ID = 'evlg1'.
APPEND ls_column TO lt_columns.
CLEAR ls_column.
* Set Column for Evaluation group 2
ls_drop-dropdown_id = 'evlg2'.
ls_drop-values_tab = /DS1/CL_MDM_F4_VALUES=>GET_VALUES_FOR_EVALGRP1( im_group = '2'
im_bukrs = controller->R_ASSET_DATA->W_KEY-COMPANYCODE ).
append ls_drop to lt_drop.
ls_column-columnname = 'ORD42'.
ls_column-input_type = '2'.
ls_column-DROPDOWN_ID = 'evlg2'.
APPEND ls_column TO lt_columns.
CLEAR ls_column.
* Set Column for Evaluation group 3
ls_drop-dropdown_id = 'evlg3'.
ls_drop-values_tab = /DS1/CL_MDM_F4_VALUES=>GET_VALUES_FOR_EVALGRP1( im_group = '3'
im_bukrs = controller->R_ASSET_DATA->W_KEY-COMPANYCODE ).
append ls_drop to lt_drop.
ls_column-columnname = 'ORD43'.
ls_column-input_type = '2'.
ls_column-DROPDOWN_ID = 'evlg3'.
APPEND ls_column TO lt_columns.
CLEAR ls_column.
* Set Column for Evaluation group 4
ls_drop-dropdown_id = 'evlg4'.
ls_drop-values_tab = /DS1/CL_MDM_F4_VALUES=>GET_VALUES_FOR_EVALGRP1( im_group = '4'
im_bukrs = controller->R_ASSET_DATA->W_KEY-COMPANYCODE ).
append ls_drop to lt_drop.
ls_column-columnname = 'ORD44'.
ls_column-input_type = '2'.
ls_column-DROPDOWN_ID = 'evlg4'.
APPEND ls_column TO lt_columns.
CLEAR ls_column.
* Set Column for Evaluation group 5
ls_drop-dropdown_id = 'evlg5'.
ls_drop-values_tab = controller->GET_VALUES_FOR_EVALGRP5( im_bukrs = controller->R_ASSET_DATA->W_KEY-COMPANYCODE ) .
append ls_drop to lt_drop.
ls_column-columnname = 'GDLGRP'.
ls_column-input_type = '2'.
ls_column-DROPDOWN_ID = 'evlg5'.
APPEND ls_column TO lt_columns.
CLEAR ls_column.
* Input type
*1 Text box
*2 Drop down
*3 Checkbox
*4 F4 Lookup
*5 HTML
*6 Text just displayed
*7 Date
*8 Link
*9 Time
* Data type
*1 String
*2 Numeric
*3 Date
*4 Time
%>
<%---------------- TableControl display in the popupwindow --------------------------%>
<mdm:tableControl table="<%=controller->r_asset_data->t_maintain%>"
id="tv1"
width="650"
no_buttons = "X"
height="330"
columns="<%=lt_columns%>"
dropdowns= "<%= lt_drop %>"
title="Maintain Asset" >
</mdm:tableControl>
</htmlb:gridLayoutCell>
</htmlb:gridLayout>
<input type="hidden" name="renderedtv1" value= "rendered-tv1" />
<%---------------- Confirm Button-------------------------------- --%>
<htmlb:button id="con"
design="STANDARD"
width="15"
text = "Confirm" onClick="confirm"
onClientClick = "self.close()"/>
<%---------------- Cancel Button-------------------------------- --%>
<htmlb:button id="cancel"
design="STANDARD"
width="15"
text = "Cancel"
onClientClick = "self.close()"/>
</htmlb:groupBody>
</htmlb:group>
</htmlb:form>
</htmlb:page>
</htmlb:content>
<%--********************End of changes mod-001 on 20/07/2007 *****************--%>
Message was edited by:
Durairaj Athavan Raja
--formattingHi Mohan,
Please use the formatting options to format ur question...!!
Thanks,
Tatvagna. -
Created a trigger but new values are not inserting in the backup table
I have created a backup table and writter a trigger on a table such that after update old values and new values are to be inserted into the backup table, but new values are not inserting. I am giving the code please help me
create or replace trigger "SUPPQUOTES_AUDIT"
after update or delete on phsuppquotes for each row
begin
insert into phquotes_audit(cprc_new,suppcode,itemcode,cprc_old,negodt,validdt,userid,TRANDATE) values
(:new.cprc,:old.suppcode,:old.itemcode,:old.cprc,:old.negodt,:old.validdt,:old.userid,SYSDATE);
end;old values and new
values are to be inserted into the backup table, butwell you have only one insert there, inserting old values with a new id (which is ok if you don't update the id column, but I don't think that :new is available for deleting ops); you should have two inserts:
insert into
phquotes_audit(cprc_new,suppcode,itemcode,cprc_old,negodt,validdt,userid,TRANDATE) values (:old.cprc,:old.suppcode,:old.itemcode,:old.cprc,:old.negodt,:old.validdt,:old.userid,SYSDATE);
if (updating) then
insert into phquotes_audit(cprc_new,suppcode,itemcode,cprc_old,negodt,validdt,userid,TRANDATE) values (:new.cprc,:new.suppcode,:new.itemcode,:new.cprc,:new.negodt,:new.validdt,:new.userid,SYSDATE);
end if;
gojko adzic
http://gojko.net -
Changes on equipment are not saved at the backend (MAM30_031)
Hi,
if I change some equipment data e.g. street and city on the client, this changes are not done at the equipment in the backend. Status of MAM30_031 is I-Finished which holds the correct changed data inside. But if I now look into the equipment at the backend, there's still the old data. Changes done at the backend are synchronized fine to the client, but not the other way.
Any idea why this doesn't work?
Thank you and regards,
FlorianHi Florian,
here is what I would do:
1. Check in "O-Sent" in a sequence which is a response for the change in equipment what is the status of your change. There should be something like, "All top updated successfully...", or "Conflict...", or "BAPI return...". That will give you and idea what happens with your change.
2. If you "Successful"... message or no message - that is garanteed BAPI problem. You should open OSS message to SAP (component XAP-MBA-MAM).
Which version of MAM3.0 SR3 you are running? There is Patch02 which I know for sure has some fixes for technical object change fucntionality. (If you are on the lower version: reintsallation will be required, there are SynBo changes either in Patch01, or Patch02, don't remember exactly which).
Cheers,
Larissa Limarova -
Measure Values are not shown in the pivot tables
Measures without aggregation (in rpd) are not shown in pivot table.
Im trying to add multiple columns in the fact table as measures,one which is summable had has the SUM function and three which are not summable.
The initial report will be as follows and I have been able to get the data displayed.
Year | Month| Company Name| SUM(C1)| C2|C3
However if I pivot the table as follows data in column C2 and C3 are not Displayed.
Columns
Year
Month
Company
Rows
Measure Lablel
Measures
SUM(C1)
C2
C3
Should we have an aggregation rule applued in C2 and C3 ?Yes, all the column entries must have agg rule. You can specify one such as 'first' in the pivot table.
-
When I take a picture or video with my ipad, the pictures are not shown in the camera roll or anywhere else I can find them. Can anyone help me?
When you take a photo there will be a small icon of the photo in the lower right corner. If you touch that it should take you to the photo in the camera roll.
If that isn't happening have you tried restarting or resetting your iPad?
Restart: Press On/Off button until the Slide to Power Off slider appears, select Slide to Power Off and, after It shuts down, press the On/Off button until the Apple logo appears.
Reset: Press the Home and On/Off buttons at the same time and hold them until the Apple logo appears (about 10 seconds).
No data will be lost. -
Data not saved in the table (for the field created through AET)
Hi,
I have created few fields using AET for a transaction type.
The fields are created successfully and we are able to add them in my custom config.
I followed step by step the following link The New AET table Extension Feature of Ehp1- Creating your own components
However the values of these fields are not stored in the ZTable.
I had defined Form view ( 1:1 cardinality) within the wizard itself.
Help!!!
Regards
Omar BBHi,
Check whether your ZRelation Depenedent object entity is getting filled or not.....after input some values.....
Regards,
Sumeet
Maybe you are looking for
-
Is this a bug in Java, or am I doing something wrong?
I have a Vector which I want to convert to an array, so I wrote my code something like this: MyObject a = new MyObject("A"); MyObject b = new MyObject("B"); MyObject c = new MyObject("C"); MyObject d = new MyObject("D"); Vector v = new Vector(); v.ad
-
Is Time Machine Apple's worst piece of software EVER?
I am sick of Time Machine not working properly. I've tried it with an Airport Extreme and an external disk, with Time Capsule, using Leopard, Snow Lepard and now Lion. I do an erase of whichever disk I'm using and then a full backup - and it works fi
-
Hello All, I would like to transfer a file from one system to another system. so i haven written shell script with ftp command as follows. ftp -i 10.14.12.1<< END cd C:\Temp put $datafile ascii quit But i am getting error. Please let me know the sysn
-
Hi guys, I've got a simple stack working, but am having some problems with the input commands. Basically, the commands "empty", "pop", and "peek" are only meant to operate on the stack, not to be inserted inside it. They function on it and also opera
-
Signieren/Unterschrift platzieren
Die Funktion "Ich muss signieren" / "Unterschrift plazieren" ist nicht bei allen Clients verfügbar, wie kann dies aktiviert werden?