Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: saved table values not displayed in array row source combos

$
0
0
Re: saved table values not displayed in array row source combos
FoxInCloud
Re: saved table values not displayed in array row source combos
Dec. 30, 2012
01:08 am
3OH02FJHGShow this entire thread in new window
Gratar Image based on email address
From:LLS
To:Garth Groft
Hi Garth

This is not Michele, i am Gilles (LLS)..

<code lang = "vfp"> must be deleted from the copy code

THISFORM.pageframe1.page1.combo2.ROWSOURCE = ""&& FIC is mandatory to do a reset before the assignment RowSource SELECT nfdiscine FROM nfdiscine ; WHERE evdigit = units.evdigit AND BETWEEN(units.evapmca,ampsmin,ampsmax) ; INTO ARRAY THISFORM.pageframe1.page1.combo2.waRowSource && create the array for the RowSource THISFORM.pageframe1.page1.combo2.ROWSOURCE = "Thisform.pageframe1.page1.combo2.waRowSource"&& assignment RowSource THISFORM.pageframe1.page1.combo2.ROWSOURCETYPE=5 && to be sure that the combobox is in array mode THISFORM.pageframe1.page1.combo2.BOUNDCOLUMN=1 && affect bound to column 1 THISFORM.pageframe1.page1.combo2.CONTROLSOURCE = options.nfdiscine && affect field nfdiscine of options table to the controlsource

Best regard


Michele,

here is what tried and it did not address the issue. have i captured your code correctly?

<code lang = "vfp">Thisform.pageframe1.page1.combo2.rowsource = ""
SELECT nfdiscine FROM nfdiscine ;
WHERE evdigit = units.evdigit AND BETWEEN(units.evapmca,ampsmin,ampsmax) ;
INTO ARRAY thisform.pageframe1.page1.COMBO2.waRowSource
Thisform.pageframe1.page1.combo2.rowsource = "Thisform.pageframe1.page1.combo2.waRowSource"
Thisform.pageframe1.page1.combo2.value = options.nfdiscine<</CODE>>

Garth


Hi Garth


Thisform.pageframe1.page1.combo2.rowsource = ""SELECT nfdiscine FROM nfdiscine ; WHERE evdigit = units.evdigit AND BETWEEN(units.evapmca,ampsmin,ampsmax) ; INTO ARRAY thisform.pageframe1.page1.COMBO2.waRowSource Thisform.pageframe1.page1.combo2.rowsource = "this.waRowSource" Thisform.pageframe1.page1.combo2.value = options.nfdiscine

This codebefore, should be replace by this one

Thisform.pageframe1.page1.combo2.rowsource = ""SELECT nfdiscine FROM nfdiscine ; WHERE evdigit = units.evdigit AND BETWEEN(units.evapmca,ampsmin,ampsmax) ; INTO ARRAY thisform.pageframe1.page1.COMBO2.waRowSource Thisform.pageframe1.page1.combo2.rowsource ="Thisform.pageframe1.page1.combo2.waRowSource"&& "this.waRowSource" Thisform.pageframe1.page1.combo2.value = options.nfdiscine

and try it..

Best regard


thierry,

thank you. strangely, i had not seen this message from you before. i will investigate your questions and get back to you with a full response ASAP.

i can respond to one simple question now. you ask: "when you run in debug mode, can you see the list populated correctly? or not? and .value?"

the array is being properly populated. if you selected one of the array elements, this selection is saved in the options table. on the next edit, the combo display nothing even though the saved value is in the options table (browser web mode only). the correct value appears in the combo in the very same VFP debug session which echos browser activity (shown in my screenshots). the correct value also appears running in LAN mode. this behavior applies to all 20+ combos on the options form.

i will reply again with the remaining answers to your questions.

thank you.

garth



http://west-wind.com/wwThreads/Message3OD183E0S.wwt


i will provide any combo properties information needed. i do not recall seeing your prior request for more information. what properties do you need investigated?





Viewing all articles
Browse latest Browse all 10393

Trending Articles