1. UI Design’da Gerekli Formu Oluşturma
- Güncellenecek attribute verilerini göstermek ve düzenlemek için bir Dynamic Form ekranı hazırlanır.
- Gerekli elementler:
- Text Input → Name
- Select Box → DataType
- Text Input → Description (opsiyonel)
- Switch / Checkbox → IsRequired
- Text / Number Input → DefaultValue
- SelectBox (veya sabit) → CategoryId
- Button → “Güncelle”
2. Get Attribute Aksiyonu ile Formu Doldurma
- Sayfa yüklendiğinde veya bir attribute seçildiğinde Get Attribute aksiyonu çalıştırılır.
- Dönen bilgiler Dynamic Form elementine dağıtılır (binding yapılır).
3. Update Attribute Aksiyonunu Ekleme
- “Güncelle” butonuna tıklanıldığında:
- + ADD ACTION > OnClick > EAV > Attribute > Update Attribute aksiyonu seçilir.
- Parametreler Dynamic Form elementinden alınır:
- Id → Symbol Picker > Action Result > Get Attribute > Id
- Name → Symbol Picker > Form Component > Text Input
- DataType → Symbol Picker > Form Component > SelectBox
- Description → (opsiyonel)
- IsRequired → (opsiyonel)
- DefaultValue → (opsiyonel)
- CategoryId → (opsiyonel)
4. Güncelleme Sonucunu İşleme
- Başarılı işlem sonrası kullanıcıya modal ile bildirim gösterilebilir.
- Dynamic Form otomatik olarak temizlenebilir veya liste güncellenebilir.