- This topic has 6 replies, 4 voices, and was last updated 9 years, 10 months ago by FutureC.
-
AuthorPosts
-
creenx0625MemberHi,
I am new to mobile application development and I am using your MobiOne ver. 2.5.
I just wanna ask about how to load ASP.Net Web Services data which returns JSON to List Widget upon PageLoad.
Please see below M1 generated html structure and the JSON return vaues:***************** HTML ****************************************
<!– ***** ClinicSpeciality ***** –>
<div id=”m1-ClinicSpeciality” class=”m1-root m1-background-1″>
<div id=”m1-ClinicSpeciality-navigation1″ class=”m1-navbar m1-background-7″>
<div id=”m1-ClinicSpeciality-image1″ class=”m1-clickable m1-button m1-font-1 m1-shadow-1″
name=”image1″ data-action-click-id=”action30″></div>
<div id=”m1-ClinicSpeciality-text1″ class=”m1-text m1-font-15″>Clinic Speciality</div>
</div>
<div id=”m1-ClinicSpeciality-panel2″ class=”m1-iscroll-wrapper m1-border-1″>
<div id=”m1-ClinicSpeciality-panel2-scroller” class=”m1-iscroll-scroller m1-background-3″
data-bounce=”true”>
<ul id=”m1-ClinicSpeciality-listSpeciality” class=”m1-plain-list m1-list”>
<li id=”m1-ClinicSpeciality-listItem1″
class=”m1-first m1-last m1-clickable m1-highlight m1-background-12 m1-background-13 m1-background-14″
>
<img id=”m1-ClinicSpeciality-accessoryImage1″ class=”m1-element m1-clickable” src=
“res/images/tableRowDisclosureIndicator.png”/>
<div id=”m1-ClinicSpeciality-text2″ class=”m1-text m1-active-color-2 m1-font-14″
>Item</div>
</li>
</ul>
</div>
</div>
<div id=”m1-ClinicSpeciality-btnReloadSpeciality”
class=”m1-clickable m1-button m1-active-color-1 m1-background-10 m1-font-16 m1-background-15″
name=”btnReloadSpeciality” data-action-click-id=”action48″>Reload Data</div>
</div>************************* end of HTML **********************************************************
and here is the JSON Value:
************************ JSON VALUE ************************************************************
<string>{“Table”:[{“SPE_CODE”:44,”SPECIALITY”:”ANESTHESIA TECHNICIAN”},{“SPE_CODE”:902,”SPECIALITY”:”ANESTHESIOLOGY”},{“SPE_CODE”:2,”SPECIALITY”:”ANESTHESIOLOGY”},{“SPE_CODE”:27,”SPECIALITY”:”AUDIOMETRY”},{“SPE_CODE”:3,”SPECIALITY”:”CARDIOLOGY”},{“SPE_CODE”:51,”SPECIALITY”:”CARDIOLOGY TECHNICIAN”},{“SPE_CODE”:21,”SPECIALITY”:”DENTAL HYGIENE”},{“SPE_CODE”:904,”SPECIALITY”:”DENTISTRY”},{“SPE_CODE”:6,”SPECIALITY”:”DERMATOLOGY”},{“SPE_CODE”:23,”SPECIALITY”:”DIETICIAN”},{“SPE_CODE”:41,”SPECIALITY”:”E. M. T. TECHNICIAN”},{“SPE_CODE”:40,”SPECIALITY”:”E. R. PHYSICIAN”},{“SPE_CODE”:8,”SPECIALITY”:”EAR/NOSE/THROAT”},{“SPE_CODE”:52,”SPECIALITY”:”EEG TECHNICIAN”},{“SPE_CODE”:940,”SPECIALITY”:”EMERGENCY MEDICAL SERVICES”},{“SPE_CODE”:26,”SPECIALITY”:”ENDOCRINOLOGY”},{“SPE_CODE”:39,”SPECIALITY”:”ENDODONTICS”},{“SPE_CODE”:42,”SPECIALITY”:”EPIDEMOLOGY”},{“SPE_CODE”:46,”SPECIALITY”:”FAMILY AND COMMUNITY MEDICINE”},{“SPE_CODE”:1,”SPECIALITY”:”G.P.”},{“SPE_CODE”:31,”SPECIALITY”:”GASTROENTEROLOGY”},{“SPE_CODE”:4,”SPECIALITY”:”GENERAL DENTISTRY”},{“SPE_CODE”:11,”SPECIALITY”:”GENERAL MEDICINE”},{“SPE_CODE”:19,”SPECIALITY”:”GENERAL SURGERY”},{“SPE_CODE”:45,”SPECIALITY”:”HAEMATOLOGY”},{“SPE_CODE”:55,”SPECIALITY”:”INTENSIVE CARE UNIT”},{“SPE_CODE”:911,”SPECIALITY”:”INTERNAL MEDICINE”},{“SPE_CODE”:43,”SPECIALITY”:”MATERNITY AND CHILD CARE”},{“SPE_CODE”:54,”SPECIALITY”:”MEDICAL INSURANCE”},{“SPE_CODE”:914,”SPECIALITY”:”MEDICAL SUPPORT”},{“SPE_CODE”:37,”SPECIALITY”:”NEONATOLOGY”},{“SPE_CODE”:30,”SPECIALITY”:”NEPHROLOGY”},{“SPE_CODE”:29,”SPECIALITY”:”NEURO-SURGERY”},{“SPE_CODE”:9,”SPECIALITY”:”NEUROLOGY”},{“SPE_CODE”:24,”SPECIALITY”:”NURSING”},{“SPE_CODE”:924,”SPECIALITY”:”NURSING SERVICES”},{“SPE_CODE”:912,”SPECIALITY”:”OBSTETRICS/GYNEACOLOGY”},{“SPE_CODE”:12,”SPECIALITY”:”OBSTETRICS/GYNEACOLOGY”},{“SPE_CODE”:13,”SPECIALITY”:”OPHTHALMOLOGY”},{“SPE_CODE”:14,”SPECIALITY”:”OPTOMETRY”},{“SPE_CODE”:5,”SPECIALITY”:”ORAL SURGERY”},{“SPE_CODE”:7,”SPECIALITY”:”ORTHODONTICS”},{“SPE_CODE”:15,”SPECIALITY”:”ORTHOPEDICS”},{“SPE_CODE”:38,”SPECIALITY”:”PAEDODONTICS”},{“SPE_CODE”:17,”SPECIALITY”:”PATHOLOGY”},{“SPE_CODE”:917,”SPECIALITY”:”PATHOLOGY”},{“SPE_CODE”:35,”SPECIALITY”:”PEDIATRIC SURGERY”},{“SPE_CODE”:16,”SPECIALITY”:”PEDIATRICS”},{“SPE_CODE”:916,”SPECIALITY”:”PEDIATRICS”},{“SPE_CODE”:34,”SPECIALITY”:”PHYSICAL MEDICINE/REHABILITATION”},{“SPE_CODE”:22,”SPECIALITY”:”PHYSIO THERAPY”},{“SPE_CODE”:922,”SPECIALITY”:”PHYSIO THERAPY”},{“SPE_CODE”:36,”SPECIALITY”:”PLASTIC SURGERY”},{“SPE_CODE”:901,”SPECIALITY”:”PRIMARY HEALTH CARE”},{“SPE_CODE”:10,”SPECIALITY”:”PSYCHIATRY”},{“SPE_CODE”:25,”SPECIALITY”:”PUBLIC HEALTH”},{“SPE_CODE”:925,”SPECIALITY”:”PUBLIC HEALTH”},{“SPE_CODE”:32,”SPECIALITY”:”PULMONOLOGY”},{“SPE_CODE”:53,”SPECIALITY”:”QUALITY IMPROVEMENT”},{“SPE_CODE”:18,”SPECIALITY”:”RADIOLOGY”},{“SPE_CODE”:918,”SPECIALITY”:”RADIOLOGY”},{“SPE_CODE”:60,”SPECIALITY”:”REGISTRAR”},{“SPE_CODE”:50,”SPECIALITY”:”RESPIRATORY THERAPY”},{“SPE_CODE”:33,”SPECIALITY”:”RHEUMATOLOGY”},{“SPE_CODE”:919,”SPECIALITY”:”SURGERY”},{“SPE_CODE”:28,”SPECIALITY”:”THERAPY AIDE”},{“SPE_CODE”:48,”SPECIALITY”:”THORACIC SURGERY”},{“SPE_CODE”:20,”SPECIALITY”:”UROLOGY”},{“SPE_CODE”:47,”SPECIALITY”:”VASCULAR SURGERY”}]}</string>
************************ End of JSON *************************************************************
Thanks a lot in advance,
creenx
creenx0625MemberHi,
Any updates?
Thanks a lot
creenx0625MemberOhhh too bad…
Still there’s no solution for this?
creenx0625MemberStill, there’s no reply from the support??????
support-octavioMemberHi creenx0625,
Since your webservice is returning a json string you can achieve this following the next example, you just will need to change the url that return your data and the variables according your json result. Hope this helps.
calostewardMember@creenx0625 wrote:
Hi,
I am new to mobile application development and I am using your MobiOne ver. 2.5.I just wanna ask about how to load ASP.Net Web Services data which returns JSON to List Widget upon PageLoad.
Please see below M1 generated html structure and the JSON return vauesThanks a lot in advance,
creenx
I think you can find answer here:
http://www.genuitec.com/support-genuitec/viewtopic.php?f=14&t=1386
Good luck.
_________________Calo Steward
http://www.barcodelib.com/
FutureCMemberHey, is this problem solved?
-
AuthorPosts