Sfdgr 12 20180906_answer_v1.0

お題解説
Apex OpportunityTableController
2
public class OpportunityTableController {
@AuraEnabled
public static List<Opportunity> getOpportunities (String accId) {
List<Opportunity> oppList = [SELECT
id,Name
,StageName
,Amount
FROM
Opportunity
WHERE
AccountId = :accId
AND isClosed = false
];
return oppList;
}
}
LightningComponent COMPONENT(前半)
3
<aura:component implements="flexipage:availableForAllPageTypes,force:hasRecordId"
controller="OpportunityTableController">
<aura:attribute name="oppList" type="Opportunity[]"/>
<aura:handler name="init" value="{!this}" action="{!c.doInit}" />
<table border="1">
<thead>
<tr>
<th>商談名</th>
<th>フェーズ</th>
<th>金額</th>
</tr>
</thead>
LightningComponent COMPONENT(後半)
4
<tbody>
<aura:iteration items="{!v.oppList}" var="opp">
<tr>
<td>
<ui:outputText value="{!opp.Name}" />
</td>
<td>
<ui:outputText value="{!opp.StageName}" />
</td>
<td>
<ui:outputText value="{!opp.Amount}" />
</td>
</tr>
</aura:iteration>
</tbody>
</table>
</aura:component>
LightningComponent CONTROLLER
5
({
doInit : function(component, event, helper) {
helper.getOpps(component,event);
}
})
LightningComponent HELPER
6
({
getOpps : function(component,event) {
var action = component.get("c.getOpportunities");
action.setParams({
"accId" : component.get("v.recordId")
});
action.setCallback(this, function(response) {
var result = response.getReturnValue();
component.set("v.oppList", result);
});
$A.enqueueAction(action);
}
})
LightningComponent STYLE
7
table.THIS {
background-color: white;
}
後はアプリケーションビルダーで取引先のページに配置して完成!
1 of 7

Recommended

Storytelling By Numbers by
Storytelling By NumbersStorytelling By Numbers
Storytelling By NumbersMichael King
25.4K views126 slides
RichFaces: more concepts and features by
RichFaces: more concepts and featuresRichFaces: more concepts and features
RichFaces: more concepts and featuresMax Katz
859 views28 slides
for this particular program how do i create the input innotepad 1st ?#include... by
for this particular program how do i create the input innotepad 1st ?#include...for this particular program how do i create the input innotepad 1st ?#include...
for this particular program how do i create the input innotepad 1st ?#include...hwbloom14
38 views4 slides
for this particular program how do i create the input innotepad 1st ? #includ... by
for this particular program how do i create the input innotepad 1st ? #includ...for this particular program how do i create the input innotepad 1st ? #includ...
for this particular program how do i create the input innotepad 1st ? #includ...hwbloom59
23 views3 slides
Huhdoop?: Uncertain Data Management on Non-Relational Database Systems by
Huhdoop?: Uncertain Data Management on Non-Relational Database SystemsHuhdoop?: Uncertain Data Management on Non-Relational Database Systems
Huhdoop?: Uncertain Data Management on Non-Relational Database SystemsJeff Smith
5.9K views40 slides
Use sqlite by
Use sqliteUse sqlite
Use sqliteJesus Diaz Gonzalez
89 views4 slides

More Related Content

What's hot

SPFx: Working with SharePoint Content by
SPFx: Working with SharePoint ContentSPFx: Working with SharePoint Content
SPFx: Working with SharePoint ContentVladimir Medina
267 views15 slides
SPFx working with SharePoint data by
SPFx working with SharePoint dataSPFx working with SharePoint data
SPFx working with SharePoint dataVladimir Medina
735 views16 slides
6 things about perl 6 by
6 things about perl 66 things about perl 6
6 things about perl 6brian d foy
1.3K views25 slides
jdbc by
jdbcjdbc
jdbcvikram singh
735 views16 slides
Perl 5.28 new features by
Perl 5.28 new featuresPerl 5.28 new features
Perl 5.28 new featuresbrian d foy
6.1K views12 slides
Api presentation by
Api presentationApi presentation
Api presentationSusant Sahani
271 views20 slides

What's hot(17)

SPFx: Working with SharePoint Content by Vladimir Medina
SPFx: Working with SharePoint ContentSPFx: Working with SharePoint Content
SPFx: Working with SharePoint Content
Vladimir Medina267 views
SPFx working with SharePoint data by Vladimir Medina
SPFx working with SharePoint dataSPFx working with SharePoint data
SPFx working with SharePoint data
Vladimir Medina735 views
6 things about perl 6 by brian d foy
6 things about perl 66 things about perl 6
6 things about perl 6
brian d foy1.3K views
Perl 5.28 new features by brian d foy
Perl 5.28 new featuresPerl 5.28 new features
Perl 5.28 new features
brian d foy6.1K views
20150730 Sql AutoCommannotator - sac v2 by Sharon Liu
20150730  Sql AutoCommannotator - sac v220150730  Sql AutoCommannotator - sac v2
20150730 Sql AutoCommannotator - sac v2
Sharon Liu356 views
(AFF301) Fire Phone: The Dynamic Perspective API, Under the Hood | AWS re:Inv... by Amazon Web Services
(AFF301) Fire Phone: The Dynamic Perspective API, Under the Hood | AWS re:Inv...(AFF301) Fire Phone: The Dynamic Perspective API, Under the Hood | AWS re:Inv...
(AFF301) Fire Phone: The Dynamic Perspective API, Under the Hood | AWS re:Inv...
Amazon Web Services1.8K views
Performante Java Enterprise Applikationen trotz O/R-Mapping by Simon Martinelli
Performante Java Enterprise Applikationen trotz O/R-MappingPerformante Java Enterprise Applikationen trotz O/R-Mapping
Performante Java Enterprise Applikationen trotz O/R-Mapping
Simon Martinelli880 views
dcs plus Catalogue 2015 by dcs plus
dcs plus Catalogue 2015dcs plus Catalogue 2015
dcs plus Catalogue 2015
dcs plus339 views
Php using variables-operators by Khem Puthea
Php using variables-operatorsPhp using variables-operators
Php using variables-operators
Khem Puthea891 views
6 more things about Perl 6 by brian d foy
6 more things about Perl 66 more things about Perl 6
6 more things about Perl 6
brian d foy1.3K views
Perl v5.26 Features (AmsterdamX.pm) by brian d foy
Perl v5.26 Features (AmsterdamX.pm)Perl v5.26 Features (AmsterdamX.pm)
Perl v5.26 Features (AmsterdamX.pm)
brian d foy776 views
Fine-grained Processing of CVS Archives with APFEL by Thomas Zimmermann
Fine-grained Processing of CVS Archives with APFELFine-grained Processing of CVS Archives with APFEL
Fine-grained Processing of CVS Archives with APFEL
Thomas Zimmermann435 views

Similar to Sfdgr 12 20180906_answer_v1.0

How to Bring Common UI Patterns to ADF by
How to Bring Common UI Patterns to ADF How to Bring Common UI Patterns to ADF
How to Bring Common UI Patterns to ADF Luc Bors
2.1K views54 slides
Advance Java Programs skeleton by
Advance Java Programs skeletonAdvance Java Programs skeleton
Advance Java Programs skeletonIram Ramrajkar
4K views18 slides
CAVE Overview by
CAVE OverviewCAVE Overview
CAVE Overviewvdumitrescu
10.6K views35 slides
Lab manual asp.net by
Lab manual asp.netLab manual asp.net
Lab manual asp.netVivek Kumar Sinha
1.5K views23 slides
RESTful API 제대로 만들기 by
RESTful API 제대로 만들기RESTful API 제대로 만들기
RESTful API 제대로 만들기Juwon Kim
57.3K views58 slides

Similar to Sfdgr 12 20180906_answer_v1.0 (20)

How to Bring Common UI Patterns to ADF by Luc Bors
How to Bring Common UI Patterns to ADF How to Bring Common UI Patterns to ADF
How to Bring Common UI Patterns to ADF
Luc Bors2.1K views
CAVE Overview by vdumitrescu
CAVE OverviewCAVE Overview
CAVE Overview
vdumitrescu10.6K views
RESTful API 제대로 만들기 by Juwon Kim
RESTful API 제대로 만들기RESTful API 제대로 만들기
RESTful API 제대로 만들기
Juwon Kim57.3K views
Shipping Pseudocode to Production VarnaLab by Dobromir Nikolov
Shipping Pseudocode to Production VarnaLabShipping Pseudocode to Production VarnaLab
Shipping Pseudocode to Production VarnaLab
Dobromir Nikolov81 views
Alexey Tsoy Meta Programming in C++ 16.11.17 by LogeekNightUkraine
Alexey Tsoy Meta Programming in C++ 16.11.17Alexey Tsoy Meta Programming in C++ 16.11.17
Alexey Tsoy Meta Programming in C++ 16.11.17
LogeekNightUkraine149 views
Building @Anywhere (for TXJS) by danwrong
Building @Anywhere (for TXJS)Building @Anywhere (for TXJS)
Building @Anywhere (for TXJS)
danwrong15.7K views
Operation Flow @ ChicagoRoboto by Seyed Jafari
Operation Flow @ ChicagoRobotoOperation Flow @ ChicagoRoboto
Operation Flow @ ChicagoRoboto
Seyed Jafari91 views
SQL Tuning Overview by Kai Liu
SQL Tuning OverviewSQL Tuning Overview
SQL Tuning Overview
Kai Liu917 views
Resiliency & Security_Ballerina Day CMB 2018 by Ballerina
Resiliency & Security_Ballerina Day CMB 2018  Resiliency & Security_Ballerina Day CMB 2018
Resiliency & Security_Ballerina Day CMB 2018
Ballerina52 views
Java Web Programming [5/9] : EL, JSTL and Custom Tags by IMC Institute
Java Web Programming [5/9] : EL, JSTL and Custom TagsJava Web Programming [5/9] : EL, JSTL and Custom Tags
Java Web Programming [5/9] : EL, JSTL and Custom Tags
IMC Institute1.9K views
Flink Forward San Francisco 2019: Build a Table-centric Apache Flink Ecosyste... by Flink Forward
Flink Forward San Francisco 2019: Build a Table-centric Apache Flink Ecosyste...Flink Forward San Francisco 2019: Build a Table-centric Apache Flink Ecosyste...
Flink Forward San Francisco 2019: Build a Table-centric Apache Flink Ecosyste...
Flink Forward120 views
Flink Forward San Francisco 2019: Build a Table-centric Apache Flink Ecosyste... by Flink Forward
Flink Forward San Francisco 2019: Build a Table-centric Apache Flink Ecosyste...Flink Forward San Francisco 2019: Build a Table-centric Apache Flink Ecosyste...
Flink Forward San Francisco 2019: Build a Table-centric Apache Flink Ecosyste...
Flink Forward694 views
Thumbtack Expertise Days # 5 - Javaz by Alexey Remnev
Thumbtack Expertise Days # 5 - JavazThumbtack Expertise Days # 5 - Javaz
Thumbtack Expertise Days # 5 - Javaz
Alexey Remnev333 views
JavaScript Arrays by Reem Alattas
JavaScript Arrays JavaScript Arrays
JavaScript Arrays
Reem Alattas2.1K views

More from Ikou Sanuki

Archtect meetup sharing_territory_20190801 by
Archtect meetup sharing_territory_20190801Archtect meetup sharing_territory_20190801
Archtect meetup sharing_territory_20190801Ikou Sanuki
589 views19 slides
Sfdgr19 apex 20190730 by
Sfdgr19 apex 20190730Sfdgr19 apex 20190730
Sfdgr19 apex 20190730Ikou Sanuki
3K views24 slides
Sfdg spring19 flow_20190306 by
Sfdg spring19 flow_20190306Sfdg spring19 flow_20190306
Sfdg spring19 flow_20190306Ikou Sanuki
779 views18 slides
Japan Dreamin2019 Salesforce Developer Group Rookies by
Japan Dreamin2019 Salesforce Developer Group RookiesJapan Dreamin2019 Salesforce Developer Group Rookies
Japan Dreamin2019 Salesforce Developer Group RookiesIkou Sanuki
584 views26 slides
SFDGR#04 by
SFDGR#04SFDGR#04
SFDGR#04Ikou Sanuki
229 views11 slides
Sfdgr04 グループ課題 v2 by
Sfdgr04 グループ課題 v2Sfdgr04 グループ課題 v2
Sfdgr04 グループ課題 v2Ikou Sanuki
217 views9 slides

More from Ikou Sanuki(16)

Archtect meetup sharing_territory_20190801 by Ikou Sanuki
Archtect meetup sharing_territory_20190801Archtect meetup sharing_territory_20190801
Archtect meetup sharing_territory_20190801
Ikou Sanuki589 views
Sfdgr19 apex 20190730 by Ikou Sanuki
Sfdgr19 apex 20190730Sfdgr19 apex 20190730
Sfdgr19 apex 20190730
Ikou Sanuki3K views
Sfdg spring19 flow_20190306 by Ikou Sanuki
Sfdg spring19 flow_20190306Sfdg spring19 flow_20190306
Sfdg spring19 flow_20190306
Ikou Sanuki779 views
Japan Dreamin2019 Salesforce Developer Group Rookies by Ikou Sanuki
Japan Dreamin2019 Salesforce Developer Group RookiesJapan Dreamin2019 Salesforce Developer Group Rookies
Japan Dreamin2019 Salesforce Developer Group Rookies
Ikou Sanuki584 views
Sfdgr04 グループ課題 v2 by Ikou Sanuki
Sfdgr04 グループ課題 v2Sfdgr04 グループ課題 v2
Sfdgr04 グループ課題 v2
Ikou Sanuki217 views
SWTT2016 Salesforce × Azure machine learning by Ikou Sanuki
SWTT2016 Salesforce × Azure machine learning SWTT2016 Salesforce × Azure machine learning
SWTT2016 Salesforce × Azure machine learning
Ikou Sanuki339 views
Tsdg meetup#12 summer16 lightning_experience by Ikou Sanuki
Tsdg meetup#12 summer16 lightning_experienceTsdg meetup#12 summer16 lightning_experience
Tsdg meetup#12 summer16 lightning_experience
Ikou Sanuki434 views
Swtt2015 lt isanuki by Ikou Sanuki
Swtt2015 lt isanukiSwtt2015 lt isanuki
Swtt2015 lt isanuki
Ikou Sanuki1K views
Salesforce DUG meetup09 summer15 by Ikou Sanuki
Salesforce DUG meetup09 summer15Salesforce DUG meetup09 summer15
Salesforce DUG meetup09 summer15
Ikou Sanuki1K views
EventLogView 20150128 by Ikou Sanuki
EventLogView 20150128EventLogView 20150128
EventLogView 20150128
Ikou Sanuki1.6K views
Salesforce dug meetup6_summer14apex by Ikou Sanuki
Salesforce dug meetup6_summer14apexSalesforce dug meetup6_summer14apex
Salesforce dug meetup6_summer14apex
Ikou Sanuki1.5K views
Dev maxcrows3 02 by Ikou Sanuki
Dev maxcrows3 02Dev maxcrows3 02
Dev maxcrows3 02
Ikou Sanuki443 views
Salesforce developer conference tokyo2013 by Ikou Sanuki
Salesforce developer conference tokyo2013Salesforce developer conference tokyo2013
Salesforce developer conference tokyo2013
Ikou Sanuki684 views
Cloudforce2012 dev zone JFDG LT by Ikou Sanuki
Cloudforce2012 dev zone JFDG LTCloudforce2012 dev zone JFDG LT
Cloudforce2012 dev zone JFDG LT
Ikou Sanuki632 views
Jfdg meetup第3回 dreamforce12について by Ikou Sanuki
Jfdg meetup第3回 dreamforce12についてJfdg meetup第3回 dreamforce12について
Jfdg meetup第3回 dreamforce12について
Ikou Sanuki587 views

Recently uploaded

Attacking IoT Devices from a Web Perspective - Linux Day by
Attacking IoT Devices from a Web Perspective - Linux Day Attacking IoT Devices from a Web Perspective - Linux Day
Attacking IoT Devices from a Web Perspective - Linux Day Simone Onofri
15 views68 slides
Empathic Computing: Delivering the Potential of the Metaverse by
Empathic Computing: Delivering  the Potential of the MetaverseEmpathic Computing: Delivering  the Potential of the Metaverse
Empathic Computing: Delivering the Potential of the MetaverseMark Billinghurst
476 views80 slides
Data-centric AI and the convergence of data and model engineering: opportunit... by
Data-centric AI and the convergence of data and model engineering:opportunit...Data-centric AI and the convergence of data and model engineering:opportunit...
Data-centric AI and the convergence of data and model engineering: opportunit...Paolo Missier
39 views40 slides
Roadmap to Become Experts.pptx by
Roadmap to Become Experts.pptxRoadmap to Become Experts.pptx
Roadmap to Become Experts.pptxdscwidyatamanew
14 views45 slides
From chaos to control: Managing migrations and Microsoft 365 with ShareGate! by
From chaos to control: Managing migrations and Microsoft 365 with ShareGate!From chaos to control: Managing migrations and Microsoft 365 with ShareGate!
From chaos to control: Managing migrations and Microsoft 365 with ShareGate!sammart93
9 views39 slides

Recently uploaded(20)

Attacking IoT Devices from a Web Perspective - Linux Day by Simone Onofri
Attacking IoT Devices from a Web Perspective - Linux Day Attacking IoT Devices from a Web Perspective - Linux Day
Attacking IoT Devices from a Web Perspective - Linux Day
Simone Onofri15 views
Empathic Computing: Delivering the Potential of the Metaverse by Mark Billinghurst
Empathic Computing: Delivering  the Potential of the MetaverseEmpathic Computing: Delivering  the Potential of the Metaverse
Empathic Computing: Delivering the Potential of the Metaverse
Mark Billinghurst476 views
Data-centric AI and the convergence of data and model engineering: opportunit... by Paolo Missier
Data-centric AI and the convergence of data and model engineering:opportunit...Data-centric AI and the convergence of data and model engineering:opportunit...
Data-centric AI and the convergence of data and model engineering: opportunit...
Paolo Missier39 views
From chaos to control: Managing migrations and Microsoft 365 with ShareGate! by sammart93
From chaos to control: Managing migrations and Microsoft 365 with ShareGate!From chaos to control: Managing migrations and Microsoft 365 with ShareGate!
From chaos to control: Managing migrations and Microsoft 365 with ShareGate!
sammart939 views
Special_edition_innovator_2023.pdf by WillDavies22
Special_edition_innovator_2023.pdfSpecial_edition_innovator_2023.pdf
Special_edition_innovator_2023.pdf
WillDavies2217 views
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N... by James Anderson
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...
James Anderson66 views
AMAZON PRODUCT RESEARCH.pdf by JerikkLaureta
AMAZON PRODUCT RESEARCH.pdfAMAZON PRODUCT RESEARCH.pdf
AMAZON PRODUCT RESEARCH.pdf
JerikkLaureta19 views
PharoJS - Zürich Smalltalk Group Meetup November 2023 by Noury Bouraqadi
PharoJS - Zürich Smalltalk Group Meetup November 2023PharoJS - Zürich Smalltalk Group Meetup November 2023
PharoJS - Zürich Smalltalk Group Meetup November 2023
Noury Bouraqadi126 views
Automating a World-Class Technology Conference; Behind the Scenes of CiscoLive by Network Automation Forum
Automating a World-Class Technology Conference; Behind the Scenes of CiscoLiveAutomating a World-Class Technology Conference; Behind the Scenes of CiscoLive
Automating a World-Class Technology Conference; Behind the Scenes of CiscoLive
Lilypad @ Labweek, Istanbul, 2023.pdf by Ally339821
Lilypad @ Labweek, Istanbul, 2023.pdfLilypad @ Labweek, Istanbul, 2023.pdf
Lilypad @ Labweek, Istanbul, 2023.pdf
Ally3398219 views
handbook for web 3 adoption.pdf by Liveplex
handbook for web 3 adoption.pdfhandbook for web 3 adoption.pdf
handbook for web 3 adoption.pdf
Liveplex22 views

Sfdgr 12 20180906_answer_v1.0