Array presentation in tablette

Discussions about CSEntry
Post Reply
mgtoukam
Posts: 37
Joined: March 24th, 2015, 4:23 am

Array presentation in tablette

Post by mgtoukam »

HI All

I'm working in cspro for a project and I have this issue.

i need to present in one screen the following table and the interview have to choose only one case.

Table
Capture d'écran 2025-06-04 033353.png



Choose only one case in the array


It's possible with Cspro if so can't I have the procedure and the code.

Regards.
You do not have the required permissions to view the files attached to this post.
htuser
Posts: 687
Joined: December 19th, 2011, 6:26 pm
Location: Silver Spring Area, MD, USA

Re: Array presentation in tablette

Post by htuser »

Hello MgToukam,
I discovered a way to implement roster similar of what you presented using JS and other web technologies here: https://teleyah.com/cspro/SriLankaNov2024/
Please take a particular look on Session 5: HTML Forms and Dialogs, mainly : https://teleyah.com/cspro/SriLankaNov20 ... ption.html

You should be able to adapt the posted codes to display (any)rosters on Android.

I did not test it because I'm waiting for CSPro 8.1 before working on some new ideas. The next cut will facilitate working with JS and other web technologies.

However, if you try to implement it in a small demo app using the way that Josh posted, maybe I'll try to help you more in solving this issue.
Best,
Last edited by htuser on June 9th, 2025, 7:43 pm, edited 1 time in total.
G.VOLNY, a CSProuser from Haiti, since 2004
mgtoukam
Posts: 37
Joined: March 24th, 2015, 4:23 am

Re: Array presentation in tablette

Post by mgtoukam »

THANK

i see that it's possible using htlm form and dialogs.

It is possible to whrite procedure and code if we will not use the htlm dialogs?

REGARDS
htuser
Posts: 687
Joined: December 19th, 2011, 6:26 pm
Location: Silver Spring Area, MD, USA

Re: Array presentation in tablette

Post by htuser »

It is possible to whrite procedure and code if we will not use the htlm dialogs?
Yes, it is possible.
In the past, I worked on an advanced CSPro powered system (for the now defunct DHS Program) where all the HTML/CSS are wrapped in CSPro logic. Please take a look here for my previous posts about: viewtopic.php?p=18762. Using this framework, it is possible to create some kind of HTML forms, accordions, panels etc. only by using CSPro logic user defined functions. The technical lead of this project wanted to improve and release this framework as open source. However, it was a little bit tricky because was designed for CSPro 7.7 when the CSPro -JS interface was more primitive.

In CSPro 7.7, the best approach that was possible (and used by this framework designer) was to use a lot of Hashmap and other CSPro user functions to store and translate JS object and other JSON data to CSPro supported data object: List, Array, Hashmap, etc. The next CSPro 8.1 will have an almost complete JS-CSPro logic bi-directional API and will natively allow conversions between JSON, other JS data objects and CSPro data objects. This version will simplify CSProusers wanting to implement similar CSPro powered HTML UI frameworks.

I think also the CSPro developer Team is working on some kind of Web Components who, normally should facilitate working with HTML natively in CSPro logic. Maybe Greg can explain the scope of Web Components in CSPro.
Best
G.VOLNY, a CSProuser from Haiti, since 2004
Post Reply