Cov txheej txheem:

Dab tsi yog kev siv cov ntawv cim kev cai li cas koj nkag mus rau hauv Apex cov chav kawm thiab hauv Visualforce nplooj ntawv?
Dab tsi yog kev siv cov ntawv cim kev cai li cas koj nkag mus rau hauv Apex cov chav kawm thiab hauv Visualforce nplooj ntawv?

Video: Dab tsi yog kev siv cov ntawv cim kev cai li cas koj nkag mus rau hauv Apex cov chav kawm thiab hauv Visualforce nplooj ntawv?

Video: Dab tsi yog kev siv cov ntawv cim kev cai li cas koj nkag mus rau hauv Apex cov chav kawm thiab hauv Visualforce nplooj ntawv?
Video: Leng Yang - Yog Vim Dab Tsi (Official Full Song | Nkauj Tawm Tshiab) 2020/05/24 2024, Kaum ib hlis
Anonim

Kev cai daim ntawv lo pab cov neeg tsim tawm rau tsim cov ntawv thov ntau hom lus los ntawm kev nthuav qhia cov ntaub ntawv (rau piv txwv , pab cov ntawv nyeem lossis cov lus yuam kev) hauv tus neeg siv hom lus. Custom labels yog kev cai ntawv muaj nuj nqis uas ua tau ua nkag mus los ntawm Apex chav kawm , Cov nplooj ntawv Visualforce , los yog Lightning Cheebtsam.

Hais txog qhov no, kuv yuav siv cov ntawv sau rau hauv Visualforce nplooj ntawv thiab Apex li cas?

Nkag mus kev cai daim ntawv lo , Mus Teeb - Tsim - Custom Labels . Nyem rau ntawm Tshiab Custom Labels . Sau tus nqi rau lub npe, tus nqi thiab kev piav qhia. Peb ua tau siv daim ntawv lo kev cai npe nkag mus kev cai daim ntawv lo tus nqi hauv cov nplooj ntawv visualforce siv $ Daim ntawv lo ntiaj teb no variable.

Tom qab ntawd, lo lus nug yog, peb puas tuaj yeem nug cov ntawv cim kev cai hauv Salesforce? Kev cai daim ntawv lo tsis siv tau los ntawm SOQL. Koj yuav yuav tsum siv Metadata API los ua kom tiav nug koj tab tom nrhiav. Kuv yuav hais kom mus saib Andrew Fawcett's Apex Cov ntaub qhwv Salesforce Metadata API. Nrog API koj tuaj yeem nug tus CustomLabels hom metadata kom tau txais cov ntaub ntawv koj tab tom nrhiav.

Tsis tas li lo lus nug yog, koj siv cov ntawv cim kev cai li cas?

Yuav ua li cas siv cov ntawv tshwj xeeb hauv kev muag khoom

  1. Tsim ib daim ntawv lo: Nyem rau Teeb Tsim Tsim Cov Ntawv Sau Npe.
  2. Tsim Kev Txhais Lus: Nkag mus rau hauv daim ntawv lo uas koj xav tsim kev txhais lus.
  3. Nco tseg: Cov lus txhais lus yuav tsum tau ntxiv thiab ua kom nws ua haujlwm nyob rau hauv Kev Txhais Lus ua haujlwm.
  4. Syntax rau custom label:
  5. Nco tseg:

Dab tsi yog qhov txawv ntawm kev cai tsim thiab kev cai daim ntawv lo?

Kev cai metadata yog customizable, deployable, packageable, thiab upgradeable thov metadata. Nws tsuas yog siv los txhais rau kev cai kev txhim kho daim ntawv thov. Kev cai daim ntawv lo pab kom cov neeg tsim khoom tsim cov ntawv thov ntau hom lus los ntawm kev nthuav qhia cov ntaub ntawv hauv a neeg siv hom lus.

Pom zoo: