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
Jan. 2, 2013
04:16 am
3OL096A4IShow this entire thread in new window
Gratar Image based on email address
From:Thierry Nivelet (FoxInCloud)
To:Garth Groft
IMO the point is to remove this instruction:
...Value = alias.field

As .ControlSource = 'alias.field', Refresh() will set .Value automatically


Hi Giles,

THISFORM.pageframe1.page1.combo2 has no events or methods. Likewise, THISFORM.pageframe1.page1 has no events or methods.

the class used for all combos is inherited from awcbo c:\programs files ... tools\ab\aw.vcx. how can we know if FAA has adapted our combos correctly or force FAA to do so?

there are 36 combos on three forms (options, addunit, options_ performance) with rowsource = array. interestingly, the first combo on the options_performance form has rowsource = array and works all the time in every mode. this is the only combo that displays the saved control source value in the browser. we see no obvious difference in the properties of this working combo. we could shift out attention to the one combo on the options_performance form which works and the next one below it which does not.

should we run FAA against these three forms again?

Thierry has the app's source code including the options, addunit, and options_performance forms.

we will try to provide screenshots of the combo box properties and of the form properties (next post).

garth



Hi Garth

If in Web mode, the combobox are empty, i think that may be the class of the combobox or the class of the form or pageframe are not correctly adapted by FAA..

Can you put screenshots of the combobox properties and of the form properties. Also can you past a copy of the source code of methods and events of THISFORM.pageframe1.page1.combo2 and THISFORM.pageframe1.page1

Best Regard

Hi Giles,

thank you for your posting. we appreciate all the assistance we can get. we copied your code and pasted it in the options form's init event. the saved values are still not being displayed in the browser. every combo on the form is set up correctly and every combo works perfectly in LAN mode and on the options form shown in FiC debug mode tracking browse activity. all array information is established perfectly through the options form init event. we have a set step on at the last line in the init event. everything is perfect at that point. after the set step on, the next lines of code are in FiC's oform_init and the FiC code that follows. when the FIC code is completed, the form displays combos with empty values in the browser. these combo values are set incorrectly only when running the app in the browser. to me this suggests that the issue does not lie within code in the options form.

btw, i just checked and i see that this issue exists on two other forms for combos with rowsource = array only when running in the browser.

unless a fix for this issue can be found, we will not be able to demo our app at the exhibition in late January as planned.

thanks again for tryihg to help us.

Garth


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?








Thierry Nivelet (FoxInCloud)
Never explain, never complain (Queen Elizabeth II)


Viewing all articles
Browse latest Browse all 10393

Trending Articles