This happens both with the lightning-record-form, and using lightning-record-edit-form when defining a field with lightning-input-field with a "time" field. Instead of showing a dropdown list to pick times from, it's just a simple input box. It also broken in that it requires HH:mm:ss time format instead of natural "hh:mm a" format.  I first noticed this when I wanted to call a native form and since Salesforce Lightning native forms are made in Aura, the equivalent is to use lightning-record-form in LWC. Of course, it looks nothing like the native salesforce one when doing the same form call in Aura Components, but I wasn't expecting the time field to be soo broken like that, to the point that it's useless.  Outside of making a custom form, or hacking up lightning-input-field and having awkward validation errors (mismatch; replacing non-input-fields with regular fields doesn't show validity errors at the same time), is there a solution to this? Is this a known issue??  EDIT# This is not a duplicate question because the one linked is for "AURA", not LWC. Thanks.
121056
We can't seem to get the ligthning:inputField to work with time type fields (NOT date\time). Does anyone know if it should work?  Other types such as picklists, checkboxes etc work just fine.
34417
I have a requirement where I need to display list of salesforce objects as a picklist when a radio button is clicked.  Being new to LWC development, I could not figure out what is the right approach to do so. I have come across  from Salesforce articles where we can display radio buttons but as per my scenario, i need to display list of all salesforce objects as picklist when a radio button option is selected.  Can anyone please suggest the right approach to do so.
19484
Am not doing anything fancy, just trying to update a field on Contact in JS of LWC but getting this exception.  Uncaught TypeError: 'set' on proxy: trap returned falsish for property 'Name' throws at mydomain/auraFW/javascript/mhontaYdOya4Y_lBu7v9yg/aura_prod.js:2:27687  HTML Code:   &lt;template&gt;      &lt;template if:true={wiredContact}&gt;          {wiredContact.Name}          &lt;lightning-input value={wiredContact.Name} onchange={updateName}&gt;&lt;/lightning-input&gt;     &lt;/template&gt;  &lt;/template&gt;   JS:   import { LightningElement ,wire,track,api } from 'lwc'; import myContact from "@salesforce/apex/ContactController.fetchContact";  export default class Myrefreshapextest extends LightningElement {    @track wiredContact;   @wire (myContact)         fetchedContact({error, data}){             if(data){                 console.log(JSON.stringify(data));                 this.wiredContact = data;             }else if (error){                 console.log(error);             }     }      updateName (event){         console.log(JSON.stringify(event.detail.value));         console.log(JSON.stringify(this.wiredContact));         this.wiredContact.Name = event.detail.value;     }  }   Apex:  public class ContactController {      @AuraEnabled(cacheable=true)     public static Contact fetchContact(){         return [SELECT Id,Name FROM COntact LIMIT  1];     } }   On top of my head, am not doing anything wrong, anyone has idea what's wrong with my code?  When I print console.log(JSON.stringify(this.wiredContact)); I get old values so am pretty sure it exists.  I tried with @track and @api, but same response. Can anyone shed some light?
83364
From SF :      There are some limitations on the depth of changes tracked for   rerendering in reactive properties. The tracking depth depends on the   type of the reactive property.      Lightning Web Components tracks changes to the internal values of   these types of reactive properties:         Primitive values    Plain objects created with {…}   Arrays created with []         Also SF does not track for complex types like Date.   Now what I wanna do is track an Array of complex object. If a new element is added subtracted from the array re-render the UI. Classic Data - table example.  So I declared my Markup:  &lt;template&gt;     &lt;h1&gt;Hello &lt;/h1&gt;     &lt;lightning-datatable                 key-field="id"                 data={data}                 columns={columns}                 is-loading={tableLoadingState}&gt;             &lt;/lightning-datatable&gt;              &lt;lightning-button variant="brand" label="Add row" title="Add row" onclick={addRow} class="slds-m-left_x-small"&gt;&lt;/lightning-button&gt; &lt;/template&gt;   JS:  import { LightningElement, track } from 'lwc'; const columns = [     { label: 'Label', fieldName: 'name', type:"text"},     { label: 'Website', fieldName: 'website', type: 'text' },     { label: 'Phone', fieldName: 'phone', type: 'text'  } ]; export default class App extends LightningElement {     @track data = [{name:'Mylabel' , website:'google.com' ,phone :'74126478963',amount : 45  }];     @track columns = columns;     @track tableLoadingState = false;      addRow(){         console.log('add row called');         this.data.push({name:'Mylabel2s' , website:'2google.com' ,phone :'74126478963',amount : 45 });         console.log(JSON.stringify(this.data));         //this.data =[];      }   }   When I save and try running this I get the message as shown in docs.  [LWC warning]: Property "_def" of [object:vm undefined (0)] is set to a non-trackable object, which means changes into that object cannot be observed. &lt;lightning-primitive-header-factory&gt;   which means I cannot track the row data for lightning-datatable, which also means when I add or remove rows I would be unsuccessful.  I could not find a solution to add row in datatable and get it updated back in the markup, I searched dev guide and recipe book. Is this a limitation? or there is a workaround?
46137
one of my LWC component failed to work after the summer'19 release because it is unable to load styles not the script from the static resource  I have included the custom lwc inside a lightning record page  Here is the error which I am facing
119735
UI cards in my application expire after 3 days of creation. I indicate this in a badge as shown in the image.    The different states of the element are:-    The live countdown timer starts once it reaches below 1 hour only. i.e it starts from 59 minutes and 59 seconds.  So my dilemma is about; how to show the mm:ss format. The general options that I had are shown in the below image.    Please think about this and suggest the best way through this one :)
49490
I have a tab delimited file where each record has a timestamp field in 12-hour format:     mm/dd/yyyy hh:mm:ss [AM|PM].   I need to quickly convert these fields to 24-hour time:     mm/dd/yyyy HH:mm:ss.   What would be the best way to do this? I'm running on a Windows platform, but I have access to sed, awk, perl, python, and tcl in addition to the usual Windows tools.
59082
I have a number of lightning:inputField that i'm setting based on certain criteria, these all work except for picklist field types. The code below shows how i am setting the fields. The country field is the picklist and the 2 alerts have the correct value in them, however the value is not getting set on country. Is there a different method for setting picklist fields?  var address = res.getReturnValue(); var country = component.find('Country__c'); var pcodeFld = component.find('Postcode__c');  if(country != undefined){  alert(country);  alert(address.Country);  country.set('v.value', address.Country); } if(pcodeFld != undefined){  pcodeFld.set('v.value', address.Postcode); }   EDIT: I can set a default value whilst using $A.createComponents using .set("v.value", "United Kingdom");  it just seems that i can't set it after the component has rendered based on some user action.  Reproduceable Example:  I just can't seem to set the value of any picklist fields when using lightning:inputField.  Component  &lt;aura:component implements="flexipage:availableForRecordHome, force:hasRecordId"&gt; &lt;div class="slds-p-bottom_large slds-p-left_large" style="width:500px"&gt;     &lt;lightning:recordEditForm aura:id="recordViewForm"                                   recordId="{!v.recordId}"                                  objectApiName="Contact"&gt;         &lt;lightning:messages /&gt;         &lt;lightning:inputField fieldName="FirstName" /&gt;         &lt;lightning:inputField fieldName="LastName" aura:id="lastname"/&gt;         &lt;lightning:inputField fieldName="Birthdate" /&gt;         &lt;lightning:inputField fieldName="Phone" /&gt;         &lt;!--Picklist--&gt;         &lt;lightning:inputField fieldName="Country__c" aura:id="Country__c"/&gt;         &lt;lightning:button label="Update" variant="brand" onclick="{!c.update}"/&gt;     &lt;/lightning:recordEditForm&gt; &lt;/div&gt;     &lt;/aura:component&gt;   Controller  ({         update: function(component, event, helper) {         //alert(component.find("Country__c"));        component.find("Country__c").set("v.value", "Ireland");     },  })
25740
In a Lightning Component, I have the following markup which I have to comment in and out for testing purpose  &lt;force:inputField value="{!v.account.Name}" class="form-control uiInput--input input" /&gt;   now when I try to comment it out like this  &lt;!--&lt;force:inputField value="{!v.account.Name}" class="form-control uiInput--input input" /&gt;--&gt;   the API tells me     markup://c:elfL1:6,81: ParseError at [row,col]:[7,81] Message: The   string "--" is not permitted within comments.   Since I didn't figure out that fancy class name uiInput--input (Salesforce did so...) it would be nice to be able to toggle that om/off OR avoid to use class names like this...
45640
I have some issues about choosing how to align a Date/time data type in a field. Which is the best way to align this type of date and why? Right or left? P.S We use WPF.  [------25.03.2015] or [25.03.2015------]  Thank you :)
19412
I'm trying to create record Type selection screen in LWC, but getting this error  afterRender threw an error in 'c:createContact' [Cannot read property 'recordTypeInfos' of undefined]  HTML:  &lt;template&gt;     &lt;lightning-combobox name="recordType" label="Record Type" placeholder="Choose Status"                         value={value}                          options={recordTypeId}&gt;      &lt;/lightning-combobox&gt; &lt;/template&gt;   JS:  import { LightningElement, track, wire, api } from 'lwc'; import { getObjectInfo } from 'lightning/uiObjectInfoApi'; import CONTACT_OBJECT from '@salesforce/schema/Contact';  export default class CreateContact extends LightningElement {      @track statusOptions;     @track value;     @api objectApiName;      @track objectInfo;      @wire(getObjectInfo, { objectApiName: CONTACT_OBJECT,})     objectInfo;       get recordTypeId() {         // Returns a map of record type Ids          console.log(this.objectInfo);         const rtis = this.objectInfo.data.recordTypeInfos;         return rtis;     }  }
14221
I'm using ArcGIS 10.3.1 for Desktop to test before writing an answer to  I have written the test code below that I am running against a test feature class (testFC) with four line features to try and update its dateField with a constant date value of "01.07.2015".  import arcpy  dmyString = "01.07.2015" fc = r"C:\temp\test.gdb\testFC" item = "dateField"  dmyDate = datetime.datetime.strptime(dmyString,'%d.%m.%Y') print dmyDate  arcpy.CalculateField_management(fc,item,dmyDate,"PYTHON")  with arcpy.da.SearchCursor(fc,[item]) as cursor:     for row in cursor:         print row[0]   I think the above should work, and from the output below you can see that the date object (dmyDate) seems to be created fine, but the values written to each of the four features are not what I would expect.  &gt;&gt;&gt; ================================ RESTART ================================ &gt;&gt;&gt;  2015-07-01 00:00:00 1899-12-30 00:00:00 1899-12-30 00:00:00 1899-12-30 00:00:00 1899-12-30 00:00:00 &gt;&gt;&gt;    Can someone explain why 1899-12-30 00:00:00 is being written instead of 2015-07-01 00:00:00?  The attribute table displays as below:    If I replace the CalculateField line above with either:  arcpy.CalculateField_management(fc,item,"date '2015-07-01 00:00:00'","PYTHON")   or  arcpy.CalculateField_management(fc,item,"date '2015/07/01 00:00:00'","PYTHON")   as per @Vince's comments I receive an error:  Traceback (most recent call last):   File "C:\temp\test.py", line 11, in &lt;module&gt;     arcpy.CalculateField_management(fc,item,"date '2015-07-01 00:00:00'","PYTHON")   File "C:\Program Files (x86)\ArcGIS\Desktop10.3\ArcPy\arcpy\management.py", line 3457, in CalculateField     raise e ExecuteError: ERROR 000539: SyntaxError: invalid syntax (&lt;expression&gt;, line 1) Failed to execute (CalculateField).
105841
I have designed a VF page to create a new record in which I am trying to display the value of a pick-list field. I have set a default value for this pick-list field. When trying to create the record using the salesforce native page, the value with which pick-list loads is the one I set as default but when creating the same record using VF page, the pick-list loads with "--None--" as default value.  Can anyone suggest If this is salesforce related bug or Am I doing anything wrong ?
44774
I have a table structured like this:  CREATE TABLE [TESTTABLE] (     [ID] [int] IDENTITY(1,1) NOT NULL,     [DateField] [datetime] NULL,     [StringField] [varchar](50),     [IntField] [int] NULL,     [BitField] [bit] NULL )   I execute the following code:  BEGIN     INSERT INTO TESTTABLE (IntField, BitField, StringField, DateField)     VALUES ('1', 1, 'hello', {ts '2009-04-03 15:41:27.378'});       SELECT SCOPE_IDENTITY()   END   And then   select * from testtable with (NOLOCK)   and my result shows:  2009-04-03 15:41:27.*377*   for the DateField column.  Any ideas why I seem to be losing a millisecond??
22724
I am using Arc Desktop 10.3.1 in a versioned environment.  In the geodatabase for the service requests there is a field called Date Notified.  I would like this field to be auto-populated with the current date\time when a new feature is created. ( See attached picture)  I have tried setting the field to Now() (Now) (Current_Timestamp) and others and each time it tells me my syntax is incorrect.  Is this possible to do and if so what is the correct syntax to accomplish this.  Also I am aware of attribute assistant but I do not want to use that.
70128
I've noticed a few posts (and it is only a few—maybe a handful) which are missing the year and time from the timestamp—The year is replaced with \yy and the time is replaced with AM/PM.  The timestamp shows as expected in the revision log (in the app) and everywhere on the site.  For example: two answers on                              App Version: 1.6.0.7 Device: iPhone 6s OS Version: Version 10.0.1 (Build 14A403)
104779
Is it possible to use DateTimePicker (Winforms) to pick both date and time (in the dropdown)? How do you change the custom display of the picked value? Also, is it possible to enable the user to type the date/time manually?