is there plugin line monotouch.dialog ?

ykucuk

Well-Known Member
Licensed User
Longtime User
Hello everyone,

I am also developing application on mono platform.

I am looking plugin as monotouch.dialog which allow to developers create user inputs in runtime and get value of them.

In my project i get form elements(2 edittext,1 radioElement, etc) list via json from internet and appy them to main form.

And get values from all element which i added in runtime when click save button.

Thank you for help

You can find below json sample for create form elements

-------------------------------
{
"grouped": true,
"title": "FORM TITLE",
"root": [
{
"caption": "Genel Bilgiler",
"footer": "Lütfen genel bilgiler alanındaki soruları giriniz",
"elements": [
{
"id": "AdresID",
"type": "HiddenElement",
"value": "4745"
},
{
"id": "formID",
"type": "HiddenElement",
"value": "9"
}
]
},
{
"caption": "İşyeri Sahibinin Bilgileri",
"elements": [
{
"id": "1039",
"type": "EntryElement",
"caption": "Adı Soyadı",
"value": "",
"keyboard": "Default"
},
{
"id": "1038",
"type": "EntryElement",
"caption": "İşyeri Adresi",
"value": "Armut / yii / 843 / / ",
"keyboard": "Default"
},
{
"id": "76",
"type": "EntryElement",
"caption": "Sicil No",
"value": "",
"keyboard": "Default"
},
{
"id": "77",
"type": "EntryElement",
"caption": "Faaliyet Konusu",
"value": "",
"keyboard": "Default"
}
]
},
{
"caption": "Kontrol Noktası",
"elements": [
{
"id": "78",
"type": "CheckboxElement",
"caption": "İşyeri faaliyet konusuna göre düzenlenmiş mi?",
"keyboard": "Default"
},
{
"id": "79",
"type": "CheckboxElement",
"caption": "İşyerinde boya, badana ve diğer fiziki şartlar yeterli mi?",
"keyboard": "Default"
},
{
"id": "80",
"type": "CheckboxElement",
"caption": "Wc ve lavabo var mı? Varsa gerekli önlemler alınmış mı?",
"keyboard": "Default"
},
{
"id": "81",
"type": "CheckboxElement",
"caption": "İşyerinde yangın söndürme tüpleri var mı? Varsa görülebilecek yerde mi?",
"keyboard": "Default"
},
{
"id": "82",
"type": "CheckboxElement",
"caption": "İşyerinde genel havalandırma yeterli mi?",
"keyboard": "Default"
},
{
"id": "83",
"type": "CheckboxElement",
"caption": "İşyerinde gürültü vb. olumsuzluklar için gerekli önlemler alınmış mı?",
"keyboard": "Default"
},
{
"id": "84",
"type": "CheckboxElement",
"caption": "İşyerinde personel sayısına göre gerekli sosyal alan mevcut mu?",
"keyboard": "Default"
},
{
"id": "85",
"type": "CheckboxElement",
"caption": "İşyerinde çıkan çöp ve atıklar gerekli şekilde saklanıp, tahliye ediliyor mu?",
"keyboard": "Default"
},
{
"id": "86",
"type": "CheckboxElement",
"caption": "İşyerinde aydınlatma ve diğer güvenlik önlemleri yeterli mi?",
"keyboard": "Default"
},
{
"id": "87",
"type": "CheckboxElement",
"caption": "İşyerinde satılan gıda maddelerinin son kullanım tarihlerine dikkat ediliyor mu?",
"keyboard": "Default"
},
{
"id": "88",
"type": "CheckboxElement",
"caption": "İşyerinde faaliyet konusuna göre kullanılan malzemeler dezenfekte ediliyor mu?",
"keyboard": "Default"
},
{
"id": "89",
"type": "CheckboxElement",
"caption": "İşyeri faaliyet konusuna göre çalışanların portör muayeneleri var mı?",
"keyboard": "Default"
},
{
"id": "90",
"type": "CheckboxElement",
"caption": "İşyeri sigara yasağı tabelası ve fiyat tarifesi var mı?",
"keyboard": "Default"
},
{
"id": "91",
"type": "CheckboxElement",
"caption": "İşyeri Umuma Açık işletme ise Emniyet ve İtfaiye Tahkikatı yapılmış mı?",
"keyboard": "Default"
},
{
"id": "92",
"type": "CheckboxElement",
"caption": "İşyerinin aynı zamanda başka bir kuruluştan izin alması gerekiyor mu? ",
"keyboard": "Default"
},
{
"id": "93",
"type": "CheckboxElement",
"caption": "İşyerinde gıda maddeleri ile diğer satılan maddeler ayrı raflanıyor mu?",
"keyboard": "Default"
},
{
"id": "94",
"type": "CheckboxElement",
"caption": "İşyerinde faaliyet konusuna göre çalışanlar önlük giyiyor mu?",
"keyboard": "Default"
},
{
"id": "95",
"type": "CheckboxElement",
"caption": "Aynı bağımsız bölümde birden fazla işletme var mı? Varsa vaziyet planı mevcut mu?",
"keyboard": "Default"
}
]
},
{
"caption": "Sonuç",
"elements": [
{
"id": "96",
"type": "EntryElement",
"caption": "Sonuç",
"value": "",
"keyboard": "Default"
}
]
},
{
"caption": "Notlar",
"elements": [
{
"id": "739",
"type": "EntryElement",
"caption": "Notlar",
"value": "",
"keyboard": "ASCIICapable"
}
]
},
{
"caption": "Süre",
"elements": [
{
"id": "812",
"type": "EntryElement",
"caption": "Süre",
"value": "",
"keyboard": "NumberPad"
}
]
},
{
"caption": "İmza Sahipleri",
"elements": [
{
"id": "1080",
"type": "EntryElement",
"caption": "İşyeri Sahibi",
"value": "",
"keyboard": "Default"
},
{
"id": "1081",
"type": "RadioElement",
"caption": "Ruhsat ve Denetim Mem.",
"items": [
"6-Hakkı Şimşek-Zabıta",
"8-Kaan Yüksel-Zabıta"
],
"keyboard": "Default"
},
{
"id": "1082",
"type": "RadioElement",
"caption": "Ruhsat ve Denetim Mem.",
"items": [
"6-Hakkı Şimşek-Zabıta",
"8-Kaan Yüksel-Zabıta"
],
"keyboard": "Default"
}
]
},
{
"elements": [
{
"type": "ButtonElement",
"caption": "Kaydet",
"action": "ShowValues99"
},
{
"type": "ButtonElement",
"caption": "İptal",
"action": "Dismiss"
}
]
}
]
}
 

ykucuk

Well-Known Member
Licensed User
Longtime User
I'm not familiar with monotouch.dialog.

You will need to parse the JSON string with JSON library and add the views programmatically.

Hello Erel,

i look that sample. (AddViewsByCode)

is there any sample for how to create click event for button which also created addby code.

Also Remove all views and create new one after this click

thanks
 
Upvote 0

ykucuk

Well-Known Member
Licensed User
Longtime User
Hello erel,

thanks for Tick-Tack-Toe: working with arrays of views.

It works great.

i also need example of scrolling.

Because i added 20 edittext and it showns only 9 rows.

how can enable scrollbar for see all edittext ?

thanks for help
 
Upvote 0
Top