From: | Tuvia Vinitsky |
To: | Thierry Nivelet (FoxInCloud) |
That would be great, thank you. I look forward to it.
We can have this done for next version scheduled 3/1/13 - about 1 day development
The lists are created in a method on the form and recreated in that same method whenever the forms primary table key changes. IOW the listbox is a list of the last 5 paychecks of employee X. When we change to a new employee, the listbix contents changes. When you say "more modifications" does that mean something you can do imminently or do you mean it is too big a job?
this patch should work for static lists
for dynamic list we need more modifications
MODIFY COMMAND awHTML* ----------------------------------------------HIDDENFUNCTION getHTML_cbo_lst_cOptions && Items de la liste* WITH m.this.oControl AS awLst OF aw.vcxLOCAL liRow, liCol, lcOption, lcResult lcResult = Space(0)* Si la liste est remplieIF .ListCount> 0; AND NOT .ListItem[1] == '.F.'* Pour chaque élémentFOR liRow = 1 TO .ListCountIF .T.; AND m.liRow = .ListCount; AND Empty(.Value); AND Empty(.ListItem[m.liRow, 1]); AND Empty(.ListItem[m.liRow, .BoundColumn])&& c'est un élément vide ajouté par VFP quand .Value n'est pas dans .Listthis.cScriptJSAdd(Textmerge([$('').selectedIndex=-1;] ))ELSE lcOption = ''FOR liCol = 1 TO .ColumnCount lcOption = m.lcOption + ' - ' + Alltrim(.ListItem[m.liRow, m.liCol])ENDFOR lcResult = m.lcResult; + TABUL; + [<option]; && Iif(.BoundColumn > 1, Textmerge([ value=""]), Space(0)) + Iif(.Selected(m.liRow), [ selected="selected"], Space(0)); + [>]; + cEscaped_Base(Evl(Substr(m.lcOption, Len(' - ') + 1), ' ')); + [</option>]; + CRLFENDIFENDFORENDIF* ENDWITHRETURN m.lcResult
Ouch. I will have to tell the client to do a lot fo rewriting. JQuery has lots of plugins that do this, I guess prototype does not. I think there should be some sort of warning message when the columncount is not supported.
You miss nothing, <select> does not support multiple columns, so FAS doesn't either
I have a listbox with columncount of 3. I populae .warowsource with a correct data set, then I set the rowsource. In VFP I see 3 columns. On the web I see only the first column. There are no errors, ad I can operate the listbox as normwl, except I have only one column. What have I missed? (I have rowsource and columncount in wcpropsave)