Skip to content
This repository was archived by the owner on Feb 12, 2022. It is now read-only.

How to create a new force-sobject? #15

@rnng

Description

@rnng

Hi,
I'm little in trouble.
I need to create a new record in database, but don't know which recordid I need to pass in my force-sobject in order to do this.

HTML-Code

<force-sobject id="pos" sobject="Zeiterfassung__c" recordid="new"></force-sobject>

JS-Code

save:function(e, detail){
  // add Attributes to field
  this.$.pos.fields.Tag__c = new Date();
  this.$.pos.fields.Arbeitszeit__c = 8;
  this.$.pos.save();
}

Can you help?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions