SlideShare una empresa de Scribd logo
1 de 48
Descargar para leer sin conexión
AppInventor(5)
講師:王瑋毅
AppInventor-紫外線強度查詢
介紹
• 利用氣象局開放資料,資料為JSON格式,實作一個可選擇縣市並
顯示選擇的縣市紫外線指數。
• JSON:
http://opendata.epa.gov.tw/ws/Data/UV/?$orderby=PublishAgency&
$skip=0&$top=1000&format=json
設置按鈕元件並設定文字
設置列表選擇器並設定文字
設置顯示標籤並設定屬性
設置網頁
宣告一個全域變數SourceJson
設置取得Web1的文字事件
設置Url解析Json的文字存在SourceJson
利用迴圈取得資料
宣告一個全域變數PlaceJson
取出SiteName的值存在PlaceJson
取出UVI的值存在PlaceJson
將PlaceJson資料放到ListPicker
將ListPicker設為True
設置按鈕按下取得資料並顯示ListPicker
宣告一個全域變數ShowUVI
設置LisPicker選擇後的事件
ListPicker選擇的資料存到ShowUVI
設置Key和UVI初始值
利用迴圈取得選擇的資料
設置取得的Key
判斷取得的Key等於UVI
判斷是就取得UVI的值
設置顯示地方名稱和UVI
執行結果
1
2
AppInventor-BMI2
介紹
• BMI2是一個可以測試身體BMI,並告知你落於哪個標準。
• 設計一個程式,輸入完身高和體重後,會自行計算BMI,接著判
斷出位在哪個區間中,藉此告知分級標準。
• 利用BMI1為基礎往下繼續做。
設置標準範圍標籤及屬性
宣告全域變數bmi為0
設置bmi變數取代標籤1
設置標籤1取得bmi變數
設置if-then來判斷區間
設置判斷式小於
設置判斷式之bmi小於18.5
設置標籤2顯示標準
執行目前結果
練習
• 利用and判斷,將剩下的分級標準完成。
設置判斷兩個式子的元件
設置兩個判斷式子
設置bmi在18.5和24之間
設置標籤2顯示正常範圍
設置bmi過重24到27的條件和標籤2
設置bmi輕度肥胖27到30的條件和標籤2
設置bmi中度肥胖30到35的條件和標籤2
設置bmi重度肥胖≥35的條件和標籤2
執行結果

Más contenido relacionado

La actualidad más candente

Phantom bills of material
Phantom bills of materialPhantom bills of material
Phantom bills of materialLarry Sherrod
 
Select All Record From Tools Menu On Find Receipts For Matching Form
Select All Record From Tools Menu On Find Receipts For Matching FormSelect All Record From Tools Menu On Find Receipts For Matching Form
Select All Record From Tools Menu On Find Receipts For Matching FormAhmed Elshayeb
 
Approval Hierarchy in Oracle Apps
Approval Hierarchy in Oracle AppsApproval Hierarchy in Oracle Apps
Approval Hierarchy in Oracle AppsRahul Guhathakurta
 
4 Ways to Build an App Without Code | AppSheet
4 Ways to Build an App Without Code | AppSheet4 Ways to Build an App Without Code | AppSheet
4 Ways to Build an App Without Code | AppSheetAppSheet
 
Oracle EBS Material Status FAQ(Pan Tian)
Oracle EBS Material Status FAQ(Pan Tian)Oracle EBS Material Status FAQ(Pan Tian)
Oracle EBS Material Status FAQ(Pan Tian)Pan Tian
 
Personalization to restrict subinventory lov in miscellaneous transaction to ...
Personalization to restrict subinventory lov in miscellaneous transaction to ...Personalization to restrict subinventory lov in miscellaneous transaction to ...
Personalization to restrict subinventory lov in miscellaneous transaction to ...Ahmed Elshayeb
 
Oracle Applications - Sales Order Entering,Booking,Picking And Shipping Made ...
Oracle Applications - Sales Order Entering,Booking,Picking And Shipping Made ...Oracle Applications - Sales Order Entering,Booking,Picking And Shipping Made ...
Oracle Applications - Sales Order Entering,Booking,Picking And Shipping Made ...Bala Murugan
 
Recruitment Funnel And Application Source Dashboard
Recruitment Funnel And Application Source DashboardRecruitment Funnel And Application Source Dashboard
Recruitment Funnel And Application Source DashboardSlideTeam
 
Oracle R12 Inventory – Defining Unit of Measure
Oracle R12 Inventory – Defining Unit of MeasureOracle R12 Inventory – Defining Unit of Measure
Oracle R12 Inventory – Defining Unit of MeasureBoopathy CS
 
How to Make a Truck Inspection App
How to Make a Truck Inspection AppHow to Make a Truck Inspection App
How to Make a Truck Inspection AppAppSheet
 
Oracle Contingent Worker setup
Oracle Contingent Worker setupOracle Contingent Worker setup
Oracle Contingent Worker setupuday reddy
 
How to Make an Inventory App | No Code App Development
How to Make an Inventory App | No Code App DevelopmentHow to Make an Inventory App | No Code App Development
How to Make an Inventory App | No Code App DevelopmentAppSheet
 
Personalization to restrict subinventory lov in interorganization transfer كي...
Personalization to restrict subinventory lov in interorganization transfer كي...Personalization to restrict subinventory lov in interorganization transfer كي...
Personalization to restrict subinventory lov in interorganization transfer كي...Ahmed Elshayeb
 
Digital Analytics Bar Graph Line Chart
Digital Analytics Bar Graph Line ChartDigital Analytics Bar Graph Line Chart
Digital Analytics Bar Graph Line ChartSlideTeam
 
Oracle Purchasing Internal Requisition
Oracle Purchasing Internal RequisitionOracle Purchasing Internal Requisition
Oracle Purchasing Internal RequisitionAhmed Elshayeb
 
Oracle Order Management - Line Level Credit Check
Oracle Order Management - Line Level Credit CheckOracle Order Management - Line Level Credit Check
Oracle Order Management - Line Level Credit CheckBaker Khader Abdallah, PMP
 
How to remove disable and cancel shipment functionality in enter purchase or...
How to remove  disable and cancel shipment functionality in enter purchase or...How to remove  disable and cancel shipment functionality in enter purchase or...
How to remove disable and cancel shipment functionality in enter purchase or...Ahmed Elshayeb
 

La actualidad más candente (20)

Phantom bills of material
Phantom bills of materialPhantom bills of material
Phantom bills of material
 
Select All Record From Tools Menu On Find Receipts For Matching Form
Select All Record From Tools Menu On Find Receipts For Matching FormSelect All Record From Tools Menu On Find Receipts For Matching Form
Select All Record From Tools Menu On Find Receipts For Matching Form
 
Approval Hierarchy in Oracle Apps
Approval Hierarchy in Oracle AppsApproval Hierarchy in Oracle Apps
Approval Hierarchy in Oracle Apps
 
4 Ways to Build an App Without Code | AppSheet
4 Ways to Build an App Without Code | AppSheet4 Ways to Build an App Without Code | AppSheet
4 Ways to Build an App Without Code | AppSheet
 
Oracle EBS Material Status FAQ(Pan Tian)
Oracle EBS Material Status FAQ(Pan Tian)Oracle EBS Material Status FAQ(Pan Tian)
Oracle EBS Material Status FAQ(Pan Tian)
 
Personalization to restrict subinventory lov in miscellaneous transaction to ...
Personalization to restrict subinventory lov in miscellaneous transaction to ...Personalization to restrict subinventory lov in miscellaneous transaction to ...
Personalization to restrict subinventory lov in miscellaneous transaction to ...
 
Oracle Applications - Sales Order Entering,Booking,Picking And Shipping Made ...
Oracle Applications - Sales Order Entering,Booking,Picking And Shipping Made ...Oracle Applications - Sales Order Entering,Booking,Picking And Shipping Made ...
Oracle Applications - Sales Order Entering,Booking,Picking And Shipping Made ...
 
Recruitment Funnel And Application Source Dashboard
Recruitment Funnel And Application Source DashboardRecruitment Funnel And Application Source Dashboard
Recruitment Funnel And Application Source Dashboard
 
Oracle R12 Inventory – Defining Unit of Measure
Oracle R12 Inventory – Defining Unit of MeasureOracle R12 Inventory – Defining Unit of Measure
Oracle R12 Inventory – Defining Unit of Measure
 
How to Make a Truck Inspection App
How to Make a Truck Inspection AppHow to Make a Truck Inspection App
How to Make a Truck Inspection App
 
Oracle Contingent Worker setup
Oracle Contingent Worker setupOracle Contingent Worker setup
Oracle Contingent Worker setup
 
How to Make an Inventory App | No Code App Development
How to Make an Inventory App | No Code App DevelopmentHow to Make an Inventory App | No Code App Development
How to Make an Inventory App | No Code App Development
 
Personalization to restrict subinventory lov in interorganization transfer كي...
Personalization to restrict subinventory lov in interorganization transfer كي...Personalization to restrict subinventory lov in interorganization transfer كي...
Personalization to restrict subinventory lov in interorganization transfer كي...
 
Digital Analytics Bar Graph Line Chart
Digital Analytics Bar Graph Line ChartDigital Analytics Bar Graph Line Chart
Digital Analytics Bar Graph Line Chart
 
Oracle ADF 11g Tutorial
Oracle ADF 11g TutorialOracle ADF 11g Tutorial
Oracle ADF 11g Tutorial
 
Oracle Purchasing Internal Requisition
Oracle Purchasing Internal RequisitionOracle Purchasing Internal Requisition
Oracle Purchasing Internal Requisition
 
Oracle Order Management - Line Level Credit Check
Oracle Order Management - Line Level Credit CheckOracle Order Management - Line Level Credit Check
Oracle Order Management - Line Level Credit Check
 
Report Manager in Oracle EBS R12
Report Manager in Oracle EBS R12Report Manager in Oracle EBS R12
Report Manager in Oracle EBS R12
 
How to remove disable and cancel shipment functionality in enter purchase or...
How to remove  disable and cancel shipment functionality in enter purchase or...How to remove  disable and cancel shipment functionality in enter purchase or...
How to remove disable and cancel shipment functionality in enter purchase or...
 
View only roles_v2
View only roles_v2View only roles_v2
View only roles_v2
 

Destacado

不同尺寸與解析度的螢幕下,Android 程式 UI 的設計與解決方式
不同尺寸與解析度的螢幕下,Android 程式 UI 的設計與解決方式不同尺寸與解析度的螢幕下,Android 程式 UI 的設計與解決方式
不同尺寸與解析度的螢幕下,Android 程式 UI 的設計與解決方式信宏 陳
 
App inventor 教學講義 chapter4
App inventor 教學講義 chapter4App inventor 教學講義 chapter4
App inventor 教學講義 chapter4Jerry Wu
 
App inventor 教學講義 chapter6
App inventor 教學講義 chapter6App inventor 教學講義 chapter6
App inventor 教學講義 chapter6Jerry Wu
 
App inventor 教學講義 chapter2
App inventor 教學講義 chapter2App inventor 教學講義 chapter2
App inventor 教學講義 chapter2Jerry Wu
 
Android 程式設計(1)
Android 程式設計(1)Android 程式設計(1)
Android 程式設計(1)Roy Wang
 
App inventor 1
App inventor 1App inventor 1
App inventor 1Roy Wang
 
App inventor 2
App inventor 2App inventor 2
App inventor 2Roy Wang
 
Android 程式設計(2)
Android 程式設計(2)Android 程式設計(2)
Android 程式設計(2)Roy Wang
 
App inventor 4
App inventor 4App inventor 4
App inventor 4Roy Wang
 

Destacado (9)

不同尺寸與解析度的螢幕下,Android 程式 UI 的設計與解決方式
不同尺寸與解析度的螢幕下,Android 程式 UI 的設計與解決方式不同尺寸與解析度的螢幕下,Android 程式 UI 的設計與解決方式
不同尺寸與解析度的螢幕下,Android 程式 UI 的設計與解決方式
 
App inventor 教學講義 chapter4
App inventor 教學講義 chapter4App inventor 教學講義 chapter4
App inventor 教學講義 chapter4
 
App inventor 教學講義 chapter6
App inventor 教學講義 chapter6App inventor 教學講義 chapter6
App inventor 教學講義 chapter6
 
App inventor 教學講義 chapter2
App inventor 教學講義 chapter2App inventor 教學講義 chapter2
App inventor 教學講義 chapter2
 
Android 程式設計(1)
Android 程式設計(1)Android 程式設計(1)
Android 程式設計(1)
 
App inventor 1
App inventor 1App inventor 1
App inventor 1
 
App inventor 2
App inventor 2App inventor 2
App inventor 2
 
Android 程式設計(2)
Android 程式設計(2)Android 程式設計(2)
Android 程式設計(2)
 
App inventor 4
App inventor 4App inventor 4
App inventor 4
 

App inventor 5