Cov txheej txheem:

Peb puas tuaj yeem tshem Apex chav kawm hauv kev tsim khoom?
Peb puas tuaj yeem tshem Apex chav kawm hauv kev tsim khoom?

Video: Peb puas tuaj yeem tshem Apex chav kawm hauv kev tsim khoom?

Video: Peb puas tuaj yeem tshem Apex chav kawm hauv kev tsim khoom?
Video: No Mantra rau Kab Mob raug rhuav tshem 2024, Hlis ntuj nqeg
Anonim

Nws tsis tuaj yeem ncaj qha rho tawm ib Apex chav kawm los yog ua rau tom qab nws tau xa mus rau ntau lawm . Ib qho yooj yim workaround rau rho tawm los yog lov tes taw Apex Class /Trigger yog los ntawm kev siv dab noj hnub thiab Force.com IDE. Qhib cov ntaub ntawv XML ntawm lub Apex chav kawm / ua. Hloov cov xwm txheej ntawm cov Apex chav kawm / ua rau Rho tawm.

Ua raws li qhov xav tau, peb puas tuaj yeem hloov kho Apex chav kawm hauv kev tsim khoom?

Koj kho tau nws ncaj qha rau hauv lub org (Setup->Develop-> Apex chav kawm los yog sib npaug) lossis hauv Kev Txhim Kho Console (Setup-> Txhim Kho Console, tom qab ntawd Cov Ntaub Ntawv-> Qhib) lossis hauv Eclipse Force.com IDE thiab yooj yim xa rov qab. Thawj tus ncej tsis tau qhia txog kev xa mus rau ntau lawm.

Tom qab ntawd, lo lus nug yog, yuav ua li cas kuv thiaj li tshem tawm qhov tshwm sim hauv Salesforce? Koj tuaj yeem Inactive lub trigger siv cov kauj ruam hauv qab no:

  1. Nkag mus rau lub sandbox.
  2. Mus rau qhov tshwm sim thiab nyem rau ntawm Kho kom raug thiab Uncheck lub IsActive lub thawv (saib lub screenshot), thiab nyem rau Txuag.
  3. Tsim Cov Txheej Txheem Hloov thiab suav nrog Cov Tig rau hauv qhov hloov pauv thiab siv tib yam rau hauv Kev Tsim Khoom.

Ib yam li ib tug yuav nug, koj puas tuaj yeem hloov kho Apex ua rau Apex chav kawm hauv ib puag ncig tsim khoom?

Tsis yog, nws tsis tau kho cov chav kawm apex thiab ua rau ncaj qha rau hauv ntau lawm ib puag ncig . Nws xav tau rau ua ntej hauv Developer edition lossis testing org lossis hauv Sandbox org. Ces, rau siv nws hauv ntau lawm , tus neeg siv nrog Tus Sau Apex kev tso cai yuav tsum deploy lub ua rau thiab chav kawm siv cov cuab yeej siv.

Yuav ua li cas koj tshem tawm apex los ntawm tus tsim tawm console?

Ua raws li cov kauj ruam hauv qab no los ua qhov ntawd hauv kev tsim khoom,

  1. Tsim qhov project tshiab hauv dab noj hnub thiab rub tawm tag nrho cov cai los ntawm kev tsim khoom.
  2. Qhib cov meta-cov ntaub ntawv ntawm cov ntaub ntawv koj xav rho tawm hauv ntau lawm thiab hloov cov xwm txheej rau Delete.
  3. Nyem txuag rau server kom tshem tawm cov chav kawm hauv kev tsim khoom.

Pom zoo: