- This topic has 33 replies, 9 voices, and was last updated 13 years, 10 months ago by DenisField.
-
AuthorPosts
-
support-michaelKeymasterHi Axel,
I’m testing a new 1.1 feature now that should make it easier to create your own custom lists. The code has been simplified (maybe not enough) and should be more possible to create lists dynamically. I’m still testing to get a better feel.
Also it appears that we might be providing an early-access (beta) release of 1.1 in the next couple of days. There are a couple of features that were late getting into QA which may push the 1.1 production release out to late this week or early next week.
Wayne
Genuitec Mobile Team
Albatros78ParticipantSounds good Wayne,
I am very excited to see this new 1.1
In fact, I have already a sample of personal list item populated by a external DB reading.
And I had 2 issues…
The 1st is that my list is out of the screen… Ok normally fixed into 1.1
And the 2nd is that each item created is separated from this other by a blank space . I tried different things but systematically my items created into my list are not “side to side” and I loose some space into my list.This evening I will post a picture of my results to be more clear if it is not here 🙂
Don’t forget to post a doc (to help us) which explain new features and fixes into 1.1 vs 1.0
Thks Wayne for your support & help
mobione121MemberHello Albatros,
Could you please share the sample for populating the list from DB.
Regards,
Albatros78ParticipantOK. I will do, but sorry… no time before this week end 🙁
I promise to post my sample and I will explain howto use it.
Albatros78ParticipantHi All, Wayne
As promised, my example is there.
2 words:
You can directly see the results from http://www.afsoftware.fr/mb1/dynamiclist
Either use you iPhone or Chrome browser.I have 2 pages single pages. First one to choose an ID to read DB and display the results into a dynamic list in second page.
The demo MySQL DB is real beside this sample, so please check you ID search to find something. Some records are alone and others are mutiples… test with my recommandations on first page.And the results are displayed like (long list which is out of the screen… fixed normally into 1.1)
But this result is not very nice. I would like a result as:
I post here my simple code to do that.
Please who can give me the solution to display the list as second image (with no blanck between each result). It missed something in to my php code, but … tired may be 🙂
Next step:
Create a third page which will display more details when you will click on specific record. Obvisously with a generic third page where parameters are sent directly from the choosen record. … On the road….
My idea is to retrieve to DB ID of each record to create one “ID” tag on each result with this DB id.
and when you click on one choosen record you will past the “id” tag through a POST method
Any suggestion also ??Thanks for your feedback
Attachments:
You must be logged in to view attached files.
MolxMemberHi Albatros,
I have a suggestion, although I warn you that I have almost no knowledge of php and db, so ignore if I say something wrong/you already know.
Well, it seems to me that your php code iterates through the results creating the items that will be displayed on your list. For what I’ve seen, you’re creating a new list for every result (<div id=”m1-Untitled1-list1″ class=”m1-table m1-grouped-table-container”>), and they all have the same name. That generates one list per result. I suggest that you rewrite your code so it will only create one container, and the list-items inside it, I believe it would be done placing the container-creator echo before the while loop.
I couldn’t test it cause I don’t have PHP neither SQL installed.
Hope it helps.
Albatros78ParticipantThanks Moix for you suggestion .
probably not so far from the result.My modified code is there:
And the result is:
Probably a tag with a bad position again… !!!
Anybody can fix this little issue for me… Thanks for your contribution.
Attachments:
You must be logged in to view attached files.
Albatros78ParticipantHi all,
Regarding the number of views of this item, I suppose this is interesting for you.
So please If anyone can give me the solution to how to display correctly the dynamic list it would be very nice to send your feedback.Sharing experience would be more efficient than to take idea 🙂
Wayne to have 1 minute to see from your side. probably an issue in my different ‘div’ tag, I Suppose.
iElyosMemberhi
i tried to give each item a different id using the var :
for ( i=0; i<len; i++) {
document.write(“<li id=\”m1-CodesBE-list” + i + “\” class=\”m1-first\”>”);But as i can’t use sql DB, your project doesn’t work for me…
i’m looking for local DB issue.i tried PHP with JS include but i only have a blank page with data…
Would be great to have a list item where items could be set dynamically…Best
Laurent.
support-michaelKeymaster@iElyos
I hear ya! The code-gen lead and I were discussing this very capability but 1.1 was running so late that it was out of scope. I have made him aware of this thread. I’m also working on a “hopefully” simple dynamic list example for later today if all goes well.Wayne
Genuitec Mobile Team
iElyosMemberTHANKS!
would be great 🙂PS; i post my work if someone want to give a look (codesbefr.html is index file).
I founded a solution, i populate my results in a text area.
working fine until i got a solution to do it in a list ^^
Thanks all for helpingAttachments:
You must be logged in to view attached files.
iElyosMember@Albatros78
Could you repost your complete export folder?
I tried to use your sample but i just have blank pages (no background or styles…)
I will try on my local website/dbThanks
Laurent
support-michaelKeymasterAll:
Confession – I abandoned creating custom list in 1.0 because while it was possible I found it just too big a PIA and it was limited in what you could create. MobiOne 1.1 is step towards improving custom list creation. The new scrollable panel works great for creating long custom lists into.
Here is the process I currently use:
1) use Design Center and create a List with 1 list-item. The 1 list-item will be used as a template to generate html and css styles
2) add button or some action to fetch data, parse the data and then
a) remove the 1 list item,
b) iterate over data creating instances of the list-items using the single instance from the designer as a template for the html code to createHere is a simple Twitter Timeline Demo that I created last night. I’ll be writing an article that details how to create similar apps. One problem is there is no 1-size fits all for data access. In my example I use twitter Rest API with JSON result. You can download the code here
See attachment tweet-search-result50.png
Wayne
Genuitec Mobile TeamAttachments:
You must be logged in to view attached files.
iElyosMemberWayne,
thanks for giving us so fast solutions 🙂
i will test it and give feedback on here.
reagrds
iElyos
Albatros78ParticipantHi Wayne,
Thanks for your sample.
I will test as soon as possible, and I will check how to adapt your code to mine.
@Laurent,
I will re-post my code asap. But I’m actually travelling and so I don’t have it with me. Pls be patient. -
AuthorPosts